3.12 Implicit Differentiation

Story (The Legacy of the Inverse Function Theorem).

One of the profound lessons the Inverse Function Theorem (Theorem 3.9.1) has taught us is that we can probe the local behavior of a function—such as finding its derivative—without ever knowing its explicit algebraic formula. The key to unlocking this geometric secret lies in the Chain Rule, a bridge connecting the local behavior of variables even when they are hopelessly entangled.

Let us consider a motivational example. Suppose we want to find the equation of a tangent line to the unit circle

x2+y2=1x^{2}+y^{2}=1

passing through a particular point (x0,y0)(x_{0},y_{0}) that lies on the circle.

Intuition (The Naive Approach).

Whenever you see an equality linking variables, the immediate instinct from early algebra is to isolate yy. Naturally, one may try to express yy entirely in terms of xx, calculate y′y^{\prime}, and then confidently apply the standard point-slope formula:

y−y0=y′⁢(x0)⁢(x−x0).y-y_{0}=y^{\prime}(x_{0})(x-x_{0}).

While computationally straightforward in theory, there are glaring issues with this brute-force approach:

  1. 1.
    ​

    Branching Realities: If one attempts to perfectly solve for yy, we are immediately forced to consider two separate branches:

    y2=1−x2⟹y2=1−x2⟹|y|=1−x2.y^{2}=1-x^{2}\implies\sqrt{y^{2}}=\sqrt{1-x^{2}}\implies\left\lvert y\right% \rvert=\sqrt{1-x^{2}}.

    This bifurcates our beautiful, unified geometric circle into two fragmented functions:

    y={1−x2if ⁢y≥0,−1−x2if ⁢y<0.y=\begin{cases}\hphantom{-}\sqrt{1-x^{2}}&\text{if }y\geq 0,\\ -\sqrt{1-x^{2}}&\text{if }y<0.\end{cases}

    Thus, formally, one needs to painstakingly manage multiple cases merely to cover a single continuous object.

  2. 2.
    ​

    Artificial Singularities: Even worse, consider the behavior at the specific point (x0,y0)=(1,0)(x_{0},y_{0})=(1,0). The formal derivative of y=1−x2y=\sqrt{1-x^{2}} involves a division by zero and thus algebraically does not exist. Yet, geometric intuition undeniably shows that the circle possesses a tangent line at this point—it is simply a vertical line. Our algebraic formulation has artificially manufactured a singularity!

3.12.1 Breaking Free from Explicit Formulas

A far more resilient way to deal with this situation is to return to the philosophical underpinning of the Inverse Function Theorem: we forgo the explicit formula of yy entirely. Instead, regarding y=y⁢(x)y=y(x) dynamically as a dependent variable, we treat xx as our independent variable. By directly applying the derivative operator dd⁢x\frac{\mathrm{d}}{\mathrm{d}x} to our equation, we obtain:

dd⁢x⁢(x2+(y⁢(x))2)=dd⁢x⁢(1).\frac{\mathrm{d}}{\mathrm{d}x}\Big{(}x^{2}+(y(x))^{2}\Big{)}=\frac{\mathrm{d}}% {\mathrm{d}x}(1).

Applying the chain rule gives

2⁢x+2⁢y⁢d⁢yd⁢x=0⟹d⁢yd⁢x=−xy,provided ⁢y≠0.2x+2y\frac{\mathrm{d}y}{\mathrm{d}x}=0\implies\frac{\mathrm{d}y}{\mathrm{d}x}=% -\frac{x}{y},\quad\text{provided }y\neq 0.

Thus, the point-slope formula immediately grants us the tangent line:

y−y0=d⁢yd⁢x|(x0,y0)⁢(x−x0)⟹y−y0=−x0y0⁢(x−x0),whenever ⁢y0≠0.y-y_{0}=\left.\frac{\mathrm{d}y}{\mathrm{d}x}\right|_{(x_{0},y_{0})}(x-x_{0})% \implies y-y_{0}=-\frac{x_{0}}{y_{0}}(x-x_{0}),\quad\text{whenever }y_{0}\neq 0.

Notice how we no longer need the isolated formulae for yy, nor do we need to manually separate the space into positive and negative branches.

However, one subtle issue remains unresolved: the special points (x0,y0)=(±1,0)(x_{0},y_{0})=(\pm 1,0). What exactly did we miss here?

Caveat (The Limits of Local Parameterization).

By treating xx as the independent variable, we implicitly assumed the curve could be parameterized locally as a function of xx. At the extreme left and right edges of the circle, this assumption breaks down vertically.

Note that by the inherent symmetry of xx and yy in the equation x2+y2=1x^{2}+y^{2}=1, we can equivalently regard yy as the independent variable and the other as the dependent variable. Thus, if we declare x=x⁢(y)x=x(y), we have

(x⁢(y))2+y2=1.(x(y))^{2}+y^{2}=1.

Differentiating strictly with respect to yy, we get

dd⁢y⁢((x⁢(y))2+y2)=dd⁢y⁢(1)⟹2⁢x⁢d⁢xd⁢y+2⁢y=0.\frac{\mathrm{d}}{\mathrm{d}y}\Big{(}(x(y))^{2}+y^{2}\Big{)}=\frac{\mathrm{d}}% {\mathrm{d}y}(1)\implies 2x\frac{\mathrm{d}x}{\mathrm{d}y}+2y=0.

This perfectly mirrors our earlier derivation:

d⁢xd⁢y=−yx,provided ⁢x≠0.\frac{\mathrm{d}x}{\mathrm{d}y}=-\frac{y}{x},\quad\text{provided }x\neq 0.

Using the point-slope formula with our axes conceptually reversed gives

x−x0=−y0x0⁢(y−y0),whenever ⁢x0≠0.x-x_{0}=-\frac{y_{0}}{x_{0}}(y-y_{0}),\quad\text{whenever }x_{0}\neq 0.

Lo and behold! If x0≠0x_{0}\neq 0 and y0≠0y_{0}\neq 0, we have suddenly derived two seemingly different formulae for the tangent line at (x0,y0)(x_{0},y_{0}). But since a tangent line to a circle is geometrically unique, these algebraic formulae must agree. Indeed, we observe a harmonious verification:

d⁢yd⁢x=−xy=1−yx=1d⁢xd⁢y,whenever ⁢x≠0⁢ and ⁢y≠0.\frac{\mathrm{d}y}{\mathrm{d}x}=-\frac{x}{y}=\frac{1}{-\frac{y}{x}}=\frac{1}{% \frac{\mathrm{d}x}{\mathrm{d}y}},\quad\text{whenever }x\neq 0\text{ and }y\neq 0.
Moral (Charts, Atlases, and the Road Ahead).

The fact that we fundamentally need four local functions (the branches y=±1−x2y=\pm\sqrt{1-x^{2}} and x=±1−y2x=\pm\sqrt{1-y^{2}}) to completely cover the geometry of the circle is no accident. This forms the precise starting point of defining charts and an atlas in modern Differential Geometry—a profound realization that global topological spaces cannot always be flattened perfectly onto a single coordinate grid. Later in Calculus II, we will bypass this restriction entirely using a so-called parametric form.

3.12.2 Self-Intersecting Curves: The Folium of Descartes

Implicit differentiation truly shines when dealing with intricate equations where isolating a variable is not merely inconvenient, but algebraically impenetrable. Let us explore an algebraic curve known for self-intersection.

Example 3.12.1.

Find d⁢yd⁢x\frac{\mathrm{d}y}{\mathrm{d}x} given the relation x3+y3=x⁢yx^{3}+y^{3}=xy, see Figure 3.10.

A TikZ diagram of the Folium of Descartes curve defined by x^3 + y^3 = xy. It features a loop in the first quadrant and asymptotic branches extending into the second and fourth quadrants. The diagram highlights key features of implicit differentiation: a horizontal tangent at (0.42, 0.53) where dy/dx = 0, a vertical tangent at (0.53, 0.42) where dy/dx is undefined, and a diagonal tangent at the point of symmetry (0.5, 0.5) where dy/dx = -1.
Figure 3.10: The Folium of Descartes x3+y3=x⁢yx^{3}+y^{3}=xy. The graph highlights points of interest for implicit differentiation, including the horizontal tangent (d⁢yd⁢x=0\frac{\mathrm{d}y}{\mathrm{d}x}=0), vertical tangent (d⁢yd⁢x=±∞\frac{\mathrm{d}y}{\mathrm{d}x}=\pm\infty), and the diagonal tangent at the point of symmetry (0.5,0.5)(0.5,0.5).
Solution.

We implicitly differentiate both sides with respect to xx, keeping a careful eye on the product rule for the right-hand side:

equation (3.33) (3.33)
3⁢x2+3⁢y2⁢d⁢yd⁢x=x⁢d⁢yd⁢x+y⟹d⁢yd⁢x=y−3⁢x23⁢y2−x.3x^{2}+3y^{2}\frac{\mathrm{d}y}{\mathrm{d}x}=x\frac{\mathrm{d}y}{\mathrm{d}x}+% y\implies\frac{\mathrm{d}y}{\mathrm{d}x}=\frac{y-3x^{2}}{3y^{2}-x}.

Notice that in this example, we obtain an expression for d⁢yd⁢x\frac{\mathrm{d}y}{\mathrm{d}x} that involves both xx and yy. This entanglement is entirely typical of solutions obtained via implicit differentiation. ∎

Example 3.12.2.

Let us uncover the exact points at which the curve x3+y3=x⁢yx^{3}+y^{3}=xy possesses a horizontal tangent line.

Solution.

From the computation in (3.33), we deduce that d⁢yd⁢x=0\frac{\mathrm{d}y}{\mathrm{d}x}=0 if and only if the numerator vanishes and the denominator does not. This means y=3⁢x2y=3x^{2} and 3⁢y2≠x3y^{2}\neq x.

If a point (a,b)(a,b) lies on the curve and satisfies b=3⁢a2b=3a^{2}, then we substitute this geometric constraint back into the original algebraic relation a3+b3=a⁢ba^{3}+b^{3}=ab:

a3+(3⁢a2)3−a⁢(3⁢a2)=0⟹a3+27⁢a6−3⁢a3=0⟹27⁢a6−2⁢a3=a3⁢(27⁢a3−2)=0.a^{3}+(3a^{2})^{3}-a(3a^{2})=0\implies a^{3}+27a^{6}-3a^{3}=0\implies 27a^{6}-% 2a^{3}=a^{3}(27a^{3}-2)=0.

Solving this yields either a=0a=0 or a=2/273=13⁢23a=\sqrt[3]{2/27}=\frac{1}{3}\sqrt[3]{2}.

In the first case, we have b=3⁢a2=0b=3a^{2}=0. In the second case, we calculate b=3⁢a2=3⋅19⋅22/3=13⁢22/3b=3a^{2}=3\cdot\frac{1}{9}\cdot 2^{2/3}=\frac{1}{3}2^{2/3}.

At the origin (a,b)=(0,0)(a,b)=(0,0), the denominator in the formula for d⁢yd⁢x\frac{\mathrm{d}y}{\mathrm{d}x} evaluates to zero, meaning our derivative formula is undefined. However, at the point (a,b)=(13⁢21/3,13⁢22/3)(a,b)=\left(\frac{1}{3}2^{1/3},\frac{1}{3}2^{2/3}\right), we evaluate the denominator to verify validity:

3⁢b2−a=3⁢(13⁢22/3)2−13⁢21/3=3⁢24/39−13⁢21/3=23⁢21/3−13⁢21/3=13⁢21/3≠0.3b^{2}-a=3\left(\frac{1}{3}2^{2/3}\right)^{2}-\frac{1}{3}2^{1/3}=3\frac{2^{4/3% }}{9}-\frac{1}{3}2^{1/3}=\frac{2}{3}2^{1/3}-\frac{1}{3}2^{1/3}=\frac{1}{3}2^{1% /3}\neq 0.

Since the denominator cleanly resolves to a non-zero value, at this exact point we genuinely have d⁢yd⁢x=0\frac{\mathrm{d}y}{\mathrm{d}x}=0, and thus the curve manifests a true horizontal tangent line. ∎

Remark 3.12.3 (The Singularity at the Origin).

The structural problem with the point (0,0)(0,0) in the previous example is rooted in the fact that the curve crosses over itself at the origin. Consequently, it does not have a uniquely defined tangent line there, exposing an inherent limitation in our algebraic framework when faced with geometric singularities.

Example 3.12.4.

We can find the corresponding points with a vertical tangent line by exploiting the symmetry of the curve and reversing the roles of xx and yy.

Solution.

Mimicking the logic of (3.33), we differentiate both sides of x3+y3=x⁢yx^{3}+y^{3}=xy with respect to yy and obtain:

3⁢x2⁢d⁢xd⁢y+3⁢y2=x+y⁢d⁢xd⁢y⟹d⁢xd⁢y=x−3⁢y23⁢x2−y.3x^{2}\frac{\mathrm{d}x}{\mathrm{d}y}+3y^{2}=x+y\frac{\mathrm{d}x}{\mathrm{d}y% }\implies\frac{\mathrm{d}x}{\mathrm{d}y}=\frac{x-3y^{2}}{3x^{2}-y}.

A symmetric computation completely analogous to the one in Example 3.12.2 reveals that there is a vertical tangent line exactly at the mirrored point (a,b)=(13⁢22/3,13⁢21/3)(a,b)=\left(\frac{1}{3}2^{2/3},\frac{1}{3}2^{1/3}\right). ∎

3.12.3 Iterating the Process: Higher Derivatives

Intuition (Bootstrapping Information).

Once we have gracefully extracted the first derivative using implicit differentiation, there is nothing mathematically stopping us from treating the derivative itself as a new implicit equation and differentiating it again! This allows us to map out the concavity and deeper structural curvature without ever leaving our implicit framework.

Example 3.12.5.

We can iterate this process to find higher derivatives. Let us return to the fundamental circle x2+y2=1x^{2}+y^{2}=1. Differentiating this gave 2⁢x+2⁢y⁢y′=02x+2yy^{\prime}=0, which we manipulated to get y′=−xyy^{\prime}=-\frac{x}{y}. We can differentiate this expression again to determine y′′y^{\prime\prime}.

Solution.

We apply the quotient rule with respect to xx:

y′′=dd⁢x⁢(−xy)=−y⋅dd⁢x⁢(x)−x⋅d⁢yd⁢xy2=−y⋅1−x⁢y′y2.y^{\prime\prime}=\frac{\mathrm{d}}{\mathrm{d}x}\left(-\frac{x}{y}\right)=-% \frac{y\cdot\frac{\mathrm{d}}{\mathrm{d}x}(x)-x\cdot\frac{\mathrm{d}y}{\mathrm% {d}x}}{y^{2}}=-\frac{y\cdot 1-xy^{\prime}}{y^{2}}.

We then substitute our known expression y′=−xyy^{\prime}=-\frac{x}{y} back into the equation to remove the y′y^{\prime} dependence:

y′′=−y−x⁢(−xy)y2=−1y−x2y3.y^{\prime\prime}=-\frac{y-x\left(-\frac{x}{y}\right)}{y^{2}}=-\frac{1}{y}-% \frac{x^{2}}{y^{3}}.

∎

Remark 3.12.6 (A Simplification).

Notice how beautifully the innate geometry reveals itself if we take an extra second to simplify further. By finding a common denominator, we obtain

y′′=−y2+x2y3.y^{\prime\prime}=-\frac{y^{2}+x^{2}}{y^{3}}.

Since our points strictly live on the unit circle, we instantly recognize the numerator as our foundational identity x2+y2=1x^{2}+y^{2}=1. Thus, we compactly arrive at y′′=−1y3y^{\prime\prime}=-\frac{1}{y^{3}}. The intrinsic geometry of the space elegantly collapses the algebra!

Exercise 3.12.7 (Challenge).

Suppose you are given a point (x0,y0)(x_{0},y_{0}) that lies strictly outside of the unit circle x2+y2=1x^{2}+y^{2}=1. Using implicit differentiation to find the equations of the lines that pass through (x0,y0)(x_{0},y_{0}) and are tangent to the circle.