Suppose we wish to find the derivative of the function:
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):
Using standard results, these derivatives can be found and substituting back for u=x2 gives:
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:
and x and y are given by: and
where A, B, k and ω are constants. Applying the result above gives: