Derivatives · Class 12 · Lesson 11

Implicit differentiation: when y won't stand alone.

Short answer

To differentiate an equation like \(x^2 + y^2 = 25\), differentiate both sides with respect to \(x\), treating \(y\) as a function of \(x\). Every \(y\) term picks up a factor \(\dfrac{dy}{dx}\):

\[2x + 2y\frac{dy}{dx} = 0 \quad\Rightarrow\quad \frac{dy}{dx} = -\frac{x}{y}\]

Class 12HSC & CBSEEngineering
01

Explicit and implicit functions

\(y = x^3 + 2x\) is explicit: \(y\) is written on its own, and you can differentiate the right-hand side directly. \(x^2 + y^2 = 25\) is implicit: \(x\) and \(y\) are tangled together.

Sometimes you could untangle it. Here \(y = \pm\sqrt{25 - x^2}\), but that splits the circle into two pieces with a square root in each. For an equation like \(x^3 + y^3 = 6xy\), solving for \(y\) gets far too messy. Implicit differentiation lets you find \(\dfrac{dy}{dx}\) without ever solving for \(y\).

A circle of radius 5 with the tangent line at the point (3, 4) x y (3, 4) slope −3/4 x² + y² = 25
The circle \(x^2 + y^2 = 25\) is not the graph of a single function \(y = f(x)\), but it still has a tangent at each point. Implicit differentiation gives \(\dfrac{dy}{dx} = -\dfrac{x}{y}\), so at \((3, 4)\) the slope is \(-\tfrac{3}{4}\). The tangent is perpendicular to the dashed radius, whose slope is \(\tfrac{4}{3}\).
02

The method

  1. Differentiate both sides with respect to \(x\). Treat \(y\) as some function of \(x\) that you don't know.
  2. Use the chain rule on every \(y\) term. Differentiate it as if \(y\) were \(x\), then multiply by \(\dfrac{dy}{dx}\).
  3. Collect the \(\dfrac{dy}{dx}\) terms on one side and everything else on the other.
  4. Factor out \(\dfrac{dy}{dx}\) and divide.
TermDerivative with respect to \(x\)
\(y^2\)\(2y\dfrac{dy}{dx}\)
\(y^n\)\(ny^{n-1}\dfrac{dy}{dx}\)
\(xy\)\(x\dfrac{dy}{dx} + y\) (product rule)
\(\sin y\)\(\cos y\dfrac{dy}{dx}\)
\(e^y\)\(e^y\dfrac{dy}{dx}\)
\(\log y\)\(\dfrac{1}{y}\dfrac{dy}{dx}\)

Your answer will usually contain both \(x\) and \(y\). That is normal. To find the slope at a point, substitute both coordinates.

03

Solved examples

Example 1: A circle

Easy

Find \(\dfrac{dy}{dx}\) for \(x^2 + y^2 = 25\), and the slope of the tangent at \((3, 4)\).

  1. Differentiate: \(2x + 2y\dfrac{dy}{dx} = 0\).
  2. So \(\dfrac{dy}{dx} = -\dfrac{x}{y}\). At \((3, 4)\): \(-\dfrac{3}{4}\).

Answer\(\dfrac{dy}{dx} = -\dfrac{x}{y}\); slope at \((3, 4)\) is \(-\dfrac{3}{4}\)

Example 2: A rectangular hyperbola

Easy

Find \(\dfrac{dy}{dx}\) if \(xy = c^2\).

  1. Product rule on the left: \(x\dfrac{dy}{dx} + y = 0\). The right side is a constant, so its derivative is 0.

Answer\(\dfrac{dy}{dx} = -\dfrac{y}{x}\)

Example 3: Slope at a point

Easy

Find the slope of \(x^2 + xy + y^2 = 7\) at \((1, 2)\).

  1. The point lies on the curve: \(1 + 2 + 4 = 7\). ✓
  2. Differentiate: \(2x + \left(x\dfrac{dy}{dx} + y\right) + 2y\dfrac{dy}{dx} = 0\).
  3. Collect: \((x + 2y)\dfrac{dy}{dx} = -(2x + y)\), so \(\dfrac{dy}{dx} = -\dfrac{2x + y}{x + 2y}\). At \((1, 2)\): \(-\dfrac{4}{5}\).

AnswerSlope \(= -\dfrac{4}{5}\)

Example 4: The folium

Medium

Find \(\dfrac{dy}{dx}\) if \(x^3 + y^3 = 3axy\).

  1. Differentiate: \(3x^2 + 3y^2\dfrac{dy}{dx} = 3a\left(x\dfrac{dy}{dx} + y\right)\).
  2. Divide by 3 and collect: \((y^2 - ax)\dfrac{dy}{dx} = ay - x^2\).

Answer\(\dfrac{dy}{dx} = \dfrac{ay - x^2}{y^2 - ax}\)

Example 5: Exponentials

Medium

If \(e^x + e^y = e^{x + y}\), show that \(\dfrac{dy}{dx} = -e^{y - x}\).

  1. Differentiate: \(e^x + e^y\dfrac{dy}{dx} = e^{x + y}\left(1 + \dfrac{dy}{dx}\right)\).
  2. Collect: \(\left(e^y - e^{x + y}\right)\dfrac{dy}{dx} = e^{x + y} - e^x\).
  3. Use the original equation, \(e^{x + y} = e^x + e^y\): the right side becomes \(e^y\) and the bracket becomes \(-e^x\).
  4. So \(\dfrac{dy}{dx} = \dfrac{e^y}{-e^x}\).

Answer\(\dfrac{dy}{dx} = -e^{y - x}\)

Example 6: An infinite square root

Medium

If \(y = \sqrt{x + \sqrt{x + \sqrt{x + \cdots}}}\), show that \(\dfrac{dy}{dx} = \dfrac{1}{2y - 1}\).

  1. The expression under the first root contains the whole of \(y\) again, so \(y = \sqrt{x + y}\), that is \(y^2 = x + y\).
  2. Differentiate: \(2y\dfrac{dy}{dx} = 1 + \dfrac{dy}{dx}\).
  3. Collect: \((2y - 1)\dfrac{dy}{dx} = 1\).

Answer\(\dfrac{dy}{dx} = \dfrac{1}{2y - 1}\)

Example 7: A board favourite

Exam level

If \(\sin y = x\sin(a + y)\), show that \(\dfrac{dy}{dx} = \dfrac{\sin^2(a + y)}{\sin a}\).

  1. Make \(x\) the subject: \(x = \dfrac{\sin y}{\sin(a + y)}\). Now differentiate \(x\) with respect to \(y\).
  2. Quotient rule: \(\dfrac{dx}{dy} = \dfrac{\cos y\sin(a + y) - \sin y\cos(a + y)}{\sin^2(a + y)} = \dfrac{\sin\big((a + y) - y\big)}{\sin^2(a + y)} = \dfrac{\sin a}{\sin^2(a + y)}\).
  3. Flip it: \(\dfrac{dy}{dx} = \dfrac{1}{dx/dy}\).

Answer\(\dfrac{dy}{dx} = \dfrac{\sin^2(a + y)}{\sin a}\)

Example 8: A second derivative

Exam level

If \(x^2 + y^2 = a^2\), show that \(\dfrac{d^2y}{dx^2} = -\dfrac{a^2}{y^3}\).

  1. From Example 1, \(\dfrac{dy}{dx} = -\dfrac{x}{y}\).
  2. Differentiate again with the quotient rule: \(\dfrac{d^2y}{dx^2} = -\dfrac{y - x\frac{dy}{dx}}{y^2} = -\dfrac{y + \frac{x^2}{y}}{y^2} = -\dfrac{x^2 + y^2}{y^3}\).
  3. Replace \(x^2 + y^2\) with \(a^2\).

Answer\(\dfrac{d^2y}{dx^2} = -\dfrac{a^2}{y^3}\)

Vipul Sir's tip

Example 7 shows a trick that saves a lot of algebra. If you can make \(x\) the subject easily, find \(\dfrac{dx}{dy}\) instead and flip it. It works whenever \(\dfrac{dx}{dy} \ne 0\).

04

Common mistakes

1. Differentiating \(y^2\) as \(2y\)

\(\dfrac{d}{dx}y^2 = 2y\dfrac{dy}{dx}\). Without the \(\dfrac{dy}{dx}\) you have differentiated with respect to \(y\), not \(x\), and the rest of the working falls apart.

2. Forgetting the product rule on \(xy\)

\(\dfrac{d}{dx}(xy) = x\dfrac{dy}{dx} + y\), not \(\dfrac{dy}{dx}\). Any term with both \(x\) and \(y\) multiplied needs the product rule.

3. Differentiating a constant into something

\(\dfrac{d}{dx}(25) = 0\) and \(\dfrac{d}{dx}(c^2) = 0\). Constants on the right-hand side vanish.

05

Practice questions

Try each one on paper before you open the answer.

Q1Find \(\dfrac{dy}{dx}\) if \(x^2 - y^2 = 16\).

\(2x - 2y\dfrac{dy}{dx} = 0\), so \(\dfrac{dy}{dx} = \dfrac{x}{y}\).

Q2Find \(\dfrac{dy}{dx}\) for the parabola \(y^2 = 4ax\).

\(2y\dfrac{dy}{dx} = 4a\), so \(\dfrac{dy}{dx} = \dfrac{2a}{y}\).

Q3Find \(\dfrac{dy}{dx}\) if \(xy + y^2 = 2\).

\(x\dfrac{dy}{dx} + y + 2y\dfrac{dy}{dx} = 0\), so \(\dfrac{dy}{dx} = -\dfrac{y}{x + 2y}\).

Q4Find \(\dfrac{dy}{dx}\) if \(x^{2/3} + y^{2/3} = a^{2/3}\).

\(\tfrac{2}{3}x^{-1/3} + \tfrac{2}{3}y^{-1/3}\dfrac{dy}{dx} = 0\), so \(\dfrac{dy}{dx} = -\left(\dfrac{y}{x}\right)^{1/3}\).

Q5Find \(\dfrac{dy}{dx}\) if \(y = \sin(x + y)\).

\(\dfrac{dy}{dx} = \cos(x + y)\left(1 + \dfrac{dy}{dx}\right)\), so \(\dfrac{dy}{dx} = \dfrac{\cos(x + y)}{1 - \cos(x + y)}\).

Q6Find \(\dfrac{dy}{dx}\) if \(e^{xy} = x + y\).

\(e^{xy}\left(y + x\dfrac{dy}{dx}\right) = 1 + \dfrac{dy}{dx}\), so \(\dfrac{dy}{dx} = \dfrac{1 - y\,e^{xy}}{x\,e^{xy} - 1}\).

Stuck on a question?

Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.

06

Frequently asked questions

What is implicit differentiation?

A way of finding \(\dfrac{dy}{dx}\) when \(x\) and \(y\) are mixed together in one equation. You differentiate both sides with respect to \(x\), treat \(y\) as a function of \(x\), and solve for \(\dfrac{dy}{dx}\).

Why does every y term get a dy/dx?

Because \(y\) depends on \(x\). Differentiating \(y^2\) with respect to \(x\) is a chain rule step: \(\dfrac{d}{dy}(y^2)\cdot\dfrac{dy}{dx} = 2y\dfrac{dy}{dx}\).

Can I solve for y first instead?

If it is easy and gives a single formula, yes. For a circle you get two square-root formulas, and for most exam curves you can't solve for \(y\) at all. Implicit differentiation works either way.

Why does the answer contain y?

Because the slope depends on which point of the curve you are at, and for an implicit curve a point needs both coordinates. Substitute the point's \(x\) and \(y\) to get a number.

Related lessons

← All derivatives lessons
Vipul Sir
Written by Vipul Sir

Vipul Sir has taught mathematics for over 15 years to HSC, CBSE, ICSE, IGCSE/IB, Diploma, Engineering and BSc students at VVS Classes in Goregaon and Vile Parle, Mumbai. He teaches every class himself, concepts first and exam technique second.

Class 11 & 12 Maths

Differentiation gets easy once the basics click.

Concept-first classes in small batches in Goregaon and Vile Parle, or online, for HSC, CBSE and ICSE students. Your first class is free.

WhatsApp↗