primer on diff_07!18!2015
DESCRIPTION
Numerical MethodsTRANSCRIPT
![Page 1: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/1.jpg)
Chapter 02.01Primer on
Differentiation
![Page 2: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/2.jpg)
After reading this chapter, you should be able to:
1. understand the basics of differentiation,
2. relate the slopes of the secant line and tangent line to the derivative of a function,
3. find derivatives of polynomial, trigonometric and transcendental functions,
4. use rules of differentiation to differentiate functions,
5. find maxima and minima of a function, and
6. apply concepts of differentiation to real world problems.
![Page 3: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/3.jpg)
In this primer, we will review the concepts of differentiation you learned in calculus. Mostly those concepts are reviewed that are applicable in learning about numerical methods. These include the concepts of the secant line to learn about numerical differentiation of functions, the slope of a tangent line as a background to solving nonlinear equations using the Newton-Raphson method, finding maxima and minima of functions as a means of optimization, the use of the Taylor series to approximate functions, etc.
![Page 4: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/4.jpg)
IntroductionThe derivative of a function represents
the rate of change of a variable with respect to another variable. For example, the velocity of a body is defined as the rate of change of the location of the body with respect to time. The location is the dependent variable while time is the independent variable. Now if we measure the rate of change of velocity with respect to time, we get the acceleration of the body. In this case, the velocity is the dependent variable while time is the independent variable.
![Page 5: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/5.jpg)
Two concepts of the secant line and tangent line.
Q
P
f(x)
x
secant line
tangent line
Figure 1 Function curve with tangent and secant lines.
![Page 6: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/6.jpg)
Let P and Q be two points on the curve as shown in Figure 1. The secant line is the straight line drawn through P and Q.
x
P
Q
a a+h
)(xf
Figure 2 Calculation of the secant line.
![Page 7: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/7.jpg)
The slope of the secant line (Figure 2) is then given as
aha
afhafmPQ
)(
)()(secant,
h
afhaf )()(
As Q moves closer and closer to P , the limiting portion is called the tangent line.
The slope of the tangent line tangent,PQm then is the limiting value of secant,PQm as 0h .
h
afhafm
hPQ
)()(lim
0tangent,
![Page 8: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/8.jpg)
Example 1
Find the slope of the secant line of the curve 24xy between points (3,36) and (5,100).
0
50
100
150
200
250
-2 -1 0 1 2 3 4 5 6 7 8
x
f(x)
(5,100)
(3,36)
Figure 3 Calculation of the secant line for the function 24xy .
![Page 9: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/9.jpg)
35
)3()5(
ff
m
35
36100
32
SolutionThe slope of the secant line between (3,36) and (5,100) is
![Page 10: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/10.jpg)
Example 2
Find the slope of the tangent line of the curve 24xy at point (3,36). Solution
The slope of the tangent line at (3,36) is
h
fhfm
h
)3()3(lim
0
h
hh
22
0
)3(4)3(4lim
h
hhh
36)69(4lim
2
0
h
hhh
3624436lim
2
0
h
hhh
)244(lim
0
)244(lim0
hh
24
![Page 11: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/11.jpg)
0
10
20
30
40
50
60
70
-2 -1 0 1 2 3 4 5
x
f(x)
Figure 4 Calculation of the tangent line in the function 24xy .
![Page 12: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/12.jpg)
The slope of the tangent line is
h
fhfm
h
)3()3(lim
0
h
hh
22
0
)3(4)3(4lim
h
hhh
3642436lim
2
0
h
hhh
)424(lim
0
)424(lim
0h
h
24
![Page 13: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/13.jpg)
Derivative of a Function
Recall from calculus, the derivative of a function )(xf at ax is defined as
h
afhafaf
h
)()(lim)(
0
Example 3
Find )3(f if 24)( xxf .
![Page 14: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/14.jpg)
Solution
h
fhff
h
)3()3(lim)3(
0
h
hh
22
0
)3(4)3(4lim
h
hhh
36)69(4lim
2
0
h
hhh
3624436lim
2
0
h
hhh
)244(lim
0
)244(lim0
hh
24
![Page 15: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/15.jpg)
Example 4
Find
4
f if )2()( xsinxf
Solution
h
fhff
h
44lim4 0
h
sinhsin
h
42
42
lim0
h
sinhsin
h
22
2lim
0
![Page 16: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/16.jpg)
h
sinhsincoshcossin
h
2)2(
2)2(
2lim
0
h
hcosh
10)2(lim
0
h
hcosh
1)2(lim
0
0 from knowing that
0)(1
lim0
h
hcosh
![Page 17: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/17.jpg)
Second Definition of Derivatives
There is another form of the definition of the derivative of a function. The derivative of the function )(xf at ax is defined as
ax
afxfaf
ax
)()(lim)(
As ax , the definition is nothing but the slope of the tangent line at P .
)(xf
P
Q
))(,( afa
a
))(,( xfx
ax
)()( afxf
x
Figure 5 Graph showing the second definition of the derivative.
x
![Page 18: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/18.jpg)
Example 5
Find )3(f if 24)( xxf by using the form
ax
afxfaf
ax
)()(lim)(
of the definition of a derivative.
Solution
3
)3()(lim)3(
3
x
fxff
x
3
)3(44lim
22
3
x
xx
3
364lim
2
3
x
xx
3
)9(4lim
2
3
x
xx
3
)3)(3(4lim
3
x
xxx
)3(4lim3
xx
24
)33(4
![Page 19: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/19.jpg)
Finding equations of a tangent line
One of the numerical methods used to solve a nonlinear equation is called the Newton-Raphson method. This method is based on the knowledge of finding the tangent line to a curve at a point. Let us look at an example to illustrate finding the equation of the tangent line to a curve.
Example 6
Find the equation of the line tangent to the function 43 10993.3165.0)( xxxf at 05.0x .
Solution
The line tangent is a straight line of the form cmxy
![Page 20: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/20.jpg)
To find the equation of the tangent line, let us first find the slope m of the straight line.
165.03)( 2 xxf 165.0)05.0(3)05.0( 2 f 1575.0 1575.0m To find the value of the y -intercept c of the straight line, we first find the value of the function at 05.0x . 43 10993.3)05.0(165.0)05.0()05.0( f 0077257.0
![Page 21: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/21.jpg)
-0.03
-0.02
-0.01
0
0.01
0.02
0.03
0.04
-0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5
x
f(x)
Figure 6 Graph of function f(x) and the tangent line at x = 0.05.
Hence, cmxy 0001493.01575.0 x is the equation of the tangent line.
![Page 22: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/22.jpg)
Other Notations of Derivatives
Derivates can be denoted in several ways. For the first derivative, the notations are
dx
dyandyxf
dx
dxf , ),( ),(
For the second derivative, the notations are
2
2
2
2
, ),( ),(dx
ydandyxf
dx
dxf
For the thn derivative, the notations are
n
nn
n
nn
dx
ydyxf
dx
dxf , ),( ),( )()(
![Page 23: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/23.jpg)
Theorems of Differentiation
Several theorems of differentiation are given to show how one can find the derivative of different functions. Theorem 1
The derivative of a constant is zero. If kxf )( , where k is a constant, 0)( xf . Example 7
Find the derivative of 6)( xf . Solution
6)( xf 0)( xf
![Page 24: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/24.jpg)
Theorem 2
The derivative of nxxf )( ,
where 0n is 1)( nnxxf . Example 8
Find the derivative of 6)( xxf . Solution
6)( xxf
166)( xxf
56x
![Page 25: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/25.jpg)
Example 9
Find the derivative of 6)( xxf . Solution
6)( xxf
166)( xxf
76 x
7
6
x
![Page 26: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/26.jpg)
Theorem 3
The derivative of )()( xkgxf , where k is a constant is )()( xgkxf . Example 10
Find the derivative of 610)( xxf . Solution
610)( xxf
)10()( 6xdx
dxf
610 xdx
d
)6(10 5x
560x
![Page 27: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/27.jpg)
Theorem 4 The derivative of )()()( xvxuxf is
)()()( xvxuxf .
Example 11
Find the derivative of 83)( 3 xxf . Solution
83)( 3 xxf
)83()( 3 x
dx
dxf
)8()3( 3
dx
dx
dx
d
0)(3 3 x
dx
d
)3(3 2x
29x
![Page 28: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/28.jpg)
Theorem 5
The derivative of )()()( xvxuxf is
)()()()()( xudx
dxvxv
dx
dxuxf . (Product Rule)
![Page 29: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/29.jpg)
Example 12
Find the derivative of )83)(62()( 32 xxxf Solution
Using the product rule as given by Theorem 5 where, )()()( xvxuxf
)()()()()( xudx
dxvxv
dx
dxuxf
)83)(62()( 32 xxxf
62)( 2 xxu
83)( 3 xxv
![Page 30: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/30.jpg)
Taking the derivative of )(xu ,
)62( 2 xdx
d
dx
du
)6()2( 2
dx
dx
dx
d
0)(2 2 xdx
d
)2(2 x x4
Taking the derivative of )(xv ,
)83( 3 xdx
d
dx
dv
)8()3( 3
dx
dx
dx
d
0)(3 3 xdx
d
)3(3 2x
29x
![Page 31: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/31.jpg)
Using the formula for the product rule
)()()()()( xudx
dxvxv
dx
dxuxf
xxx
xxxx
xxxx
325430
32125418
)4)(83()9)(62(
24
424
322
![Page 32: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/32.jpg)
Theorem 6
The derivative of
)(
)()(
xv
xuxf
is
2))((
)()()()()(
xv
xvdx
dxuxu
dx
dxv
xf
(Quotient Rule)
![Page 33: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/33.jpg)
Example 13
Find the derivative of )83(
)62()(
3
2
x
xxf .
Solution
Use the quotient rule of Theorem 6, if
)(
)()(
xv
xuxf
then
2))((
)()()()()(
xv
xvdx
dxuxu
dx
dxv
xf
![Page 34: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/34.jpg)
From
)83(
)62()(
3
2
x
xxf
we have 62)( 2 xxu
83)( 3 xxv Taking the derivative of )(xu ,
)62( 2 xdx
d
dx
du
)6()2( 2
dx
dx
dx
d
)2(2
0)(2 2
x
xdx
d
x4
Taking the derivative of )(xv ,
)83( 3 xdx
d
dx
dv
)8()3( 3
dx
dx
dx
d
)3(3
0)(3
2
3
x
xdx
d
29x
![Page 35: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/35.jpg)
Using the formula for the quotient rule,
23
223
)83(
)9)(62()4)(83()(
x
xxxxxf
64489
5418321236
244
xx
xxxx
64489
3254636
24
xx
xxx
![Page 36: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/36.jpg)
Table of Derivatives
)(xf )(xf
0, nxn
1nnx
nkx , 0n 1nknx
)(xsin )(xcos
)(xcos )(xsin
)(xtan )(2 xsec
)(xsinh )(xcosh
)(xcosh )(xsinh
)(xtanh )(1 2 xtanh
)(1 xsin 21
1
x
)(1 xcos 21
1
x
)(1 xtan 21
1
x )(xcsc )()( xcotxcsc
![Page 37: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/37.jpg)
)(xsec )()( xtanxsec
)(xcot )(2 xcsc
)(xcsch )()( xcschxcoth
)(xsech )()( xsechxtanh
)(xcoth )(1 2 xcoth
)(1 xcsc 1
||22
xx
x
)(1 xsec 1
||22 xx
x
)(1 xcot 21
1
x
xa
xaaln )(
)(xln x
1
)(xlog a )(
1
axln xe
xe
![Page 38: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/38.jpg)
Chain Rule of Differentiation
Sometimes functions that need to be differentiated Do not fall in the form of simple functions or the Forms described previously. Such functions can be differentiated using the chain rule if they are of the form ))(( xgf . The chain rule states
)())(())((( xgxgfxgfdx
d
![Page 39: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/39.jpg)
For example, to find )(xf of 42 )23()( xxxf , one could use the chain rule. )23()( 2 xxxg 26)( xxg
3))((4))(( xgxgf
)26()23(4))23(( 3242 xxxxxdx
d
![Page 40: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/40.jpg)
Implicit Differentiation
Sometimes, the function to be differentiated Is not given explicitly as an expression of the independent variable. In such cases, how do we find the derivatives? We will discuss this via examples.
Example 14
Find dx
dy if xyyx 222
![Page 41: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/41.jpg)
Solution
xyyx 222
)2()( 22 xydx
dyx
dx
d
)2()()( 22 xydx
dy
dx
dx
dx
d
ydx
dyx
dx
dyyx 2222
![Page 42: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/42.jpg)
xydx
dyxy
xydx
dyx
dx
dyy
22)22(
2222
1
22
22
dx
dy
xy
xy
dx
dy
![Page 43: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/43.jpg)
Example 15
If 522 yxyx , find the value of y. Solution
522 yxyx
)5()( 22
dx
dyxyx
dx
d
0)()()( 22 y
dx
dxy
dx
dx
dx
d
022
dx
dyyy
dx
dyxx
![Page 44: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/44.jpg)
yxdx
dyyx 2)2(
xy
xy
dx
dy
2
2
xy
xyy
2
2
![Page 45: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/45.jpg)
Higher order derivatives
So far, we have limited our discussion to calculating first derivative, )(xf of a function )(xf . What if we are asked to calculate higher order derivatives of )(xf .
![Page 46: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/46.jpg)
A simple example of this is finding acceleration of a body from a function that gives the location of the body as a function of time. The derivative of the location with respect to time is the velocity of the body, followed by the derivative of velocity with respect to time being the acceleration. Hence, the second derivative of the location function gives the acceleration function of the body.
![Page 47: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/47.jpg)
Example 16
Given 723)( 3 xxxf , find the second derivative, )(xf and the third derivative, )(xf . Solution
Given 723)( 3 xxxf we have 2)3(3)( 2 xxf
29 2 x
))(()( xfdx
dxf
![Page 48: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/48.jpg)
x
x
xdx
d
18
)2(9
)29( 2
))(()( xfdx
dxf
18
)18(
xdx
d
![Page 49: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/49.jpg)
Example 17
If 522 yxyx , find the value of y . Solution
From Example 15 we obtain
xy
xyy
2
2,
xyyxy 2)2(
)2())2(( xydx
dyxy
dx
d
)2()()2()()2( xdx
dy
dx
dxy
dx
dyy
dx
dxy
![Page 50: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/50.jpg)
2)12()2( yyyxyy
xy
yyy
2
222 2
After substitution of y ,
xy
xyxy
xyxy
y
2
22
222
22
2
3
22
)2(
)(6
xy
xxyy
![Page 51: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/51.jpg)
THE ENDTo be continued next meeting…
![Page 52: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/52.jpg)
![Page 53: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/53.jpg)
![Page 54: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/54.jpg)
![Page 55: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/55.jpg)
![Page 56: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/56.jpg)
![Page 57: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/57.jpg)
![Page 58: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/58.jpg)
![Page 59: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/59.jpg)
![Page 60: Primer on Diff_07!18!2015](https://reader038.vdocuments.net/reader038/viewer/2022110319/563db9e2550346aa9aa0cc9c/html5/thumbnails/60.jpg)