No Slide Title

Download Report

Transcript No Slide Title

Recall Taylor’s Theorem from single variable calculus:
If y = f(x) is a function with continuous derivatives up to order k + 1
(that is, f is differentiable up to order k + 1) at x0, then
f   (x0)
f (k)(x0)
f(x0 + h) = f(x0) + f  (x0) h + ——— h2 +... + ——— hk + Rk(x0 , h)
2!
k!
x0 + h
linear approximation
(x0 + h – t)k
where Rk(x0 , h) =
————— f (k+1)(t) dt
k!
x0
Consider a function z = f(x,y) with continuous first and second partial
derivatives at x0 = (x0 , y0). Then, Theorem 9 (page 137) tells us f is
differentiable at x0 , which implies that the tangent plane is a “good
approximation” of f near x0 :
h1
f(x0 + h) = f(x0) + fx(x0) fy(x0)
+ R1(x0 , h)
h2
This is Theorem 2 on
page 196 with n = 2.
tangent plane approximation
Consider a function z = f(x,y) with continuous first, second, and third
partial derivatives at x0 = (x0 , y0). Then, by defining g(t) = f(x0 + th)
and applying the second order Taylor polynomial from single variable
calculus (by using the chain rule), we get Theorem 3 on page 196 with
n=2:
f(x0 + h) = f(x0) + fx(x0) fy(x0)
h1
h2
linear approximation
1
+ — h1 h2
2
This matrix of second
derivatives is called the
Hessian matrix.
fxx(x0) fyx(x0)
h1
fxy(x0) fyy(x0)
h2
quadratic approximation
+ R2(x0 , h)
Consider a function z = f(x,y) with continuous first, second, and third
partial derivatives at x0 = (x0 , y0). Then, by defining g(t) = f(x0 + th)
and applying the second order Taylor polynomial from single variable
calculus (by using the chain rule), we get Theorem 3 on page 196 with
fx(x0) h1 + fy(x0) h2
n=2:
f(x0 + h) = f(x0) + fx(x0) fy(x0)
1
+ —
2
h1
h2
h1 h2
fxx(x0) fyx(x0)
h1
fxy(x0) fyy(x0)
h2
1
1
2
— fxx(x0) h1 + fxy(x0) h1h2 + — fyy(x0) h22
2
2
+ R2(x0 , h)
Find the second-order Taylor polynomial for f(x,y) = ex cos y at the point
x0 = (x0 , y0) = (0,0) .
f(0,0) = 1
fx = ex cos y
fx(0,0) = 1
fy = – ex sin y
fy(0,0) = 0
fxx = ex cos y
fxx(0,0) = 1
fyy = – ex cos y
fyy(0,0) = – 1
fxy = – ex sin y
fxy(0,0) = 0
x – x0 y – y0
f(x0 + h) = f(h) = f(h1 , h2) =
1
1 + (1)(h1) + (0)(h2) + — (1)(h1)2
2
2
x
x
1
= 1 + h1 + — h12 –
2
1
+ (0)(h1)(h2) + —(–1)(h2)2
2
+ R2(0 , h)
2
y
1
— h22 + R2(0 , h)
2
Find the second-order Taylor polynomial for f(x,y) = sin(x + 2y) at the
point x0 = (x0 , y0) = (0,0) .
f(0,0) = 0
fx = cos(x + 2y)
fx(0,0) = 1
fy = 2 cos(x + 2y)
fy(0,0) = 2
fxx = – sin(x + 2y)
fxx(0,0) = 0
fyy = – 4 sin(x + 2y)
fyy(0,0) = 0
fxy = – 2 sin(x + 2y)
fxy(0,0) = 0
f(x0 + h) = f(h) = f(h1 , h2) =
1
1
0 + (1)(h1) + (2)(h2) + —(0)(h1)2 + (0)(h1)(h2) + —(0)(h2)2
2
2
+ R2(0 , h)
= h1 + 2h2 + R2(0 , h)
Note that the first-order and second-order
Taylor polynomials are identical!
Find the first-order and second-order Taylor approximations to
f(x,y) = sin(xy) at the point x0 = (x0 , y0) = (1 , /2) .
f(1 , /2) = 1
fx = y cos(xy)
fx(1 , /2) = 0
fy = x cos(xy)
fy(1 , /2) = 0
fxx = – y2sin(xy)
fxx(1 , /2) = – 2/4
fyy = – x2sin(xy)
fyy(1 , /2) = – 1
fxy = cos(xy) – xy sin(xy)
fxy(1 , /2) = – /2
f(x0 + h) = f(1 + h1 , /2 + h2) = f(x,y) =
1 + (0)(x – 1) + (0)(y – /2) +
1
1
2
—(–2/4)(x – 1)2 + (–/2)(x – 1)(y – /2) + —(–1)(y – /2)
2
2
+ R2((1 , /2) , h)
The first-order (linear) approximation is sin(xy)  1
The second-order (quadratic) approximation is sin(xy) 
Find the first-order and second-order Taylor approximations to
f(x,y) = sin(xy) at the point x0 = (x0 , y0) = (1 , /2) .
f(x0 + h) = f(1 + h1 , /2 + h2) = f(x,y) =
1 + (0)(x – 1) + (0)(y – /2) +
1
1
—(–2/4)(x – 1)2 + (–/2)(x – 1)(y – /2) + —(–1)(y – /2)2
2
2
+ R2(0 , h)
The first-order (linear) approximation is sin(xy)  1
The second-order (quadratic) approximation is sin(xy) 
2

1
1 – —(x – 1)2 – —(x – 1)(y – /2) – —(y – /2)2
8
2
2
Find the linear and quadratic Taylor approximations to the expression
(3.98 – 1)2 / (5.97 – 3)2 . Compare these approximations with the
exact value.
We shall find the linear and quadratic Taylor approximations to
f(x,y) = (x – 1)2 / (y – 3)2 at the point x0 = (x0 , y0) = ( 4 , 6 ) .
f(4,6) = 1
fx = 2(x – 1) / (y – 3)2
fx(4,6) = 2/3
fy = –2(x –1)2 / (y –3)3
fy(4,6) = – 2/3
fxx = 2 / (y – 3)2
fxx(4,6) = 2/9
fyy = 6(x – 1)2 / (y – 3)4
fyy(4,6) = 2/3
fxy = –4(x – 1) / (y – 3)3
fxy(4,6) = – 4/9
f(x0 + h) = f(4 + h1 , 6 + h2) = f(x,y) =
1 + (2/3)(x – 4) + (–2/3)(y – 6) +
1
1
—(2/9)(x – 4)2 + (–4/9)(x – 4)(y – 6) + —(2/3)(y – 6)2
2
2
+ R2((4,6) , h)
Find the linear and quadratic Taylor approximations to the expression
(3.98 – 1)2 / (5.97 – 3)2 . Compare these approximations with the
exact value.
We shall find the linear and quadratic Taylor approximations to
f(x,y) = (x – 1)2 / (y – 3)2 at the point x0 = (x0 , y0) = ( 4 , 6 ) .
f(x0 + h) = f(4 + h1 , 6 + h2) = f(x,y) =
1 + (2/3)(x – 4) + (–2/3)(y – 6) +
1
1
—(2/9)(x – 4)2 + (–4/9)(x – 4)(y – 6) + —(2/3)(y – 6)2
2
2
+ R2((4,6) , h)
The linear approximation of (3.98 – 1)2 / (5.97 – 3)2 is
1 + (2/3)(–0.02) + (–2/3)(–0.03) = 1.00666
The quadratic approximation of (3.98 – 1)2 / (5.97 – 3)2 is
1 + (2/3)(–0.02) + (–2/3)(–0.03) +
(1/9)(–0.02)2 + (–4/9)(–0.02)(–0.03) + (1/3)(–0.03)2 =
1.00674
The “exact” value is 1.00675.
The Second Order Taylor Formula is really just the terms in a power
series expansion up to degree two. If we know the power series
expansion, then we can extract the terms that would be in the Second
Order (or any order!) Taylor Formula.
For example, we know that for –1 < r < 1,
1
1 + r + r2 + r3 + r4 +... = ——
1–r
Consider the function
f(x,y)
=
1
1
———— = ————
1 – x – y2
1 – (x + y2)
We can obtain the linear and quadratic approximations (or any other
order approximations!) from the fact that
1
f(x,y) = ———— = 1 + (x + y2) + (x + y2)2 + (x + y2)3 + … .
1 – (x + y2)
for –1 < x + y2 < 1
The first order Taylor formula is f(x,y)  1 + x
The second order Taylor formula is f(x,y)  1 + x + x2 + y2
The third order Taylor formula is f(x,y)  1 + x + x2 + x3 + y2 + 2xy2