Implicit differentiation
Template:Short description {{#invoke:sidebar|collapsible | class = plainlist | titlestyle = padding-bottom:0.25em; | pretitle = Part of a series of articles about | title = Calculus | image = <math>\int_{a}^{b} f'(t) \, dt = f(b) - f(a)</math> | listtitlestyle = text-align:center; | liststyle = border-top:1px solid #aaa;padding-top:0.15em;border-bottom:1px solid #aaa; | expanded = | abovestyle = padding:0.15em 0.25em 0.3em;font-weight:normal; | above =
Template:EndflatlistTemplate:Startflatlist
| list2name = differential | list2titlestyle = display:block;margin-top:0.65em; | list2title = Template:Bigger | list2 ={{#invoke:sidebar|sidebar|child=yes
|contentclass=hlist | heading1 = Definitions | content1 =
| heading2 = Concepts | content2 =
- Differentiation notation
- Second derivative
- Implicit differentiation
- Logarithmic differentiation
- Related rates
- Taylor's theorem
| heading3 = Rules and identities | content3 =
- Sum
- Product
- Chain
- Power
- Quotient
- L'Hôpital's rule
- Inverse
- General Leibniz
- Faà di Bruno's formula
- Reynolds
}}
| list3name = integral | list3title = Template:Bigger | list3 ={{#invoke:sidebar|sidebar|child=yes
|contentclass=hlist | content1 =
| heading2 = Definitions
| content2 =
- Antiderivative
- Integral (improper)
- Riemann integral
- Lebesgue integration
- Contour integration
- Integral of inverse functions
- Nonelementary integral
| heading3 = Integration by | content3 =
- Parts
- Discs
- Cylindrical shells
- Substitution (trigonometric, tangent half-angle, Euler)
- Euler's formula
- Partial fractions (Heaviside's method)
- Changing order
- Reduction formulae
- Differentiating under the integral sign
- Risch algorithm
}}
| list4name = series | list4title = Template:Bigger | list4 ={{#invoke:sidebar|sidebar|child=yes
|contentclass=hlist | content1 =
| heading2 = Convergence tests | content2 =
- Summand limit (term test)
- Ratio
- Root
- Integral
- Direct comparison
Limit comparison- Alternating series
- Cauchy condensation
- Dirichlet
- Abel
}}
| list5name = vector | list5title = Template:Bigger | list5 ={{#invoke:sidebar|sidebar|child=yes
|contentclass=hlist | content1 =
| heading2 = Theorems | content2 =
}}
| list6name = multivariable | list6title = Template:Bigger | list6 ={{#invoke:sidebar|sidebar|child=yes
|contentclass=hlist | heading1 = Formalisms | content1 =
| heading2 = Definitions | content2 =
- Partial derivative
- Multiple integral
- Line integral
- Surface integral
- Volume integral
- Jacobian
- Hessian
| heading3 = Theorems | content3 =
}}
| list7name = advanced | list7title = Template:Bigger | list7 ={{#invoke:sidebar|sidebar|child=yes
|contentclass=hlist | content1 =
}}
| list8name = specialized | list8title = Template:Bigger | list8 =
| list9name = miscellanea | list9title = Template:Bigger | list9 =
- Precalculus
- History
- Glossary
- List of topics
- Integration Bee
- Mathematical analysis
- Nonstandard analysis
}} In calculus, implicit differentiation is a method for finding the derivative of a function that is defined by an equation rather than by an explicit formula. If an equation such as <math display="block">F(x,y)=0</math> defines <math>y</math> as a function of <math>x</math>, at least locally, implicit differentiation treats <math>y</math> as a function <math>y(x)</math> and differentiates both sides of the equation with respect to <math>x</math>. The method is an application of the chain rule.[1]
Implicit differentiation is useful when solving explicitly for one variable is inconvenient, produces several branches, or is not possible in elementary terms. For example, the circle <math>x^2+y^2=1</math> cannot be represented globally as the graph of a single function <math>y=f(x)</math>, but its upper and lower arcs can each be differentiated implicitly.
The method allows for the computation of the tangent line approximation to <math>y(x)</math>, given only the function <math>F</math> and the point <math>(x_0,y_0)</math> at which the approximation is made, so that no other knowledge of the functional dependence of <math>y</math> on <math>x</math> is needed. Tangent approximations to surfaces and higher-dimensional manifolds given by an equation or system of equations can be found by similar methods.
Basic formula
Let <math>F</math> be a differentiable function of two variables, and suppose that an equation
<math display="block">F(x,y)=F(x_0,y_0)</math>
defines <math>y</math> locally as a differentiable function of <math>x</math>, near the point <math>(x,y)=(x_0,y_0)</math>. Applying the differential to both sides gives <math display="block">dF = 0</math> on the curve of interest, and writing the left-hand side in terms of the partial derivatives of <math>F</math>: <math display="block">F_x(x,y)dx + F_y(x,y)dy = 0.</math> Therefore, evaluating at the point <math>(x_0,y_0)</math> gives[2]Template:Rp <math display="block">\frac{dy}{dx} = - \frac{F_x(x_0,y_0)}{F_y(x_0,y_0)}</math> provided <math>F_y(x_0,y_0)\not=0</math>.
The derivative on the left-hand side of the formula can be interpreted as the slope of the tangent line to the curve defined implicitly by the equation <math>F(x,y)=F(x_0,y_0)</math> through the given point <math>(x_0,y_0)</math>. The formula is local, in the sense that it gives only the derivative of the branch of the implicit function <math>y(x)</math> whose graph contains the point <math>(x_0,y_0)</math>.
Relation with the implicit function theorem
Intuitively, in order to be valid at a point <math>(x_0,y_0)</math> implicit differentiation in the basic formulation requires that the function <math>F</math> must genuinely depend on <math>y</math> near the point <math>(x_0,y_0)</math>, for otherwise the equation <math>F(x,y)=F(x_0,y_0)</math> cannot be solved for <math>y</math> as a function of <math>x</math> at all.
More is actually required: it is clear from the formula that the partial derivative <math>F_y(x_0,y_0)</math> must be non-zero, because it appears in the denominator of the right-hand side of the formula for <math>dy/dx_{(x_0,y_0)}</math>. While this fact allows one to compute a numerical value, it is not obvious that the numerical value has the advertised meaning: namely, that it be the derivative of a function <math>y(x)</math> whose graph is contained on the curve <math>F(x,y)=0</math> through the point.
The implicit function theorem supplies the missing justification. It asserts as follows: suppose that <math>F(x,y)</math> is a function such that both partial derivatives exist in a disc around <math>(x,y)=(x_0,y_0)</math>, and are continuous throughout the disc. Then if <math>F_y(x_0,y_0) \ne 0</math>, there is a differentiable function <math>y(x)</math> defined in an open interval containing <math>x=x_0</math>, such that <math>F(x,y(x))=0</math> throughout the interval, and whose derivative is given by the implicit differentiation formula at <math>(x_0,y_0)</math>. The function is, moreover, unique on a sufficiently small interval around <math>x_0</math>.[3]
Examples
Example 1
Consider
<math display="block">y + x + 5 = 0 \,.</math>
This equation is easy to solve for Template:Mvar, giving
<math display="block">y = -x - 5 \,,</math>
where the right side is the explicit form of the function Template:Math. Differentiation then gives Template:Math.
Alternatively, one can differentiate the original equation:
<math display="block">\begin{align} \frac{dy}{dx} + \frac{dx}{dx} + \frac{d}{dx}(5) &= 0 \, ; \\[6px] \frac{dy}{dx} + 1 + 0 &= 0 \,. \end{align}</math>
Solving for Template:Math gives
<math display="block">\frac{dy}{dx} = -1 \,,</math>
the same answer as obtained previously.
Example 2
An example of an implicit function for which implicit differentiation is easier than using explicit differentiation is the function Template:Math defined by the equation
<math display="block"> x^4 + 2y^2 = 8 \,.</math>
To differentiate this explicitly with respect to Template:Mvar, one has first to get
<math display="block">y(x) = \pm\sqrt{\frac{8 - x^4}{2}} \,,</math>
and then differentiate this function. This creates two derivatives: one for Template:Math and another for Template:Math.
It is substantially easier to implicitly differentiate the original equation:
<math display="block">4x^3 + 4y\frac{dy}{dx} = 0 \,,</math>
giving
<math display="block">\frac{dy}{dx} = \frac{-4x^3}{4y} = -\frac{x^3}{y} \,.</math>
Example 3
Often, it is difficult or impossible to solve explicitly for Template:Mvar, and implicit differentiation is the only feasible method of differentiation. An example is the equation
<math display="block">y^5-y=x \,.</math>
It is impossible to express Template:Mvar explicitly in radicals as a function of Template:Mvar, and therefore one cannot find Template:Math by explicit differentiation of elementary radical expressions. Using the implicit method, Template:Math can be obtained by differentiating the equation to obtain
<math display="block">5y^4\frac{dy}{dx} - \frac{dy}{dx} = \frac{dx}{dx} \,,</math>
where Template:Math. Factoring out Template:Math shows that
<math display="block">\left(5y^4 - 1\right)\frac{dy}{dx} = 1 \,,</math>
which yields the result
<math display="block">\frac{dy}{dx}=\frac{1}{5y^4-1} \,,</math>
which is defined for
<math display="block">y \ne \pm\frac{1}{\sqrt[4]{5}} \quad \text{and} \quad y \ne \pm \frac{i}{\sqrt[4]{5}} \,.</math>
Higher order derivatives
The method of implicit differentiation can be applied to find higher-order derivatives such as the second derivative of the implicitly-defined function <math>y(x)</math> at the point of its graph <math>(x_0,y_0)</math>, provided the function <math>F</math> is sufficiently smooth at the point.[4]
For example, suppose that the first derivative of <math>y(x)</math> has been found, by solving the equation <math display="block">dF = F_x(x_0,y_0)\,dx + F_y(x_0,y_0)\,dy = 0</math> for <math>dy/dx</math> at <math>(x_0,y_0)</math>.
Applying the second differential to <math>F(x,y) = F(x_0,y_0)</math> then gives <math display="block">d^2 F = 0</math> and expanding the left-hand side gives <math display="block">d(F_x\,dx + F_y\,dy) = F_{xx}dx^2 + F_{yx}dx\,dy + F_{xy}dy\,dx + F_{yy}dy^2 + F_x\,d^2x + F_y\,d^2y=0.</math> where we have written the second partial derivatives of <math>F</math> with repeated subscripts. Since it is the <math>x</math> derivatives we are after, <math>d^2x=0</math>. Also, substituting the known expressions for <math>dy</math> at the point <math>(x_0,y_0)</math>, into the formula (that is <math>dy = \frac{dy}{dx}dx</math> where the derivative on the right-hand side is known at the point <math>(x_0,y_0)</math>: <math>dy/dx_{(x_0,y_0)} = -F_x(x_0,y_0)/F_y(x_0,y_0)</math>), we can then arrange terms and solve for the second derivative <math>d^2y/dx^2</math>. That is, from <math display="block">F_{xx} dx^2 + (F_{xy}+F_{yx})\frac{dy}{dx}dx^2 + F_{yy}dy^2 + F_y\,d^2y= 0 </math> we obtain <math display="block"> \frac{d^2y}{dx^2} = - \frac
{ F_{xx} + (F_{xy}+F_{yx})\frac{dy}{dx}+ F_{yy}\left(\frac{dy}{dx}\right)^2 }
{ F_{y} }
.</math> This is understood as at the point <math>(x_0,y_0)</math>, and requires only that the function <math>F</math> be twice-differentiable at the point, in addition to the hypothesis <math>F_y(x_0,y_0)\ne 0</math>. Second-differentiability at the point is true if the first and second partials of <math>F</math> exist and are continuous in a disc around the point.
In that case, Clairaut's theorem implies that the mixed partials are equal <math>F_{xy}(x_0,y_0)=F_{yx}(x_0,y_0)</math>, and these terms can then be combined to give <math display="block"> \frac{d^2y}{dx^2} = - \frac
{ F_{xx} - 2F_{xy}\frac{F_x}{F_y} + F_{yy}\left(\frac{F_x}{F_y}\right)^2 }
{ F_{y} }
.</math>
Higher order derivatives (under the requisite smoothness hypotheses) are handled similarly.