Implicit and Logarithmic Differentiation

LESSON 6 OF 12See the unit map ↗

Differentiate relations and variable powers without incorrectly treating dependent variables as constants.

Builds on Exponential, Logarithmic and Trigonometric Derivatives

The bigger question: How can we measure change at a single instant?

On this page

A curve need not arrive as y equals a formula

An equation F(x,y)=0F(x,y)=0 can describe a curve without explicitly solving for yy. Along a differentiable branch y(x)y(x), every occurrence of yy depends on xx. Applying the chain rule to y2y^2 therefore gives 2yy′2yy', not 2y2y.

Differentiate both sides, collect all terms containing y′y', and solve where their coefficient is nonzero. The resulting formula can fail at a point even when the curve is geometrically well behaved; the curve may have a vertical tangent or may not define one function near that point.

Visual guide

VISUAL GUIDEDifferentiate along a level curve
On x² + y² = 1, implicit differentiation gives y′ = −x/y when y ≠ 0. At (√½, √½), the tangent slope is −1. At y = 0 the graph has a vertical tangent, so this formula cannot give a finite slope.-1.5-1.5-0.75-0.75000.750.751.51.5xy
  • Unit circle
  • Tangent at the marked point
On x² + y² = 1, implicit differentiation gives y′ = −x/y when y ≠ 0. At (√½, √½), the tangent slope is −1. At y = 0 the graph has a vertical tangent, so this formula cannot give a finite slope.

Worked example: a circle

For x2+y2=25x^2+y^2=25, differentiation gives 2x+2yy′=02x+2yy'=0. If y≠0y\ne0,

y′=−x/y.y'=-x/y.

At (3,4)(3,4) the tangent slope is −3/4-3/4, so the line is y−4=−(3/4)(x−3)y-4=-(3/4)(x-3). At (5,0)(5,0) this formula cannot supply a finite slope. The circle has a vertical tangent there, and solving for xx as a function of yy is more suitable locally.

For a product such as xyxy, both factors contribute: its derivative is y+xy′y+xy'. Skipping the product rule is a common source of an incorrect implicit derivative.

PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

On x²+y²=25 where y≠0, what is dy/dx?

Hint 1 · Find a starting point

y depends on x during differentiation.

Hint 2 · Take the next step

Differentiate to get 2x+2y y′=0.

Show the reasoning

Answer: −x/y

Solving gives y′=−x/y; division requires y≠0.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

Worked example: a variable exponent

For y=xxy=x^x with x>0x>0, neither the ordinary power rule nor the constant-base exponential rule applies directly: both base and exponent vary. Taking logarithms gives ln⁡y=xln⁡x\ln y=x\ln x. Differentiate:

y′/y=ln⁡x+1,y'/y=\ln x+1, y′=xx(ln⁡x+1).y'=x^x(\ln x+1).

The positive-domain restriction made the logarithms legitimate. For products and quotients of nonzero factors on an interval, using logarithms of absolute values can turn products into sums while retaining derivative identity (ln⁡∣u∣)′=u′/u(\ln|u|)'=u'/u.

Inverse functions as implicit relations

If y=f−1(x)y=f^{-1}(x), then f(y)=xf(y)=x. Differentiating gives f′(y)y′=1f'(y)y'=1, hence (f−1)′(x)=1/f′(f−1(x))(f^{-1})'(x)=1/f'(f^{-1}(x)) where the denominator is nonzero and the inverse branch is differentiable. For y=arcsin⁡xy=\arcsin x, sin⁡y=x\sin y=x with y∈[−π/2,π/2]y\in[-\pi/2,\pi/2]. On −1<x<1-1<x<1, y′=1/1−x2y'=1/\sqrt{1-x^2} because cosine is positive on the interior of that branch.

Practice

  1. Find y′y' for xy+y2=6xy+y^2=6 where x+2y≠0x+2y\ne0.
  2. Differentiate x2xx^{2x} for x>0x>0.
  3. Why does the inverse derivative formula fail for f(x)=x3f(x)=x^3 at zero?
Show worked solutions
  1. y+xy′+2yy′=0y+xy'+2yy'=0, so y′=−y/(x+2y)y'=-y/(x+2y).
  2. ln⁡y=2xln⁡x\ln y=2x\ln x gives y′=x2x(2ln⁡x+2)y'=x^{2x}(2\ln x+2).
  3. f′(0)=0f'(0)=0, so the reciprocal formula has a zero denominator. The inverse cube-root function has no finite derivative at zero.
MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →