Logarithmic Differentiation and Selecting a Procedure

AP Calculus BC · Unit 3 — Differentiation: Composite, Implicit, and Inverse Functions

When the exponent contains a variable

The power rule needs a constant exponent and the exponential rule needs a constant base, so an expression like $x^{\sin x}$ is served by neither. Take a natural logarithm of both sides first:

$$y=x^{\sin x}\;\Longrightarrow\;\ln y=\sin x\ln x\;\Longrightarrow\;\frac{y'}{y}=\cos x\ln x+\frac{\sin x}{x}\;\Longrightarrow\;y'=x^{\sin x}\left(\cos x\ln x+\frac{\sin x}{x}\right)$$

The step $\dfrac{d}{dx}\ln y=\dfrac{y'}{y}$ is implicit differentiation, and the final multiplication by $y$ is what returns the answer to the original variable. Forgetting it leaves only $\dfrac{y'}{y}$, which is not the requested derivative.

The same trick tames heavy products and quotients

Logarithms convert products into sums, quotients into differences and powers into coefficients, so a three-level quotient becomes three independent derivatives added together. This is far safer than nesting the quotient rule around the product rule around the chain rule.

Choosing the procedure

Read the outermost operation first: a sum means differentiate term by term; a product means the product rule; a quotient with a variable exponent means logarithms; a composition means the chain rule.

y = product / quotient with exponents ln ln y = sum / difference exponents come to the front implicit differentiation y′ / y = sum of the derivatives multiply by y y′ The most forgotten step is the last arrow: MULTIPLY BY y AGAIN. Stopping at y′/y answers a different question from the one asked.
Read the diagram clockwise. The logarithm moves the problem into an easier world (products become sums), we differentiate there, and then we must travel back by multiplying by $y$. Everyone remembers the first three arrows; the fourth arrow is where points are lost, because $\frac{y'}{y}$ already looks like a finished answer. A tip to prevent it: as soon as you write the line $\ln y=\dots$, also write "$\times y$" at the bottom of the page as a reminder.

Worked example: a three-layer quotient, done with logarithms

Let $y=\dfrac{(x+2)^{4}\sqrt{3x-2}}{\left(x^{2}+1\right)^{3}}$ for $x>\dfrac23$. Find $y'(1)$ as an exact fraction.

Solution

Take the logarithm of both sides (valid because $y>0$ on the domain under consideration):

$$\ln y=4\ln(x+2)+\tfrac12\ln(3x-2)-3\ln\left(x^{2}+1\right)$$

Differentiate both sides with respect to $x$:

$$\frac{y'}{y}=\frac{4}{x+2}+\frac{3}{2(3x-2)}-\frac{6x}{x^{2}+1}$$

At $x=1$:

$$y(1)=\frac{3^{4}\cdot 1}{2^{3}}=\frac{81}{8},\qquad \frac{y'}{y}\bigg|_{x=1}=\frac{4}{3}+\frac{3}{2}-3=\frac{8+9-18}{6}=-\frac{1}{6}$$

Multiply back by $y$:

$$y'(1)=\frac{81}{8}\cdot\left(-\frac{1}{6}\right)=-\frac{27}{16}$$

Doing it directly requires nesting the quotient rule on the outside, the product rule inside, and then the chain rule on each factor — three layers, and very easy to get a sign wrong.

Common mistake

Trap number one: stopping at $\frac{y'}{y}$ and submitting that number. Prevent it with the habit of writing "$\times y$" at the bottom of the page right at the start. Trap number two: using the power rule on $x^{x}$ to get $x\cdot x^{x-1}$, or using the exponential rule to get $x^{x}\ln x$ — both are wrong because both the base and the exponent contain the variable; the correct result is $x^{x}(1+\ln x)$. Prevent it by looking at both the base and the exponent before choosing a rule; if you see the variable in both places, you must use logarithms.

Key takeaway

The variable is in the exponent, or the expression is a product over a quotient over powers: take logarithms. After differentiating there is always one more step — multiply back by $y$ — which is the link that breaks most often in this whole technique.

← Derivatives of Inverse Functions and Inverse Trigonometric Functions · All AP Calculus BC lessons · Practice AP Calculus BC questions (free, instant scoring) · Interpreting Rates in Context; Straight-Line Motion →