Derivatives of Compositions

Example:
h(x) = ecos(x)

The first thing to notice when finding the derivative of this function is that it is a composition of two functions, as shown below:

h(x) = e[]
  where  [] = cos(x)

The Chain Rule (Derivative Rule for Compositions):

The derivative of a composition is the product of the derivative of the outer function (with the inner function plugged in) and the derivative of the inner function.
If
  z = f( g(x) )
then the derivative of z is
  z' = ( f(g(x)) )'
    = f '(g(x)) g '(x)
Or, if
  z = f( [] ), where [] = g(x)
then the derivative of z is
  z' = ( f( [] ) )'
    = f '( [] ) ( [] )'
    = f '( [] ) g '(x)

So our example,

h(x) = e[]
  where  [] = cos(x)
we can think of as
h(x) = f( [] ) , where  [] = g(x) = cos(x)
So the derivative is
h '(x) = ( f( [] ) )'
  = f '( [] ) ( [] )'  
  = ( e[] )' ( cos(x) )'
and we just need to know each of the derivatives on the right-hand side of the equation. In this case these are
( e[] )' = e[] (by the derivative rules for basic functions)
( cos(x) )' = ( (-1)*sin(x) ) (by the derivative rules for basic functions)
so the finished derivative is
h '(x) = e[] ( (-1)*sin(x) )
  = ecos(x) ( (-1)*sin(x) )
  = (-1)*ecos(x) sin(x)
[]


additional explanation for the chain rule
see another chain rule example
practice gateway test
previous page
Page Generated: Wed Feb 4 11:13:34 2026
Comments to Gavin LaRose
glarose@umich.edu
©2001 Gavin LaRose, University of Michigan Math Dept.