Professional Documents
Culture Documents
• Taylor’s expansion for two variables–maxima and minima–constrained maxima and minima-
Lagrange’s multiplier method.
58
3.1. THE TAYLOR’S EXPANSION 59
h2 ′′ h3 hn−1 (n−1)
f (a) + hf ′ (a) + f (a) + f ′′′ (a) + . . . + f (a) + . . .
2! 3! (n − 1)!
(i) if f (x) possesses derivatives of every order in the interval [a, a + h], and
hn (n)
(ii) the remainder f (a + θh) tends to zero as n tends to infinity, then
n!
h2 ′′ hn
f (a + h) = f (a) + hf ′ (a) + f (a) + · · · + f (n) (a) + · · ·
2! n!
This series is known as Taylor’s infite series.
1. f (x), f ′ (x), f ′′ (x), . . . , f (n−1) (x) are continuous in the closed interval [0, x].
2. f (n) (x) exists in the open interval (0, x), then there exists at least one number θ between 0 and
1 such
x2 ′′ xn−1 (n−1) xn
f (x) = f (0) + xf ′ (0) + f (0) + . . . + f (0) + f (n) (θx).
2! (n − 1)! n!
This is obtained from Taylor’s theorem by considering the interval [0, x] instead of [a, a + h] and
changing a to 0 and h to x in (3.1.1).
(i) if f (x) possesses derivative of every order in the interval [0, x], and
xn n
(ii) the remainder f (θx) tends to zero as n tends to infinity, then
n!
x2 ′′ xn
f (x) = f (0) + xf ′ (0) + f (0) + . . . + f (n) (0) + . . .
2! n!
This series is known as Maclaurin’s series for the expansion of function f (x) in powers of x.
60 MODULE 3. APPLICATION OF MULTIVARIABLE CALCULUS
For example, for n = 1, the linear approximation of f (x, y) about the point (x0 , y0 ) is
Here, fxx , fxy and fyy are to be evaluated at the point [x0 + θ (x − x0 ) , y0 + θ (y − y0 )] , 0 < θ < 1.
Since θ is unknown we cannot evaluate R1 exactly, however, it is possible to find an upper bound
to R1 in a given rectangular region
R = {(x, y) : |x − x0 | ≤ δ1 , |y − y0 | ≤ δ2 } .
From (3.1.8)
1
|x − x0 |2 |fxx | + 2 |x − x0 | |y − y0 | |fxy | + |y − y0 |2 |fyy |
|R1 | ≤
2
M M M
|R1 | ≤ |x − x0 |2 + 2 |x − x0 | |y − y0 | + |y − y0 |2 = [|x − x0 | + |y − y0 |]2 ≤ [δ1 + δ2 ]2 ,
2 2 2
If M = max{|fxx |, |fxy |, |fyy }, then the maximum absolute error |R1 | in the linear approxima-
tion of f (x, y) in the rectangular region R = {(x, y) : |x − x0 | ≤ δ1 , |y − y0 | ≤ δ2 } about the point
(x0 , y0 ), is
M
[δ1 + δ2 ]2 (3.1.9)
2
Similarly, it can be shown that the maximum absolute error |R2 | in the quadratic approximation of
f (x, y) in the rectangular region R = {(x, y) : |x − x0 | ≤ δ1 , |y − y0 | ≤ δ2 } about the point (x0 , y0 ),
is
M
(δ1 + δ2 )3 , (3.1.10)
6
where M = max · {|fxxx | , |fxxy | , |fxyy | , |fyyy |}. We note that the quadratic approximation of
f (x, y) about (x0 , y0 ) is given by
1
(x − x0 )2 fxx + 2 (x − x0 ) (y − y0 ) fxy + (y − y0 )2 fyy
f (x, y) ≈ f (x0 , y0 )+(x − x0 ) fx +(y − y0 ) fy +
2!
Example 3.1.1. Find the quadratic Taylor series polynomial approximation to the function f (x, y)
= sin x sin y about the origin. Obtain the maximum absolute error if |x| ≤ 0.1 and |y| ≤ 0.1.
62 MODULE 3. APPLICATION OF MULTIVARIABLE CALCULUS
Solution: We have
f (x, y) = sin x sin y, f (0, 0) = 0
fx (x, y) = cos x sin y, fx (0, 0) = 0
fy (x, y) = sin x cos y, fy (0, 0) = 0
fxx (x, y) = − sin x sin y, fxx (0, 0) = 0
fxy (x, y) = cos x cos y, fxy (0, 0) = 1
fyy (x, y) = − sin x sin y, fyy (0, 0) = 0
1 2
x fxx (0, 0) + 2xyfxy (0, 0) + y 2 fyy (0, 0)
f (x, y) ≈ f (0, 0) + {xfx (0, 0) + yfy (0, 0)} +
2!
Substituting for f (0, 0), fx (0, 0), fy (0, 0), etc., we obtain
The maximum absolute error in the quadratic approximation, refer (3.1.10), is given by
M M
|R2 | ≤ [|x| + |y|]3 ≤ [0.1 + 0.1]3 = 0.00133M
6 6
where M = max . {|fxxx | , |fxxy | , |fxyy | |fyyy |} for all (x, y) ∈ R : |x| ≤ 0.1 and |y| ≤ 0.1.
Here, the derivatives are to be evaluated at point (θx, θy), 0 < θ < 1.
Since, the third order derivatives in this case, as derived above, are products of sines and cosines
thus they can never exceed unity and hence M can at the most be equal to 1 ; and thus |R2 | ≤
0.00133.
Example 3.1.2. Find the linear and quadratic Taylor series polynomial approximation to the function
f (x, y) = x2 y + 3y − 2 about the point (−1, 2) and obtain the maximum absolute error in the region
|x + 1| ≤ 0.1 and |y − 2| ≤ 0.1.
3.1. THE TAYLOR’S EXPANSION 63
Solution. We have
f (x, y) = x2 y + 3y − 2, f (−1, 2) = 6
fx = 2xy fx (−1, 2) = −4
f y = x2 + 3 fy (−1, 2) = 4
fxx = 2y fxx (−1, 2) = 4
fxy = 2x fxy (−1, 2) = −2
fyy = 0 fyyy (−1, 2) = 0
fxxx = 0 fxxx (−1, 2) = 0
fxxy = 2 fxxy (−1, 2) = 2
fxyy = 0 fxyy (−1, 2) = 0
fyyx = 0 fyyx (−1, 2) = 0
fyyy = 0 fyyy (−1, 2) = 0
The linear approximation of f (x, y) about (−1, 2) is
M M
|R1 | ≤ [|x + 1| + |y − 2|]2 ≤ [0.1 + 0.1]2 = 0.02M
2 2
where M = max {|fxx | , |fxy | , |fyy |} for all (x, y) ∈ R : |x + 1| ≤ 0.1 and |y − 2| ≤ 0.1.
Now,
1
f (x, y) ≈f (−1, 2) + [(x + 1)fx (−1, 2) + (y − 2)fy (−1, 2)] + (x + 1)2 fxx (−1, 2)
2!
+2(x + 1)(y − 2)fxy (−1, 2) + (y − 2)2 fyy (−1, 2)
1
=6 + (x + 1)(−4) + (y − 2)4 + 4(x + 1)2 + 2(x + 1)(y − 2)(−2)
2
=6 − 4(x + 1) + 4(y − 2) + 2(x + 1)2 − 2(x + 1)(y − 2).
64 MODULE 3. APPLICATION OF MULTIVARIABLE CALCULUS
M M
|R2 | ≤ [|x + 1| + |y − 2|]3 ≤ [0.1 + 0.1]3
6 6
.008M
= ≈ .00133M,
6
where M = max {|fxxx | , |fxxy | , |fxyy | , |fyyy |} for all (x, y) ∈ R : |x + 1| ≤ 0.1 and |y − 2| ≤ 0.1.
Example 3.1.3. Expand f (x, y) = tan−1 (xy) in powers of (x − 1) and (y − 1) up to second degree
terms. Hence compute f (1.1, 0.8).
Solution: We have
f (x, y) = tan−1 xy f (1, 1) = π/4 ≈ 0.7854
y
fx = fx (1, 1) = 12
1 + x2 y 2
x 1
fy = fy (1, 1) = 2
1 + x2 y 2
−2xy 3
fxx = fxx (1, 1) = − 21
(1 + x2 y 2 )2
1 − x2 y 2
fxy = fxy (1, 1) =0
(1 + x2 y 2 )2
−2x3 y
fyy = fyy (1, 1) = − 21 .
(1 + x2 y 2 )2
To compute the value of tan−1 xy at (1.1, 0.8), put x = 1.1 and y = 0.8, we obtain
1 1 1 1
f (1.1, 0.8) = 0.7854 + (0.1) + (−0.2) − (0.1)2 − (−0.2)2
2 2 4 4
= 0.7229.
3.1. THE TAYLOR’S EXPANSION 65
Example 3.1.4. Evaluate ln (1.03)1/3 + (0.98)1/4 − 1 approximately using linear Taylor’s series
approximation.
Solution: Let f (x, y) = ln x1/3 + y 1/4 − 1 . Take x0 = 1, y0 = 1, h = 0.03 and k = −0.02.
1 −2/3 1 −3/4
3
x 4
y
We have, fx = and fy = .
x1/3 + y 1/4 −1 x1/3 + y 1/4 −1
Thus, f (1, 1) = 0, fx (1, 1) = 1/3 and fy (1, 1) = 1/4.
Homework
1. Obtain the quadratic Taylor’s series polynomial approximation to the function f (x, y) = 2x3
+3y 3 − 4x2 y about the point (1, 2) and obtain the maximum absolute error in the region
|x − 1| ≤ 0.01, |y − 2| ≤ 0.1.
2. Using Taylor’s series find a quadratic approximation of cos x cos y at the origin and also esti-
mate the error in the approximation, if |x| ≤ 0.1 and |y| ≤ 0.1.
3. Find the quadratic Taylor’s series approximation of ex cos y about the point (1, π/4).
(x + h)(y + k)
4. Expand in powers of h and k up to the second degree terms.
(x + h) + (y + k)
5. Find the cubic Taylor’s series polynomial approximation of f (x, y) = tan−1 (y/x) and hence
compute f (1.1, 0.9) approximately.