8

Day 8

Implicit And Exponential Logarithmic Derivatives


Implicit Differentiation

Not every curve can be solved explicitly for yy in terms of xx — circles, folium-shaped curves, and many AP FRQ setups only give you an equation relating xx and yy. Implicit differentiation lets you find dydx\frac{dy}{dx} anyway, by differentiating both sides of the equation as-is.

Core Theorem
Differentiate each term of the equation with respect to xx. Every time you differentiate a term containing yy, treat yy as a function of xx and multiply by dydx\frac{dy}{dx} (the chain rule). For example, ddx(xy)=y+xdydx\frac{d}{dx}(xy) = y + x\frac{dy}{dx} (product rule) and ddx(y3)=3y2dydx\frac{d}{dx}(y^3) = 3y^2\frac{dy}{dx} (chain rule).

Worked Examples

Read these first — the full solution is shown, with the reasoning behind each move.

Worked Example 01Easy
Find dydx\frac{dy}{dx} for the circle x2+y2=25x^2+y^2=25, and use it to find the tangent line at the point (3,4)(3,-4).
How to think about it
When you cannot solve for yy, differentiate both sides as they are. Every time you differentiate a yy term, the chain rule tacks on a dydx\frac{dy}{dx}; then collect those terms and solve for it.

Key idea: Differentiate both sides with respect to xx; the y2y^2 term needs the chain rule.

Full solution

1. Step 1: Differentiate Both Sides

2x+2ydydx=02x + 2y\frac{dy}{dx} = 0.

2. Step 2: Solve for dy/dx

dydx=xy\frac{dy}{dx} = -\frac{x}{y}.

3. Step 3: Evaluate the Slope at (3, -4)

dydx(3,4)=34=34\frac{dy}{dx}\Big|_{(3,-4)} = -\frac{3}{-4} = \frac{3}{4}.

4. Step 4: Write the Tangent Line

y(4)=34(x3)    y=34x254y - (-4) = \frac{3}{4}(x-3) \implies y = \frac{3}{4}x - \frac{25}{4}.
Worked Example 02Medium
Find yy' for the folium of Descartes: x3+y3=6xyx^3+y^3=6xy.
How to think about it

Key idea: The right side 6xy6xy needs the product rule, and every yy term needs an extra yy' tacked on.

Full solution

1. Step 1: Differentiate Both Sides

3x2+3y2y=6y+6xy3x^2 + 3y^2y' = 6y + 6xy' (the right side used the product rule on 6xy6xy).

2. Step 2: Collect All y' Terms on One Side

3y2y6xy=6y3x2    y(3y26x)=6y3x23y^2y' - 6xy' = 6y - 3x^2 \implies y'(3y^2-6x) = 6y-3x^2.

3. Step 3: Solve for y'

y=6y3x23y26x=2yx2y22xy' = \frac{6y-3x^2}{3y^2-6x} = \frac{2y-x^2}{y^2-2x}.
Step-by-Step SOP
  1. 1

    Differentiate Every Term w.r.t. x

    Go term by term. For xx-only terms, differentiate normally. For yy-only or mixed terms, apply the chain rule (and product rule, if mixed) and attach yy'.
  2. 2

    Collect and Factor

    Move every term containing yy' to one side of the equation, factor yy' out, and solve for it.
  3. 3

    Substitute the Point Last

    Keep yy' in terms of both xx and yy until the very end, then plug in the specific point you care about.

Practice — Your Turn

Try each one before opening the hint or the solution.

Practice 01Hard
For the curve x2+xy+y3=1x^2+xy+y^3=1, find yy' and yy'' at the point (1,0)(1,0).
Need a hint?
First confirm (1,0)(1,0) is actually on the curve, then differentiate once for yy', and differentiate that whole equation again for yy''.
Show solution

1. Step 1: Differentiate Once for y'

2x+(y+xy)+3y2y=0    y(x+3y2)=(2x+y)    y=2x+yx+3y22x + (y+xy') + 3y^2y' = 0 \implies y'(x+3y^2) = -(2x+y) \implies y' = -\frac{2x+y}{x+3y^2}.

2. Step 2: Evaluate y' at (1, 0)

y(1,0)=2(1)+01+3(0)2=21=2y'(1,0) = -\frac{2(1)+0}{1+3(0)^2} = -\frac{2}{1} = -2.

3. Step 3: Differentiate the y' Equation Again for y''

Differentiating 2x+y+xy+3y2y=02x+y+xy'+3y^2y'=0 term by term: 2+y+(y+xy)+(6y(y)2+3y2y)=02 + y' + (y'+xy'') + (6y(y')^2+3y^2y'') = 0, which simplifies to y(x+3y2)=[2+2y+6y(y)2]y''(x+3y^2) = -\left[2+2y'+6y(y')^2\right].

4. Step 4: Substitute x=1, y=0, y'=-2

y(1+0)=[2+2(2)+6(0)(4)]=[24+0]=2y''(1+0) = -[2+2(-2)+6(0)(4)] = -[2-4+0] = 2, so y(1,0)=2y''(1,0) = 2.
Practice 02AB/BC Standard
Verify that y=ax3y = ax^3 and x2+3y2=bx^2+3y^2=b form a family of orthogonal trajectories (every curve in one family meets every curve in the other at a right angle).
Need a hint?
Find the slope of each family in terms of xx and yy only (eliminate the parameters aa and bb), then multiply the two slopes together.
Show solution

1. Step 1: Find the Slope of y = ax³ in Terms of x, y

y=3ax2y' = 3ax^2. Since a=yx3a = \frac{y}{x^3} from the original equation, y=3(yx3)x2=3yxy' = 3\left(\frac{y}{x^3}\right)x^2 = \frac{3y}{x}.

2. Step 2: Find the Slope of x² + 3y² = b Implicitly

2x+6yy=0    y=x3y2x+6yy'=0 \implies y' = -\frac{x}{3y}.

3. Step 3: Multiply the Two Slopes

3yx(x3y)=1\frac{3y}{x} \cdot \left(-\frac{x}{3y}\right) = -1.

4. Step 4: Conclude

Since the product of the slopes is 1-1 at every intersection point, the two families are orthogonal trajectories.
Practice 03Hard
Find all points on the curve x2xy+y2=3x^2 - xy + y^2 = 3 where the tangent line is horizontal.
Need a hint?
A horizontal tangent means y=0y'=0. Differentiate implicitly, set the numerator of yy' equal to 0, then substitute back into the original equation to find the actual points.
Show solution

1. Step 1: Differentiate Implicitly

2x(y+xy)+2yy=0    y(2yx)=y2x    y=y2x2yx2x - (y+xy') + 2yy' = 0 \implies y'(2y-x) = y-2x \implies y' = \frac{y-2x}{2y-x}.

2. Step 2: Set the Numerator to Zero

y2x=0    y=2xy - 2x = 0 \implies y = 2x.

3. Step 3: Substitute Back into the Original Equation

x2x(2x)+(2x)2=3    x22x2+4x2=3    3x2=3    x=±1x^2 - x(2x) + (2x)^2 = 3 \implies x^2-2x^2+4x^2=3 \implies 3x^2=3 \implies x=\pm 1.

4. Step 4: State the Points

At x=1x=1: y=2y=2. At x=1x=-1: y=2y=-2. Both denominators (2yx2y-x) are nonzero at these points, confirming horizontal tangents at (1,2)(1,2) and (1,2)(-1,-2).
Common Pitfalls
  • Every y Needs Its Own dy/dxIt's easy to differentiate y3y^3 correctly as 3y2y3y^2y' but then forget to attach yy' to a simpler term like a lone yy later in the same equation — track every single yy term.
  • Mixed Terms Like xy Need the Product Ruleddx(xy)=y+xy\frac{d}{dx}(xy) = y + xy', NOT just yy' or just xyx y' — since xx and yy are both functions of xx here, the product rule is mandatory.
  • Solve for dy/dx Only at the EndDon't try to isolate yy' mid-differentiation. Differentiate the entire equation first, then collect all yy' terms on one side and factor.

Derivatives of Exponential & Logarithmic Functions

exe^x is the only function that is its own derivative — every other exponential or logarithmic derivative picks up an extra factor of ln(base)\ln(\text{base}). When a variable shows up in BOTH the base and the exponent, none of the usual rules apply directly — that's when logarithmic differentiation comes in.

Core Theorem
ddxex=ex\frac{d}{dx}e^x = e^x
ddxax=axlna\frac{d}{dx}a^x = a^x \ln a
ddxlnx=1x (x>0)\frac{d}{dx}\ln x = \frac{1}{x}\ (x>0), and ddxlnx=1x (x0)\frac{d}{dx}\ln|x| = \frac{1}{x}\ (x \neq 0)
ddxlogax=1xlna\frac{d}{dx}\log_a x = \frac{1}{x\ln a}
General power rule:
ddxur=rur1dudx\frac{d}{dx}u^r = ru^{r-1}\frac{du}{dx} for any real rr.
Logarithmic differentiation: to differentiate
y=[f(x)]g(x)y=[f(x)]^{g(x)}, take ln\ln of both sides first: lny=g(x)lnf(x)\ln y = g(x)\ln f(x), then differentiate implicitly.
Watch the TikTok ExplanationDerivative of Exponential FunctionsWatch the TikTok ExplanationDerivative of Logarithmic Functions

Worked Examples

Read these first — the full solution is shown, with the reasoning behind each move.

Worked Example 01Medium
Differentiate y=esec(3θ)y = e^{\sec(3\theta)}.
How to think about it
ddxeu=euu\frac{d}{dx}e^{u} = e^{u}\cdot u' — the eue^{u} comes back unchanged and you multiply by the derivative of the exponent. If that exponent is itself composite, it needs its own chain rule.

Key idea: The outside function is e()e^{(\cdot)} — apply the chain rule and don't forget the derivative of sec(3θ)\sec(3\theta) needs its own chain rule too.

Full solution

1. Step 1: Differentiate the Outer e^(...) Layer

dydθ=esec(3θ)ddθ[sec(3θ)]\frac{dy}{d\theta} = e^{\sec(3\theta)} \cdot \frac{d}{d\theta}\left[\sec(3\theta)\right].

2. Step 2: Differentiate sec(3θ) with the Chain Rule

ddθsec(3θ)=sec(3θ)tan(3θ)3\frac{d}{d\theta}\sec(3\theta) = \sec(3\theta)\tan(3\theta) \cdot 3.

3. Step 3: Combine

dydθ=3sec(3θ)tan(3θ)esec(3θ)\frac{dy}{d\theta} = 3\sec(3\theta)\tan(3\theta)\,e^{\sec(3\theta)}.
Worked Example 02Medium
Differentiate f(x)=lnxf(x) = \sqrt{\ln x}.
How to think about it

Key idea: Rewrite as (lnx)1/2(\ln x)^{1/2} and apply the chain rule, recalling that the derivative of lnx\ln x is 1x\frac{1}{x}.

Full solution

1. Step 1: Rewrite as a Power

f(x)=(lnx)1/2f(x) = (\ln x)^{1/2}.

2. Step 2: Differentiate the Outer Power

f(x)=12(lnx)1/2ddx(lnx)f'(x) = \frac{1}{2}(\ln x)^{-1/2} \cdot \frac{d}{dx}(\ln x).

3. Step 3: Multiply by the Inner Derivative

f(x)=12(lnx)1/21x=12xlnxf'(x) = \frac{1}{2}(\ln x)^{-1/2} \cdot \frac{1}{x} = \frac{1}{2x\sqrt{\ln x}}.
Step-by-Step SOP
  1. 1

    Classify the Expression

    Determine whether the variable is in the base only (power rule), the exponent only (exponential rule), or both (logarithmic differentiation needed).
  2. 2

    For Logarithmic Differentiation, Take ln of Both Sides First

    Rewrite lny=g(x)lnf(x)\ln y = g(x)\ln f(x), differentiate implicitly, then multiply both sides by the original yy to isolate yy'.
  3. 3

    Don't Forget the Chain Rule for Nested Arguments

    Even after picking the right base rule, if the exponent or argument is itself a function of xx, you still need to multiply by its derivative.

Practice — Your Turn

Try each one before opening the hint or the solution.

Practice 01AB/BC Standard
Use logarithmic differentiation to find dydx\frac{dy}{dx} for y=xxy = x^{\sqrt{x}}.
Need a hint?
Since both the base AND the exponent contain xx, no ordinary rule applies directly — take ln\ln of both sides first.
Show solution

1. Step 1: Take the Natural Log of Both Sides

lny=xlnx\ln y = \sqrt{x}\ln x.

2. Step 2: Differentiate Both Sides Implicitly

yy=12xlnx+x1x=lnx2x+1x\frac{y'}{y} = \frac{1}{2\sqrt{x}}\ln x + \sqrt{x}\cdot\frac{1}{x} = \frac{\ln x}{2\sqrt{x}} + \frac{1}{\sqrt{x}}.

3. Step 3: Combine the Right Side

yy=lnx+22x\frac{y'}{y} = \frac{\ln x + 2}{2\sqrt{x}}.

4. Step 4: Solve for y' by Multiplying by y

y=xxlnx+22xy' = x^{\sqrt{x}}\cdot\frac{\ln x + 2}{2\sqrt{x}}.
Practice 02Medium
Compare the derivatives of four similar-looking expressions: (a) 535^3, (b) x3x^3, (c) 2sinx2^{\sin x}, (d) xxx^x.
Need a hint?
Ask which part is the variable: the base, the exponent, both, or neither?
Show solution

1. (a) Constant Base, Constant Exponent

535^3 is just the number 125 — a constant. Its derivative is 00.

2. (b) Variable Base, Constant Exponent → Power Rule

ddx(x3)=3x2\frac{d}{dx}(x^3) = 3x^2.

3. (c) Constant Base, Variable Exponent → Exponential Rule

ddx(2sinx)=2sinx(ln2)cosx\frac{d}{dx}\left(2^{\sin x}\right) = 2^{\sin x}(\ln 2)\cos x.

4. (d) Variable Base AND Variable Exponent → Logarithmic Differentiation

ddx(xx)=xx(lnx+1)\frac{d}{dx}(x^x) = x^x(\ln x + 1), found by taking lny=xlnx\ln y = x\ln x and differentiating implicitly.
Practice 03Easy
At which point on the curve y=exy=e^x is the tangent line parallel to y=2xy=2x?
Need a hint?
'Parallel' means the slopes match. Set y=exy'=e^x equal to the slope of the given line and solve for xx.
Show solution

1. Step 1: Set the Derivative Equal to the Target Slope

y=ex=2y' = e^x = 2.

2. Step 2: Solve for x

x=ln2x = \ln 2.

3. Step 3: Find the y-Coordinate

y=eln2=2y = e^{\ln 2} = 2.

4. Step 4: State the Point

The tangent line is parallel to y=2xy=2x at the point (ln2, 2)(\ln 2,\ 2).
Common Pitfalls
  • Only e^x Reproduces Itselfddxax=axlna\frac{d}{dx}a^x = a^x\ln a, NOT just axa^x. The extra lna\ln a factor is only invisible when a=ea=e, since lne=1\ln e = 1.
  • Identify Which Part Is the Variable Before Choosing a RulePower rule, exponential rule, and logarithmic differentiation look similar but apply to different situations — always check whether the variable is in the base, the exponent, or both before picking a method.

Higher-Order Derivatives

Differentiating a derivative gives the second derivative, differentiating again gives the third, and so on. The second derivative is the workhorse — it powers concavity, the Second Derivative Test, and acceleration in particle motion — so being fluent at ff'' (including implicitly) matters.

Core Theorem
Notation: f(x)f'(x), f(x)f''(x), f(x)f'''(x), f(4)(x),f^{(4)}(x), \dots or dydx,d2ydx2,d3ydx3,\dfrac{dy}{dx}, \dfrac{d^2y}{dx^2}, \dfrac{d^3y}{dx^3}, \dots
Each one is just the derivative of the one before it. For an implicit curve, differentiate
dydx\dfrac{dy}{dx} again with respect to xx (using the quotient/product and chain rules), then substitute the expression for dydx\dfrac{dy}{dx} back in.

Worked Examples

Read these first — the full solution is shown, with the reasoning behind each move.

Worked Example 01Easy
For f(x)=x43x3+2x7f(x) = x^4 - 3x^3 + 2x - 7, find f(x)f''(x) and f(x)f'''(x).
How to think about it
ff'' is just the derivative of ff' — keep going. Simplify each derivative before taking the next one, or the algebra snowballs.

Key idea: Differentiate once for ff', again for ff'', again for ff'''.

Full solution

1. Step 1: First Derivative

f(x)=4x39x2+2f'(x) = 4x^3 - 9x^2 + 2.

2. Step 2: Second Derivative

f(x)=12x218xf''(x) = 12x^2 - 18x.

3. Step 3: Third Derivative

f(x)=24x18f'''(x) = 24x - 18.
Worked Example 02Medium
If y=sin(2x)y = \sin(2x), find d2ydx2\dfrac{d^2y}{dx^2}.
How to think about it

Key idea: Each derivative brings down a factor of 2 from the chain rule.

Full solution

1. Step 1: First Derivative

dydx=2cos(2x)\dfrac{dy}{dx} = 2\cos(2x).

2. Step 2: Second Derivative

d2ydx2=4sin(2x)\dfrac{d^2y}{dx^2} = -4\sin(2x).
Step-by-Step SOP
  1. 1

    Differentiate, Then Differentiate the Result

    ff'' is literally the derivative of ff'. Simplify ff' before differentiating again to avoid a mess.
  2. 2

    For Implicit Second Derivatives, Substitute Last

    Find dydx\dfrac{dy}{dx}, differentiate it again with respect to xx, then replace every remaining dydx\dfrac{dy}{dx} with the expression you found in step 1.

Practice — Your Turn

Try each one before opening the hint or the solution.

Practice 01Medium
A particle's position is s(t)=t36t2+9ts(t) = t^3 - 6t^2 + 9t. Find its acceleration at t=2t = 2.
Need a hint?
Velocity is s(t)s'(t); acceleration is s(t)s''(t).
Show solution

1. Step 1: Velocity

s(t)=3t212t+9s'(t) = 3t^2 - 12t + 9.

2. Step 2: Acceleration

s(t)=6t12s''(t) = 6t - 12, so s(2)=1212=0s''(2) = 12 - 12 = 0.
Practice 02Hard
For the circle x2+y2=25x^2 + y^2 = 25, find d2ydx2\dfrac{d^2y}{dx^2} in terms of xx and yy.
Need a hint?
Get dydx\frac{dy}{dx} implicitly first, then differentiate that quotient with respect to xx, substituting dydx=x/y\frac{dy}{dx} = -x/y back in at the end.
Show solution

1. Step 1: First Derivative (Implicit)

2x+2ydydx=0    dydx=xy2x + 2y\,\dfrac{dy}{dx} = 0 \implies \dfrac{dy}{dx} = -\dfrac{x}{y}.

2. Step 2: Differentiate Again (Quotient Rule)

d2ydx2=(1)(y)xdydxy2=yxdydxy2\dfrac{d^2y}{dx^2} = -\dfrac{(1)(y) - x\,\dfrac{dy}{dx}}{y^2} = -\dfrac{y - x\,\dfrac{dy}{dx}}{y^2}.

3. Step 3: Substitute dy/dx Back In

d2ydx2=yx(x/y)y2=y+x2/yy2=y2+x2y3=25y3\dfrac{d^2y}{dx^2} = -\dfrac{y - x(-x/y)}{y^2} = -\dfrac{y + x^2/y}{y^2} = -\dfrac{y^2 + x^2}{y^3} = -\dfrac{25}{y^3} (using x2+y2=25x^2 + y^2 = 25).
Common Pitfalls
  • Forgetting dy/dx Reappears When Differentiating ImplicitlyWhen you differentiate x/y-x/y with respect to xx, the yy in the denominator is a function of xx, so its derivative brings another dydx\dfrac{dy}{dx} into the expression — don't treat yy as a constant.
  • $f^{(4)}$ Is Not $f^4$f(4)(x)f^{(4)}(x) (in parentheses) is the fourth derivative; f(x)4f(x)^4 is the function raised to the fourth power. The parentheses matter.
Gary Chang

Gary Chang

Calculus Educator

5+ Years of Calculus Teaching Experience | AP Calculus Specialist. Dedicated to helping students master calculus through step-by-step logic and clear visualizations.