Tutorials › AP Calculus › Differentiating Both Sides of an Implicit Equation

Implicit Differentiation · Tutorial 183 of 999

Differentiating Both Sides of an Implicit Equation

Practice differentiating each side of an implicit equation and solving the resulting equation for the derivative of \(y\) with respect to \(x\).

Intermediate 9 min read

What You'll Learn

  • Treat \(y\) as a function of \(x\) while differentiating an implicit relation.
  • Apply the Chain Rule to terms that contain \(y\).
  • Differentiate the left-hand and right-hand sides separately.
  • Rearrange the differentiated equation to solve for \(\frac{dy}{dx}\).
  • Check a proposed derivative by substituting it into the differentiated equation.

Why Differentiate Both Sides?

An equation involving \(x\) and \(y\) can describe a relationship without writing \(y\) explicitly as a formula in terms of \(x\). For example, \(x^2+y^2=25\) describes points on a circle. At a part of that curve where \(y\) varies differentiably with \(x\), we can still find the rate \(\frac{dy}{dx}\) without first solving the equation for \(y\).

The essential idea is to regard \(y\) as a function of \(x\) while differentiating. This means a term involving \(y\) is a composite function, so its derivative includes the Chain Rule factor \(\frac{dy}{dx}\). Then we differentiate each side of the equation and rearrange to isolate that factor.

Definition: Implicit differentiation is the process of differentiating an equation that relates \(x\) and \(y\), while treating \(y\) as a differentiable function of \(x\). The goal is often to solve the resulting equation for \(\frac{dy}{dx}\).

The Basic Procedure

Suppose an equation remains true as \(x\) varies along a curve and \(y=y(x)\) is differentiable on the portion under consideration. Differentiate the left side and the right side with respect to \(x\). The derivative of a term involving \(x\) uses the usual differentiation rules. The derivative of a term involving \(y\) also uses those rules, but the Chain Rule accounts for the dependence of \(y\) on \(x\).

For instance, the derivative of \(y^2\) is not just \(2y\). Since \(y\) depends on \(x\), the Chain Rule gives \(2y\frac{dy}{dx}\). Similarly, the derivative of \(y^3\) is \(3y^2\frac{dy}{dx}\). By contrast, the derivative of \(x^2\) with respect to \(x\) is simply \(2x\).

Rule: When differentiating an implicit equation with respect to \(x\), differentiate both sides. Apply the Chain Rule to every term involving \(y\), and include a factor of \(\frac{dy}{dx}\) for that dependence. Then rearrange the resulting equation to solve for \(\frac{dy}{dx}\), when possible.

Worked Example: Differentiating a Circle Equation

Worked Example: Differentiating a Circle Equation

Find \(\frac{dy}{dx}\) from \(x^2+y^2=25\), wherever the derivative can be solved from the differentiated equation.

Step 1: Differentiate both sides with respect to \(x\).

$$ \frac{d}{dx}(x^2+y^2)=\frac{d}{dx}(25) $$

The derivative of \(x^2\) is \(2x\). For \(y^2\), the Chain Rule gives \(2y\frac{dy}{dx}\). The derivative of the constant \(25\) is \(0\). Therefore,

$$ 2x+2y\frac{dy}{dx}=0. $$

Step 2: Isolate the derivative.

$$ 2y\frac{dy}{dx}=-2x $$
$$ \frac{dy}{dx}=-\frac{x}{y}, \qquad y\ne 0. $$

The division by \(y\) is valid only when \(y\ne 0\). The resulting formula describes the derivative on portions of the circle where this condition holds.

Check: Substitute \(\frac{dy}{dx}=-\frac{x}{y}\) into the differentiated equation:

$$ 2x+2y\left(-\frac{x}{y}\right) =2x-2x =0. $$

The differentiated equation is satisfied.

Why the Chain Rule Factor Appears

The factor \(\frac{dy}{dx}\) is not an extra convention added for implicit equations. It follows directly from the Chain Rule. If \(y=y(x)\), then \(y^2\) means the composite expression \((y(x))^2\). Differentiating this composite expression gives the derivative of the outer squaring function, multiplied by the derivative of the inner function.

1
Identify the inner function.
In \(y^2\), the inner function is \(y(x)\).
2
Differentiate the outer function.
The derivative of the square function evaluated at \(y\) is \(2y\).
3
Multiply by the inner derivative.
The derivative of \(y(x)\) with respect to \(x\) is \(\frac{dy}{dx}\), so \(\frac{d}{dx}(y^2)=2y\frac{dy}{dx}\).

This reasoning works for other differentiable functions of \(y\) as well. For example, the Chain Rule gives \(\frac{d}{dx}(y^3)=3y^2\frac{dy}{dx}\). In every case, the derivative of the inner quantity \(y\) with respect to \(x\) must be included.

A General Justification

The method can be justified by treating the equation as an equality of functions along a differentiable part of a curve. If the equation is \(L(x,y)=R(x,y)\), then after writing \(y=y(x)\), both sides are functions of \(x\). Since equal differentiable functions have equal derivatives, differentiating each side gives another equality. Every occurrence of \(y\) is a composite function of \(x\), so the Chain Rule supplies its factor of \(\frac{dy}{dx}\).

Theorem: If \(y=y(x)\) is differentiable on an interval and \(L(x,y(x))=R(x,y(x))\) throughout that interval, then the derivatives of the two sides with respect to \(x\) are equal throughout the interval. In applying the Chain Rule, derivatives of terms that depend on \(y\) include \(\frac{dy}{dx}\).

Proof. Define two functions of \(x\) by \(u(x)=L(x,y(x))\) and \(v(x)=R(x,y(x))\). The assumed relation says \(u(x)=v(x)\) throughout the interval. Differentiability then implies \(u'(x)=v'(x)\) at every point where these derivatives exist, because the difference \(u-v\) is the constant zero function and therefore has derivative zero. When calculating \(u'\) or \(v'\), any expression depending on \(y(x)\) is a composite function, so its derivative follows the Chain Rule. Thus differentiating the two sides of the original relation produces an equality that is valid along the curve. Rearranging that equality isolates \(\frac{dy}{dx}\) whenever its coefficient is nonzero. This proves the procedure.

Worked Example: Terms in \(y\) on Both Sides

Worked Example: Terms in \(y\) on Both Sides

Find \(\frac{dy}{dx}\) from \(3x+y^2=x^2+4y\), wherever the derivative can be solved from the differentiated equation.

Step 1: Differentiate the left side and the right side.

$$ \frac{d}{dx}(3x+y^2)=\frac{d}{dx}(x^2+4y) $$

The left side differentiates to \(3+2y\frac{dy}{dx}\). On the right, \(x^2\) differentiates to \(2x\), and \(4y\) differentiates to \(4\frac{dy}{dx}\). Thus,

$$ 3+2y\frac{dy}{dx}=2x+4\frac{dy}{dx}. $$

Step 2: Rearrange to isolate \(\frac{dy}{dx}\). Subtract \(4\frac{dy}{dx}\) from both sides and subtract \(3\) from both sides:

$$ (2y-4)\frac{dy}{dx}=2x-3. $$

When \(2y-4\ne 0\), divide by that coefficient:

$$ \frac{dy}{dx}=\frac{2x-3}{2y-4}. $$

Check: Substitute the result into the differentiated equation. The left side becomes

$$ 3+2y\left(\frac{2x-3}{2y-4}\right), $$

and the right side becomes

$$ 2x+4\left(\frac{2x-3}{2y-4}\right). $$

To confirm they are equal, subtract the right side from the left side and combine the terms containing the fraction:

$$ 3-2x+(2y-4)\left(\frac{2x-3}{2y-4}\right) =3-2x+2x-3 =0. $$

Therefore, the proposed derivative satisfies the differentiated equation wherever \(2y-4\ne 0\).

When Can You Solve for the Derivative?

After differentiating and rearranging, the equation often has a term multiplied by \(\frac{dy}{dx}\), along with terms that do not contain the derivative. If that coefficient is nonzero, division isolates \(\frac{dy}{dx}\). The condition matters: division by zero is not valid, so the resulting formula applies only where the coefficient is nonzero.

This procedure finds a derivative provided \(y\) is differentiable as a function of \(x\) on the portion being considered and the differentiated equation can be solved for \(\frac{dy}{dx}\). If the coefficient of \(\frac{dy}{dx}\) is zero, the algebra does not produce a formula by division at that point. Do not silently divide by that coefficient or assume the same formula applies there.

Worked Example: A Cubic Term in \(y\)

Worked Example: A Cubic Term in \(y\)

Find \(\frac{dy}{dx}\) from \(2x^2+y^3=5x+2y\), wherever the derivative can be solved from the differentiated equation.

Step 1: Differentiate both sides. The derivative of \(y^3\) includes the Chain Rule factor, while the derivative of \(2y\) is \(2\frac{dy}{dx}\):

$$ 4x+3y^2\frac{dy}{dx}=5+2\frac{dy}{dx}. $$

Step 2: Gather the terms containing \(\frac{dy}{dx}\) and isolate it.

$$ (3y^2-2)\frac{dy}{dx}=5-4x $$
$$ \frac{dy}{dx}=\frac{5-4x}{3y^2-2}, \qquad 3y^2-2\ne 0. $$

Check: Insert the formula into the differentiated equation. Moving the right side to the left gives

$$ 4x+3y^2\left(\frac{5-4x}{3y^2-2}\right) -5-2\left(\frac{5-4x}{3y^2-2}\right). $$

Combine the two fractional terms and simplify:

$$ 4x-5+(3y^2-2)\left(\frac{5-4x}{3y^2-2}\right) =4x-5+5-4x =0. $$

The derivative satisfies the differentiated equation wherever the denominator is nonzero.

Common Mistake: Forgetting That \(y\) Depends on \(x\)

A frequent error is to differentiate \(y^2\) as though \(y\) were an independent constant with respect to \(x\). That misses the fact that \(y\) changes as \(x\) changes.

Incorrect calculation: From \(x^2+y^2=25\), someone might write

$$ 2x+2y=0. $$

This is wrong because the derivative of \(y^2\) is not \(2y\) when \(y\) depends on \(x\). The missing inner derivative is \(\frac{dy}{dx}\).

Correction: Apply the Chain Rule to the \(y^2\) term:

$$ \frac{d}{dx}(y^2)=2y\frac{dy}{dx}. $$

The correctly differentiated equation is therefore

$$ 2x+2y\frac{dy}{dx}=0, $$

which can be solved for \(\frac{dy}{dx}\) when \(y\ne 0\).

A Reliable Routine

For a basic implicit differentiation problem, keep the following sequence in mind:

  1. Write the original relation clearly and identify both sides.
  2. Differentiate each side with respect to \(x\).
  3. For every term involving \(y\), apply the Chain Rule and include \(\frac{dy}{dx}\).
  4. Rearrange the differentiated equation to isolate \(\frac{dy}{dx}\).
  5. State any condition required for division, then check the result in the differentiated equation.

The key habit is to attach the Chain Rule factor at the moment you differentiate a \(y\)-term. Once that is done consistently, differentiating both sides turns an implicit relation into an equation that can often be solved for the derivative.

Check Your Understanding

For each question, differentiate with respect to \(x\), treating \(y\) as a differentiable function of \(x\).

  1. In differentiating \(x^3+y^3=10\), what is the derivative of the \(y^3\) term?
  2. Differentiate \(2x+y^2=7\) and solve for \(\frac{dy}{dx}\) when the resulting coefficient permits division.
  3. Differentiate \(x^2+3y=2x+ y^2\), then state the equation before solving for the derivative.
  4. Why must the derivative of \(y^2\) include \(\frac{dy}{dx}\)?
  5. What condition must hold before dividing by a coefficient of \(\frac{dy}{dx}\)?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon
Clinical Biostats