Chain Rule: Version 2
Composition of Functions
Suppose that we have variables x, y, and u, and that
y=f(u) and u=g(x). We say that y is a compound function of x,
namely y=f(g(x)), because it's a function that depends on a function that depends on x.
This is sometimes written as y=(f∘g)(x).
Visually,
x⟼g(x)⟼f(g(x))
For Example:
- y=sin(x2) is a compound function with u=x2 and y=sin(u).
-
y=sin2(x) is a compound function with u=sin(x) and y=u2.
-
y=e3x is a compound function with u=3x and y=eu.
-
y=(x2+4x+7)5 is a compound function with u=x2+4x+7 and y=u5.
|
Version 2 of the chain rule says that
Note that dydx is the same
as ddx(f(g(x))), that
dydu=f′(u)=f′(g(x)), and that
dudx
is the same thing as g′(x). So Version 2 says the exact same thing
as Version 1.
Let's see how it applies to our examples above.
Example 1:
If y=sin(x2), then u=x2 so that y=sin(u).
Then dudx=2x, and dydu=cos(u). All together, we have
dydx=dydududx=cos(u)⋅2x=cos(x2)⋅2x.
|
Example 2:
If y=sin2(x), then u=sin(x) so that y=u2.
Then
dudx=cos(x), and
dydu=2u. All together, we have
dydx=dydududx=2u⋅cos(x)=2sin(x)cos(x).
|
Example 3:
If y=e3x, then u=3x so that y=eu.
Then dudx=3, and dydu=eu. All together, we have
dydx=dydududx=eu⋅3=3e3x.
|
Example 4:
If y=(x2+4x+7)5, then u=x2+4x+7 so that y=u5.
Then dudx=2x+4, and dydu=5u4. All together we have
dydx=dydududx=5u4(2x+4)=5(x2+4x+7)4(2x+4).
|
Just like with Version 1!
|