Docsity

Math 128A, Spring 2007 HW 8 Solution: Derivative Approximation & Equivalent Systems, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Math 128A, Spring 2007
Homework 8 Solution
5.4.14 We approximate f00(0.5) as 0.0800 and 0.0775 for h= 0.1 and h= 0.2,
respectively. To understand the roundoff error, note that we know all of
the data to within 0.00005. So,
f00(x)≈f(x+h)−2f(x) + f(x−h)
h2
=ˆ
f(x+h)−2ˆ
f(x) + ˆ
f(x−h)
h2+1−22+3
h2
where each |i|<0.00005 and ˆ
f(x) is the value in the table. The roundoff
error term can be bounded
1−22+3
h2
<4×0.00005
h2
yeilding 0.0200 and 0.0050 for h= 0.1 and h= 0.2, respectively.
8.7.3 (a) If we let Y1=Y,Y2=Y0and Y3=Y00, then the system
Y0
1=Y2Y1(0) = 1
Y0
2=Y3Y2(0) = −1
Y0
3+ 4Y3+ 5Y2+ 2Y1= 2x2+ 10x+ 8 Y3(0) = 3
is equivalent to the original one.
(b) Letting Y1=Yand Y2=Y0,
Y0
1=Y2Y1(0) = 3
Y0
2+ 4Y2+ 13Y1= 40 cos(x)Y2(0) = 4
is equivalent to the original system.
8.7.4 If we let X1=x,X2=x0,Y1=y,Y2=y0,Z1=z,Z2=z0, and
R= (X2
1+Y2
1+Z2
1)1/2, then
X0
1=X2X0
2=−cX1/R3
Y0
1=Y2Y0
2=−cY1/R3
Z0
1=Z2Z0
2=−cZ1/R3
is equivalent to the original system.
Euler We get data
i x_i y_i
0 0.00 1.0000
1 0.05 0.9500
2 0.10 0.9050
3 0.15 0.8645
4 0.20 0.8283
1

Partial preview of the text

Download Math 128A, Spring 2007 HW 8 Solution: Derivative Approximation & Equivalent Systems and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Math 128A, Spring 2007

Homework 8 Solution

5.4.14 We approximate f ′′ (0.5) as 0.0800 and 0.0775 for h = 0.1 and h = 0.2,

respectively. To understand the roundoff error, note that we know all of

the data to within 0.00005. So,

f

′′ (x) ≈

f (x + h) − 2 f (x) + f (x − h)

h 2

f (x + h) − 2

f (x) +

f (x − h)

h 2

h 2

where each |i| < 0 .00005 and

f (x) is the value in the table. The roundoff

error term can be bounded ∣ ∣ ∣ ∣

h 2

4 × 0. 00005

h 2

yeilding 0.0200 and 0.0050 for h = 0.1 and h = 0.2, respectively.

8.7.3 (a) If we let Y 1 = Y , Y 2 = Y

′ and Y 3 = Y

′′ , then the system

Y

′ 1

= Y 2 Y 1 (0) = 1

Y

′ 2

= Y 3 Y 2 (0) = − 1

Y

′ 3

  • 4Y 3 + 5Y 2 + 2Y 1 = 2x

2

  • 10x + 8 Y 3 (0) = 3

is equivalent to the original one.

(b) Letting Y 1 = Y and Y 2 = Y

′ ,

Y

′ 1

= Y 2 Y 1 (0) = 3

Y

′ 2

  • 4Y 2 + 13Y 1 = 40 cos(x) Y 2 (0) = 4

is equivalent to the original system.

8.7.4 If we let X 1 = x, X 2 = x ′ , Y 1 = y, Y 2 = y ′ , Z 1 = z, Z 2 = z ′ , and

R = (X 2 1

+ Y

2 1

+ Z

2 1

1 / 2 , then

X

′ 1 =^ X^2 X

′ 2 =^ −cX^1 /R

3

Y

′ 1 =^ Y^2 Y^

′ 2 =^ −cY^1 /R

3

Z

′ 1 =^ Z 2 Z

′ 2 =^ −cZ 1 /R

3

is equivalent to the original system.

Euler We get data

i x_i y_i

0 0.00 1.

1 0.05 0.

2 0.10 0.

3 0.15 0.

4 0.20 0.