Search

Implicit differentiation

Differentiate a relation without first solving it for one variable.

The idea

An explicit equation gives the output directly, such as \(y=x^2\). An implicit equation gives a relation between the variables, such as \(x^2+y^2=4\).

A relation need not define one function on its whole curve. The circle has an upper branch and a lower branch, for example. Where we can follow a differentiable branch as \(y=y(x)\), we can differentiate its equation without first solving for that branch.

The factor \(y^{\prime}\) comes from the chain rule: the variable \(y\) changes as \(x\) changes. It is not an extra symbol attached arbitrarily.

Example 1

Slopes on a circle

For \(x^2+y^2=4\), differentiate the two sides:

\[2x+2yy^{\prime}=0.\]

Solving gives

\[y^{\prime}=-\frac{x}{y},\qquad y\ne0.\]

The slope depends on both coordinates. At \((1,\sqrt3)\) it is \(-1/\sqrt3\); at \((1,-\sqrt3)\) it is \(1/\sqrt3\). The same input can lie on two branches with different slopes.

Move a point around the circle and inspect its tangent Drag the point around the whole circle. The tangent can be horizontal, sloping, or vertical. The derivative with respect to x is undefined at the two vertical tangents. −222−2
\(x^2+y^2=4\)Tangent
\(x\)\(y\)
\(x=\) 1.41\(y=\) 1.41\(\frac{dy}{dx}=\) −1.00

Drag the point around the circle. Compare the two branches, and watch the tangent turn vertical when \(y=0\).

Using the derivative

Example 2

A tangent without solving a quadratic

Find the tangent to \(x^2+xy+y^2=7\) at \((1,2)\). First verify the point: \(1+2+4=7\). Differentiating gives

\[2x+y+xy^{\prime}+2yy^{\prime}=0.\]

Collect the derivative terms:

\[(x+2y)y^{\prime}=-(2x+y),\qquad y^{\prime}=-\frac{2x+y}{x+2y}.\]

At \((1,2)\), the denominator is nonzero and the slope is \(-4/5\). The tangent is

\[y-2=-\frac45(x-1).\]

Example 3

A trigonometric relation

For \(\sin(y)+xy=x\), differentiate each term:

\[\cos(y)\cdot y^{\prime}+y+xy^{\prime}=1.\]

Thus

\[(\cos(y)+x)y^{\prime}=1-y,\qquad y^{\prime}=\frac{1-y}{\cos(y)+x},\qquad \cos(y)+x\ne0.\]

At \((0,0)\), the relation holds and the slope is \(1\). Notice the two different rules: the chain rule supplies \(y^{\prime}\) in the sine term, while the product rule supplies both terms from \(xy\).

Differentiate again

Example 4

A second derivative along the curve

On the circle \(x^2+y^2=4\), we already found \(x+yy^{\prime}=0\). The factor \(y^{\prime}\) is itself a function of \(x\). Differentiating the product gives

\[1+(y^{\prime})^2+yy^{\prime\prime}=0.\]

For \(y\ne0\), substitute \(y^{\prime}=-x/y\):

\[y^{\prime\prime}=-\frac{1+x^2/y^2}{y}=-\frac{x^2+y^2}{y^3}=-\frac4{y^3}.\]

At \((0,2)\), \(y^{\prime}=0\) while \(y^{\prime\prime}=-1/2\): the tangent is horizontal, but its slope changes as we move along the upper branch. At the vertical tangents, these derivatives with respect to \(x\) are not finite.

Horizontal and vertical tangents

On the circle, \(y^{\prime}=-x/y\) is zero when \(x=0\) and \(y\ne0\). Hence the top and bottom points \((0,\pm2)\) have horizontal tangents.

At \((\pm2,0)\), the tangent is vertical, so there is no finite \(dy/dx\). One way to confirm this is to regard \(x\) as a function of \(y\) instead:

\[2x\frac{dx}{dy}+2y=0,\qquad \frac{dx}{dy}=-\frac{y}{x}=0\]

at these points. The tangent direction has no horizontal change there, so its line is \(x=2\) or \(x=-2\).

Quiz

Calculus for Engineers and Scientists

Find a post, puzzle, or idea.