It works for rational. exponential and logarithmic functions nested in other rational, exponential or logarithmic functions.