Calculus › Section C · Derivatives › Topic C.5
Implicit differentiation
Many curves refuse to be written as y in terms of x: circles, ellipses, the orbits of physics. Implicit differentiation finds their slopes anyway, without ever solving for y.
Curves that are not functions
So far every derivative has started from an explicit formula, \(y\) equals something in \(x\). But the circle \(x^2 + y^2 = 25\) fails the vertical line test: one \(x\) meets two heights, so no single function describes it, and solving for \(y\) forces you into two awkward halves, \(\pm\sqrt{25 - x^2}\). Science is full of such relations: gas laws tie pressure and volume, orbits tie coordinates, conservation of energy ties speed and height. These are implicit equations, \(x\) and \(y\) tangled together. The good news is that we do not need to untangle them. There is a way to extract the slope \(\frac{dy}{dx}\) directly from the tangled form.
The key move: y is a function of x
Here is the whole idea. Assume the curve near some point really is the graph of a function \(y(x)\) (we just do not know its formula), and differentiate both sides of the equation with respect to \(x\). Terms in pure \(x\) behave as usual. Terms involving \(y\) trigger the chain rule, because \(y\) itself depends on \(x\):
The first is the general power rule with the inner derivative \(\frac{dy}{dx}\); the second is the product rule, because both factors vary. Every \(y\)-term picks up exactly one factor of \(\frac{dy}{dx}\). Then you are left with an equation mixing \(x\), \(y\) and \(\frac{dy}{dx}\), which you simply solve.
Worked example: an ellipse
Find \(\frac{dy}{dx}\) for the ellipse \(4x^2 + 9y^2 = 36\). Differentiate both sides: \(8x + 18y\frac{dy}{dx} = 0\), where the second term is the chain rule on \(9y^2\). No collection is even needed here: \(\frac{dy}{dx} = -\frac{8x}{18y} = -\frac{4x}{9y}\). The answer lives in both variables, which is correct, because the slope depends on which point of the ellipse you stand on. At the top, \((0, 2)\): \(\frac{dy}{dx} = 0\), the tangent is level, exactly as the picture of an ellipse suggests. At \((0, -2)\), the same. Both checks pass the eyeball test.
The four-step routine
Implicit problems all flow the same way. First, differentiate every term of both sides with respect to \(x\), attaching \(\frac{dy}{dx}\) to every \(y\)-term. Second, move all the terms containing \(\frac{dy}{dx}\) to one side and the rest to the other. Third, factor out \(\frac{dy}{dx}\). Fourth, divide to solve for it. The result is a formula for the slope in terms of \(x\) and \(y\) together. One caution before you use it: the point you substitute must actually lie on the curve, so verify it in the original equation first. An answer like \(-\frac{x}{y}\) is meaningless at a point the curve never visits.
Worked example: a curve with a product term
Find the slope of \(x^2 y + y^2 = 6\) at the point \((1, 2)\). First confirm the point lies on the curve: \(1 \cdot 2 + 4 = 6\). Yes. Differentiate term by term: the product \(x^2 y\) needs the product rule plus the chain factor, giving \(2xy + x^2 \frac{dy}{dx}\); the \(y^2\) gives \(2y\frac{dy}{dx}\); the constant vanishes. So \(2xy + \left(x^2 + 2y\right)\frac{dy}{dx} = 0\), and
At \((1, 2)\): \(-\frac{2 \cdot 1 \cdot 2}{1 + 4} = -\frac{4}{5}\). The tangent falls gently through that point. Slope found, and the curve was never solved for \(y\).
Worked example: a tangent line
Give the tangent line to \(x^2 y + y^2 = 6\) at \((1, 2)\), continuing the previous example. We have the point and the slope \(-\frac{4}{5}\), so point-slope form does the rest: \(y - 2 = -\frac{4}{5}(x - 1)\), which tidies to \(y = -\frac{4}{5}x + \frac{14}{5}\). Check it: at \(x = 1\) the line gives \(y = -\frac{4}{5} + \frac{14}{5} = 2\), so it passes through the point of tangency. Notice that we needed a specific point to get a number. An implicit slope formula in two variables is a slope machine that needs a point to run, so if you ever catch yourself writing 'the slope of the curve' without naming a point, go back.
Level and vertical tangents from the formula
Because the implicit answer is a fraction in \(x\) and \(y\), its numerator and denominator tell you where the curve levels off and where it stands upright. A horizontal tangent needs the numerator zero with the denominator alive: on the ellipse above, the numerator \(-4x\) vanishes at \(x = 0\), giving the flat top and bottom. A vertical tangent needs the denominator zero with the numerator alive: on the circle \(x^2 + y^2 = 25\), where \(\frac{dy}{dx} = -\frac{x}{y}\), the denominator vanishes at \(y = 0\), the points \((\pm 5, 0)\), exactly where the circle stands vertical. Always confirm the point lies on the curve before claiming either.
Second derivatives, implicitly
If you need how the implicit curve bends, differentiate the differentiated equation again. Start from the ellipse's differentiated form, \(8x + 18y\,y' = 0\), and differentiate once more: \(8 + 18\left(y'\right)^2 + 18y\,y'' = 0\), where the product rule on \(18y\,y'\) produced both the squared derivative and the second derivative. Solve for \(y''\) and substitute the known formula for \(y'\) to finish. The algebra gets heavy, but the pattern never changes: differentiate, collect, solve, substitute. Most problems need only the first derivative, but the second pass is worth seeing once: it is nothing but a repetition of the same move.
Where this shows up
Implicit relations are the native language of constraints. Boyle's law pins the pressure and volume of a gas at constant temperature together by \(PV = k\); differentiate with respect to time and the product rule immediately relates how fast the pressure rises to how fast the volume shrinks, which is the gateway to the next topic, related rates. In economics, indifference curves tie two goods together, and the size of the slope found implicitly is the marginal rate of substitution, the rate at which a consumer will swap one for the other. Whenever two or more quantities are locked in an equation rather than one being 'the answer', implicit differentiation is the tool that reads the slope of that lock.
Common mistakes to avoid
The classic slips: forgetting the \(\frac{dy}{dx}\) factor on \(y\)-terms, for instance writing \(\frac{d}{dx} y^3 = 3y^2\) instead of \(3y^2 \frac{dy}{dx}\); treating \(xy\) as if only \(x\) varied, instead of using the product rule; solving for \(\frac{dy}{dx}\) without first collecting every \(\frac{dy}{dx}\) term on one side; evaluating the slope formula at a point that is not on the curve; and believing the slope formula should contain \(x\) alone, when two-variable answers are the norm for curves that are not functions. Finally, remember that a constant on the right-hand side, like the 25 in \(x^2 + y^2 = 25\), differentiates to \(0\), not to itself.
Key takeaways
For \(x\) and \(y\) tangled in one equation, assume \(y\) is a function of \(x\) and differentiate both sides with respect to \(x\). Every \(y\)-term picks up a \(\frac{dy}{dx}\) factor from the chain rule, and products like \(xy\) need the product rule. Collect the \(\frac{dy}{dx}\) terms, factor and solve; the answer will usually involve both variables, so evaluate it only at points that actually lie on the curve. Numerator zero with denominator nonzero means a level tangent; denominator zero with numerator nonzero means a vertical one. Differentiating twice gives the second derivative, which shows how the curve bends. This machinery opens the door to related rates, where everything varies with time at once.
Flashcards
Flashcard
One equation mixing x and y, unsolved
Test your understanding
Question 1 of 5
When differentiating implicitly with respect to x, what is the derivative of y³?
Question 2 of 5
What is the slope of the ellipse 4x² + 9y² = 36 at the point (0, 2)?
Question 3 of 5
What is the slope of the curve x²y + y² = 6 at (1, 2)?
Question 4 of 5
Implicit differentiation of xy = 4 gives dy/dx = ?
Question 5 of 5
For an implicitly defined curve, when is the tangent line vertical?
Standards: 3
