AP Calculus AB and BC

Logarithmic vs Implicit Differentiation

Logarithmic differentiation is implicit differentiation applied to the equation ln y equals ln f of x, so it is a special case rather than a rival. Reach for it when the exponent contains x, since neither the power rule nor the exponential rule applies there.

Logarithmic differentiation

Use when: The variable appears in the exponent, or the function is a long product or quotient that logs would flatten into a sum of simple terms.

Implicit differentiation

Use when: You are handed an equation relating x and y that is not solved for y, and solving it would be ugly, impossible, or would break the function into branches.

Side by side

Logarithmic differentiationImplicit differentiation
Where the equation comes fromYou build it, by writing lny=lnf(x)\ln y = \ln f(x)You are given it, as in x2+y2=25x^{2} + y^{2} = 25
When to reach for itThe exponent contains xx, as in y=xxy = x^{x}The relation cannot be solved for yy
Opening moveTake ln\ln of both sides and expand with log rulesDifferentiate both sides with respect to xx
Shape of the answerdy/dxdy/dx in terms of xx alone, after substituting y=f(x)y = f(x)dy/dxdy/dx usually in terms of both xx and yy
Relationship between themA special case, applied to an equation you constructedThe general technique that the other one runs on

The power rule wants a constant exponent and the exponential rule wants a constant base, so y=xxy = x^{x} is outside the reach of both. Logs repair that in one step, since ln(xx)=xlnx\ln\left(x^{x}\right) = x \ln x pulls the exponent down into a product the product rule can differentiate. Take logs of both sides, differentiate, and solve for yy'.

y=xx    lny=xlnx    yy=lnx+1    y=xx(lnx+1)y = x^{x} \;\Longrightarrow\; \ln y = x \ln x \;\Longrightarrow\; \frac{y'}{y} = \ln x + 1 \;\Longrightarrow\; y' = x^{x}\left(\ln x + 1\right)

The middle step is implicit differentiation and nothing else. Differentiating lny\ln y with respect to xx gives 1ydydx\frac{1}{y} \cdot \frac{dy}{dx} by the chain rule, exactly the move that turns x2+y2=25x^{2} + y^{2} = 25 into 2x+2ydydx=02x + 2y\frac{dy}{dx} = 0 and then dydx=xy\frac{dy}{dx} = -\frac{x}{y}. Only the origin of the equation differs. One detail worth keeping: lny\ln y requires y>0y > 0, so the careful version starts from lny\ln\lvert y \rvert, whose derivative is the same yy\frac{y'}{y}.

The two wrong derivatives of x to the x

Forcing the power rule onto xxx^{x} gives xxx1x \cdot x^{x-1}, which collapses back to xxx^{x}. Forcing the exponential rule onto it gives xxlnxx^{x}\ln x. Both are wrong, and the giveaway is that the correct answer xx(lnx+1)x^{x}\left(\ln x + 1\right) is their sum. Treat that as a check on your work, not as a rule to memorise: once xx sits in the base and the exponent at once, either take logs and differentiate implicitly or rewrite as exlnxe^{x \ln x} and use the chain rule.

Frequently asked questions

For x to the x, is that a power rule problem or a log differentiation problem?

Logarithmic differentiation. The power rule ddxxn=nxn1\frac{d}{dx}x^{n} = nx^{n-1} is stated for a constant nn, and here the exponent moves with xx, so the rule does not apply. Taking logs first gives y=xx(lnx+1)y' = x^{x}\left(\ln x + 1\right).

Is logarithmic differentiation on the AP exam?

It is not a named technique in the Course and Exam Description, so a question that can only be done this way is unlikely. It is still worth having, because together with the rewrite xsinx=esinxlnxx^{\sin x} = e^{\sin x \ln x} it is one of only two routes to a variable base with a variable exponent, and it turns a four-factor quotient into a sum of four easy derivatives.

Why does y prime over y keep appearing?

Because yy is a function of xx, so differentiating lny\ln y needs the chain rule and produces 1ydydx\frac{1}{y}\cdot\frac{dy}{dx}. Multiplying both sides by yy at the end is what puts the original function back into the answer.

In the CED: Unit 3: Chain Rule, Implicit, and Inverses