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.
\(x^2+y^2=4\)Tangent
\(x\)\(y\)
\(x=\) \(y=\) \(\frac{dy}{dx}=\)
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
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
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: