0% found this document useful (0 votes)
229 views

GEC220 Note Functions of Several Variables PDF

The document discusses partial differentiation of functions with multiple variables. It defines partial derivatives as the derivative of a function with respect to one variable, holding all other variables constant. This allows determining how changing one variable affects the overall function while keeping other variables fixed. Higher order partial derivatives involve taking successive derivatives, and mixed partial derivatives take derivatives in different orders with respect to different variables. As long as the partial derivatives are continuous, the order of differentiation does not matter. Partial differentiation is useful in engineering and science for understanding multivariate rate of change.

Uploaded by

Abiola Ajayi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
229 views

GEC220 Note Functions of Several Variables PDF

The document discusses partial differentiation of functions with multiple variables. It defines partial derivatives as the derivative of a function with respect to one variable, holding all other variables constant. This allows determining how changing one variable affects the overall function while keeping other variables fixed. Higher order partial derivatives involve taking successive derivatives, and mixed partial derivatives take derivatives in different orders with respect to different variables. As long as the partial derivatives are continuous, the order of differentiation does not matter. Partial differentiation is useful in engineering and science for understanding multivariate rate of change.

Uploaded by

Abiola Ajayi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 47

§1.

0 PARTIAL DIFFERENTIATION

1.1 FUNCTIONS OF SEVERAL VARIABLES

Functions of several variables occur frequently in Engineering. For example, if we have


a right circular cone of altitude h and radius of base r , its volume and lateral surface

area are, respectively V  r 2 h and S  r r 2  h 2 .
3
Here V and S are functions of the two variables r, h . Also the law of cosine 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 function of three


variables is c  a 2  b 2  2ab cos 
1
2
.

A function of two variables is defined as follows. Let D be a collection of number pairs


( x, y ) , and suppose that with each pair ( x, y ) is associated a unique number z , thus

giving us a certain collection of a number triples ( x, y, z ) . This collection is 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.2 PARTIAL DERVATIVES


The ideas of calculus apply to functions of several variables as well as to functions of
one variable. Of course, because more variables are involved, the notation and technical
detail are more complicated but the essential ideas are the same.

For function of one variable, f (x ) , the derivative is defined by

df lim f lim  f  x  x   f  x  
  .
dx x  0 x x  0  x 

1
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.

First, we consider a function f ( x, y ) of the two variables x and y . The partial


f
derivative, , of f ( x, y ) with respect to x is its derivative with respect to x treating
x
the values of y as being constant.

f  df  lim  f x  x, y   f x, y 


Thus,    .
x  dx  y CONSTANT x  0  x 

f
Likewise, the partial derivative, , of f ( x, y ) with respect to y is its derivative with
y
respect to y treating the value of x as being constant, so that:

f  df  lim  f x, y  y   f x, y 


  
y  dy  x CONSTANT y  0  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
‘curly dees’, written as f x  and f y  .
x 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:
𝜕𝑓 𝜕𝑓
Find 𝜕𝑥 and 𝜕𝑦 where 𝑓(𝑥, 𝑦) is given by

a) 3𝑥 2 + 2𝑥𝑦 + 𝑦 3
b) (𝑦 2 + 𝑥) 𝑒 −𝑥𝑦

2
SOLUTION
a) 𝑓(𝑥, 𝑦) = 3𝑥 2 + 2𝑥𝑦 + 𝑦 3
𝜕𝑓
To find 𝜕𝑥, we differentiate 𝑓(𝑥, 𝑦) with respect to 𝑥 regarding 𝑦 as a constant.

Thus, we obtain
𝜕𝑓 𝜕 𝜕 𝜕
= 𝜕𝑥 (3𝑥 2 ) + 𝜕𝑥 (2𝑥𝑦) + 𝜕𝑥 (𝑦 3 )
𝜕𝑥
𝑑 𝑑
= 3 𝑑𝑥 (𝑥 2 ) + 2𝑦 𝑑𝑥 (𝑥) + 0

= 6𝑥 + 2𝑦
Similarly,
𝜕𝑓 𝜕 𝜕 𝜕
= 𝜕𝑦 (3𝑥 2 ) + 𝜕𝑦 (2𝑥𝑦) + 𝜕𝑦 (𝑦 3 )
𝜕𝑦
𝑑 𝑑
= 0 + 2𝑥 𝑑𝑦 (𝑦) + 𝑑𝑦 (𝑦 3 )

= 2𝑥 + 3𝑦 2

b) 𝑓(𝑥, 𝑦) = (𝑦 2 + 𝑥) 𝑒 −𝑥𝑦
Using the product rule, let 𝑢 = (𝑦 2 + 𝑥) and 𝑣 = 𝑒 −𝑥𝑦
Differentiating with respect to 𝑥 taking 𝑦 as a constant gives:
𝜕𝑓 𝜕𝑣 𝜕𝑢
= 𝑢 𝜕𝑥 + 𝑣 𝜕𝑥
𝜕𝑥
𝜕 𝜕
= (𝑦 2 + 𝑥) 𝜕𝑥 (𝑒 −𝑥𝑦 ) + (𝑒 −𝑥𝑦 ) 𝜕𝑥 (𝑦 2 + 𝑥)

= (𝑦 2 + 𝑥)(−𝑦𝑒 −𝑥𝑦 ) + (𝑒 −𝑥𝑦 )(1)


= 𝑒 −𝑥𝑦 (1 − 𝑦 3 − 𝑥𝑦)
Similarly
𝜕𝑓 𝜕𝑣 𝜕𝑢
= 𝑢 𝜕𝑦 + 𝑣 𝜕𝑦
𝜕𝑦
𝜕 𝜕
= (𝑦 2 + 𝑥) 𝜕𝑦 (𝑒 −𝑥𝑦 ) + (𝑒 −𝑥𝑦 ) 𝜕𝑦 (𝑦 2 + 𝑥)

= (𝑦 2 + 𝑥)(−𝑥𝑒 −𝑥𝑦 ) + (𝑒 −𝑥𝑦 )(2𝑦)


= 𝑒 −𝑥𝑦 (2𝑦 − 𝑥𝑦 2 − 𝑥 2 )

3
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.

1.3 HIGHER-ORDER PARTIAL DERIVATIVE

For function of two variables, there are four different second-order partial derivatives.
f   f  2 f
The partial derivative with respect to x of is   , usually abbreviated as
x x  x  x 2
or f xx . Similarly, taking two successful partial derivatives with respect to y gives us

  f   2 f
   f yy .
y  y  y 2
For mixed second-order partial derivative, one derivative is taken with respect to
  f 
each variable. If the first partial derivative is taken with respect to x , we have  
y  x 

2 f
, abbreviated as or  f x y  f xy . If the first partial derivative is taken with respect
yx

  f  2 f
to y , we have   , abbreviated as  
, or f y  f yx .
x  y  xy x

Example 2
Find all the second-order partial derivatives of 𝑓(𝑥, 𝑦) = 𝑥 2 𝑦 − 𝑦 3 + ln 𝑥.
Solution
First we compute all the first-order partial derivatives
𝜕𝑓 1
= 2𝑥𝑦 + 𝑥 and
𝜕𝑥
𝜕𝑓
= 𝑥 2 − 3𝑦 2
𝜕𝑦

Therefore
𝜕2 𝑓 𝜕 𝜕𝑓 𝜕
= 𝜕𝑥 (𝜕𝑥 ) = 𝑓𝑥𝑥 = 𝜕𝑥 (2𝑥𝑦 + 𝑥 −1 )
𝜕𝑥 2
1
= 2𝑦 − 𝑥 2

4
𝜕2 𝑓 𝜕 𝜕𝑓 𝜕 1
= 𝜕𝑦 (𝜕𝑥 ) = 𝑓𝑥𝑦 = 𝜕𝑦 (2𝑥𝑦 + 𝑥 ) = 2𝑥
𝜕𝑦𝜕𝑥

𝜕2 𝑓 𝜕 𝜕𝑓 𝜕
= 𝜕𝑥 (𝜕𝑦) = 𝑓𝑦𝑥 = 𝜕𝑥 (𝑥 2 − 3𝑦 2 ) = 2𝑥
𝜕𝑥𝜕𝑦

𝜕2 𝑓 𝜕 𝜕𝑓 𝜕
= 𝜕𝑦 (𝜕𝑦) = 𝑓𝑦𝑦 = 𝜕𝑦 (𝑥 2 − 3𝑦 2 ) = −6𝑦
𝜕𝑦 2

Theorem 1
If f xy ( x, y ) and f yx ( x, y ) are continuous on an open set containing (a, b) , then

f xy (a, b)  f yx (a, b) .

Third -, fourth -, or even higher-order partial derivative can be taken. Theorem 1 can
be extended to show that as long as the partial derivative are all continuous in an open
set, the order (arrangement) of differentiation of higher mixed-order derivative does not
matter. Thus 𝑓𝑥𝑥𝑦 = 𝑓𝑥𝑦𝑥 = 𝑓𝑦𝑥𝑥 or 𝑓𝑥𝑦𝑦 = 𝑓𝑦𝑥𝑦 = 𝑓𝑦𝑦𝑥 as can be seen in the example
2 above.
3 f
With higher-order partial derivative, notation such as becomes quite awkward
xyx
and so, f xyx is usually used instead.

Assignment 1
𝜕𝑓 𝜕𝑓
1.) Find and when f(x,y )is
𝜕𝑥 𝜕𝑦
(a) Sin (x2 -3y)
(b) b) exy cos x
𝑥
(c) 2 2
𝑥 +𝑦
1⁄
(d) (3𝑥 2 + 𝑦 2 + 2𝑥𝑦) 2

𝜕𝑓 𝜕𝑓 𝜕𝑓
2.) a) Find , and if f(x,y,z) =xyz2 +3xy –z
𝜕𝑥 𝜕𝑦 𝜕𝑧
𝜕𝑧 𝜕𝑧
b) Show that + = 1 if 𝑧 = 𝑙𝑛(𝑒 𝑥 + 𝑒 𝑦 )
𝜕𝑥 𝜕𝑦
3.) The ideal gas law relating pressure, temperature and volume is 𝑃 =
𝐶𝑇 𝜕𝑃 𝜕𝑉
for some constant 𝐶. Show that 𝑇 = 𝐶.
𝑉 𝜕𝑇 𝜕𝑇
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 μ.

5
𝜕𝑝 𝜕𝑝
Show that = -c –μP
𝜕𝑡 𝜕𝑥
5.) In a chemical reaction, the temperature 𝑇, entropy 𝑆, Gibbs free
energy G and enthalpy 𝐻 are related by 𝐺 = 𝐻 − 𝑇𝑆. Show that
𝜕(𝐺 ⁄𝑇 ) 𝐻
=− .
𝜕𝑇 𝑇2
6.) For f(x,y) = Cos (xy) –x3 + y4, compute fxyy , fyxy and fxyyy

1.4 TOTAL DIFFERENTIAL

Consider a function u  f ( x, y ) of two variables x and y . Then the corresponding


increment in u is given by u  f ( x  x, y  y )  f ( x, y ) .
This can be rewritten as:
u   f ( x  x, y  y)  f ( x, y  y)   f ( x, y  y)  f ( x, y) .
Dividing the first bracketed term by x and the second by y , gives:

f ( x  x, y  y )  f ( x, y  y ) f ( x, y  y )  f ( x, y )
x  y
x y
From the definition of the partial derivative we may approximate this expression by
f f
u  x  y .
x y
This could be written as
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
u  du  dx  dy  x  y
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

6
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 𝑧 is defined by 𝑧(𝑥, 𝑦) = 𝑥 2 𝑦 − 3𝑦. Find
a) the actual change in 𝑧, ∆𝑧 and
b) by total differential, the approximate change in 𝑧, 𝑑𝑧
When 𝑥 = 4, 𝑦 = 3, ∆𝑥 = −0.01 and ∆𝑦 = 0.02
Solution
𝑧(𝑥, 𝑦) = 𝑥 2 𝑦 − 3𝑦
a) ∆𝑧 = 𝑓(𝑥 + ∆𝑥, 𝑦 + ∆𝑦) − 𝑓(𝑥, 𝑦)
= [(𝑥 + ∆𝑥)2 (𝑦 + ∆𝑦) − 3(𝑦 + ∆𝑦)] − 3[(𝑥 2 𝑦 − 3)]
= [(4 − 0.01)2 (3 + 0.02) − 3(3 + 0.02)] − [42 (3) − 3(3)]
= [(3.99)2 (3.02) − 3(3.02)] − [48 − 9]
= 0.018702
b) For total differential 𝑧 = 𝑓(𝑥, 𝑦),
𝜕𝑧 𝜕𝑧
𝑑𝑧 = 𝜕𝑥 𝑑𝑥 + 𝑑𝑦
𝜕𝑦

𝑧 = 𝑥 2 𝑦 − 3𝑦
𝜕𝑧
= 2𝑥𝑦
𝜕𝑥
𝜕𝑧
= 𝑥2 − 3
𝜕𝑦

∴ 𝑑𝑧 = (2𝑥𝑦) 𝑑𝑥 + (𝑥 2 − 3) 𝑑𝑦
= (2)(4)(3)[−0.01] + (42 − 3)[0.02]
= −0.24 + 0.26
= 0.02
Example 4
πPr4
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
πPr4
v= 8ŋl
∴ v = f (r, l, P, ŋ)

Using total differential

7
∂v ∂v ∂v ∂v
dv = dr + dl + ∂P dP + ∂ŋ dŋ
∂r ∂l

∂v 4πPr3
=
∂r 8ŋl
∂v πPr4
= −
∂l 8ŋl2
∂v πr4
=
∂P 8ŋl
∂v πPr4
= −
∂ŋ 8ŋ2 l
d(r) = 0.05 r
d(l) = 0.05 l
d(P) = −0.1 P
d (ŋ) = −0.3 ŋ
Hence, the total differential equation becomes:

4πPr3 πPr4 πr4 πPr4


dv = (0.05 r) − (0.05 l) + (−0.1 P) − (−0.3 ŋ)
8ŋl 8ŋl2 8ŋl 8ŋ2 l
πPr4 πPr4 πPr4 πPr4
∴ dv = 4(0.05) − 0.05 − 0.1 + 0.3
8ŋl 8ŋl 8ŋl 8ŋl
πPr4
= (0.2 − 0.05 − 0.1 + 0.3) 8ŋl
πPr4
= 0.35 8ŋl
πPr4
But v = 8ŋl
∴ dv = 0.35 v

dv
ii) Thus, % change in v = x 100
v

0.35 v
= v x100 = 35
∴ The approximate % change in v is 35 %

1.5 CHAIN RULE


The rules and results of ordinary differentiation are carried over to partial
differentiation. In particular, the composite-function rule still hold, but in a modified
form.
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

8
z z x z y z z x z y
  and  
s x s y s t x t y t

Example 5:
𝜕𝑇 𝜕𝑇
Find 𝜕𝑟 and 𝜕𝜃 when

𝑇(𝑥, 𝑦) = 𝑥 3 − 𝑥𝑦 + 𝑦 3 and
𝑥 = 𝑟 cos 𝜃 and 𝑦 = 𝑟 sin 𝜃
Solution
𝑇 = 𝑓(𝑥, 𝑦)
𝑥 = 𝑓(𝑟, 𝜃) 𝑎𝑛𝑑 𝑦 = 𝑓(𝑟, 𝜃)
𝑇 is not expressed directly as a function of 𝑟 and 𝜃 but wish to differentiate 𝑇 with
respect to 𝑟 and 𝜃.
By chain rule
𝜕𝑇 𝜕𝑇 𝜕𝑥 𝜕𝑇 𝜕𝑦
= 𝜕𝑥 𝜕𝑟 + 𝜕𝑦 𝜕𝑟
𝜕𝑟
𝜕𝑇 𝜕𝑇
= 3𝑥 2 − 𝑦 and = −𝑥 + 3𝑦 2 and
𝜕𝑥 𝜕𝑦
𝜕𝑥 𝜕𝑦
= cos 𝜃 and 𝜕𝑟 = sin 𝜃
𝜕𝑟

Thus,
𝜕𝑇
= (3𝑥 2 − 𝑦) cos 𝜃 + (−𝑥 + 3𝑦 2 ) sin 𝜃
𝜕𝑟

Substituting for 𝑥 = 𝑟 cos 𝜃 and 𝑦 = 𝑟 sin 𝜃 interms of 𝑟 and 𝜃 gives:


𝜕𝑇
= 3𝑟 2 (cos3 𝜃 + sin3 𝜃) − 2𝑟 cos 𝜃 sin 𝜃
𝜕𝑟

Similarly
𝜕𝑇 𝜕𝑇 𝜕𝑥 𝜕𝑇 𝜕𝑦
= 𝜕𝑥 𝜕𝜃 + 𝜕𝑦 𝜕𝜃
𝜕𝜃
𝜕𝑥 𝜕𝑦
= −𝑟 sin 𝜃 and = 𝑟 cos 𝜃
𝜕𝜃 𝜕𝜃
𝜕𝑇
∴ 𝜕𝜃 = (3𝑥 2 − 𝑦)(−𝑟 sin 𝜃) + (−𝑥 + 3𝑦 2 )𝑟 cos 𝜃

Example 6:
𝑑𝐻
Find when
𝑑𝑡

𝐻 = sin(3𝑥 − 𝑦)
1
𝑥 = 2𝑡 2 − 3 and 𝑦 = 2 𝑡 2 − 5𝑡 + 1

9
Solution
𝐻 = 𝑓(𝑥, 𝑦)
𝑥 = 𝑓(𝑡) and 𝑦 = 𝑓(𝑡)
By the chain rule, noting that 𝑥 and 𝑦 are functions of 𝑡 only, we have
𝑑𝐻 𝜕𝐻 𝑑𝑥 𝜕𝐻 𝑑𝑦
= + 𝜕𝑦
𝑑𝑡 𝜕𝑥 𝑑𝑡 𝑑𝑡
𝜕𝐻
= 3 cos(3𝑥 − 𝑦)
𝜕𝑥
𝜕𝐻
= − cos(3𝑥 − 𝑦)
𝜕𝑦
𝑑𝑥
= 4𝑡
𝑑𝑡
𝑑𝑦
=𝑡−5
𝑑𝑡

Substituting for the derivatives involved, we have


𝑑𝐻
= 3[cos(3𝑥 − 𝑦)]4𝑡 − [cos(3𝑥 − 𝑦)](𝑡 − 5)
𝑑𝑡

= (11𝑡 + 5) cos(3𝑥 − 𝑦)
11
= (11𝑡 + 5) cos ( 2 𝑡 2 + 5𝑡 − 10)

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
[Note V = 3 π r 2 h]

Solution
𝑉 = 𝑓 (𝑟, ℎ)
𝑟 = 𝑓 (𝑡)
ℎ = 𝑓 (𝑡)
𝜕𝑉
=?
𝜕𝑡
Using chain rule
𝑑𝑉 𝜕𝑉 𝑑𝑟 𝜕𝑉 𝑑ℎ
= . 𝑑𝑡 + . 𝑑𝑡
𝑑𝑡 𝜕𝑟 𝜕ℎ
𝜕𝑉 2
= 3 𝜋𝑟ℎ
𝜕𝑟
𝜕𝑉 1
= 𝜋 𝑟2
𝜕ℎ 3
𝑑𝑟
= 2 𝑐𝑚/𝑠
𝑑𝑡
𝑑𝑟
= 2 𝑐𝑚/𝑠
𝑑𝑡
𝑑ℎ
= 3 𝑐𝑚/𝑠
𝑑𝑡

10
𝑑𝑉 2 1
= (3 𝜋𝑟ℎ) ∙ (2) + (3 𝜋 𝑟 2 ) ∙ (3)
𝑑𝑡
4
= 3 𝜋𝑟ℎ + 𝜋 𝑟 2
When 𝑟 = 5𝑐𝑚 and ℎ = 15 𝑐𝑚
𝑑𝑉 𝑐𝑚3 𝑐𝑚3
= 125 𝜋 = 392.7
𝑑𝑡 𝑠 𝑠

1.6 IMPLICIT DIFFERENTIATION


For a function of single variable, sometimes f is defined as a function of x , not by
giving the value of y explicitly in terms of x , but by giving an equation in x and y .
Such an equation may not determine y uniquely in terms of x , but in the situations we
commonly meet, the equation determines one or more distinct functions.

For instance, the equation x 2  y 2  16  0 determines two functions of x :

y  16  x 2 and y   16  x 2

Also, the equation 5 x 2  6 xy  5 y 2  128 determine two function of x , which we find


by solving for y by the quadratic formula:

y

6 x  36x 2  45 5 x 2  128 
10

or y 
1
5
3 x  4 40  x 2  and y
1
5
3 x  4 40  x 2 

When an equation in x and y determines y as a function of x (or as one of several


functions of x ), but when we do not have a direct explicit formula of y in terms of x
we say that y is defined implicitly as a function of x by the equation.

When y is a differentiable function of x which is defined implicitly by an equation of


dy
a suitable type, we can calculate the derivative directly from the equation without
dx
solving for y explicitly. The derivative will usually be expressed in terms of both x
dy
and y rather than in terms of x alone. In finding we use the composite function
dx
(chain) rule and regard y as a function of x whenever it appears.

11
For instance
d 2
dx
 
y  2y
dy
dx

dx

d 2 3

x y  x2 3y 2
dy
dx
 2 xy3

Example 8
𝜕𝑧 𝜕𝑧
Find 𝜕𝑥 and 𝜕𝑦 for the equation:

𝑧 3 + 3𝑥𝑧 − 2𝑦 = 0
Solution
𝜕𝑧
To find , note that 𝑧 is a function of 𝑥, although implicitly and not expressed
𝜕𝑥

explicitly, thus we use function of function where 𝑧 appears and when it appears as a
product with 𝑥, we also use product rule. Because we are differentiating with respect to
𝑥, any other variable, apart from 𝑥 and 𝑧 (which is a function of 𝑥), is regarded as a
constant.
Thus, we have,
𝜕𝑧 𝜕𝑧
3𝑧 2 + 3𝑥 + 3𝑧(1) − 0 = 0
𝜕𝑥 𝜕𝑥
Collecting like terms and re-arranging gives:
𝜕𝑧
(3𝑧 2 + 3𝑥) = −3𝑧
𝜕𝑥
𝜕𝑧 𝑧
∴ =−
𝜕𝑥 𝑧 2 +𝑥
𝜕𝑧
Likewise, for 𝜕𝑦,

𝜕𝑧 𝜕𝑧
3𝑧 2 + 3𝑥 −2=0
𝜕𝑦 𝜕𝑦

Collecting like terms and re-arranging gives:


𝜕𝑧
(3𝑧 2 + 3𝑥) =2
𝜕𝑦
𝜕𝑧 2
∴ =
𝜕𝑥 3(𝑧 2 +𝑥)

12
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 -------------------------------------------- (1)
x y

f f f
df  dx  dy  dz  0 ------------------------------------------- (2)
x y z

Substituting dz in equation (1) into equation (2) gives

 f f z   f f z 
  dx    dy  0 ----------------------------------------- (3)
 x z x   y z y 

Inasmuch as x and y are independent and equation (3) must hold for all values of dx
and dy , it follows that the coefficient (in parentheses) of dx and dy must individually
f
be zero. If  0 , this condition gives
z
df
z dx Fx
 - =
x df Fz
dz
df
z dy Fy
Similarly, = - =
y df Fz
dz

Example 9
𝜕𝑧 𝜕𝑧
Using the general implicit formula, find and 𝜕𝑦, given that:
𝜕𝑥

𝑥𝑦 2 + 𝑧 3 + sin(𝑥𝑦𝑧) = 0
Solution
𝑓(𝑥, 𝑦, 𝑧) = 𝑥𝑦 2 + 𝑧 3 + sin(𝑥𝑦𝑧) = 0
Using general implicit formula,

13
𝜕𝑧 𝐹𝑥
= −
𝜕𝑥 𝐹𝑧

𝜕𝑧 𝐹𝑦
= −
𝜕𝑦 𝐹𝑧

𝐹𝑥 = 𝑦 2 + yzcos(𝑥𝑦𝑧)

𝐹𝑦 = 2𝑥𝑦 + xzcos(𝑥𝑦𝑧)

𝐹𝑧 = 3𝑧 2 + xycos(𝑥𝑦𝑧)

𝜕𝑧 𝑦 2 +yzcos(𝑥𝑦𝑧)
∴ = −
𝜕𝑥 3𝑧 2 +xycos(𝑥𝑦𝑧)

𝜕𝑧 2𝑥𝑦 + xzcos(𝑥𝑦𝑧)
= − 2
𝜕𝑦 3𝑧 + xycos(𝑥𝑦𝑧)

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.

GEC 220 ASSIGNMENT 2


1.) Find the total differential of f(x,y)
a) f(x,y) = y ex + sin x
b) f(x,y) = √𝑥 + 𝑦

2.) In a coal processing plant the flow V of slurry along a pipe is given
by:
𝜋𝑃𝑟 4
𝑣= . If r and l both increase by 5% and P and ŋ decrease by
8ŋ𝑙

10% and 30% respectively, using total differential, find the change
in v and hence, approximate percentage change in V.

14
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
in its volume, V, where r = 5 and h = 15. [Note V = 𝜋 𝑟 2 ℎ]
3
1
4.) The area Z of a triangle is given by 𝑍 = 𝑋𝑌 𝐶𝑜𝑠𝜃, where θ is the
2
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)

5.) An equation for heat generated H is H = i2Rt. Using total


differential, determine the percentage error in the calculated
value of H if the error in measuring current i is +2%, the error
in measuring resistance R is -3% and the error in measuring
time t is +1%.

6.) The volume V of a liquid of viscosity coefficient η delivered after


time t when passed through a tube of length L and diameter d
𝑝𝑑4 𝑡
by a pressure p is given by 𝑉 = . If the errors in V, p and
128𝜂𝐿
L are 1%, 2% and 3% respectively, using total differential,
determine the error in η. Assume there in no error in t and d.

𝐸2
7.) The power 𝑃 dissipated in a resistor is given by 𝑃 = . If 𝐸 =
𝑅

200 𝑣𝑜𝑙𝑡𝑠 and 𝑅 = 8 𝑜ℎ𝑚𝑠, find the change in 𝑃 resulting from a


drop of 5 𝑣𝑜𝑙𝑡𝑠 in 𝐸 and an increase of 0.2 𝑜ℎ𝑚𝑠 in 𝑅.

8.) The radius, 𝑟, of a cylindrical can is reduced by 20 % and its height,


ℎ, increased by 80 %. Using total differential, determine the change
in volume when (𝑟, ℎ) = (1, 5).

9.) In a right-angled triangle, 𝒄 denotes the hypotenuse, while 𝒂 and 𝒃


represent its other two sides. If 𝒄 is increasing at the rate of 2 𝑐𝑚/𝑠
while 𝒂 is decreasing at the rate of 3 𝑐𝑚/𝑠. Using chain rule,

15
calculate the rate at which 𝒃 is changing when 𝒄 = 5 𝑐𝑚 and 𝒂 =
3 𝑐𝑚. Hint: use Pythagoras theorem to relate 𝒃 to 𝒂 and 𝒄.

1
10.) If 𝜃 = 𝑘𝐻𝐿𝑉 −2 , where 𝑘 is a constant, and there are possible
errors of ± 1 𝑝𝑒𝑟𝑐𝑒𝑛𝑡 in measuring 𝐻, 𝐿 𝑎𝑛𝑑 𝑉, find the maximum
possible error in the calculated value of 𝜃.

𝑐𝑚
11.) The radius of a cylinder increases at the rate of 0.2 while
𝑠
𝑐𝑚
the height decreases at the rate of 0.5 . Find the rate at which
𝑠
the volume is changing at the instant when 𝑟 = 8 𝑐𝑚 and ℎ =
12 𝑐𝑚

𝑅2 𝑅3
12.) In a balanced bridge circuit, 𝑅1 = . If 𝑅2 , 𝑅3 , 𝑅4 have
𝑅4
known tolerances of ± 𝑥 𝑝𝑒𝑟𝑐𝑒𝑛𝑡, ± 𝑦 𝑝𝑒𝑟𝑐𝑒𝑛𝑡, ± 𝑧 𝑝𝑒𝑟𝑐𝑒𝑛𝑡
respectively, determine the maximum percentage error in 𝑅1 ,
expressed in terms of 𝑥, 𝑦 𝑎𝑛𝑑 𝑧.
13.) The deflection 𝑦 at the centre of a circular plate suspended at
𝑘𝑤𝑑 4
the edge and uniformly loaded is given by 𝑦 = , where 𝑤 =
𝑡3

𝑡𝑜𝑡𝑎𝑙 𝑙𝑜𝑎𝑑, 𝑑 = 𝑑𝑖𝑎𝑚𝑒𝑡𝑒𝑟 𝑜𝑓 𝑝𝑙𝑎𝑡𝑒, 𝑡=


𝑡ℎ𝑖𝑐𝑘𝑛𝑒𝑠𝑠 𝑎𝑛𝑑 𝑘 𝑖𝑠 𝑎 𝑐𝑜𝑛𝑠𝑡𝑎𝑛𝑡. Calculate the approximate
percentage change in 𝑦 if 𝑤 is increased by 3 percent, 𝑑 is decreased
by 2 ½ and 𝑡 is increased by 4 𝑝𝑒𝑟𝑐𝑒𝑛𝑡.

14.) The coefficient of rigidity (𝑛) of a wire of length (𝐿) and


𝐴𝐿
uniform diameter (𝑑) is given by 𝑛 = , where 𝐴 is a constant. If
𝑑4

errors of ±0.25 percent and ±1 percent are possible in measuring


𝐿 and 𝑑 respectively, determine the maximum percentage error in
the calculated value of 𝑛.

16
𝑝
15.) If 𝑘⁄𝑘𝑜 = (𝑇⁄𝑇𝑜 )𝑛 . , show that the change in 𝑘 due to
760

small changes of 𝑎 𝑝𝑒𝑟𝑐𝑒𝑛𝑡 in 𝑇 and 𝑏 𝑝𝑒𝑟𝑐𝑒𝑛𝑡 in 𝑝 is


approximately (𝑛𝑎 + 𝑏) percent.

16.) A rectangular box has sides of length x cm, y cm and z


cm. Sides x and z are expanding at rates of 0.3 cm/s and 0.5
cm/s respectively and side y is contracting at a rate of 0.2 cm/s.
Using chain rule, determine the rate of change of volume when
x is 3 cm, y is 1.5 cm and z is 6 cm.

17.) The rate of flow of gas in a pipe, 𝑣 is given by:

𝑣 = 𝐶 𝑑 1⁄2 𝑇 −5⁄6
where 𝐶 is a constant, 𝑑 is the diameter of the pipe and 𝑇 is the
thermodynamic temperature of the gas. When determining the rate
of flow experimentally, 𝑑 is measured and subsequently found to be
in error by +1.4% of 𝑑, and 𝑇 has an error of –1.8% of 𝑇.
(i) Using total differential, determine the error (change) in the
rate of flow, 𝑣, based on the measured values. Leave your
answer in terms of 𝑣.
(ii) Hence, determine the percentage error in the rate of flow.

18.) From the ideal gas law PV = nRT , where nR is constant,


a) Using total differential, determine an expression for small
change in pressure, dP. b) Hence, estimate the percentage change
in pressure, P, if the temperature, T , is increased by 3% and the
volume,V , is decreased by 4%.

19.) The total surface area S of a closed cone of base radius r cm


and perpendicular height h cm is given by: 𝑆 = 𝜋 𝑟 2 +
𝜋𝑟 √(𝑟 2 + ℎ2 ). If r and h are each increasing at the rate of 0.25
cm sec-1, find the rate at which S is increasing at the instant when r
=3 and h = 4.

17
𝑅4𝜃
20.) Modulus of rigidity 𝐺 = , where R is the radius, θ is the
𝐿
angle of twist and L length. Using Total Differential, determine
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%.

21.) Pressure 𝑃 and volume 𝑉 of a gas are connected by the


equation 𝑃𝑉 1.4 = 𝑘.
i) Using total differential, determine the approximate
change in 𝑘 when the pressure is increased by 4% and the
volume is decreased by 1.5%, (leave your answer in terms of
k).
ii) Hence, determine the percentage error (% change) in
𝑘.

22.) Q factor in a resonant electrical circuit is given by:


1 𝐿
𝑄= √
R 𝐶

Using total differential, find the percentage change in Q when L


increases by 4%, R decreases by 3% and C decreases by 2%.

𝜕𝑧 𝜕𝑧
23.) Using the general implicit formula, find and 𝜕𝑦, given that:
𝜕𝑥
sin(𝑥𝑦𝑧) = 𝑥 + 3𝑧 + 𝑦
24.) Given eu cos V – x = 0, using the general implicit formula,
𝜕𝑢 𝜕𝑢 𝜕𝑣
find , , 𝑎𝑛𝑑
𝜕𝑥 𝜕𝑣 𝜕𝑥

25.) Given eu sin V = y, using the general implicit formula, find


𝜕𝑢 𝜕𝑢 𝜕𝑣
, , 𝑎𝑛𝑑
𝜕𝑦 𝜕𝑣 𝜕𝑦

26.) Given u2 – v2 -y = 0, using the general implicit formula, find


𝜕𝑢 𝜕𝑢 𝜕𝑣
, and
𝜕𝑣 𝜕𝑦 𝜕𝑦

18
𝜕𝑧 𝜕𝑧
27.) Using general implicit formula, find and for the
𝜕𝑥 𝜕𝑦
function:
𝑥 3 𝑧 2 − 5𝑥𝑦 5 𝑧 = 𝑥 2 + 𝑦 3
𝑎 𝑛2
28.) Given that (𝑃 +
𝑣2
) (𝑣 − 𝑛𝑏) − 𝑛𝑅𝑇 = 0, using the
𝜕𝑇 𝜕𝑃 𝜕𝑉 𝜕𝑇
general implicit formula, find , and hence show that x
𝜕𝑃 𝜕𝑉 𝜕𝑇 𝜕𝑃
𝜕𝑃 𝜕𝑉
x = -1
𝜕𝑉 𝜕𝑇
𝜕𝑧 𝜕𝑧
29.) Using the general implicit formula, find 𝜕𝑥
and 𝜕𝑦, given that:

𝑥𝑦 2 + 𝑧 3 + sin(𝑥𝑦𝑧) = 0

19
§2.0 SERIES REPRESENTATION OF FUNCTIONS

2.1 POWER SERIES


The basic mathematics involved in power series is a natural extension of the series of

the type: a
n 0
n x n  a 0  a1 x  a 2 x 2  a3 x 3  ...  a n x n  ...

Where a0 , a1 , a2 ,... are independent of x , is called a power series. We refer to the

constants, ak (k  0,1,2,...) as the coefficient of the series.

Convergence of power series


Power series will, in general converge for certain values of x and diverge elsewhere.
When the sum S n of a series of n terms tends to a limit as n   , the series is
convergent. Applying d’Alembert’s ratio test to the above series, we see that it is
a n 1 x n 1
lim
absolutely convergent when: 1
n   an x n

Thus the series converges if


lim an 1
x < 1
n   an

lim an 1
That is, if x <
n   an

lim an
Denoting by r, we see that the series is absolutely convergent for
n   an 1
 r < x < r and divergent for x <  r and x > r . The limit r is called the radius of
convergent of the series.

NOTE: D’Alembert’s ratio test.


 lim u n 1
Suppose we have a series of positive terms  u k , and also  l exists.
k o n   un

Then the series is convergent if l < 1 and divergent if l > 1 . If l  1 , we are not able to
decide, using this test, whether the series converges or diverges.

20
2.2 REPRESENTATION OF FUNCTIONS USING SPECIAL POWER SERIES
The primary reason for studying series is that we can use them to represent functions.
This opens up all kinds of possibilities for us, from approximating the values of
transcendental functions to calculating derivatives and integrals of such functions, to
studying differential equations.

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  x 2  x 3  .......... ..........  (1) n x n  .......... .......... ....
1 x
 1  x  1
(b) The binomial Series
r r r r
(1  x) r  1    x    x 2    x 3  ..........    x n  .......... .
1  2 1 n
 r  r (r  1)......... .......... ...( r  n  1)
Where   
n 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
term x N . When r is not a positive integer the series does not terminate.
Setting r  -1 gives
1 (1) (1) 2  2 (1)(2)(3) 3
(1  x) 1   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) 3 2 (2)(3)(4) 3
(1  x)  2  1  x x  x  .......... .......
1 1 2 1 2  3

21
which simplifies to the arithmetic-geometric series
1
 1  2 x  3x 2  4 x 3  .......... .......
(1  x) 2

So the geometric series may be thought of as a special case of the binomial series.

(c) The exponential series


x x2 x3 xn
e  1 
x
  .......... .   ...... (all x )
1! 2! 3! n!
The number e is defined by
n

e 
lim x
1  
n    n

Similarly, the function e x is defined by


n

e 
lim 1
1  
n    n

Using the binomial expansion, we have


 n  x  n(n - 1)  x 
lim
2
n(n - 1)(n - 2)  x 
3


e 
x
1           .......... .......... ..
n  
 1n 1 2  n  1 2  3 n 

e 
 1
lim 1- 1
n

1 - 1 (1 - 2
n
     
n X 3  .......... .......... ..
1  X  X 
x 2

n  1 1 2 1 2  3 
 

x x 2 x3
 1    .......... .
1! 2! 3!

So we see the connection between binomial and exponential series.

(d) The logarithmic series

n 1
x2 x3 x4 n x
ln(1  x)  x     .......... ....  (1)  .......... .... (-1< x <1)
2 3 4 n 1

Example

22
Exercise

using Maclaurin series obtain the four elementary power series above.

2.3 TAYLOR SERIES

Taylor series is a method of constructing polynomial approximations to functions that


are not polynomials. The higher derivatives of all orders will play a pivotal role. They
are essential means for exploring and computing with transcendental functions (e.g.
sin x , cos x , ln x , e x )


Suppose that the power series a x
n 0
n
n
has radius of convergence r  0 . This means

that the series converges absolutely to some function f on the interval (  r , r ) . We have


f (x ) = a
n 0
n x n  a 0  a1 x  a 2 x 2  a3 x 3  a 4 x 4 .......... .... for each (  r , r )

Differentiating term by term, we get


f ( x)   an nxn 1  a1  2a2 x  3a3 x 2  4a4 x 3  ...... , again for each x  (-r, r) .
n 0

Likewise, we get


f ( x)   a n n(n  1) x n  2  2a 2  3  2a3 x  4  3a 4 x 2  ...... and
n 0


f ( x)   a n n(n  1)(n  2) x n 3  3  2a3  4  3  2a 4 x  ......
n 0

and so on (all valid for - r,  x  r ).

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 ,

23
f (0)  a1 ,

f (0)
f (0)  2a2 = 2!a2  a2 
2!

f (0)
f (0)  3  2a3 = 3! a3  a3 
3!

And so on. Observe that in general, we have

f n (0)  n!an , solving for a n we have

f n ( 0)
an  for n  0,1,2,3,........
n!


Thus, we found that if a x
n 0
n
n
is a convergence power series with radius of

convergence r  0 , then the series converges to some function f that we can write as



f n (0) n f (0) 2
f (x ) =  an x , =
n 0
n

n 0 n!
x = f (0)  f (0 ) x 
2!
x  ....... for x  (-r,  r)

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

called a TAYLOR SERIES expansion of f about x  0 .

We have constructed polynomials to approximate a given function near 0 by taking the


functions and their derivatives at x  0 . This is also called Maclaurin series only when
the expansion is about x  0 .

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

24
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


f (x ) =  a ( x  a)
n 0
n
n
= a0  a1 ( x  a)  a2 ( x  a)2  a3 ( x  a)3  a4 ( x  a)4  ........

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 = 0! at xa
n 0


f (a ) =  a n( x  a )
n 0
n
n 1
= a1 = 1! a1 at xa


f (a) =  an n( n  1)( x  a ) n  2 = 2a2 = 2! a2 at xa
n 0


f (a ) =  a n(n  1)(n  2)( x  a)
n 0
n
n 3
= 3  2a3 = 3! a3 at xa

and so on. Thus in general, we have

f n ( a )  n! an

solving for a n , we have

f n (a)
an  , for n  0,1,2,........
n!

Hence, in general if the function f has derivatives through order n at a , then the nth-
order Taylor polynomial of f at a is defined as

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

25

f n ( a ) x  a  f (a )
n
f n (a)

n 0 n!
 f (a )  f (a)( x  a ) 
2!
( x  a) 2  ......... 
n!
( x  a ) n  ..... .

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 𝑥 = 0 (i.e. Maclaurin series) to the fifth
order [𝑃5 (𝑥; 0)] associated with the function 𝑓(𝑥) = sin 𝑥.

Solution

𝑓(𝑥) = 𝑠𝑖𝑛 𝑥
For Taylor series expansion:

For the 5th order Maclaurin series,


𝑥2 𝑥3 𝑥4 𝑥5
𝑓(𝑥) ≅ 𝑓(0) + 𝑥𝑓 ′ (0) + 𝑓 ′′ (0) + 𝑓 ′′′ (0) + 𝑓 𝑖𝑣 (0) + 𝑓 𝑣 (0) … … …
2! 3! 4! 5!

𝑓(𝑥) = 𝑠𝑖𝑛 𝑥 𝑓(0) = 𝑠𝑖𝑛 0 = 0


𝑓ˈ(𝑥) = cos 𝑥 𝑓ˈ(0) = 𝑐𝑜𝑠 0 = 1
𝑓ˈˈ(𝑥) = −sin 𝑥 𝑓ˈˈ(0) = −𝑠𝑖𝑛 0 = 0
𝑓ˈˈˈ(𝑥) = −cos 𝑥 𝑓ˈˈˈ(0) = −𝑐𝑜𝑠 0 = −1
𝑓 𝑖𝑣 (𝑥) = sin 𝑥 𝑓 𝑖𝑣 (0) = 𝑠𝑖𝑛 0 = 0
𝑓 𝑣 (𝑥) = cos 𝑥 𝑓 𝑣 (0) = 𝑐𝑜𝑠 0 = 1
Substituting
−0 −1 0 1
𝑠𝑖𝑛 𝑥 ≅ 0 + 1 𝑥 + 𝑥2 + 𝑥3 + 𝑥4 + 𝑥5
2! 3! 4! 5!
−0 −1 0 1
≅0+1𝑥+ 𝑥2 + 3
𝑥 + 𝑥4 + 𝑥5
2𝑥1 3𝑥2𝑥1 4𝑥3𝑥2𝑥1 5𝑥4𝑥3𝑥2𝑥1

1 1
≅ 𝑥− 𝑥3 + 𝑥5 or
6 120

∴ sin 𝑥 ≅ 𝑥 − 0.16667𝑥 3 + 0.00833𝑥 5

Compare this with 𝑠𝑖𝑛 of any number about or close to 0 (in radians)

e.g for sin 0.5, 𝑥 = 0.5 in radians

∴ sin 0.5 ≅ 0.5 − 0.16667(0.5)3 + 0.00833(0.5)5

≅ 0.5 − 0.020834 + 0.000521

≅ 0.4797

26
Example 2
1
Compute the fourth-order Taylor polynomial about 𝑎 = 1 for the function 𝑓(𝑥) = 𝑥.

Solution
For the Taylor series expansion:

𝑓"(𝑎) 𝑓ˈˈˈ(𝑎) 𝑓 𝑖𝑣 (𝑎)


𝑓(𝑥) ≅ 𝑓(𝑎) + (𝑥 − 𝑎)𝑓 ′ (𝑎) + (𝑥 − 𝑎)2 + (𝑥 − 𝑎)3 + (𝑥 − 𝑎)4
2! 3! 4!

Where 𝑎 = 1, then
𝑓"(1) 𝑓ˈˈˈ(1)
∴ 𝑃4 (𝑥; 1) = 𝑓(1) + (𝑥 − 1)𝑓 ′ (1) + (𝑥 − 1)2 + (𝑥 − 1)3 +
2! 3!
𝑓 𝑖𝑣 (1) 4
(𝑥 − 1)
4!

1 1
𝑓(𝑥) = ≡ 𝑥 −1 𝑓(1) = =1
𝑥 1
−1 −1
𝑓ˈ(𝑥) = −𝑥 −2 ≡ 𝑓ˈ(1) = = −1
𝑥2 13
−3 2 2
𝑓ˈˈ(𝑥) = 2 𝑥 ≡ 𝑥3 𝑓ˈˈ(1) = 13 = 2
−6 −6
𝑓ˈˈˈ(𝑥) = −6 𝑥 −4 ≡ 𝑓 ′′′ (1) = = −6
𝑥4 14
24 24
𝑓 𝑖𝑣 (𝑥) = 24 𝑥 −5 ≡ 𝑥5 𝑓 𝑖𝑣 (1) = 15 = 24
Substituting
2 6 24
𝑓(𝑥) ≅ 𝑃4 (𝑥; 1) = 1 − (𝑥 − 1) + 2! (𝑥 − 1)2 − 3! (𝑥 − 1)3 + 4! (𝑥 − 1)4
2 6 24
≅ 𝑃4 (𝑥; 1) = 1 − (𝑥 − 1) + 2 (𝑥 − 1)2 − 6 (𝑥 − 1)3 + 24 (𝑥 − 1)4
= 1 − (𝑥 − 1) + (𝑥 − 1)2 − (𝑥 − 1)3 + (𝑥 − 1)4
1
This is valid to evaluate the value of 𝑓(𝑥) = 𝑥 for all values of 𝑥 about or close to 1
1 1 1 1
such as 1.1 , 1.2, 0.9, 0.98 etc.

ASSIGNMENT
MACLAURIN & TAYLOR SERIES ASSIGNMENT
𝜋
1. Compute the 4th order Taylor polynomial of 𝑐𝑜𝑠 𝑥 about 𝑥 = 3 . Use your
𝜋
answer to evaluate 𝑐𝑜𝑠 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 + 𝑥) (truncate
at the 4th order), hence, use your result to estimate ln(1.1)

27
4. Find the first three non-zero terms in the Maclaurin series of
the function 𝑒 𝑠𝑖𝑛𝑥 .
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 𝑥 (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+𝑥)2
.
1
ii) Use your answer to estimate the value of (1+0.2)2 .
9. Compute the given Taylor polynomial 𝑃𝑛 (𝑥; 𝑎)
1
a) 𝑃4 (𝑥; 1) for 1+𝑥

b) 𝑃4 (𝑥; 2) for 𝑒𝑥
c) 𝑃4 (𝑥; 𝜋⁄4) for cos 𝑥
10. Compute the Maclaurin Series associated with the given functions up to 3rd
order:
a) ln 1 + 𝑥
b) 𝑒 −𝑥
1
c) √1+𝑥 2

d) sin 𝑥
e) 𝑒 𝑥 sin 𝑥
11. Use a Taylor polynomial of degree 4 to approximate the given numbers:
a) ln(1.05)
b) √1.2
c) 𝑒 −0.1

28
2.4 THE ERROR IN TAYLOR SERIES (TAYLOR THEOREM)
The Remainder Rn ( x; a)

Definition: The remainder (error) Rn ( x; a)

Let f be a function and let Pn ( x; a) be the associated n th  order Taylor polynomial at

a . The number Rn ( x; a) defined by the equation

f (x ) = Pn ( x; a) + Rn ( x; a ) That is,

Rn ( x; a ) = f (x ) - Pn ( x; a)

is called the remainder or error in using the Taylor polynomial Pn ( x; a) to

approximate f (x )

If the remainder Rn ( x; a) does approach 0 as n   , then the function f (x ) is

represented by its Taylor series. The following theorem expresses Rn ( x; a) in terms of


a derivative (this is called “derivative” or “Lagrange” form of the remainder, it is also
known as Taylor’s theorem). This formula enables us to show that for f (x ) = e x , sin x
, or cos x , Rn ( x; a) indeed approaches 0 as n   . It also enables us to obtain an
estimate of the error in using a Taylor polynomial to approximate a given function.

Theorem: Lagrange’s form of remainder (or Taylor’s theorem)

Assume that a function f (x ) has continuous derivatives of orders through n  1 in an

interval that includes the numbers a and x . Let Pn ( x; a) be the n th Taylor polynomial

associated with f (x ) in powers of x  a . Then there is a number C n between a and x


such that

f n 1(Cn )
Rn ( x; a ) = ( x  a) n 1
(n  1)!

29
§3.0 ETREMUM PROBLEMS
In many industrial situations the role of management is to make decisions that will lead
to the most effective use of the resources available. Effective management seeks to
optimize the constituents parts of the whole operation. A wide variety of mathematical
techniques is used to solve such optimization problems, including some based on the
use of calculus, which we shall consider here.

3.1 Optimal values:

30
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.

31
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
minimum, a local maximum or a point of inflection of the function f (x ) . We can do
this by examining values of f (x ) close to and on either side of the critical point. We
see that from figure 2.

32
33
Figure 3.2: Slopes (gradients) of extrema points

34
 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.

An alternative approach to determining the nature of a stationary point is to


calculate the value of the second derivative f (x) at the point. Note that f (x)
determines the rate of change of f (x ) . Suppose that f (x ) has a stationary point at
x  a , so that f (a )  0 . Then provided f (a) is defined, either f (a)  0 ,
f ( a )  0 or f (a)  0 .

If f (a)  0 then f (x ) is decreasing at x  a , and since f (a )  0 , it follows that


f (x )  0 for values of x just greater than a . We therefore conclude that x  a

corresponds to a local maximum. Since the graph is concave down at a local


maximum, f (a)  0 .

Similarly, we can argue that if f (a)  0 , then the stationary point x  a


corresponds to a local minimum.

Summarizing, we have
 The function f (x ) has a local maximum at x  a provided f (a )  0 and
f (a)  0

 The function f (x ) has a local minimum at x  a provided f (a )  0 and


f (a)  0

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.

35
Example.
Determine the stationary points of the function
𝑓(𝑥) = 𝑥 3 − 3𝑥 2 + 6
and using second derivative, confirm the nature of the stationary points of the function.
Solution
The derivative is:
𝑓𝑥′ = 3𝑥 2 − 6𝑥
Stationary points occur when 𝑓𝑥′ = 0 i.e,
𝑓𝑥′ = 3𝑥 2 − 6𝑥 = 0
∴ 3𝑥(𝑥 − 2) = 0
3𝑥 = 0 or (𝑥 − 2) = 0
Thus,
𝑥 = 0 or 𝑥 = 2
The corresponding 𝑦 values of the function are obtained by substituting 𝑥 into 𝑦:
At 𝑥 = 0
𝑓(0) = 03 − 3(0)2 + 6 = 6 and
At 𝑥 = 2
𝑓(2) = 23 − 3(2)2 + 6 = 2
So that the stationary points of 𝑓𝑥′ are:
(𝑥, 𝑦) = (0,6) and (2,2)
In order to investigate their nature, we use 2nd derivative test:
𝑓𝑥′ = 3𝑥 2 − 6𝑥
∴ 𝑓𝑥′′ = 6𝑥 − 6
At the stationary point (𝑥, 𝑦) = (0,6)
′′
𝑓(0) = 6(0) − 6 = −6 < 0 (𝑛𝑒𝑔𝑎𝑡𝑖𝑣𝑒)
Thus, the point (𝑥, 𝑦) = (0,6) corresponds to a local maximum
At the stationary point (𝑥, 𝑦) = (2,2)
′′
𝑓(2) = 6(2) − 6 = 6 > 0 (𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒)
Thus, the point (𝑥, 𝑦) = (2,2) corresponds to a local minimum
The figure below shows the sketch of the function.

36
3.2 EXTREMA OF FUNCTIONS OF SEVERAL VARIABLES
Definition:
For a function of two variables, we call f ( a, b) a local maximum of f if there is
an open disk R centred at (a, b) , for which f (a, b)  f ( x, y ) for all ( x, y )  R .
Similarly, f ( a, b) is called a local minimum of f if there is an open disk R
centred at (a, b) , for which f (a, b)  f ( x, y ) for all ( x, y )  R . In either case
f ( a, b) is called a local extremum of 𝑓 sometimes referred to as relative

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

𝑓(𝑎, 𝑏) ≤ 𝑓(𝑥, 𝑦) for all (𝑥, 𝑦) near (𝑎, 𝑏), we call 𝑓(𝑎, 𝑏) 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.

37
Definition:
The point (a, b) is a critical point of the function f ( x, y ) if (a, b) is in the domain
f f f f
of f and either ( a, b) = ( a, b) =0 or one or both of and do not exist
x y x y

at (a, b) .

If (a, b) is a local extremum (local maximum or local minimum), then (a, b) 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:
Suppose that f ( x, y ) has a local maximum at (a, b) . Holding y constant at y  b ,
notice that the function g ( x)  f ( x, b) has a local maximum at x  a . This implies

g (a ) f
either g ( a )  0 or doesn’t exist. Note that g (a ) = ( a, b) . Likewise,
x

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. Note that h(b )
f f
= ( a, b) . Combining these two observations, we have that each of ( a, b) and
y x
f
( a, b) equals zero or doesn’t exist. We can then conclude that (a, b) must be a
y
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 the critical
point of function of several variables, we use a generalisation of the second
derivative test for function of a single variable.

38
Theorem: (Second derivative test)
Suppose that f  x, y  has continuous second-order partial derivatives in some open

disk containing the point  a, b  and that f x  a, b   f y  a, b   0 . We define the

discriminate D for the point  a, b  by:

D  a, b   f xx  a, b  f yy  a, b    f xy  a, b  .
2

(i) If D  a, b   0 and f xx  a, b   0 or f yy  a, b   0 , then f has a local or

relative minimum at  a, b  .

(ii) If D  a, b   0 and f xx  a, b   0 or f yy  a, b   0 , then f has a local or

relative maximum at  a, b 

(iii) If D  a, b   0 then f has a saddle point at  a, b 

(iv) If D  a, b   0 , then no conclusion can be drawn. The point may be a

minimum, maximum or saddle point. Further investigation is required.

When a function along some path through  a, b  has a maximum value while along

other paths through the same point has a minimum value. Such a point is called
saddle point.

39
Figure3.3: Representations of saddle point

40
Definition:
The point P  a, b, f  a, b   is a saddle point of Z  f  x, y  if  a, b  is a critical

point of f and if every open disk centred at  a, b  contains points  x, y  in the

domain of f for which f  x, y   f  a, b  and points  x, y  in the domain of f for

which f  x, y   f  a, b  .

Note that to have D  a, b   0 , we must have both f xx  a, b   0 and f yy  a, b   0

or both f xx  a, b   0 and f yy  a, b   0 .

In summary we have:

Example
1) Locate and classify all the critical points for the function:
𝑓(𝑥, 𝑦) = 2𝑥 2 − 𝑦 3 − 2𝑥𝑦

Solution:
𝑓(𝑥, 𝑦) = 2𝑥 2 − 𝑦 3 − 2𝑥𝑦
We first compute the 1st partial derivatives and then equate them to zero and solve the
simultaneous equations to obtain the critical points:

41
𝐴𝑡 𝑙𝑜𝑐𝑎𝑙 𝑒𝑥𝑡𝑟𝑒𝑚𝑎,
𝑓𝑥 = 𝑓𝑦 = 0,
𝑓𝑥 = 4𝑥 − 2𝑦 = 0 --------I
𝑓𝑦 = −3𝑦 2 − 2𝑥 = 0 ---------II
𝐹𝑟𝑜𝑚 𝐼
𝑦 = 2𝑥 ------- III
Substitute 𝑦 = 2𝑥 into II
−3(2𝑥)2 − 2𝑥 = 0
−12𝑥 2 − 2𝑥 = 0
∴ −2𝑥(6𝑥 + 1) = 0
1
𝑥 = 0 𝑜𝑟 𝑥 = − 6
1
(Note common mistake from students: 𝑥 = − 6 alone does not give complete
answer)
From III 𝑦 = 2𝑥
Therefore, the corresponding values of 𝑦 are:
At 𝑥 = 0, 𝑦 = 0
1 1
At 𝑥 = , 𝑦 =
6 3
Hence the stationary points are,
1 1
∴ (𝑥, 𝑦) = (0, 0)𝑎𝑛𝑑(− 6 , − 3),

To classify the local extrema, we use 2nd determinant test, D


2
𝐷 = 𝑓𝑥𝑥 (𝑎, 𝑏) ∙ 𝑓𝑦𝑦 (𝑎, 𝑏) – (𝑓𝑥𝑦 (𝑎, 𝑏))
From I
𝑓𝑥 = 4𝑥 − 2𝑦
𝑓𝑥𝑥 = 4
𝑓𝑥𝑦 = −2
From II
𝑓𝑦 = −3𝑦 2 − 2𝑥
𝑓𝑦𝑦 = −6𝑦
𝐷 = (4) (−6𝑦) − (−2)2
= −24𝑦 − 4

𝐴𝑡 𝑝𝑜𝑖𝑛𝑡 (𝑥, 𝑦) = (0, 0)


𝐷(0, 0) = 0 − 4
= −4
𝐷 = −𝑣𝑒.
Thus, point (𝒙, 𝒚) = (𝟎, 𝟎) is a saddle point

1 1
At point (𝑥, 𝑦) = (− 6 , − 3)
1 1 1
𝐷 (− , − ) = −24 (− ) − 4
6 3 3
= 4
1 1
𝐷 (− 6 , − 3) = +𝑣𝑒.
1 1
𝑓𝑥𝑥 (− 6 , − 3) = 4

42
𝑓𝑥𝑥 = +𝑣𝑒.
1 1
Hence for point (𝑥, 𝑦) = (− 6 , − 3)
𝐷 𝑖𝑠 + 𝑣𝑒 𝑎𝑛𝑑 𝑓𝑥𝑥 𝑖𝑠 + 𝑣𝑒
1 1
The point (𝒙, 𝒚) = (− 6 , − 3) is therefore a local minimum point

GEC 220 EXTREMUM PROBLEMS ASSIGNMENT


1. Locate and classify the stationary points of the following functions:
a) 𝑓(𝑥, 𝑦) = 𝑥 3 − 2𝑦 2 − 2𝑦 4 + 3𝑥 2 𝑦
b) 𝑓(𝑥, 𝑦) = 2𝑥 3 + 6𝑥𝑦 2 − 3𝑦 3 − 150𝑥
c) 𝑓(𝑥, 𝑦) = 𝑥𝑦(12 − 4𝑥 − 3𝑦)
d) 𝑓(𝑥, 𝑦) = 2𝑥 3 + 2𝑦 3 − 6𝑥 − 24𝑦 + 16
e) 𝑓(𝑥, 𝑦) = 𝑥 3 + 𝑦 3 − 3𝑥 − 12𝑦 + 20
f) 𝑓(𝑥, 𝑦) = 2𝑥 2 − 4𝑥𝑦 + 𝑦 4 + 2
g) 𝑓(𝑥, 𝑦) = 𝑥 3 + 𝑥 2 𝑦 − 𝑦 2 − 4𝑦
h) 𝑓(𝑥, 𝑦) = −𝑥 4 − 𝑦 4 + 4𝑥𝑦
i) 𝑓(𝑥, 𝑦) = 𝑥 2 + 3𝑦 2 − 2𝑥𝑦 − 8𝑥
j) 𝑓(𝑥, 𝑦) = 𝑥 3 − 12𝑥 + 𝑦 3 + 3𝑦 2 − 9𝑦
k) 𝑓(𝑥, 𝑦) = 4 + 𝑥 3 + 𝑦 3 − 3𝑥𝑦
l) 𝑓(𝑥, 𝑦) = 3𝑥 2 𝑦 + 𝑦 3 − 3𝑥 2 − 3𝑦 2 + 2
m) 𝑓(𝑥, 𝑦) = 𝑥 3 + 𝑥𝑦 2 − 12𝑥 − 𝑦 2

2) The gravitational attraction at the point (𝑥, 𝑦) in the (𝑥, 𝑦) plane due to point
masses in the plane is:
1 4 9
𝐺(𝑥, 𝑦) = + +
𝑥 𝑦 4−𝑥−𝑦
Show that 𝐺(𝑥, 𝑦) has a maximum value of 9

3) What are the values and types of the critical points, if any, of
𝑓(𝑥, 𝑦) = 𝑥 3 + 𝑦3 − 3𝑥𝑦 − 7?

3.3 Absolute (or Global) Extrema

Theorem:
Suppose that f  x, y  is continuous on the closed and bounded region R C R2 .

Then f has both an absolute (global) maximum and an absolute (global) minimum
on R . Further the absolute extrema must occur at either a critical point in R or on
the boundary of R

43
Now, we shall explain what is meant by a bounded and closed set of points in the
xy -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 points

 x, y  such that x2   y  2  16 is bounded. The set of points  x, y  such that


2

1  x  4 , with no restriction on y , is not bounded. A set S of points is said to be


closed if S contains all points Q such that points of S can be found as close as

one pleases to Q . For example, the set S of points  x, y  such that 0  x  1 and

0  y  1 is not closed, whereas the set of points ** such that ** is closed. Again

the set of points  x, y  such that 0  x 2  y 2  1 is bounded but not closed.

Example

3.4 Optimization of constrained function (Lagrange multiplier)

There are frequent situations in engineering applications when we wish to obtain


the stationary values of functions of more than one variable and for which the
variables themselves are subject to one or more constraint conditions. Here we will
show the technique for solving such problems.

Example: Obtain the extremum value of the function f  x, y   2 x 2  3 y 2

subject to the constraint 2 x  y  1


Solution
In this particular example it is easy to eliminate one of the two variables x and y .

Eliminating y , we can write f  x, y  as

f  x, y   f  x   2 x 2  31  2 x 
2

 14 x 2  12 x  3
we can now apply the techniques used for functions of one variable to obtain the
extremum value. Differentiating gives:
f   x   28x  12 and f   28

44
An extremal value occurs when f   x   0 ; that is, x  3 7 , y  1 7 and since

f   3 7   0 , this correspond to a minimum value. Thus the extremum is a

minimum, at x  3 7 , y  1 7 .

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.

Let us consider the general problems of obtaining the stationary points of f  x, y 

subject to the constraint g  x, y   k . We shall refer to such point as conditional

stationary points.
This method of solution is a more versatile technique called the method of
Langrange multiplier, in which the introduction of a third variable (multiplier)
enables one to solve constrained optimization problems without first solving the
constraint equation for one of the variables.

More specifically, the method of Langrange multiplier uses the fact that any relative
extremum of the function f  x, y  subject to the constraint g  x, y   k must occur

at a critical point  a, b  of the function:

F  x, y   f  x, y     g  x, y   k 

where  is a new variable called Langrange multiplier. To find the critical point
of F , compute the partial derivatives:
Fx  f x   g x Fy  f y   g y F    g  k 

And solve the equations Fx  0 , Fy  0 and F  0 simultaneously as follows

Fx  f x   g x  0 or fx   gx

Fy  f y   g y  0 or fy  gy

F    g  k   0 or gk

45
Finally evaluate f  a, b  at each critical point  a, b  of F . Then comparing

f  a, b  at the critical points, if f has a constrained maximum (minimum), it will

be given by the largest (smallest) of the critical values  a, b  .

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 F  x, y   C

, the slope at each point (using implicit function of several variable method)  x, y 

is given by
dy F
 x
dx Fy

Now, considering the constrained optimization problem:


Maximize f  x, y  subject to g  x, y   k . Geometrically, this means you must find

the highest level curve of f that intersects the constraint curve g  x, y   k . This

critical intersection will occur at a point where the constraint curve is tangent to a
level curve; that is where the slope of the constraint curve g  x, y   k is equal to

the slope of a level curve f  x, y   C . This implies:

Slope of constraint curve = Slope of level curve


gx f
  x
gy fy

or equivalently,
fx f
  y
gx gy

If you let  denote the common ratio, then


fx fy
 and 
gx gy

From which you get the first two Lagrange equations

46
fx   gx and fy  gy

The third Lagrange equation g  x, y   k is simply a statement of the fact that the

point of tangency actually lies on the constraint curve

47

You might also like