Implicit Differentiation

[math] \newcommand{\ex}[1]{\item } \newcommand{\sx}{\item} \newcommand{\x}{\sx} \newcommand{\sxlab}[1]{} \newcommand{\xlab}{\sxlab} \newcommand{\prov}[1] {\quad #1} \newcommand{\provx}[1] {\quad \mbox{#1}} \newcommand{\intext}[1]{\quad \mbox{#1} \quad} \newcommand{\R}{\mathrm{\bf R}} \newcommand{\Q}{\mathrm{\bf Q}} \newcommand{\Z}{\mathrm{\bf Z}} \newcommand{\C}{\mathrm{\bf C}} \newcommand{\dt}{\textbf} \newcommand{\goesto}{\rightarrow} \newcommand{\ddxof}[1]{\frac{d #1}{d x}} \newcommand{\ddx}{\frac{d}{dx}} \newcommand{\ddt}{\frac{d}{dt}} \newcommand{\dydx}{\ddxof y} \newcommand{\nxder}[3]{\frac{d^{#1}{#2}}{d{#3}^{#1}}} \newcommand{\deriv}[2]{\frac{d^{#1}{#2}}{dx^{#1}}} \newcommand{\dist}{\mathrm{distance}} \newcommand{\arccot}{\mathrm{arccot\:}} \newcommand{\arccsc}{\mathrm{arccsc\:}} \newcommand{\arcsec}{\mathrm{arcsec\:}} \newcommand{\arctanh}{\mathrm{arctanh\:}} \newcommand{\arcsinh}{\mathrm{arcsinh\:}} \newcommand{\arccosh}{\mathrm{arccosh\:}} \newcommand{\sech}{\mathrm{sech\:}} \newcommand{\csch}{\mathrm{csch\:}} \newcommand{\conj}[1]{\overline{#1}} \newcommand{\mathds}{\mathbb} [/math]

The subset [math]C[/math] of the [math]xy[/math]-plane consisting of all ordered pairs [math](x, y)[/math] that satisfy the equation

[[math]] \begin{equation} \frac{x^2}{9} - \frac{y^2}{4} = 1 \label{eq1.9.1} \end{equation} [[/math]]

is the hyperbola shown in Figure. It is apparent from the figure that the whole set [math]C[/math] is not a function, since it is easy to find instances of ordered pairs [math](a, b)[/math] and [math](a, c)[/math] in [math]C[/math] with [math]b \neq C[/math]. For example, both [math](6, 2\sqrt3)[/math] and [math](6, - 2\sqrt3)[/math] lie on the curve. On the other hand, many subsets of [math]C[/math] are functions. For instance, the set of all ordered pairs [math](x, y)[/math] in [math]C[/math] for which [math]x \gt 3[/math] and [math]y \gt 0[/math], which is drawn with a heavy curve in Figure, is a function [math]f(x)[/math]. Central to the ideas that follow is the fact that since the points [math](x, f(x))[/math] that comprise [math]f[/math] belong to [math]C[/math], they satisfy the equation of the hyperbola. That is,

[[math]] \begin{equation} \frac{x^2}{9} - \frac{ (f(x))^2}{4} = 1, \label{eq1.9.2} \end{equation} [[/math]]


for every [math]x \gt 3[/math]. We say that the function [math]f[/math] is defined implicitly by (1). It is geometrically obvious that the hyperbola has a tangent line at every point, and we therefore conclude that the function [math]f(x)[/math] is differentiable except at [math]x = 3[/math], where the tangent is vertical. We can compute [math]f'(x)[/math] most easily by observing that since (2) holds for every [math]x[/math] in the domain of [math]f[/math], it is an [math]y[/math]-axis equality between two functions. Specifically, the composite function [math]\frac{x^2}{9} - \frac{(f(4))^2}{4}[/math] is equal to the constant function 1. Equal functions have equal derivatives. Hence

[[math]] \Bigl[\frac{x^2}{9} - \frac{(f(x))^2}{4} \Bigr]' = 1'. [[/math]]

The rules of differentiation yield

[[math]] \frac{2x}{9} -\frac{2}{4} f(x)f'(x) = 0 , [[/math]]

and solving for [math]f'(x)[/math], we obtain

[[math]] \begin{equation} f'(x) = \frac{4x}{9f(x)}. \label{eq1.9.3} \end{equation} [[/math]]

In particular, if [math]x = 6[/math], then [math]f(x) = 2\sqrt3[/math], and

[[math]] f'(6)= \frac{4 \cdot 6}{9 \cdot 2\sqrt3} = \frac{4}{3\sqrt3} . [[/math]]

It is important to realize that there is no single function [math]f[/math] defined implicitly by \ref{eq1.9.1}. The set of all points [math](x, y)[/math] of [math]C[/math] for which [math]y \lt 0[/math] is another such function, and it includes the point [math](6, - 2\sqrt3)[/math]. Note that if this were the function that we denoted by [math]f[/math], we would still obtain equations (2) and (3). For thief, however, we have [math]f(6) = - 2 \sqrt 3[/math]. Hence, this time,

[[math]] f'(6) = \frac{4 \cdot 6}{9(-2\sqrt3)} = - \frac{4}{3\sqrt3}. [[/math]]

Example

The set of all points [math](x, y)[/math] that satisfy the equation


[[math]] \begin{equation} 5x^2 - 6xy + 5y^2 = 8 \label{eq1.9.4} \end{equation} [[/math]]


can be shown to be the ellipse shown in Figure. What is the slope of the line tangent to the ellipse at [math](0, 2\sqrt{\frac{2}{5}})[/math]? It is clear from the figure that the set [math]y[/math]-axis of all pairs [math](x, y)[/math] on the ellipse for which [math]y \gt 0[/math] and [math]y \gt x[/math] (drawn with a heavy curve in the figure) is a differentiable function [math]f(x)[/math]. This function is implicitly defined by \ref{eq1.9.4}. Thus

[[math]] 5x^2 - 6xf(x) + 5(f(x))^2 = 8, [[/math]]

for every [math]x[/math] in the domain of [math]f[/math]. Since this is an equality between two functions we obtain by differentiating both sides,

[[math]] 10x - 6f(x) - 6xf'(x) + 10f(x)f'(x) = 0. [[/math]]

Solving for [math]f'(x)[/math], we get

[[math]] f'(x)= \frac{3f(x) - 5x}{5f(x) - 3x}. [[/math]]

This problem deals with an implicitly defined function whose graph passes through the point [math](0, 2\sqrt{\frac{2}{5}})[/math]. Hence [math]f(0) = 2\sqrt{\frac{2}{5}}[/math] and therefore [math]f'(0) = \frac{3}{5}[/math], which is the slope of the desired tangent line. \medskip The definition, which we have thus far illustrated with two equations, is the following: A function [math]f(x)[/math] is defined implicitly by an equation [math]F(x, y) = c[/math], where [math]c[/math] is a constant, if [math]F(x, f(x)) = c[/math] for every [math]x[/math] in the domain of [math]f[/math]. We emphasize that, in general, an equation in [math]x[/math] and [math]y[/math] defines [math]y[/math] as a function of [math]x[/math] in many ways. The most we can hope for in the way of uniqueness is that, for a given point [math](a, b)[/math] such that [math]F(a, b) = c[/math], we can choose an open interval containing [math]a[/math] which is the domain of precisely one continuous function [math]f(x)[/math] defined implicitly by [math]F(x, y) = c[/math] with [math]f(a) = b[/math]. Note that in both our examples the derivative [math]f'[/math] of the implicitly defined function was computed without solving the original equation for [math]f[/math]. The fact that this is always possible is almost too good to be true---especially for an equation where first solving for [math]y[/math] in terms of [math]x[/math] is either impractical or even impossible (except by numerical techniques). This method of finding the derivative of an implicitly defined function by differentiating both sides of the equation that defines the function is called implicit differentiation. Example

The point (2, 1) lies on the curve defined by the equation

[[math]] {x^3}y + xy^3 = 10. [[/math]]

Assuming that this equation implicitly defines a differentiable function [math]f(x)[/math] whose graph passes through (2, 1), compute [math]f'(2)[/math]. Letting [math]y[/math] stand for [math]f(x)[/math], we obtain by implicit differentiation

[[math]] 3{x^2}y + {x^3} \frac{dy}{dx} + y^3 + {x^3}{y^2} \frac{dy}{xd} = 0. [[/math]]

Hence

[[math]] \frac{dy}{dx} = -\frac{3{x^2}y+ y^3}{3x{y^2} + x^3} . [[/math]]

At the point [math]x = 2, y = 1[/math], we therefore get

[[math]] \frac{dy}{dx} \Big|_{\begin{array}{l} x=2 \\ y=1 \end{array} } = -\frac{13}{14}. [[/math]]

Example

The set of all pairs [math](x, y)[/math] that satisfy the equation

[[math]] \begin{equation} y^3 + yx^2 + ax^2 -3ay^2 = 0 \label{eq1.9.5} \end{equation} [[/math]]


is the curve, called a trisectrix, shown in Figure. Find [math]\frac{dy}{dx}[/math] when [math]x = a[/math]. So stated, the problem is impossible. There are three distinct points on the [math]y[/math]-axis curve with [math]x[/math]-coordinate equal to [math]a[/math], which may be found by substituting [math]a = x[/math] in equation and then solving for [math]y[/math]. The points are [math](a, a)[/math], [math](a, (1 + \sqrt2)a)[/math], and [math](a, (1 - \sqrt2)a)[/math]. As shown in the figure, we may select a small interval about [math]a[/math] to serve as the domain of three different implicitly defined functions. To find the derivative of each one at [math]x = a[/math], we proceed by implicit differentiation:

[[math]] 3y^2 \frac{dy}{dx} + x^2 \frac{dy}{dx} + 2xy + 2ax - 6ay \frac{dy}{dx} = 0. [[/math]]

Hence

[[math]] \frac{dy}{dx} = \frac{2xy + 2ax}{6ay-x^2 - 3y^2}. [[/math]]

Thus the derivatives at a of the three differentiable functions defined implicitly by equation are, respectively,

[[math]] \begin{eqnarray*} \frac{dy}{dx} \Big|_{\begin{array}{l} x=a \\ y=a \end{array} } &=& 2,\\ \frac{dy}{dx} \Big|_{\begin{array}{l} x=a \\ y=a(1+\sqrt2) \end{array} } &=& -1 - \frac{\sqrt2}{2},\\ \frac{dy}{dx} \Big|_{\begin{array}{l} x=a \\ y=a(1-\sqrt2) \end{array} } &=& -1 + \frac{\sqrt2}{2}. \end{eqnarray*} [[/math]]


The reader should note that in each of the above examples of implicit differentiation the existence of an implicitly defined differentiable function has either been assumed outright or just)fied geometrically from a picture. The problem of giving analytic conditions which ensure that an equation [math]F(x, y) = c[/math] implicitly defines [math]y[/math] as a differentiable function of [math]x[/math] in the neighborhood of a point [math](a, b)[/math] is the subject of the Implicit Function Theorem. A discussion and proof of this famous theorem may be found in any standard text in advanced calculus.

General references

Doyle, Peter G. (2008). "Crowell and Slesnick's Calculus with Analytic Geometry" (PDF). Retrieved Oct 29, 2024.