You are on page 1of 3

Chapter 9 - In Review

1.
$x_n$

Euler
$h=0.1$

Euler
$h=0.05$

1.00
1.05
1.10
1.15
1.20
1.25
1.30
1.35
1.40
1.45
1.50

2.0000

3.0201

2.0000
2.0693
2.1469
2.2328
2.3272
2.4299
2.5409
2.6604
2.7883
2.9245
3.0690

$x_n$

Euler
$h=0.1$

Euler
$h=0.05$

0.00
0.05
0.10
0.15
0.20
0.25
0.30
0.35
0.40
0.45
0.50

0.0000

0.0000
0.0500
0.1001
0.1506
0.2017
0.2537
0.3067
0.3610
0.4167
0.4739
0.5327

2.1386
2.3097
2.5136
2.7504

Imp.
Euler
$h=0.1$
2.0000
2.1549
2.3439
2.5672
2.8246
3.1157

Imp.
Euler
$h=0.05$
2.0000
2.0735
2.1554
2.2459
2.3450
2.4527
2.5689
2.6937
2.8269
2.9686
3.1187

RK4
$h=0.1$

RK4
$h=0.05$

2.0000

3.1197

2.0000
2.0736
2.1556
2.2462
2.3454
2.4532
2.5695
2.6944
2.8278
2.9696
3.1197

Imp.
Euler
$h=0.05$
0.0000
0.0501
0.1004
0.1512
0.2027
0.2552
0.3088
0.3638
0.4202
0.4782
0.5378

RK4
$h=0.1$

RK4
$h=0.05$

0.0000

0.0000
0.0500
0.1003
0.1511
0.2026
0.2551
0.3087
0.3637
0.4201
0.4781
0.5376

2.1556
2.3454
2.5695
2.8278

2.

0.1000
0.2010
0.3049
0.4135
0.5279

Imp.
Euler
$h=0.1$
0.0000
0.1005
0.2030
0.3092
0.4207
0.5382

0.1003
0.2026
0.3087
0.4201
0.5376

3.
$x_n$

Euler
$h=0.1$

Euler
$h=0.05$

0.50
0.55
0.60
0.65
0.70
0.75
0.80
0.85
0.90
0.95
1.00

0.5000

1.0921

0.5000
0.5500
0.6024
0.6573
0.7144
0.7739
0.8356
0.8996
0.9657
1.0340
1.1044

$x_n$

Euler
$h=0.1$

Euler
$h=0.05$

1.00
1.05
1.10
1.15
1.20
1.25
1.30
1.35
1.40
1.45
1.50

1.0000

1.0000
1.1000
1.2183
1.3595
1.5300
1.7389
1.9988
2.3284
2.7567
3.3296
4.1253

0.6000
0.7095
0.8283
0.9559

Imp.
Euler
$h=0.1$
0.5000
0.6048
0.7191
0.8427
0.9752
1.1163

Imp.
Euler
$h=0.05$
0.5000
0.5512
0.6049
0.6609
0.7193
0.7800
0.8430
0.9082
0.9755
1.0451
1.1168

RK4
$h=0.1$

1.1169

0.5000
0.5512
0.6049
0.6610
0.7194
0.7801
0.8431
0.9083
0.9757
1.0452
1.1169

Imp.
Euler
$h=0.05$
1.0000
1.1091
1.2405
1.4010
1.6001
1.8523
2.1799
2.6197
3.2360
4.1528
5.6404

RK4
$h=0.1$

RK4
$h=0.05$

1.0000

1.0000
1.1095
1.2415
1.2415
1.6036
1.8586
2,1911
2.6401
3,2755
4.2363
5.8446

0.5000
0.6049
0.7194
0.8431
0.9757

RK4
$h=0.05$

4.

1.2000
1.4760
1.8710
2.4643
3.4165

Imp.
Euler
$h=0.1$
1.0000
1.2380
1.5910
2.1524
3.1458
5.2510

1.2415
1.6036
1.6036
3,2745
5.8338

5. Using $y_n+1 = y_n+hu_n$, $y_0 = 3$ $u{n+1} = u_n + h(2x_n+ 1)y_n$,


$u_0= 1$ we obtain (when $h = 0.2$) $y_1 = y(0.2) = y_0 + hu_0 = 3 + (0.2)1 =
3.2$. When $h = 0.1$ we have $y_1 = y_0 + 0.1u_0 = 3 + (0.1)1 = 3.1$, $u_1 =
u_0 + 0.1 (2x_0 + 1)y_0 = 1 + 0.1(1)3 = 1.3$, $y_2 = y_1 +0.1u_1 = 3.1 + 0.1(1.3)
= 3.23$.
6. The first predictor is $y*_3= 1.14822731$.
$x_n$
0.0
2.00000000
0.1

$y_n$
init. cond.
RK4
RK4

1.65620000
0.2
1.41097281
0.3
1.24645047
0.4
1.14796764

RK4
ABM

7. Using $x_0 = 1$, $y_0 = 2$, and $h = 0.1$ we have $x_1 = x_0 + h(x_0 + y_0) =
1 + 0.1(1 + 2) = 1.3$, $y_1 = y_0 + h(x_0 y_0) = 2 + 0.1(1 - 2) = 1.9$ and $x_2
= x_1 + h(x_1 + y_1) = 1.3 + 0.1(1.3 + 1.9) = 1.62$, $y_2 = y_1 + h(x_1 y_1) =
1.9 + 0.1(1.3 - 1.9) = 1.84$. Thus, $x(0.2) \approx 1.62$ and $y(0 .2) \approx 1.84$.
8.

You might also like