AP Calculus AB · September 30, 2026

Logarithmic Differentiation

Use inverse functions to differentiate logarithms, carry domain restrictions carefully, and unlock functions whose variable appears in both the base and exponent.

52-minute edited lesson10 chaptersCaptions + corrected transcript

01 · Watch

Lesson video

02 · Understand

Learning targets

03 · Connect

Core rules and domain

Each formula keeps its original function's domain.

01Natural logarithm
ddxln⁡x=1x(x>0)\frac{d}{dx}\ln x=\frac1x\qquad(x>0)The natural logarithm is the inverse of the exponential function with base ee.
02Any logarithmic base
ddxlog⁡bx=1xln⁡b(b>0, b≠1)\frac{d}{dx}\log_b x=\frac{1}{x\ln b}\qquad(b>0,\ b\ne1)The extra ln⁡b\ln b factor comes from differentiating an exponential with base bb.
03Logarithmic chain rule
ddxln⁡∣u(x)∣=u′(x)u(x)(u(x)≠0)\frac{d}{dx}\ln|u(x)|=\frac{u'(x)}{u(x)}\qquad(u(x)\ne0)Differentiate the inside and divide by that same inside expression.
04Absolute value
ddxln⁡∣x∣=1x(x≠0)\frac{d}{dx}\ln|x|=\frac1x\qquad(x\ne0)The algebraic derivative matches 1/x1/x, but its domain is all nonzero real numbers.
05Logarithmic differentiation
ln⁡y=3xln⁡x\ln y=3x\ln xTake logarithms, move the exponent in front, differentiate implicitly, solve for the derivative, and substitute the original function.

04 · Apply

Worked examples

Examples from the recorded lesson, rewritten with precise typeset mathematics.

Inverse functions

Derive the natural-log rule

y=ln⁡x  ⟺  ey=xy=\ln x\iff e^y=x

Rewrite the logarithmic equation in exponential form.

Differentiate implicitly, then use the inverse identity to replace the exponential expression with x.

ddxln⁡x=1x(x>0)\frac{d}{dx}\ln x=\frac1x\qquad(x>0)
Any base

Differentiate log base b

byln⁡b dydx=1⟹dydx=1xln⁡bb^y\ln b\,\frac{dy}{dx}=1\quad\Longrightarrow\quad\frac{dy}{dx}=\frac{1}{x\ln b}

The derivative of b to the y includes the constant factor ln b.

Solve for dy/dx and replace b to the y with x.

ddxlog⁡bx=1xln⁡b(b>0, b≠1)\frac{d}{dx}\log_b x=\frac{1}{x\ln b}\qquad(b>0,\ b\ne1)
Chain rule

A logarithm containing a trigonometric-polynomial sum

f(x)=log⁡4(sin⁡x+x3)f(x)=\log_4(\sin x+x^3)

Use one over the inside expression times ln 4.

Multiply by the derivative of the inside expression.

f′(x)=cos⁡x+3x2(sin⁡x+x3)ln⁡4f'(x)=\frac{\cos x+3x^2}{(\sin x+x^3)\ln4}
Log property

A power inside a natural logarithm

f(x)=ln⁡(x7)f(x)=\ln(x^7)

Either apply the chain rule directly or rewrite ln(x to the seventh) as 7 ln x on its valid domain.

Both approaches simplify to the same derivative.

f′(x)=7xf'(x)=\frac7x
Domain

Natural log of an absolute value

ln⁡∣x∣={ln⁡x,x>0,ln⁡(−x),x<0,\ln|x|=\begin{cases}\ln x,&x>0,\\\ln(-x),&x<0,\end{cases}

Treat the absolute-value function piecewise on the positive and negative intervals.

The derivative is the same algebraic expression on both intervals, but zero remains outside the domain.

ddxln⁡∣x∣=1x(x≠0)\frac{d}{dx}\ln|x|=\frac1x\qquad(x\ne0)
Variable base and exponent

Differentiate x to the 3x

y=x3xy=x^{3x}

Take the natural logarithm of both sides and move the exponent in front.

Differentiate implicitly with the product rule, solve for y prime, and replace y with the original function.

y′=(3ln⁡x+3)x3xy'=(3\ln x+3)x^{3x}
Logarithmic differentiation

Differentiate sine x raised to cosine x

y=(sin⁡x)cos⁡xy=(\sin x)^{\cos x}

Take logarithms so the variable exponent becomes a coefficient.

Differentiate the resulting product implicitly, solve for y prime, and substitute the original function.

y′=(sin⁡x)cos⁡x[−sin⁡xln⁡(sin⁡x)+cos⁡2xsin⁡x]y'=(\sin x)^{\cos x}\left[-\sin x\ln(\sin x)+\frac{\cos^2x}{\sin x}\right]

05 · Avoid

Common mistakes

Forgetting the logarithm's inside derivative.

ddxln⁡(5x+6)=55x+6\frac{d}{dx}\ln(5x+6)=\frac{5}{5x+6} includes the factor 5.

Dropping the base factor.

ddxlog⁡bx=1xln⁡b\frac{d}{dx}\log_bx=\frac{1}{x\ln b}. Only the natural logarithm has ln⁡e=1\ln e=1.

Ignoring the original domain.

The derivative formula may look valid at points where the original logarithmic function does not exist.

Using the power rule on a variable exponent.

x3xx^{3x} is not a power function because its exponent is not constant.

Using the exponential rule on a variable base.

x3xx^{3x} is not an ordinary exponential function because its base is not constant.

Forgetting to substitute for y.

After implicit differentiation, replace yy with the original function before finishing.

06 · Check yourself

Try it first

These are new practice problems, not repeats of the worked examples above. Reveal a solution only after trying each one.

1Differentiate f(x)=ln⁡(2x2+5)f(x)=\ln(2x^2+5).

f′(x)=4x2x2+5f'(x)=\frac{4x}{2x^2+5}Use u′(x)/u(x)u'(x)/u(x) with u(x)=2x2+5u(x)=2x^2+5.

2Differentiate g(x)=log⁡3(x2+1)g(x)=\log_3(x^2+1).

g′(x)=2x(x2+1)ln⁡3g'(x)=\frac{2x}{(x^2+1)\ln3}Differentiate the inside and keep the base factor ln⁡3\ln3 in the denominator.

3Differentiate h(x)=ln⁡∣x2−9∣h(x)=\ln|x^2-9| and state its domain.

h′(x)=2xx2−9,x≠−3,3h'(x)=\frac{2x}{x^2-9},\qquad x\ne-3,3The absolute-value logarithm rule gives u′/uu'/u wherever u≠0u\ne0.

4Use logarithmic differentiation on y=(x+1)2xy=(x+1)^{2x}.

y′=(x+1)2x[2ln⁡(x+1)+2xx+1],x>−1y'=(x+1)^{2x}\left[2\ln(x+1)+\frac{2x}{x+1}\right],\qquad x>-1From ln⁡y=2xln⁡(x+1)\ln y=2x\ln(x+1), use the product rule and solve for y′y'.

5Differentiate p(x)=ln⁡(4−x)p(x)=\ln(4-x) and keep the correct domain.

p′(x)=−14−x,x<4p'(x)=-\frac{1}{4-x},\qquad x<4The inside derivative is negative one, and the derivative's domain cannot exceed the original logarithm's domain.

07 · Revisit

Transcript and practice

Search the corrected transcript for a rule, derivation, or worked example. Captions follow the edited video timeline.

Download corrected transcript

Return to Wednesday 9/30 in eKadence for Stewart Section 3.6 practice.