GEC220 Note Functions of Several Variables PDF
GEC220 Note Functions of Several Variables PDF
0 PARTIAL DIFFERENTIATION
variables is c a 2 b 2 2ab cos
1
2
.
the domain of f .
Functions of three or more variables are defined in a similar manner.
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.
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:
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 + 𝑥)
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.
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
yx
f 2 f
to y , we have , abbreviated as
, or f y f yx .
x y xy 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
xyx
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
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, ŋ)
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:
dv
ii) Thus, % change in v = x 100
v
0.35 v
= v x100 = 35
∴ The approximate % change in v is 35 %
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 𝜃
𝜕𝑟
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
𝑑𝑡
= (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
𝑑𝑡 𝑠 𝑠
y 16 x 2 and y 16 x 2
y
6 x 36x 2 45 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
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
𝜕𝑦 𝜕𝑦
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
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.
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)
𝐸2
7.) The power 𝑃 dissipated in a resistor is given by 𝑃 = . If 𝐸 =
𝑅
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
16
𝑝
15.) If 𝑘⁄𝑘𝑜 = (𝑇⁄𝑇𝑜 )𝑛 . , show that the change in 𝑘 due to
760
𝑣 = 𝐶 𝑑 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.
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%.
𝜕𝑧 𝜕𝑧
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 , , 𝑎𝑛𝑑
𝜕𝑥 𝜕𝑣 𝜕𝑥
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
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.
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
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.
e
lim x
1
n n
e
lim 1
1
n n
n x n(n - 1) x
lim
2
n(n - 1)(n - 2) x
3
e
x
1 .......... .......... ..
n
1n 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!
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.
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 )
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
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!
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
n0 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
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 ........
f (a ) an ( x a ) n a0 = 0! at xa
n 0
f (a ) = a n( x a )
n 0
n
n 1
= a1 = 1! a1 at xa
f (a) = an n( n 1)( x a ) n 2 = 2a2 = 2! a2 at xa
n 0
f (a ) = a n(n 1)(n 2)( x a)
n 0
n
n 3
= 3 2a3 = 3! a3 at xa
f n ( a ) n! an
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:
1 1
≅ 𝑥− 𝑥3 + 𝑥5 or
6 120
Compare this with 𝑠𝑖𝑛 of any number about or close to 0 (in radians)
≅ 0.4797
26
Example 2
1
Compute the fourth-order Taylor polynomial about 𝑎 = 1 for the function 𝑓(𝑥) = 𝑥.
Solution
For the Taylor series expansion:
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)
f (x ) = Pn ( x; a) + Rn ( x; a ) That is,
Rn ( x; a ) = f (x ) - Pn ( x; a)
approximate f (x )
interval that includes the numbers a and x . Let Pn ( x; a) be the n th Taylor polynomial
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.
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.
Summarizing, we have
The function f (x ) has a local maximum at x a provided f (a ) 0 and
f (a) 0
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
D a, b f xx a, b f yy a, b f xy a, b .
2
relative minimum at a, b .
relative maximum at a, b
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
which f x, y f a, b .
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),
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
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?
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
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
Example
f x, y f x 2 x 2 31 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
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.
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
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
Fx f x g x 0 or fx gx
Fy f y g y 0 or fy gy
F g k 0 or gk
45
Finally evaluate f a, b at each critical point a, b of F . Then comparing
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
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
or equivalently,
fx f
y
gx gy
46
fx gx and fy gy
The third Lagrange equation g x, y k is simply a statement of the fact that the
47