1 Chain Rule: 1.1 Composition of Functions
1 Chain Rule: 1.1 Composition of Functions
1 Chain Rule: 1.1 Composition of Functions
WEEK 5
Reading [SB], 4.1-4.2, pp. 70-81
1
1.1
Chain Rule
Composition of Functions
3
3
3
2.
Let
f
(x)
=
x
and
g(x)
=
x,
then
f
g(x)
=
(
x)3 = x and g f (x) =
3
x3 = x, so the compositions both are identity functions f g = id, g f = id.
3. Let f (x) = ex and g(x) = ln x, then f g(x) = eln x = x and g f (x) =
ln ex = x, so the compositions both are identity functions f g = id, gf = id.
Exercise
For the composite function f g(x) = 5e2x + 3ex + 1, what are the inside and
outside functions?
Solution. 5e2x +3ex +1 = 5(ex )2 +3ex +1, so the inside function is g(x) = ex
and the outside function is f (x) = 5x2 + 3x + 1.
1.2
Proof*.
0 ))
0)
(h g)0 (x0 ) = limx1 x0 (hg)(xx11)(hg)(x
= limx1 x0 h(g(x1x))h(g(x
=
x0
1 x0
1 ))h(g(x0 ))
= limx1 x0 h(g(x
g(x1 )g(x0 )
g(x1 )g(x0 )
x1 x0
1 ))h(g(x0 ))
0)
limx1 x0 h(g(x
limx1 x0 g(xx11)g(x
=
g(x1 )g(x0 )
x0
1 ))h(g(x0 ))
0)
limg(x1 )g(x0 ) h(g(x
limx1 x0 g(xx11)g(x
=
g(x1 )g(x0 )
x0
h0 (g(x0 ) g 0 (x0 ).
Well, this proof has small gap, but forget it!
In particular
d
(g(x))k = k(g(x))k1 g 0 (x).
dx
Examples
1. Find the derivative of f (x) = (2x + 3)7 .
Solution. The function f (x) is a composition f (x) = h(g(x)) with g(x) =
2x + 3 and h(z) = z 7 . Thus, by chain rule
f 0 (x) = h0 (g(x) g 0 (x) = 7(2x + 3)6 (2x + 3)0 = 7(2x + 3) 2 = 14(2x + 3)6 .
2. A firm computes that at the present moment its output is increasing at
the rate of 2 units per hour and that its marginal cost is 12. At what rate is
its cost increasing per hour?
Solution. Let x(t) be the production function (output x depends on time t)
and in this moment t = t0 we have x0 (t0 ) = 2. Let C(x) be the cost function,
so we have C 0 (x0 ) = 12, where x0 = x(t0 ). Then
dC
dC
dx
(t0 ) =
(x(t0 )) (t0 ) = 12 2 = 24.
dt
dx
dt
Exercises 4.1-4.6
2.1
x1 = x2 .
2.2
Inverse Function
QED.
are essential: here we have f (g(x)) =q( x)2 = x, i.e. the first condition
RR
neither inj. nor surj.
f
[0, +) R
inj. but not surj.
R [0, +)
not inj. but surj.
f
[0, +) [0, +)
inj. and surj.
4
1
x+1
specifying the
1
:
x+1
1
1
y (x + 1) = 1, x + 1 = , x = 1.
y
y
So the inverse function for f (x) =
f (g(y)) =
and
g(f (x)) =
1
x+1
( y1
1
1
x+1
is g(y) =
1
y
1, indeed
1
1
= 1 =y
1) + 1
y
1 = (x + 1) 1 = x.
S
Suppose f is invertible and g is its inverse. This means that if f (a) = b then
g(b) = a.
Suppose a point (a, b) belongs to the graph of f (notation (a, b) (f )),
i.e. f (a) = b. Then we have g(b) = a, thus the point (b, a) belongs to the
graph of g. Shortly
(a, b) (f ) f (a) = b g(b) = a (b, a) (g).
Similarly,
(b, a) (g) g(b) = a f (a) = b (a, b) (f ).
This means that the graphs of f and g are symmetric with respect to the
bisectrix y = x.
f (x) = x2 , g(x) =
(x)
f (x) = ex , g(x) = ln x
2.2.2
1
.
f 0 (g(y))
Application*
The formula
(xk )0 = kxk1 ,
was proven only for natural k-s. The above theorem allows to generalize
this formula for arbitrary rational k:
1
1. The function g(y) = y n is the inverse of f (x) = xn (why?). This allows
1
to calculate the derivative of g(y) = y n :
1
(y n )0 = g 0 (y) =
1
ng(y))n1
1
f 0 (g(y))
1
n(y 1/n )n1
1
n
=
y
1
((g(y))n )0
1n
n
(x n )0 =
m
n
1
n
=
1
y n 1 .
m m 1
xn .
n
m1
n
n1 x
1n
n
1n
m m1
x n + n
n
m1
n
m m1+1n
x n
n
n1 x n 1 =
m m
x n 1 .
n
10 xq 1(xq )0
x2q
qxq1)
x2q
= qxq1 .
The further generalization of the formula (xr )0 = rxr1 for a real r R uses
approximation of a real number by a sequence of rational numbers.
Exercise
Calculate the derivative of the inverse of the function f (x) =
f (1) = 21 .
7
1
x+1
at the point
Solution.
1
1
1
1
g 0 ( ) = g 0 (f (1)) = 0
= 0
=
|x=1 = (x+1)2 |x=1 = 4.
1
2
f (g(f (1)))
f (1)
(x+1)
2
By the way, as we know the inverse for f (x) =
direct calculation of g 0 ( 12 ) gives the same result.
Exercises 4.7-4.10
Homework 4
Exercises 4.3 (c), 4.5 (e,g), 4.6, 4.8 (c), 4.9 (c)
1
x+1
is g(y) =
1
y
1. The