Tutorials › AP Calculus › Implicit Derivatives of Polynomial Relations

Implicit Differentiation · Tutorial 185 of 999

Implicit Derivatives of Polynomial Relations

Differentiate polynomial relations one term at a time, keeping track of which factors depend on x and how to collect the dy/dx terms.

Intermediate 10 min read

What You'll Learn

  • Differentiate powers of x and powers of y when y depends on x.
  • Apply the chain rule to terms such as y cubed.
  • Differentiate mixed monomials such as xy and x squared y.
  • Collect the dy/dx terms and solve for the derivative when possible.
  • Check a proposed derivative by substitution into the differentiated relation.

Why Polynomial Relations Need Care

A polynomial relation can mix powers of \(x\) and \(y\), even when it does not express \(y\) explicitly as a function of \(x\). For example, the relation \(xy+y^3=10\) describes points on a curve. At a point on that curve where \(y\) varies differentiably with \(x\), we can find the slope by differentiating both sides with respect to \(x\).

The important detail is that \(y\) depends on \(x\). A term involving \(y\) therefore contributes a factor of \(\frac{dy}{dx}\) when differentiated. A mixed term, such as \(x^2y\), has both an \(x\)-factor and a \(y\)-factor to account for.

Key idea: Differentiate each polynomial term with respect to \(x\). Treat \(y\) as a function of \(x\), so differentiating a power of \(y\) requires the chain rule. Then collect the terms containing \(\frac{dy}{dx}\).

How to Differentiate the Terms

The power rule differentiates a power of \(x\) in the usual way. If \(y=y(x)\), the chain rule gives a different-looking result for a power of \(y\):

$$ \frac{d}{dx}(x^m)=mx^{m-1}, \qquad \frac{d}{dx}(y^n)=ny^{n-1}\frac{dy}{dx}. $$

For a mixed monomial, differentiate its factors while accounting for both their dependence on \(x\). For example, \(xy\) has one factor that is \(x\) and another factor that is \(y(x)\). Differentiating gives \(y+x\frac{dy}{dx}\). Similarly, \(x^2y\) gives \(2xy+x^2\frac{dy}{dx}\): the first term comes from differentiating \(x^2\), and the second from differentiating \(y\).

TermDerivative with respect to \(x\)
\(x^3\)\(3x^2\)
\(y^3\)\(3y^2\frac{dy}{dx}\)
\(xy\)\(y+x\frac{dy}{dx}\)
\(x^2y\)\(2xy+x^2\frac{dy}{dx}\)
\(xy^2\)\(y^2+2xy\frac{dy}{dx}\)

A useful way to keep the calculation organized is to write the derivative of each original term on its own line. In particular, do not omit a term just because it contains both \(x\) and \(y\). Each factor can contribute to the derivative.

Why the Mixed-Term Rule Works

The chain rule explains why a power of \(y\) contributes \(\frac{dy}{dx}\). The product rule explains how the \(x\)- and \(y\)-factors of a mixed monomial both contribute. For \(x^m y^n\), with \(y=y(x)\), apply the product rule to the two factors \(x^m\) and \(y^n\):

$$ \begin{aligned} \frac{d}{dx}(x^m y^n) &=\frac{d}{dx}(x^m)y^n+x^m\frac{d}{dx}(y^n)\\ &=mx^{m-1}y^n+x^m\left(ny^{n-1}\frac{dy}{dx}\right)\\ &=mx^{m-1}y^n+nx^my^{n-1}\frac{dy}{dx}. \end{aligned} $$

This derivation assumes \(m\) and \(n\) are nonnegative integers, as they are for polynomial terms, and that \(y\) is differentiable as a function of \(x\) along the curve being considered. It gives two contributions: one from differentiating the power of \(x\), and one from differentiating the power of \(y\). If either exponent is zero, its corresponding contribution is zero.

For an entire polynomial, apply this rule term by term and add the results. The original relation is constant, often zero, so its derivative is zero. The resulting equation can then be rearranged to isolate \(\frac{dy}{dx}\), provided its coefficient is nonzero.

A Reliable Procedure

1
Differentiate each term.
Use the power rule for powers of \(x\), the chain rule for powers of \(y\), and account for both factors in mixed monomials.
2
Differentiate both sides.
If the relation is written with all terms on one side equal to zero, the derivative of the right side is zero.
3
Collect derivative terms.
Group all terms containing \(\frac{dy}{dx}\) together, and keep the remaining terms separate.
4
Solve and check.
Isolate \(\frac{dy}{dx}\) if its coefficient is nonzero. Substitute the result into the differentiated equation to verify it.

Worked Examples

Worked Example: A Relation with \(xy\) and \(y^3\)

Find \(\frac{dy}{dx}\) for the relation \(xy+y^3=10\), and evaluate it at the point \((1,2)\).

First check that the point lies on the relation:

$$ (1)(2)+(2)^3=2+8=10. $$

Differentiate each term with respect to \(x\). The derivative of \(xy\) is \(y+x\frac{dy}{dx}\), and the derivative of \(y^3\) is \(3y^2\frac{dy}{dx}\):

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

Collect the terms containing \(\frac{dy}{dx}\), then solve:

$$ \begin{aligned} \left(x+3y^2\right)\frac{dy}{dx}&=-y,\\ \frac{dy}{dx}&=-\frac{y}{x+3y^2}, \end{aligned} $$

as long as \(x+3y^2\ne 0\). At \((1,2)\), the denominator is \(1+3(2)^2=1+12=13\), so

$$ \left.\frac{dy}{dx}\right|_{(1,2)} =-\frac{2}{13}. $$

Check by substituting \(x=1\), \(y=2\), and \(\frac{dy}{dx}=-\frac{2}{13}\) into the differentiated equation:

$$ 2+1\left(-\frac{2}{13}\right)+3(2)^2\left(-\frac{2}{13}\right) =2-\frac{2}{13}-\frac{24}{13} =2-\frac{26}{13} =0. $$

Worked Example: Powers of \(x\) and \(y\) in a Mixed Term

Find \(\frac{dy}{dx}\) for \(x^2y+y^3-x=9\), and evaluate it at \((1,2)\).

Check the point in the original equation:

$$ (1)^2(2)+(2)^3-1=2+8-1=9. $$

Differentiate each term. For \(x^2y\), differentiating \(x^2\) gives \(2xy\), while differentiating \(y\) gives \(x^2\frac{dy}{dx}\). The derivative of \(y^3\) is \(3y^2\frac{dy}{dx}\), and the derivative of \(-x\) is \(-1\):

$$ 2xy+x^2\frac{dy}{dx}+3y^2\frac{dy}{dx}-1=0. $$

Move the terms without \(\frac{dy}{dx}\) to the other side and factor:

$$ \begin{aligned} \left(x^2+3y^2\right)\frac{dy}{dx}&=1-2xy,\\ \frac{dy}{dx}&=\frac{1-2xy}{x^2+3y^2}, \end{aligned} $$

when \(x^2+3y^2\ne 0\). At \((1,2)\), the numerator is \(1-2(1)(2)=1-4=-3\), and the denominator is \((1)^2+3(2)^2=1+12=13\). Therefore,

$$ \left.\frac{dy}{dx}\right|_{(1,2)}=-\frac{3}{13}. $$

Check the differentiated equation at the point:

$$ 2(1)(2)+(1)^2\left(-\frac{3}{13}\right) +3(2)^2\left(-\frac{3}{13}\right)-1 =4-\frac{3}{13}-\frac{36}{13}-1 =3-\frac{39}{13} =0. $$

Worked Example: Several Mixed Terms

Find \(\frac{dy}{dx}\) for \(2x^3-3x^2y+4xy^2-y^3=2\), and evaluate it at \((1,1)\).

Check the point:

$$ 2(1)^3-3(1)^2(1)+4(1)(1)^2-(1)^3 =2-3+4-1=2. $$

Differentiate term by term:

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

Expand each grouped term, keeping its sign:

$$ 6x^2-6xy-3x^2\frac{dy}{dx} +4y^2+8xy\frac{dy}{dx} -3y^2\frac{dy}{dx}=0. $$

Collect the terms containing \(\frac{dy}{dx}\):

$$ \left(-3x^2+8xy-3y^2\right)\frac{dy}{dx} =-6x^2+6xy-4y^2. $$

At \((1,1)\), the coefficient of \(\frac{dy}{dx}\) is \(-3+8-3=2\), and the right side is \(-6+6-4=-4\). Thus

$$ \left.\frac{dy}{dx}\right|_{(1,1)}=\frac{-4}{2}=-2. $$

Check by substituting into the differentiated equation at \((1,1)\):

$$ 6-6-3(-2)+4+8(-2)-3(-2) =0+6+4-16+6 =0. $$

The result also satisfies the collected equation, since \(2(-2)=-4\).

A Common Sign and Dependence Mistake

A frequent error is to differentiate \(x^2y\) as though \(y\) were constant, or to attach \(\frac{dy}{dx}\) to both contributions. For instance, the incorrect calculation

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

misses the contribution from differentiating \(y\) after the \(x^2\) factor is left unchanged, and it also incorrectly places \(\frac{dy}{dx}\) on the contribution from differentiating \(x^2\). The product rule gives the correct result:

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

A useful check is to ask which factor was differentiated in each term. The term \(2xy\) comes from differentiating \(x^2\), so it has no \(\frac{dy}{dx}\). The term \(x^2\frac{dy}{dx}\) comes from differentiating \(y\), so it does.

When Solving for the Derivative Is Not Possible

After differentiation and collection, the equation may have the form

$$ A(x,y)\frac{dy}{dx}=B(x,y). $$

If \(A(x,y)\ne 0\) at the point under consideration, algebra gives \(\frac{dy}{dx}=\frac{B(x,y)}{A(x,y)}\). If \(A(x,y)=0\), this division is not valid. The differentiated equation may then fail to determine a finite value of \(\frac{dy}{dx}\); additional analysis is needed rather than dividing by zero.

This condition matters even when all the differentiation is correct. A derivative formula obtained by division is valid only at points where its denominator is nonzero, and the point must lie on the original relation.

Takeaway: For polynomial implicit relations, differentiate every monomial with \(y\) treated as a function of \(x\). Keep the contributions from the \(x\)- and \(y\)-factors distinct, collect the derivative terms carefully, and divide only when their coefficient is nonzero.

Check Your Understanding

For each question, show the derivative of every term before collecting terms containing \(\frac{dy}{dx}\).

  1. For \(xy+y^2=5\), find the implicit equation for \(\frac{dy}{dx}\).
  2. Differentiate \(x^3y-y^3=4\) with respect to \(x\).
  3. For \(x^2y+xy^2=6\), collect the terms containing \(\frac{dy}{dx}\).
  4. In differentiating \(-2xy^2\), what are the two contributions, including their signs?
  5. Why is it necessary to check that the coefficient of \(\frac{dy}{dx}\) is nonzero before dividing by it?

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