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.
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\).
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\).
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,
Step 2: Isolate the derivative.
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:
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.
In \(y^2\), the inner function is \(y(x)\).
The derivative of the square function evaluated at \(y\) is \(2y\).
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}\).
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.
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,
Step 2: Rearrange to isolate \(\frac{dy}{dx}\). Subtract \(4\frac{dy}{dx}\) from both sides and subtract \(3\) from both sides:
When \(2y-4\ne 0\), divide by that coefficient:
Check: Substitute the result into the differentiated equation. The left side becomes
and the right side becomes
To confirm they are equal, subtract the right side from the left side and combine the terms containing the fraction:
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}\):
Step 2: Gather the terms containing \(\frac{dy}{dx}\) and isolate it.
Check: Insert the formula into the differentiated equation. Moving the right side to the left gives
Combine the two fractional terms and simplify:
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
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:
The correctly differentiated equation is therefore
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:
- Write the original relation clearly and identify both sides.
- Differentiate each side with respect to \(x\).
- For every term involving \(y\), apply the Chain Rule and include \(\frac{dy}{dx}\).
- Rearrange the differentiated equation to isolate \(\frac{dy}{dx}\).
- 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\).
- In differentiating \(x^3+y^3=10\), what is the derivative of the \(y^3\) term?
- Differentiate \(2x+y^2=7\) and solve for \(\frac{dy}{dx}\) when the resulting coefficient permits division.
- Differentiate \(x^2+3y=2x+ y^2\), then state the equation before solving for the derivative.
- Why must the derivative of \(y^2\) include \(\frac{dy}{dx}\)?
- What condition must hold before dividing by a coefficient of \(\frac{dy}{dx}\)?