Professional Documents
Culture Documents
Lecture Note 10
Application of Differentiation
Let be the “target” function. One may try to approximate the function
using a polynomial since the calculation of polynomial can be done by simple
addition, subtraction and multiplication:
…
.
To obtain the coefficients, one can use method of substitution:
(Step 1) Put 0, then 0 .
(Step 2) We consider
2
3
⋯
.
Put 0 again, we then get 0 .
(Step 4) We consider
…
.
2! 3! !
MA1200 Calculus and Basic Linear Algebra I
ψ Lecture Note 10: Application of Differentiation
In general, one may consider the following general approximation (perhaps for
better computational efficiency):
'
'
' …
'
One can obtain the coefficients ( using the similar method (put ' instead
of 0), we obtain
' '
' ' '
' ⋯
'
2! 1!
'
'
.
!
Question: Is this true?
polynomial can give a good approximation to the function provide that
The following theorem, called Taylor theorem, shows that the above
is sufficiently large
'
is
"* +
where is some number between and ' and the term )
!
called residual term or error term.
the polynomial on the R.H.S (provided that the / ' are known).
' '
' ' '
' ⋯
'
2!
011111111111111111111121111111111111111111113 1!
4567
58(,6 :,44;5<(8,=(5
5" "<>
'
.
"* <?
and the numerical error is given by )
!
This error )
can be made to be small if is sufficiently large (i.e. we pick
more terms in approximating ).
• Usually, ' is chosen to be 0 (you will see why in the next few examples)
and the corresponding series is called Maclaurin Series.
0 0 0
0
0 ⋯
"## "%
<
! !
1 ⋯ @ .
2! 3! 4! !
B
To estimate the value of , we simply substitute 1 in the above series:
A
1 1 1 1
11 ⋯ @
2! 3! 4! !
B
One can estimate by compute the first -term of the R.H.S.:
5 10 20 50
Estimat 2.71666666666 2.718281801146385 2.718281828459046 2.718281828459046
e of
(*Note: The exact value of is 2.718281828459046).
MA1200 Calculus and Basic Linear Algebra I
υτ Lecture Note 10: Application of Differentiation
Example 2
Find the Taylor Series of the function cos at 0. Compute cos0.5
☺Solution:
Step 1: Write the Taylor Series of this function
L
N
cos cos M O.
L 2
Hence, one can find that
N
0 cos 0 1, 0 cos M O 0,
0 cosN 1,
2
MA1200 Calculus and Basic Linear Algebra I
υυ Lecture Note 10: Application of Differentiation
3N
0 cos P Q 0, 0 cos2N 1,
2
5N
0 cos 0, R 0 cos 3N 1.
2
Step 3: Substitute
Hence, the Taylor expansion of cos is then given by
0 0
cos 0 0 0
0
0 ⋯
2! 3!
A
1
R S
1 ⋯… @ .
2! 4! 6! 8! 2!
B
To compute cos 0.5, we substitute 0.5 and compute the first four terms,
we have
cos 0.5 1
0.5
! 0.5 R! 0.5R 0.877582 (True value: 0.8775825618904)
⋯.
2! 3! 4!
One can find that
L
0 1 0U 1, 0 1 U |<B X1 U |<B X.
L
MA1200 Calculus and Basic Linear Algebra I
υχ Lecture Note 10: Application of Differentiation
L
L
0
1 |<B
U
X1 U |<B XX 11 U
|<B
L L
XX 1.
L
L
0 1 |<B
U
XX 11 U
|<B
L L
XX 1X 21 U |<B XX 1X 2.
L
L
0 1 |<B
U
XX 1X 21 U |<B
L L
XX 1X 2X 31 U |<B
XX 1X 2X 3.
Thus the Maclaurin series of 1 U is then given by
′′ 0 3 0
0 ′ 0 Z[
X[\[
X []
1 Z[[[[\[[[[]
X X 1X 2
1 U Y Y
1 X
2
3
2! 3!
4
0
Z[[[[[[[\[[[[[[[]
XX 1X 2X 3
4 ⋯.
4!
MA1200 Calculus and Basic Linear Algebra I
υψ Lecture Note 10: Application of Differentiation
Some Macularin series of some elementary functions
1
1. 1
⋯ EF 1 ^ ^ 1
1
a b
2. sin ⋯ EF 'cc F'c
3! 5! 7! 9!
R
3. cos 1 ⋯ EF 'cc F'c
2! 4! 6!
4. < 1 ⋯ EF 'cc F'c
1! 2! 3! 4!
5. ln1 ⋯ EF 1 ^ ^ 1.
2 3 4 5
⋯.
2! 3! 4!
One can find that
0 lncos 0 ln 1 0
L Llncos Lcos 1
0
lncos |<B |<B sin |<B
L Lcos L cos
tan |<B 0.
L
L
0
lncos |<B tan |<B sec
|<B 1.
L L
MA1200 Calculus and Basic Linear Algebra I
υϊ Lecture Note 10: Application of Differentiation
L L
0 lncos |<B sec
|<B
L L
Lsec Lsec
L L
0 lncos |<B 2 sec
tan |<B ⋯
L L
4 sec
tan
2 sec |<B 2.
1
1 0.
(a) Show that
(b) By differentiating the whole equation with respect to for times and
using Leibnitz’s Rule, show that
1
j
2 11
j
1
0
(c) Hence, find the Maclaurin series of sinln1 as far as the
term .
☺Solution:
(a) It can be found that
L 1
sin ln 1 cos ln 1
L 1
L 1 1 1
cosln1 sinln1 cosln 1 .
L 1 1
1
L
k1
1 l 0
L
L
L
1
1
0 … ∗
L
L
To compute * 1
, we can use Leibnitz’s rule
n*
n<
L
L; L
;
1 @ T;
1
′′
L
L ; L
;
;B
j<o "*po <
j< "*p. <
Z[
L[[\[[[]
Z[L
[\[ [] Z[
L [[\[[[] Z[L [[\[[[]
T
1 T
1
L L
L L
MA1200 Calculus and Basic Linear Algebra I
υύ Lecture Note 10: Application of Differentiation
"* < "*-. <
Z[
L
[[\[[[]
Z[ [[\[[[]
L
Z[
L [[\[[[] Z[L [[\[[[]
T
1 T
1
⋯
L
L
L L
B "o <
Z[L
[[\[[[] Z[ L [\[ []
T
1
L L
1
j
21
j 1
.
L
Similarly, one can find that
k1 l
1
j
.
L
.
2! 3! 4! 5!
To obtain 0, 0 and 0, one can use the equation
obtained in (b). To do this, we first substitute 0 into the equation
and get
j
0 2 1
j 0
1
0 0.
Put 1,we get
B
Z[
0 21 1
\
[
0] 1
1
Z[ \
[
0] 0 ⇒ 0 1.
Put 3, we get
B
Z[
0 23 1 \
[
0] 3
1
Z[\
[
0] 0 ⇒ 0 10.
1
1 0 10
.
2! 3! 4! 5! 2 6 12
☺Solution
ln1
⋯
lim lim 2 3 lim u1 ⋯ v 1
<→
<→
<→ 2 3
MA1200 Calculus and Basic Linear Algebra I
φχ Lecture Note 10: Application of Differentiation
Example 7
sin
We consider the function
x y 0
w .
1 x 0
It is clear that the function is continuous at 0 since lim<→ 1 0.
z{| <
<
Determine whether the function is differentiable at 0.
☺Solution: Using the first principle, we consider
sin ~
~ 0 1 sin ~ ~
lim lim ~ lim
}→ ~ }→ ~ }→ ~
~ ~
P~ ⋯ Q ~ ~ ~
3! 5!
lim lim u ⋯ v 0.
}→ ~
}→ 3! 5!
So the function is differentiable at 0 and 0 0.
Substitute 1 into the above equation and note that tan 1 , we can
obtain the formula for calculating N
A
N 1 1 1 1 1
1 ⋯⇒N 4@ .
4 3 5 7 9 2 1
B
'
⇒ tan
' tan
tan
1 '
To decompose tan 1, one can set
' 1 1
1, ' ⇒ .
1 ' 2 3
MA1200 Calculus and Basic Linear Algebra I
φϊ Lecture Note 10: Application of Differentiation
So that tan 1 can be expressed as
N 1 1 1 1
tan 1 tan
tan
⇒ N 4 Ptan
tan
Q.
4 2 3 2 3
The newer formula is more efficient since both series
1 1 1 a 1 b
1 1 M O M O M O M O 1 1 1 1
tan 2 2 2 2 ⋯ ⋯
2 2 3 5 7 9 2 24 160 896
1 1 1 a 1 b
1 1 M O M O M O M O 1 1 1 1
tan 3 3 3 3 ⋯ …
3 3 3 5 7 9 3 81 1215 15309
have better convergence speed than tan 1. For instance, one can compute
N 3.141592653589794
N 1 1
• Machin’s formula
4 tan
tan
.
4 5 239
1 3
• Euler
N 20 tan
8 tan
.
7 79
1 1 1 1
• Yasumasa Kanada (Dec, 2002)
N 4 P12 tan
32 tan
5 tan
12 tan
Q.
49 57 239 110443
(*Note: At that time, he used this formula to calculate N up to 1.24 trillion
1.24
10
digits)
would like to find such that the function is maximized (or minimized).
'
We first narrow the range by finding all potential candidate of maximum point
and minimum point (circled points) and compare the value one by one.
Local
Maximum
Local
Local Minimum
Minimum
'
is decreasing
when is close to
is increasing
Local Minimum
when is close to
^ 0
Slope =
0
Slope =
Increasing Decreasing
☺Solution:
Since both local maxima and local minimum satisfies 0, one can find all
local maxima and minima by solving
0 ⇒ 12 3
<< 0 ⇒
4 0 ⇒ 2 2 0
%
⇒ 2 EF 2.
Next, to identity whether these turning points are maxima or minima, we
consider
^ 2 2 2 ^ ^ 2 2 2
′ ^0 0 0 0 ^0
is decreasing
is increasing
is increasing
^ 0 0
0
′ is decreasing ′ is increasing
L L
^ 0 ′ 0
L L
L
<<%
⋯ 9 72
6 144
<< .
%
L
Note that
• 2 12 R ^ 0, so 2 is the local maxima.
• 2 12 R 0, so 2 is the local minima.
1. Find all possible local extrema. This can be done by solving 0.
2. For each turning points ∗ obtained in Step 1, determine whether it is
'
MA1200 Calculus and Basic Linear Algebra I
χό Lecture Note 10: Application of Differentiation
3. Calculate the value of ', (value at boundary). (*Note: If ∞,
then we compute lim<→A instead of . If ' ∞, then we
compute lim<→A instead of '.
∗
'
∗
∗
∗
'
4. Compare the value of ', and (∗ h to obtain the max. and min..
⇒
2 0 ⇒ 2 1 0 ⇒ 2 EF 1.
Step 2: Determine whether the turning points are local maxima or local
minima
Method 1: First Derivative Test
^ 1 1 1 ^ ^ 2 2 2
′ 0 0 ^0 0 0
Graph increasing Local max. decreasing Local min. increasing
MA1200 Calculus and Basic Linear Algebra I
ψτ Lecture Note 10: Application of Differentiation
Method 2: Second derivative test
Note that 12 6.
1 18 ^ 0 ⇒ 1 is local maximum.
2 122 6 18 0 ⇒ 2 is local minimum.
By some calculation, one can see that 1 14 and 2 13.
Step 3: Compute the value of and (values at boundary)
One can see that 3 2 and 3 38.
Step 4: Determine the maximum and minimum value
By comparing the values of 1, 2, 3, 3, we conclude that
• The maximum value of is 14 at 1.
• The minimum value of 38 at 3.
1 2
⇒ L L 0
4 2
1 2k2 1l 1
⇒ 0
4 2
B<j k
<
<j l
B<j <
1 Z[
[
[[\[
1[
[[]
5
⇒ 0
4 2
⇒ 1 rejected) or 5 (for y 2).
(*Here, we reject 1 since we are considering within the interval k3,8l only!)
MA1200 Calculus and Basic Linear Algebra I
ψφ Lecture Note 10: Application of Differentiation
Step 2: Determine whether the turning point is local maximum or local
minimum
Method 1: First Derivative Test
Recall that
<j <
<
o
3^5 5 5^8
′ ^0 0 0
Graph decreasing Local min. increasing
1
s
4 2
1 1.
2
⇒ 1 P Q 0,
y0
3
2
1
⇒ 3 0, y 0
5 2
⇒ 3 3 0, y 0
2
⇒ .
5
5 2
Recall that
3 3 , y0
1 ^ 0 0 2 2 2
0^^ ^1
5 5 5
′ 0 X ^0 0 0
Graph increasing “local decreasing Local increasing
max.” min.
By some calculation, we get
2 3 2
0 0, P Q P Q 0.326.
5 5 5
MA1200 Calculus and Basic Linear Algebra I
Lecture Note 10: Application of Differentiation
Step 3: Compute the value of D and D (values at boundary)
One can see that 1 2 and 1 0.
Step 4: Determine the maximum and minimum value
1
N √ N
0 1, M O , M O 1, N 1.
4 2 2
N
N N
4 2
3
3
1
1 3
< 3 <
lim
lim , lim P1 Q lim P1 Q
R .
<→A 3 2 2
3
3
<→A <→A <→A
Each of these techniques is useful in some special types of limits only.
One cannot compute the following limits using simple algebraic tricks:
ln1
< 1
o
lim , lim .
<→A <→
Then, we have
′
lim lim .
<→, ¢ <→, ¢′
Then, we have
′
lim lim .
<→, ¢ <→, ¢′
Example 15
Compute the limits
ln1
< 1
o
lim
Y lim lim 2
< o
2
o
2.
<→
<→ 2 <→
☺Solution:
Since 1 cos 3 → 0 and ¢
→ 0 as → 0. Using L’ Hopital
Rule, we get
"< "# < → "< "# <
¥{¦ B ¥{¦ ¥{¦ B ¥{¦ #
1 cos 3 §→?©< §→?©# < Z[\[] §→?©< §→?© <
3 sin 3 9 cos 3
lim
Y lim
Y lim
<→
<→ 2 <→ 2
9 cos 30 9
.
2 2
2
<→
<→
0 3 0 3
2 sin
2
sin
2 9 cos 3
lim lim
<→
<→ 2
3
sin
M 2 O 9 cos 30 9
.
lim 2
<→
2 2
3
9 sin 2 9
lim 2 P Q « ¬ .
<→ 4 3 2
2
☺Solution:
Note that both tan → 0 and ¢ sin → 0 when → 0.
Thus, one can use the L’Hopital Rule and get:
"< "# <
¥{¦ B ¥{¦
tan §→?©< §→?©# <
sec
1 0
lim
Y lim P £sQ
<→ sin <→ 1 cos 0
"< "# <
¥{¦ B ¥{¦ #
§→?©< §→?© <
2 sec sec tan 2 2
Y lim lim 2.
<→ sin <→ cos cos 0
1 <
5 lim P
Q → ∞ 'h → 0
<→
Such kinds of limits are said to be of indeterminate forms. Those limits can be
computed using L’Hopital Rule. In order to apply this rule, one has to rewrite
A
A
the above limits into the form or so that L’Hopital can be applied.
Example 17
☺Note:
ln → 0
∞ as → 0.
Compute the limits
lim ln .
<→p
ln 1 → 0
☺Solution:
1 ln → 0
One can take the common factor and get
1 ln 1
limp P Q limp
<→ 1 ln <→ 1 ln
1
"< "# <
¥{¦ B ¥{¦ #
§→?©< §→?© < ln M O 1 ln
Y lim limp
1 1
<→ p
ln 1 M O <→ ln
Example 19 ☺Note:
→ →A
Z[\ [] Z[\[]
1
Compute the limits
1 M O P Q→∞
sin sin sin
lim P Q
<→ sin
sin
(☺Note: Again, this limits is of ∞ ∞ type.)
One can compute these limits (via L’Hopital Rule) by first transforming the limits
into the form of 0
∞ so that one can compute the limits using the method
described in Type 1. This can be done by taking natural logarithm, i.e
s 00 ⇒ ln s
0 ln
0
A
s ∞ ⇒ ln s
0 ln
µ ∞
A
s 1A ⇒ ln s ∞
ln
1
A
☺Solution
Let s z{| < , then ln s ln: z{| < > sin ln .
Taking limits on both sides, we get
ln ∞
lim ln s limp sin ln limp M £s O
<→p <→ <→ 1 ∞
sin
1
sin
sin
sin
limp P Q sin cos 1
0
1 0
<→
¥{¦ ¥| 7
⇒ limp z{| < limp s limp ¥| 7 §→?p 1.
<→ <→ <→
MA1200 Calculus and Basic Linear Algebra I
Lecture Note 10: Application of Differentiation
cot < → ∞0
Example 22
∞ £s
Compute the limits
lim cot <
<→p
☺Solution:
Let s cot < , then ln s lncot .
Taking limits on both sides, we get
lncot ∞
lim ln s limp lncot limp M £sO
<→p <→ <→ 1 ∞
csc
sin
1
limp cot limp cos sin
limp limp M O
1 1 <→ cos sin <→ cos sin
<→ <→
1
1
00
¥{¦ ¥| 7
⇒ limpcot < limp s limp ¥| 7 §→?p 1.
<→ <→ <→
¢ is continuous at 0
☺Solution:
⇔ lim ¢ ¢0.
<→
Using L’Hopital Rule, we get
"
→ B
z{|
<¹ Z\]
′0 0 1
lim ¢ Y lim lim .
<→ <→ 2 sin <→ 2 cos 2 cos 0 2 2
Since ¢ is continuous at 0, then we have
1
lim ¢ ¢0 ' ⇒ ' .
<→ 2
! MA1200 Calculus and Basic Linear Algebra I
Lecture Note 10: Application of Differentiation
Example 24
Let and ¢ be two differentiable functions over ». Suppose that
• 0 0, 0 1
• ¢0 0, ¢ 0 0 'L ¢ 0 1.
We consider the following the function:
2 x 0
¼ ¸ ¢ .
x ^ 0
(a) Determine whether the function ¼ is continuous at 0.
(b) Determine whether the function ¼ is differentiable at 0.
☺Solution:
(a) We need to check whether lim<→ ¼ ¼0 0 0. To
compute the limits on the left-hand sides, we need to consider left-hand
limits and right-hand limits:
MA1200 Calculus and Basic Linear Algebra I
( Lecture Note 10: Application of Differentiation
limp ¼ limp 2 :20> 0
<→ <→
©< ©
→ BM O
¢ < ¢
lim- ¼ lim-
Y lim- ¢ 0 0.
<→ <→ <→ 1
Thus lim<→ ¼ 0. Since lim<→ ¼ 0 ¼0, so ¼ is
continuous at 0.
☺Solution:
1
1 2
lim lim L lim lim 2 ∞.
L <→A 1
<→A <→A <→A
L
n< o
Y lim lim
<→ 3
2 <→ 3 21 3
6
lim
<→ 3 21 3
6
3.
21
☺Solution:
Note that the limits is of the type
< → ∞
A ∞
0, one has to
A
A
transform the limits into the form or in order to apply L’Hopital Rule.
∞
lim
< lim < M £sO
<→A <→A ∞
L
2 ∞
lim L lim < M £sO
<→A L < <→A 3 ∞
L
L
2 2 2
lim L lim < 0.
<→A L 9 9
∞
3 <
<→A
L
MA1200 Calculus and Basic Linear Algebra I
Lecture Note 10: Application of Differentiation
Extra Example 3
Compute the limits
1 1
lim P Q
<→p tan
Since M O→ ∞ ∞ when → 0j , we need to transform the
| < < |
A
A
limits into the form or in order to apply L’Hopital Rule. Note that
1 1 tan 0
lim P Q limp P £sQ
<→p tan <→ tan 0
L
tan 1 sec
0
limp L limp P £sQ
L <→ tan sec
0
tan
<→
L
2 sec sec tan 0
limp 0.
<→ sec
sec
2 sec sec tan 110