Math Lab
Home/Class XII/Ch 5/Implicit and inverse-function differentiation

Implicit and inverse-function differentiation

Not every function comes prepackaged as y=f(x)y = f(x). Many relations between xx and yy are implicit: x2+y2=1x^2 + y^2 = 1, xy+siny=xx y + \sin y = x, and so on. Implicit differentiation treats yy as a (possibly multi-valued) function of xx, applies ddx\dfrac{d}{dx} to both sides of the equation, and solves for dydx\dfrac{dy}{dx}.

A related technique uses the chain rule to find the derivative of an inverse function: if y=f1(x)y = f^{-1}(x), then dydx=1f(y)\dfrac{dy}{dx} = \dfrac{1}{f'(y)}.

Implicit differentiation: the procedure

Given F(x,y)=0F(x, y) = 0:

  1. Apply ddx\dfrac{d}{dx} to both sides, treating yy as an implicit function of xx.
  2. Use the chain rule for any function of yy: ddx(yn)=nyn1dydx\dfrac{d}{dx}(y^n) = n y^{n - 1} \dfrac{dy}{dx}, etc.
  3. Collect dydx\dfrac{dy}{dx} terms on one side; solve algebraically.

Worked example: a circle

x2+y2=25x^2 + y^2 = 25. Differentiate: 2x+2ydydx=02x + 2y \dfrac{dy}{dx} = 0, so dydx=xy\dfrac{dy}{dx} = -\dfrac{x}{y}.

At (3,4)(3, 4): dydx=3/4\dfrac{dy}{dx} = -3/4.

Another example

xy+siny=xx y + \sin y = x. Differentiate: y+xdydx+cosydydx=1y + x \dfrac{dy}{dx} + \cos y \cdot \dfrac{dy}{dx} = 1. Solve: dydx(x+cosy)=1y\dfrac{dy}{dx}(x + \cos y) = 1 - y, so dydx=1yx+cosy\dfrac{dy}{dx} = \dfrac{1 - y}{x + \cos y}.

Derivative of an inverse

If y=f1(x)y = f^{-1}(x), then x=f(y)x = f(y). Differentiate both sides with respect to xx: 1=f(y)dydx1 = f'(y) \dfrac{dy}{dx}, so

dydx=1f(y)=1f(f1(x)).\frac{dy}{dx} = \frac{1}{f'(y)} = \frac{1}{f'(f^{-1}(x))}.

This is the inverse function theorem: the derivative of the inverse is the reciprocal of the derivative of the original (evaluated at the right point).

Application: derivatives of inverse trig

For y=sin1xy = \sin^{-1} x: x=sinyx = \sin y, so dydx=1cosy=11sin2y=11x2\dfrac{dy}{dx} = \dfrac{1}{\cos y} = \dfrac{1}{\sqrt{1 - \sin^2 y}} = \dfrac{1}{\sqrt{1 - x^2}} (positive square root, since y[π/2,π/2]y \in [-\pi/2, \pi/2]).

For y=tan1xy = \tan^{-1} x: x=tanyx = \tan y, so dydx=1sec2y=11+tan2y=11+x2\dfrac{dy}{dx} = \dfrac{1}{\sec^2 y} = \dfrac{1}{1 + \tan^2 y} = \dfrac{1}{1 + x^2}.

For y=cos1xy = \cos^{-1} x: x=cosyx = \cos y with y[0,π]y \in [0, \pi], so siny0\sin y \ge 0 and dydx=1siny=11x2\dfrac{dy}{dx} = -\dfrac{1}{\sin y} = -\dfrac{1}{\sqrt{1 - x^2}}.

Worked examples

Example 1. Find dydx\dfrac{dy}{dx} from x3+y3=3axyx^3 + y^3 = 3 a x y (the folium of Descartes).

Differentiate: 3x2+3y2dydx=3a(y+xdydx)3x^2 + 3 y^2 \dfrac{dy}{dx} = 3a(y + x \dfrac{dy}{dx}). Rearrange: dydx(y2ax)=ayx2\dfrac{dy}{dx}(y^2 - a x) = a y - x^2, so dydx=ayx2y2ax\dfrac{dy}{dx} = \dfrac{a y - x^2}{y^2 - a x}.

Example 2. Find dydx\dfrac{dy}{dx} from ex+ey=ex+ye^x + e^y = e^{x + y}.

Differentiate: ex+eydydx=ex+y(1+dydx)e^x + e^y \dfrac{dy}{dx} = e^{x + y}(1 + \dfrac{dy}{dx}). Rearrange: dydx(eyex+y)=ex+yex\dfrac{dy}{dx}(e^y - e^{x + y}) = e^{x + y} - e^x, so dydx=ex+yexeyex+y=ex(ey1)ey(1ex)=ex(1ey)ey(1ex)\dfrac{dy}{dx} = \dfrac{e^{x + y} - e^x}{e^y - e^{x + y}} = \dfrac{e^x(e^y - 1)}{e^y(1 - e^x)} = -\dfrac{e^x(1 - e^y)}{e^y(1 - e^x)}.

Simplify: dydx=ex(ey1)ey(ex1)\dfrac{dy}{dx} = -\dfrac{e^x(e^y - 1)}{e^y(e^x - 1)} after cancellation.

Example 3. If y=cos1(cosx)y = \cos^{-1}(\cos x), find dydx\dfrac{dy}{dx} on (0,π)(0, \pi).

On this interval y=xy = x, so dydx=1\dfrac{dy}{dx} = 1.

Example 4. If y=tan1(1cosxsinx)y = \tan^{-1}\left(\dfrac{1 - \cos x}{\sin x}\right) for x(0,π)x \in (0, \pi), find dydx\dfrac{dy}{dx}.

Simplify the inside: 1cosxsinx=2sin2(x/2)2sin(x/2)cos(x/2)=tan(x/2)\dfrac{1 - \cos x}{\sin x} = \dfrac{2 \sin^2(x/2)}{2 \sin(x/2) \cos(x/2)} = \tan(x/2). So y=tan1(tan(x/2))=x/2y = \tan^{-1}(\tan(x/2)) = x/2 on the principal branch. Hence dydx=1/2\dfrac{dy}{dx} = 1/2.

Example 5. If x=acosθ,y=asinθx = a \cos\theta, y = a \sin\theta, find dydx\dfrac{dy}{dx}.

Method 1: parametric (next subtopic). Method 2: x2+y2=a2x^2 + y^2 = a^2, so dydx=x/y=cosθ/sinθ=cotθ\dfrac{dy}{dx} = -x/y = -\cos\theta/\sin\theta = -\cot\theta.

Example 6. If y=f1(x)y = f^{-1}(x) and f(y)=1/(1+y2)f'(y) = 1/(1 + y^2), find dydx\dfrac{dy}{dx} in terms of xx.

dydx=1/f(y)=1+y2\dfrac{dy}{dx} = 1/f'(y) = 1 + y^2. This is general. (Here f=tan1f = \tan^{-1}, so y=tanxy = \tan x and indeed dydx=sec2x=1+tan2x=1+y2\dfrac{dy}{dx} = \sec^2 x = 1 + \tan^2 x = 1 + y^2.)

Try it yourself

  1. Find dydx\dfrac{dy}{dx} from x2+y2=16x^2 + y^2 = 16 at (2,23)(2, 2\sqrt 3).
  2. Find dydx\dfrac{dy}{dx} from xy=4x y = 4.
  3. Find dydx\dfrac{dy}{dx} from sin(xy)=1\sin(xy) = 1 at any allowed point.
  4. Find dydx\dfrac{dy}{dx} from y=log(tan(x/2+π/4))y = \log(\tan(x/2 + \pi/4)).
  5. Find dydx\dfrac{dy}{dx} from y=tan1(sinx1+cosx)y = \tan^{-1}\left(\dfrac{\sin x}{1 + \cos x}\right).
  6. Derive the derivative of sec1\sec^{-1} using the inverse-function theorem.
  7. Find dydx\dfrac{dy}{dx} from xey+yex=1x e^y + y e^x = 1.
  8. Find dydx\dfrac{dy}{dx} from x3+y33xy=0x^3 + y^3 - 3xy = 0.
  9. Find dydx\dfrac{dy}{dx} from tan1(y/x)=logx2+y2\tan^{-1}(y/x) = \log\sqrt{x^2 + y^2}.
  10. Find dydx\dfrac{dy}{dx} from cos1(1x21+x2)=2tan1x\cos^{-1}\left(\dfrac{1 - x^2}{1 + x^2}\right) = 2\tan^{-1} x.
  11. If x1+y+y1+x=0x \sqrt{1 + y} + y \sqrt{1 + x} = 0, find dydx\dfrac{dy}{dx}.
  12. Find the slope of the tangent to y2=4xy^2 = 4x at the point (1,2)(1, 2).
  13. If 1x2+1y2=a(xy)\sqrt{1 - x^2} + \sqrt{1 - y^2} = a(x - y), find dydx\dfrac{dy}{dx} (Hint: use sin1\sin^{-1} trick).
  14. If y=x+x+x+y = \sqrt{x + \sqrt{x + \sqrt{x + \ldots}}}, find dydx\dfrac{dy}{dx}. (Square both sides first.)

Pitfalls / Tricks

  • Don't forget that derivatives of yy pick up a factor of dydx\dfrac{dy}{dx} , this is the chain rule applied implicitly.
  • Solve algebraically for dydx\dfrac{dy}{dx} before plugging in numerical points.
  • The inverse-function rule 1/f(y)1/f'(y) requires f(y)0f'(y) \neq 0.
  • For nested or trig-identity-laden expressions, look for a simplification before differentiating.

Next, logarithmic differentiation.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Implicit differentiation
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6