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\).
The method
- Differentiate both sides with respect to \(x\). Treat \(y\) as some function of \(x\) that you don't know.
- Use the chain rule on every \(y\) term. Differentiate it as if \(y\) were \(x\), then multiply by \(\dfrac{dy}{dx}\).
- Collect the \(\dfrac{dy}{dx}\) terms on one side and everything else on the other.
- Factor out \(\dfrac{dy}{dx}\) and divide.
| Term | Derivative 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.
Solved examples
Example 1: A circle
EasyFind \(\dfrac{dy}{dx}\) for \(x^2 + y^2 = 25\), and the slope of the tangent at \((3, 4)\).
- Differentiate: \(2x + 2y\dfrac{dy}{dx} = 0\).
- 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
EasyFind \(\dfrac{dy}{dx}\) if \(xy = c^2\).
- 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
EasyFind the slope of \(x^2 + xy + y^2 = 7\) at \((1, 2)\).
- The point lies on the curve: \(1 + 2 + 4 = 7\). ✓
- Differentiate: \(2x + \left(x\dfrac{dy}{dx} + y\right) + 2y\dfrac{dy}{dx} = 0\).
- 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
MediumFind \(\dfrac{dy}{dx}\) if \(x^3 + y^3 = 3axy\).
- Differentiate: \(3x^2 + 3y^2\dfrac{dy}{dx} = 3a\left(x\dfrac{dy}{dx} + y\right)\).
- 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
MediumIf \(e^x + e^y = e^{x + y}\), show that \(\dfrac{dy}{dx} = -e^{y - x}\).
- Differentiate: \(e^x + e^y\dfrac{dy}{dx} = e^{x + y}\left(1 + \dfrac{dy}{dx}\right)\).
- Collect: \(\left(e^y - e^{x + y}\right)\dfrac{dy}{dx} = e^{x + y} - e^x\).
- Use the original equation, \(e^{x + y} = e^x + e^y\): the right side becomes \(e^y\) and the bracket becomes \(-e^x\).
- So \(\dfrac{dy}{dx} = \dfrac{e^y}{-e^x}\).
Answer\(\dfrac{dy}{dx} = -e^{y - x}\)
Example 6: An infinite square root
MediumIf \(y = \sqrt{x + \sqrt{x + \sqrt{x + \cdots}}}\), show that \(\dfrac{dy}{dx} = \dfrac{1}{2y - 1}\).
- The expression under the first root contains the whole of \(y\) again, so \(y = \sqrt{x + y}\), that is \(y^2 = x + y\).
- Differentiate: \(2y\dfrac{dy}{dx} = 1 + \dfrac{dy}{dx}\).
- Collect: \((2y - 1)\dfrac{dy}{dx} = 1\).
Answer\(\dfrac{dy}{dx} = \dfrac{1}{2y - 1}\)
Example 7: A board favourite
Exam levelIf \(\sin y = x\sin(a + y)\), show that \(\dfrac{dy}{dx} = \dfrac{\sin^2(a + y)}{\sin a}\).
- Make \(x\) the subject: \(x = \dfrac{\sin y}{\sin(a + y)}\). Now differentiate \(x\) with respect to \(y\).
- 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)}\).
- 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 levelIf \(x^2 + y^2 = a^2\), show that \(\dfrac{d^2y}{dx^2} = -\dfrac{a^2}{y^3}\).
- From Example 1, \(\dfrac{dy}{dx} = -\dfrac{x}{y}\).
- 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}\).
- Replace \(x^2 + y^2\) with \(a^2\).
Answer\(\dfrac{d^2y}{dx^2} = -\dfrac{a^2}{y^3}\)
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\).
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.
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}\).
Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.
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.