Chain rule
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{d}{dx} \sin x=?\,} | This article/section deals with mathematical concepts appropriate for late high school or early college. |
The chain rule in calculus is a formula for determining the derivative of a composite function:
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(g(x))' = f'(g(x))\times g'(x)}
The chain rule can also be expressed as:
The chain rule can also be applied to multivariable functions. The derivative of a function with two variables is expressed as follows:
or in vector notation:
where r is the vector function
The function r is sometimes called the path of the particle.
Sometimes it might be helpful to change variables into a more convenient form before differentiating.
Examples
Example with one Variable
Suppose we wish to find the derivative of the function:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x) = \sin{\big( x^2 \big)} }
However, we do not know how to find this but we do know the derivative of sine. Therefore, we can use the chain rule using x2 as g(x) and sin(g(x)) as f(g(x)). Therefore, using u to represent g(x):
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{df}{dx} = \frac{df}{du} \times \frac{du}{dx} = \frac{d}{du} \big( \sin{u} \big) \times \frac{d}{dx} \big( x^2 \big) }
Using standard results, these derivatives can be found and substituting back for u=x2 gives:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{df}{dx} = \cos{u} \times 2x = 2x \cos{\big( x^2 \big)} }
Example with two Variables
Suppose the potential energy of a particle undergoing simple harmonic motion is described by the function V(x,y) and that both x and y are themselves functions of time. Now suppose we wish to find the rate of change potential energy with respect to time. To do this we must utilise the chain rule above. The potential for simple harmonic motion is:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle V(x,y)=\frac{1}{2} k \big( x^2 + y^2 \big) }
and x and y are given by: Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x(t)=A \sin{\omega t} } and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y(t)=B \sin{\omega t} }
where A, B, k and ω are constants. Applying the result above gives:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{dV}{dt} = \frac{\partial V}{\partial x} \times \frac{dx}{dt} + \frac{\partial V}{\partial y} \times \frac{dy}{dt} = kx \times A\omega \cos{\omega t} + ky \times B\omega \cos{\omega t} }
Substituting in for x and y produces the answer:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{dV}{dt} = k\omega \big( A^2 +B^2 \big) \sin{\omega t} \cos{\omega t} }