Note and Assignment 2
Note and Assignment 2
expresses the length c of the third side of a triangle as a function of the lengths a , b
of the other two sides and of the included angle θ . The formula expressing c as a
1
pairs ( x , y ) , and suppose that with each pair is associated a unique number z,
called a function of two variables. If we denote the function by a single letter, say f ,
then we write z=f ( x , y ) and call z the value of f at ( x , y ) . Where x and y are
independent variables and z is called the dependent variable. The collection of all
the values of f is called the range of f , while the collection D of allowable pairs
( x , y ) is called the domain of f .
Functions of three or more variables are defined in a similar manner.
1
df lim
=
Δf lim
=
dx Δx →0 Δx Δx →0 Δx [
f ( x+ Δx )−f ( x )
.
]
and this is a measure of the rate of change of the value of the function f ( x ) with
respect to its variable x .
For a function of several variables, it is also useful to know how the function changes
when one, some or all of the variables change. To achieve this we define the partial
derivative of a function.
∂f
=
df
Thus, ∂ x dx
[ ] y =CONSTANT
=lim
Δx→0 [ Δx ]
f ( x+ Δx , y )−f ( x , y )
.
∂f
= [ ]
df
∂ y dy
= lim
x=CONSTANT Δy →0
[ f ( x , y +Δy )−f ( x , y )
Δy ]
The process of obtaining the partial derivatives is called partial differentiation.
Note the use of ‘curly dees’, is to distinguish between partial differentiation and
ordinary differentiation.
A concise notation is sometimes used for partial derivatives; as an alternative to the
∂f ∂f
f x= f y=
‘curly dees’, written as ∂ x and ∂y.
If we write z=f ( x , y ) then the partial derivatives may also be written as
∂ z ∂z
, or z x , z y
∂x ∂ y .
Example1:
2
∂f ∂f
Find and where f ( x , y ) is given by
∂x ∂y
a) 3 x 2+ 2 xy + y 3
b) ( y 2 + x ) e−xy
SOLUTION
a) f ( x , y )=3 x 2+ 2 xy + y 3
∂f
To find , we differentiate f ( x , y ) with respect to x regarding y as a constant.
∂x
Thus, we obtain
∂f ∂
= ( 3 x 2) + ∂ ( 2 xy ) + ∂ ( y3 )
∂x ∂x ∂x ∂x
d 2
¿3 ( x )+ 2 y d ( x ) +0
dx dx
¿ 6 x +2 y
Similarly,
∂f ∂
= ( 3 x 2 ) + ∂ ( 2 xy )+ ∂ ( y 3 )
∂y ∂y ∂y ∂y
d d
¿ 0+2 x ( y )+ ( y 3 )
dy dy
2
¿ 2 x+3 y
b) f ( x , y )=( y 2 + x ) e−xy
Using the product rule, let u=( y 2+ x ) and v=e− xy
Differentiating with respect to x taking y as a constant gives:
∂f ∂v ∂u
=u +v
∂x ∂x ∂x
∂ −xy
¿( y +x)
2
( e ) + ( e−xy ) ∂ ( y 2+ x )
∂x ∂x
¿ ( y 2 + x ) (− y e−xy ) + ( e−xy ) ( 1 )
¿ e− xy ( 1− y 3−xy )
Similarly
∂f ∂v ∂u
=u +v
∂y ∂y ∂y
∂ −xy
¿( y +x)
2
( e ) + ( e−xy ) ∂ ( y 2 + x )
∂y ∂y
3
¿ ( y 2 + x ) (−x e−xy ) + ( e−xy ) ( 2 y )
¿ e− xy ( 2 y−xy 2−x 2)
Although, partial derivatives have been introduced here in the context of function of
two variables, the concept may be readily extended to obtain the partial derivatives of
a function of as many variables as we please.
Finding partial derivatives is no more difficult than finding derivatives of functions of
one variable, with the constant multiplication, sum, product and quotient rules having
counterparts for partial derivatives.
For function of two variables, there are four different second-order partial derivatives.
( )
2
∂ ∂ f = ∂ f =f
yy
gives us ∂ y ∂ y ∂ y
2
.
For mixed second-order partial derivative, one derivative is taken with respect to
each variable. If the first partial derivative is taken with respect to x , we have
∂2 f
∂ ∂f
( )
∂ y ∂ x , abbreviated as ∂ y ∂ x or ( f x ) y=f xy . If the first partial derivative is taken
∂ ∂f
( ) ∂2 f
with respect to y , we have ∂ x ∂ y , abbreviated as ∂ x ∂ y , or ( y ) x
f =f yx
.
Example 2
Find all the second-order partial derivatives of f ( x , y )=x 2 y − y 3+ ln x .
Solution
4
First we compute all the first-order partial derivatives
∂f 1
=2 xy + and
∂x x
∂f 2 2
=x −3 y
∂y
Therefore
( )
2
∂ f ∂ ∂f ∂
=f xx = ( 2 xy + x )
−1
2
=
∂x ∂ x ∂ x ∂ x
1
¿ 2 y− 2
x
( ) ( )
2
∂ f ∂ ∂f ∂ 1
= =f xy = 2 xy + =2 x
∂ y∂ x ∂ y ∂ x ∂y x
= ( )
2
∂ f ∂ ∂f ∂ (
x −3 y )=2 x
2 2
=f = yx
∂ x∂ y ∂x ∂ y ∂x
( )
2
∂ f ∂ ∂f ∂ (
x −3 y )=−6 y
2 2
= 2
=f = yy
∂ y ∂ y ∂y ∂y
Theorem 1
∂3 f
With higher-order partial derivative, notation such as ∂x ∂ y ∂x becomes quite awkward
f
and so, xyx is usually used instead.
Assignment 1
∂f ∂f
1.) Find ∂ x and ∂ y when f(x,y )is
(a) Sin (x2 -3y)
(b) b) exy cos x
5
x
(c) 2 2
x +y
1
(d) (3 x 2+ y 2+2 xy ) 2
∂f
∂f ∧∂ f
2.) a) Find ∂ x , ∂ y if f(x,y,z) =xyz2 +3xy –z
∂z
∂z ∂z
b) Show that ∂ x + ∂ y = 1 if z=ln (e x +e y ¿ )¿
3.) The ideal gas law relating pressure, temperature and volume is
CT ∂ P ∂V
P= for some constant C . Show that T =C .
V ∂ T ∂T
4.) Suppose that the concentration of some pollutant in a river as a
function of position x and time t is given by:
P (x,t) = PO (x-ct) e-μt for constants Po, c and μ.
∂p ∂p
Show that ∂ t = -c ∂ x –μP
5.) In a chemical reaction, the temperature T , entropy S, Gibbs free
energy G and enthalpy H are related by G=H −TS. Show that
∂ ( G/T ) −H
= 2 .
∂T T
6.) For f(x,y) = Cos (xy) –x3 + y4, compute fxyy , fyxy and fxyyy
6
∂f ∂f
du= dx + dy
∂x ∂y .
We see that the differential du is an approximation to the change Δu in u=f ( x , y )
resulting from small changes Δx and Δy in the independent variables x and y, that
is
∂f ∂f ∂f ∂f
dx+ dy Δx+ Δy
Δu ¿ du = ∂x ∂y = ∂x ∂y
This extends to functions of as many variables as we please, provided that the partial
derivative exists. For example, for a function of three variables x , y , z defined by
u=f ( x , y , z ) we have
∂f ∂f ∂f
Δu≈du= dx+ dy + dz
∂x ∂y ∂z
∂f ∂f ∂f
= Δx+ Δy+ Δz
∂x ∂y ∂z
The differential of a function of several variables is often called a total differential,
emphasizing that it shows the variation of the function with respect to small changes
in all independent variables.
Example 3
The function z is defined by z ( x , y )=x 2 y −3 y . Find
a) the actual change in z , ∆ z and
b) by total differential, the approximate change in z , dz
When x=4, y=3 , ∆ x=−0.01 and ∆ y =0.02
Solution
2
z ( x , y )=x y −3 y
a) ∆ z=f ( x+ ∆ x , y + ∆ y )−f ( x , y )
7
2
z=x y−3 y
∂z
=2 xy
∂x
∂z 2
=x −3
∂y
∴ dz=( 2 xy ) dx+ ( x2 −3 ) dy
¿ ( 2 ) ( 4 )( 3 ) [ −0.01 ] + ( 42−3 ) [ 0.02 ]
¿−0.24+ 0.26
¿ 0.02
Example 4
4
πP r
In a coal processing plant the flow V of slurry along a pipe is given by: v= . If r
8 ŋl
and l both increase by 5% and P and ŋ decrease by 10% and 30% respectively, using
total differential, find the change in v and hence, approximate percentage change in V.
Solution
4
πP r
v=
8 ŋl
∴ v=f (r , l , P , ŋ)
8
4
πP r
¿ ( 0.2−0.05−0.1+ 0.3 )
8 ŋl
4
πP r
¿ 0.35
8 ŋl
4
πP r
But v=
8 ŋl
∴ dv=0.35 v
dv
ii) Thus, % change in v ¿ x 100
v
0.35 v
¿
x 100=35
v
∴The approximate % change in v is 35 %
Consider the two-variable case where z=f ( x , y ) and x and y are themselves
function of two independent variables, s and t . Then z itself is also a function of s
and t say F (s ,t ) , and we can find its derivative using a composite-function rule that
gives the rate of change of z with respect to s and t in terms of the rate of change of
z with respect to x and y and the rate of change of x and y with respect to s and t
. Thus
∂z ∂z ∂x ∂z ∂ y ∂z ∂z ∂x ∂z ∂ y
= + = +
∂s ∂x ∂s ∂ y ∂s and ∂t ∂ x ∂ t ∂ y ∂t
Example 5:
∂T ∂T
Find and when
∂r ∂θ
3 3
T ( x , y )=x −xy + y and
x=r cos θ and y=r sin θ
Solution
T =f ( x , y )
x=f ( r ,θ )∧ y=f ( r ,θ )
9
T is not expressed directly as a function of r and θ but wish to differentiate T with
respect to r and θ .
By chain rule
∂T ∂T ∂ x ∂T ∂ y
= +
∂r ∂ x ∂ r ∂ y ∂ r
∂T 2 ∂T 2
=3 x − y and =−x +3 y and
∂x ∂y
∂x ∂y
=cos θ and =sin θ
∂r ∂r
Thus,
∂T
=( 3 x − y ) cos θ+ (−x+ 3 y ) sin θ
2 2
∂r
Substituting for x=r cos θ and y=r sin θ interms of r and θ gives:
∂T
=3 r ( cos θ+sin θ )−2 r cos θ sin θ
2 3 3
∂r
Similarly
∂T ∂T ∂ x ∂T ∂ y
= +
∂ θ ∂ x ∂θ ∂ y ∂ θ
∂x ∂y
=−r sin θ and =r cos θ
∂θ ∂θ
∂T
=( 3 x − y ) (−r sinθ ) + (−x +3 y ) r cos θ
2 2
∴
∂θ
Example 6:
dH
Find when
dt
H=sin (3 x− y )
1 2
x=2 t −3 and y= t −5 t+ 1
2
2
Solution
H=f ( x , y )
x=f ( t ) and y=f ( t )
By the chain rule, noting that x and y are functions of t only, we have
dH ∂ H dx ∂ H dy
= +
dt ∂ x dt ∂ y dt
∂H
=3 cos ( 3 x− y )
∂x
10
∂H
=−cos ( 3 x− y )
∂y
dx
=4 t
dt
dy
=t−5
dt
Substituting for the derivatives involved, we have
dH
=3 [ cos ( 3 x− y ) ] 4 t− [ cos ( 3 x− y ) ] ( t−5 )
dt
¿ ( 11t+ 5 ) cos ( 3 x− y )
Example 7
The base radius r cm of a right – circular cone increases at 2 cm.sec -1 and its height h
cm at 3 cm.sec-1. Find the rate of increase in its volume, V, where r = 5 and h = 15.
1 2
[Note V = π r h]
3
Solution
V =f (r , h)
r =f ( t)
h=f (t)
∂V
=¿ ?
∂t
Using chain rule
dV ∂V dr ∂ V dh
= . + .
dt ∂ r dt ∂ h dt
∂V 2
=¿ πrh
∂r 3
∂V 1 2
= πr
∂h 3
dr
=2 cm/s
dt
dr
=2 cm/s
dt
dh
=3 cm/s
dt
dV
dt (2
) ( 13 π r ) ∙ (3 )
= πrh ∙ ( 2 ) +
3
2
11
4 2
¿πrh+ π r
3
When r =5 cm and h=15 cm
3 3
dV cm cm
=125 π =392.7
dt s s
2 2
For instance, the equation x + y −16=0 determines two functions of x :
6 x± √36 x 2 −4 ( 5 ) ( 5 x 2 −128 )
y=
10
1 1
y=
5
[ 3 x +4 √ 40−x2 ] y=
5
[ 3 x−4 √ 40−x 2 ]
or and
12
For instance
d 2
( y )=2 y dy
dx dx
d 2 3
( x y )=x 2 3 y 2 dy +2 xy 3
dx dx
Example 8
∂z ∂z
Find and for the equation:
∂x ∂y
3
z +3 xz−2 y=0
Solution
∂z
To find , note that z is a function of x , although implicitly and not expressed
∂x
explicitly, thus we use function of function where z appears and when it appears as a
product with x , we also use product rule. Because we are differentiating with respect
to x , any other variable, apart from x and z (which is a function of x ), is regarded as a
constant.
Thus, we have,
2 ∂z ∂z
3z +3 x +3 z ( 1 ) −0=0
∂x ∂x
Collecting like terms and re-arranging gives:
( 3 z 2+ 3 x ) ∂ z =−3 z
∂x
∂ z −z
∴ =
∂ x z2 + x
∂z
Likewise, for ,
∂y
2 ∂z ∂z
3z +3 x −2=0
∂y ∂y
Collecting like terms and re-arranging gives:
( 3 z 2+ 3 x ) ∂ z =2
∂y
∂z 2
∴ = 2
∂ x 3(z +x)
13
Now, we desire to obtain a general formula for obtaining the differentials of implicit
function. Consider the implicit function of two variables. The relation f ( x , y , z ) may
define any one of the variables as an implicit function of the other two. Let z be the
dependent variable. Then
∂z ∂z
dz= dx+ dy
∂x ∂y -------------------------------------------- (1)
∂f ∂f ∂f
df = dx + dy+ dz=0
∂x ∂y ∂z ------------------------------------------- (2)
Inasmuch as x and y are independent and equation (3) must hold for all values of dx
anddy , it follows that the coefficient (in parentheses) of dx and dy must individually
∂f
≠0
be zero. If ∂ z , this condition gives
df
dx Fx
∂z df
∂x = - dz = - Fz
df
dy Fy
∂z df
Similarly, ∂y = - dz = - F z
Example 9
∂z ∂z
Using the general implicit formula, find and , given that:
∂x ∂y
2 3
x y + z +sin ( xyz )=0
Solution
f ( x , y , z )=x y 2+ z3 +sin ( xyz ) =0
14
Using general implicit formula,
∂ z −F x
=
∂ x Fz
∂ z −F y
=
∂y Fz
2
F x = y + yzcos ( xyz )
2
F z =3 z + xycos ( xyz )
2
∂ z − y + yzcos ( xyz )
∴ = 2
∂ x 3 z + xycos ( xyz )
∂ z −2 xy + xzcos ( xyz )
=
∂ y 3 z 2 + xycos ( xyz )
Note that, much like implicit differentiation with two variables, implicit
differentiation with three variables yields expression for the derivatives that depend
on all three variables.
15
3.) The base radius r cm of a right – circular cone increases at 2
cm.sec-1 and its height h cm at 3 cm.sec-1. Find the rate of increase
1 2
in its volume, V, where r = 5 and h = 15. [Note V = 3 π r h ]
1
4.) The area Z of a triangle is given by Z= 2 XY Cosθ, where θ is the
angle between sides X and Y. If X is increasing at 0.4 cm/s, Y is
decreasing at 0.8 cm/s and θ is increasing at 0.2 radians/s, using
chain rule, find the rate of change of the area of the triangle when
X is 3 cm, Y is 4 cm and θ is π/6 radians (≡ 300)
16
calculate the rate at which b is changing when c=5 cm and a=3 cm .
Hint: use Pythagoras theorem to relate b to a and c .
−1
10.) If θ=kHL V 2 , where k is a constant, and there are possible
errors of ± 1 percent in measuring H , L∧V , find the maximum
possible error in the calculated value of θ.
cm
11.) The radius of a cylinder increases at the rate of 0.2 s while
cm
the height decreases at the rate of 0.5 s . Find the rate at which
the volume is changing at the instant when r =8 cm and h=12 cm
R R
In a balanced bridge circuit, R1= R . If R2 , R 3 , R 4 have
2 3
12.)
4
17
n p
15.) If k /k o=( T /T o ) . 760 , show that the change in k due to small
4
R θ
20.) Modulus of rigidity G= , where R is the radius, θ is the
L
angle of twist and L length. Using Total Differential, determine
18
the approximate change in G, and hence the approximate
percentage change in, G when R is increased by 2%, θ is reduced
by 5% and L is increased by 4%.
∂z ∂z
23.) Using the general implicit formula, find and , given that:
∂x ∂y
sin ( xyz )=x +3 z + y
24.) Given eu cos V – x = 0, using the general implicit formula,
∂ u ∂ u ,∧∂ v
find ∂ x , ∂ v ∂ x
∂z ∂z
27.) Using general implicit formula, find ∂ x and ∂ y for the
function:
19
3 2 5 2 3
x z −5 x y z=x + y
( )
2
an
28.) Given that P+ 2 ( v−nb )−nRT =0 , using the general
v
∂T ∂ P ∂V ∂T ∂P
implicit formula, find ∂ P , ∂ V and ∂T hence show that ∂ P x ∂ V
∂V
x ∂T = -1
∂z ∂z
29.) Using the general implicit formula, find
∂x
and
∂y
, given that:
20
2.1 POWER SERIES
Sequence is an ordered list of objects (or events). A series is the result of adding the
infinite sequence of numbers. The sum of the 1 st terms of the series are called partial
sums.
The basic mathematics involved in power series is a natural extension of the series of
∞
∑ an x n=a0 +a1 x +a2 x 2+a 3 x3 +.. .+a n x n+. ..
the type: n=0
When the sum Sn of a series of n terms tends to a limit asn→ ∞ , the series is
convergent. Applying d’Alembert’s ratio test to the above series, we see that it is
n+1
lim | an+1 x |< 1
n→∞ a n x n
absolutely convergent when:
Thus the series converges if
lim | a n+1 |
|x| n→∞ a n ⊲ 1
lim | an+1 |
That is, if |x| ⊲ n→∞ an
lim |an |
Denoting n→∞ a n+1 by r, we see that the series is absolutely convergent for
−r ⊲ x ⊲ r and divergent for x ⊲−r and x ⊳ r . The limit r is called the radius of
21
∞
lim un+1
∑ uk
Suppose we have a series of positive termsk =o , and also n→∞ un = l exists.
Then the series is convergent if l ⊲ 1 and divergent ifl ⊳ 1 . Ifl=1 , we are not able to
decide, using this test, whether the series converges or diverges.
Power series may be added, multiplied and divided within their common domains of
convergence (provided the denominator is nonzero within the common domain) to
give power series that are convergent, and the properties are often exploited to express
a given power series in terms of standard series band to obtain power series expansion
of complicated functions.
Four elementary power series that are of wide spread use are:
(a) Geometric series
1
1+ x = 1−x+x 2 −x 3 +. .. .. . .. .. .. . .. .. ...+(−1)n x n +. .. . .. .. . .. .. . .. .. .. ....
(−1< x <1 )
(b) The binomial Series
(1+x ) r
= 1+
(r1) x (r2) x (r1) x
+
2
+
3
+ . .. .. . .. .. +
(rn) x n
+ . .. .. . .. .. .
r
Where n
() =
r(r−1 ). . .. .. .. . .. .. . .. .. . .. .(r−n+1)
1⋅2⋅3 .. .. . .. .. . .. .. . .. .. . .. n
is the binomial coefficient.
r is any real number. When r is a positive integer, say N, the series terminates at the
N
term x . When r is not a positive integer the series does not terminate.
Setting r = -1 gives
22
−1 1 (−1) (−1) (−2 ) 2 (−1)(−2)(−3 ) 3
(1+x ) = =1+ x+ x+ x +. .. . .. .
1+x 1 1⋅2 1⋅2⋅3
which simplifies to the geometric series
1
=1−x+x 2 −x 3 +. .. . .. .. . .. ..
1+ x
Similarly,
−2 (−2) (−2) (−3 ) 2 (−2 )(−3 )(−4 ) 3
(1+x ) =1+ x+ x+ x +. .. . .. .. . .. .. . .. .
1 1⋅2 1⋅2⋅3
which simplifies to the arithmetic-geometric series
1
2
=1−2 x +3 x 2 −4 x 3 +.. .. .. . .. .. . .. .. .
(1+x )
So the geometric series may be thought of as a special case of the binomial series.
( )
n
lim 1+
x
e = n→∞ n
x
Similarly, the function e is defined by
( )
n
lim 1+
1
e = n→∞ n
e=
lim
x
n→∞
1+
1 n
+
1⋅2 n{ ()
n x n(n-1) x 2 n(n-1)(n-2) x 3
+
1⋅2⋅3 n () ()
+.. .. . .. .. . .. .. . .. .. . .. }
{ ( 1- ) ( 1- )( 1- ( )
}
1 1 2
lim n n n
e x= 1
1+ X + X + 2 3
X +. .. .. . .. .. . .. .. . .. .. . .
n→∞ 1 1⋅2 1⋅2⋅3
x x2 x 3
=1+ + + +. .. . .. .. . ..
1! 2! 3!
23
(d) The logarithmic series
x2 x3 x4 x n+1
ln (1+x )=x− + − +. .. . .. .. . .. .. .+(−1 )n +. .. . .. .. .. . .. .
2 3 4 n+1 (-1< x <1)
Example
Exercise
using Maclaurin series obtain the four elementary power series above.
∞
∑ an x n
Suppose that the power series n=0 has radius of convergencer≻0 . This means
∞
∑ an x n=a0 +a1 x +a2 x 2+a 3 x3 +a 4 x 4 .. .. . .. .. . .. ..
f ( x ) = n=0 for each (−r ,r )
∞
f ( x )= ∑ a n nx n−1=a1 +2 a2 x +3 a 3 x 2 +4 a4 x 3 +. .. .. .
'
Likewise, we get
24
∞
f ( x )= ∑ an n(n−1)x n−2 =2 a2 +3⋅2 a3 x +4⋅3 a 4 x 2 +. .. . ..
''
n=0 and
∞
f ( x )= ∑ an n (n−1 )(n−2 )x n−3=3⋅2 a3 +4⋅3⋅2 a 4 x +.. . .. .
'' '
n=0
Notice that if we substitute x=0 in each of the above derivatives all the terms of
the series drop out, except one. We get
f (0)=a0 ,
'
f ( 0)=a1 ,
''
f (0)
a 2=
= 2 !a2
''
f ( 0 )=2 a2 ∴ 2!
f n ( 0)
a n=
n! for n=0,1,2,3,........
∞
∑ an x n
Thus, we found that if n=0 is a convergence power series with radius of
convergencer >0 , then the series converges to some function f that we can write as
∞
f n (0 ) n
∞
∑
''
an x n
∑ x f ( 0)+ f ' x+ f ( 0 ) x 2 +. .. .. . .
f ( x ) =n=0 , = n=0 n ! for x ∈(-r, +r )
(0 )
= 2!
25
Instead of starting with a series, suppose that you start with an infinitely differentiable
function, f (i.e. f can be differentiated infinitely often). Then we can construct the
series
f n (0) n
n 0 n!
x
But we can do the same thing near any number a . Instead of expressing the
approximating polynomial in terms of powers of x , it will be convenient to write it in
terms of x−a . To find the formula for these polynomials, we will imitate for a
what we did at 0. That is for the power series
∞
∑ an (x −a )n 2 3 4
f ( x ) = n=0 =a 0 +a 1 ( x−a )+a 2 ( x−a ) +a3 (x −a ) +a 4 ( x−a ) +.. .. . .. .
for each x ∈( a−r , a+r ) . Obtaining f ( a ) and differentiating term by term, at x=a ,
we get for the function and derivatives
∞
f (a )= ∑ an ( x−a) n=a0
n=0 = 0! at x=a
∞
∑ an n( x−a)n−1
= a 1 = 1! a 1
'
f ( a) = n=0 at x=a
∞
∑ an n( n−1 )(x−a )n−2
= 2 a2 = 2 ! a 2 at x=a
''
f ( a ) =n=0
∞
∑ an n( n−1 )(n−2 )(x−a )n−3
= 3⋅2 a 3 = 3 !a3
'' '
f ( a ) = n=0 at x=a
26
f n ( a)=n! an
f n ( a)
a n=
n! , for n=0,1,2,........
Hence, in general if the function f has derivatives through order n at a , then the
''
f (a ) f n (a )
pn ( x ;a )=f (a )+f ' (a )( x−a)+ ( x−a)2 +. . .. .. . ..+ (x −a )n
2! n!
A Taylor polynomial for f at a is a partial sum of the Taylor series generally defined
as
n
( a)
∞
f ( x−a )n ''
f (a) f n( a )
∑ n!
'
=f ( a )+f ( a )( x−a )+
2!
( x−a )2 +. . .. .. . ..+
n!
( x −a )n +. .. ..
n=0 .
This series is called the Taylor series at x=a associated with the function f ( x )
when a=0 , the series is also called Maclaurin series associated with f ( x )
Example:
Find the Taylor polynomial expanded about x=0 (i.e. Maclaurin series) to the fifth
order [ P5 ( x ; 0 ) ] associated with the function f ( x )=sin x .
Solution
f (x)=sin x
For Taylor series expansion:
27
fˈˈˈ ( x )=−cos x fˈˈˈ ( 0 )=−cos 0=−1
iv iv
f ( x )=sin x f ( 0 ) =sin 0=0
v v
f ( x ) =cos x f ( 0 )=cos 0=1
Substituting
−0 2 −1 3 0 4 1 5
sin x ≅ 0+1 x+ x+ x + x + x
2! 3! 4! 5!
−0 2 −1 3 0 4 1 5
≅ 0+1 x + x+ x+ x + x
2x 1 3 x2 x1 4 x 3 x2 x1 5 x 4 x3 x 2x 1
1 1 5
≅ x− x 3+ x or
6 120
Compare this with sin of any number about or close to 0 (in radians)
≅ 0.5−0.020834 +0.000521
≅ 0.4797
Example 2
1
Compute the fourth-order Taylor polynomial about a=1 for the function f ( x )= .
x
Solution
For the Taylor series expansion:
'
f ( x ) ≅ f ( a ) + ( x−a ) f ( a ) +f (a)} over {2!} {left (x-a right )} ^ {2} + {fˈˈˈ(a)} over {3!} {left (x-a right )}
1 −1 1
f ( x )= ≡ x f ( 1 )= =1
x 1
−2 −1 −1
fˈ ( x )=−x ≡ 2 fˈ ( 1 )= 3 =−1
x 1
−3 2 2
fˈˈ ( x )=2 x ≡ 3 fˈˈ ( 1 )= 3 =2
x 1
28
−4 −6 ' ' ' −6
fˈˈˈ ( x )=−6 x ≡ 4
f ( 1 )= 4 =−6
x 1
iv −5 24 iv 24
f ( x )=24 x ≡ 5 f ( 1 ) = 5 =24
x 1
Substituting
2 2 6 3 24 4
f ( x ) ≅ P4 ( x ;1 )=1−( x−1 ) + ( x−1 ) − ( x−1 ) + ( x−1 )
2! 3! 4!
2 6 24
≅ P 4 ( x ; 1 )=1− ( x −1 )+ ( x −1 )2− ( x−1 )3 + ( x−1 )4
2 6 24
2 3 4
¿ 1−( x−1 )+ ( x −1 ) −( x−1 ) + ( x−1 )
1
This is valid to evaluate the value of f ( x )= for all values of x about or close to 1
x
1 1 1 1
such as , , , etc.
1.1 1.2 0.9 0.98
ASSIGNMENT
MACLAURIN & TAYLOR SERIES ASSIGNMENT
π
1. Compute the 4th order Taylor polynomial of cos x about x= . Use your
3
π
answer to evaluate cos 61 ° . Hint: 1 °= .
180
2. Use Maclaurin’s series to produce a power series for cos 4x as far as the 6th
order.
Use your answer to obtain the value of cos 0.8
3. Compute the Maclaurin series associated with the function ln ( 1+ x ) (truncate
at the 4th order), hence, use your result to estimate ln ( 1.1 )
4. Find the first three non-zero terms in the Maclaurin series of
the function e sinx .
5. Compute the Maclaurin series associated with the function ( 2x + 4 )-1
(truncate at the 3rd order), hence, use your result to estimate ( 0.2 + 4 )-1
6. Compute, up to the 4th order, the Maclaurin series associated with the function:
ln (2 + x), hence, use your result to estimate ln (2.1)
7. Compute the Taylor polynomial of the function ln x (truncate at the 4th order),
hence, use your result to estimate ln ( 1.1 )
8. i) Compute the Maclaurin series, up to the 4th order, of the function:
1
.
( 1+ x )2
1
ii) Use your answer to estimate the value of .
( 1+ 0.2 )2
29
9. Compute the given Taylor polynomial Pn ( x ; a )
1
a) P4 ( x ;1 ) for
1+ x
b) P4 ( x ; 2 ) for e
x
c) P4 ( x ; π /4 ) for cos x
10. Compute the Maclaurin Series associated with the given functions up to 3rd
order:
a) ln 1+ x
b) e− x
1
c)
√1+ x 2
d) sin x
e) e x sin x
11. Use a Taylor polynomial of degree 4 to approximate the given numbers:
a) ln ( 1.05 )
b) √ 1.2
c) e−0.1
The Remainder Rn ( x ;a )
30
is called the remainder or error in using the Taylor polynomial Pn ( x ;a ) to
approximate f ( x )
also known as Taylor’s theorem). This formula enables us to show that for f ( x ) =e
x
interval that includes the numbers a and x . Let Pn ( x ;a ) be the n Taylor polynomial
th
n+1
(C )
f n
n +1
Rn ( x ;a ) = ( n+1 )! ( x−a)
31
32
Figure 3.1: Representations of Optimal Points
A basic idea is that the optimal value of a differentiable function f ( x ) (that is, its
maximum or minimum value) generally occurs where its derivative is zero; that is,
'
where f ( x ) = 0.
As can be seen from figure 1, this is a necessary condition since at a maximum or
minimum value of the function its graph has a horizontal tangent. Figure 1 does,
however, show that these extremal values are generally only local maximum or
minimum values, corresponding to turning points on the graph. Hence, in seeking the
extremal values of a function it is also necessary to check the end points, (if any) of
the domain of the function.
'
Having determined the critical or stationary point where f ( x ) = 0, we need to be
able to determine their character or nature; that is , whether they correspond to a local
33
34
35
Figure 3.2: Slopes (gradients) of extrema points
36
'
If the value of f ( x ) , the slope of the tangent, changes from positive to
negative as we pass from left to right through a stationary point then the later
correspond to a local maximum
'
If the value of f ( x ) changes from negative to positive as we pass from left to
right through a stationary point then the later correspond to a local minimum.
'
If f ( x ) does not change sign as we pass through a stationary point then the
later corresponds to a point of inflection.
f ( a )=0 or f ( a ) ¿ 0 .
'' ''
maximum, f ( a ) ¿ 0 .
''
Summarizing, we have
''
If f ( a )=0 , we cannot assume that x=a correspond to a point of inflection, and we
''
must revert to considering the sign of x=f ( x ) on either side of the stationary point.
37
Example.
Determine the stationary points of the function
3 2
f ( x )=x −3 x +6
and using second derivative, confirm the nature of the stationary points of the
function.
Solution
The derivative is:
' 2
f x =3 x −6 x
Stationary points occur when f 'x =0 i.e,
' 2
f x =3 x −6 x=0
∴ 3 x ( x−2 )=0
3 x=0 or ( x−2 ) =0
Thus,
x=0 or x=2
The corresponding y values of the function are obtained by substituting x into y :
At x=0
3 2
f ( 0 )=0 −3 ( 0 ) +6=6 and
At x=2
3 2
f ( 2 )=2 −3 ( 2 ) +6=2
So that the stationary points of f 'x are:
( x , y ) =( 0 , 6 ) and ( 2 , 2 )
In order to investigate their nature, we use 2nd derivative test:
' 2
f x =3 x −6 x
∴ f 'x' =6 x−6
At the stationary point ( x , y ) =( 0 , 6 )
''
f (0 )=6 ( 0 ) −6=−6<0(negative)
Thus, the point ( x , y ) =( 0 , 6 ) corresponds to a local maximum
At the stationary point ( x , y ) =( 2 ,2 )
''
f (2 )=6 ( 2 )−6=6> 0( positive)
Thus, the point ( x , y ) =( 2 ,2 ) corresponds to a local minimum
The figure below shows the sketch of the function.
38
3.2 EXTREMA OF FUNCTIONS OF SEVERAL VARIABLES
Definition:
extremum of f
The idea here is the same as it was in function of single variable. That is, if
f (a , b )≥ f ( x , y ) for all ( x , y ) “near”(a , b ) , we call f ( a , b ) a local maximum.
Similarly if f (a , b) ≤ f (x , y ) for all (x , y ) near (a ,b), we call f (a , b) a local
minimum.
Much as with function of one variable, it turns out that local extrema can occur
where the first (partial) derivatives are zero or do not exist. However, having zero
first partial derivatives at a point does not by itself guarantee a local extremum.
39
Definition:
must be a critical point of f . Although local extrema can only occur at critical
points, every critical point need not correspond to a local extremum.
Proof:
notice that the function g( x )=f ( x , b) has a local maximum at x=a . This
∂f
' ' (a , b)
'
implies either g (a )=0 or g (a ) doesn’t exist. Note that g (a ) = ∂ x .
'
Likewise, holding x constant at x=a , observe that the function h ( y )=f (a , y )
' '
has a local maximum at y=b . It follows that h (b )=0 or h (b ) doesn’t exist.
∂f
' (a , b )
Note that h (b ) = ∂ y . Combining these two observations, we have that each
∂f ∂f
(a , b) (a , b )
of ∂ x and ∂ y equals zero or doesn’t exist. We can then conclude that
(a , b ) must be a critical point of f . A nearly identical argument shows that if
f ( x , y ) has a local minimum at (a , b ) then (a , b ) must be a critical point of f .
When looking for local extrema, you must first find all the critical points. Then
you determine the critical location is a local maximum, local minimum or neither,
since local extrema can only occur at critical points. To determine the nature of
40
the critical point of function of several variables, we use a generalisation of the
second derivative test for function of a single variable.
relative minimum at .
relative maximum at
When a function along some path through has a maximum value while
along other paths through the same point has a minimum value. Such a point is
called saddle point.
41
Figure3.3: Representations of saddle point
42
Definition:
for which .
or both and .
In summary we have:
Example
1) Locate and classify all the critical points for the function:
f ( x , y ) ¿ 2 x 2− y 3−2 xy
Solution:
f ( x , y ) ¿ 2 x 2− y 3−2 xy
43
We first compute the 1st partial derivatives and then equate them to zero and solve the
simultaneous equations to obtain the critical points:
At local extrema ,
f x =f y =0 ,
f x =4 x−2 y=0 --------I
2
f y =−3 y −2 x=0 ---------II
¿I
y=2 x ------- III
Substitute y=2 x into II
2
−3 ( 2 x ) −2 x=0
2
−12 x −2 x=0
∴−2 x ( 6 x +1 ) =0
−1
x=0∨x=
6
−1
(Note common mistake from students: x= alone does not give complete answer)
6
−1 1
At point(x , y )=( ,− )
6 3
44
D ( −16 ,− 31 )=−24 ( −13 )−4
¿4
D ( −16 ,− 31 )=+ ve .
f ( ,− )=4
−1 1
xx
6 3
f xx =+ ve .
The point(x , y )=
6 (
−1 1
)
,− is therefore a local minimum point
3
3) What are the values and types of the critical points, if any, of
3 3
f (x , y )=x + y −3 xy−7 ?
45
Theorem:
Now, we shall explain what is meant by a bounded and closed set of points in the
-plane. A set of points (i.e, a collection of points) is said to be bounded if it is
entirely contained within some square in the plane. For example, the set of all
close as one pleases to . For example, the set of points such that
closed. Again the set of points such that is bounded but not
closed.
Example
46
Solution
In this particular example it is easy to eliminate one of the two variables and .
we can now apply the techniques used for functions of one variable to obtain the
extremum value. Differentiating gives:
and
minimum, at , .
In example above we were fortunate in being able to use the constraint equation to
eliminate one of the variables. In practise, however, it is often difficult, or even
impossible to do this, and we have to retain all the original variables.
More specifically, the method of Langrange multiplier uses the fact that any
47
where is a new variable called Langrange multiplier. To find the critical point
of , compute the partial derivatives:
or
or
or
Proof
Although a rigorous explanation of the proof of Lagrange multiplier is beyond the
scope of this course, there is a rather simple geometric argument that is quite
convincing. This argument depends on the fact that for the level curve
method) is given by
find the highest level curve of that intersects the constraint curve .
This critical intersection will occur at a point where the constraint curve is tangent
48
or equivalently,
and
and
The third Lagrange equation is simply a statement of the fact that the
point of tangency actually lies on the constraint curve
49