Initial-Value Problems for ODEs Eulers Method II: Error Bounds - - PowerPoint PPT Presentation

initial value problems for odes euler s method ii error
SMART_READER_LITE
LIVE PREVIEW

Initial-Value Problems for ODEs Eulers Method II: Error Bounds - - PowerPoint PPT Presentation

Initial-Value Problems for ODEs Eulers Method II: Error Bounds Numerical Analysis (9th Edition) R L Burden & J D Faires Beamer Presentation Slides prepared by John Carroll Dublin City University 2011 Brooks/Cole, Cengage Learning


slide-1
SLIDE 1

Initial-Value Problems for ODEs Euler’s Method II: Error Bounds

Numerical Analysis (9th Edition) R L Burden & J D Faires

Beamer Presentation Slides prepared by John Carroll Dublin City University

c 2011 Brooks/Cole, Cengage Learning

slide-2
SLIDE 2

Computational Lemmas Error Bound Example

Outline

1

Computational Lemmas

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 2 / 25

slide-3
SLIDE 3

Computational Lemmas Error Bound Example

Outline

1

Computational Lemmas

2

Error Bound for Euler’s Method

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 2 / 25

slide-4
SLIDE 4

Computational Lemmas Error Bound Example

Outline

1

Computational Lemmas

2

Error Bound for Euler’s Method

3

Error Bound Example

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 2 / 25

slide-5
SLIDE 5

Computational Lemmas Error Bound Example

Outline

1

Computational Lemmas

2

Error Bound for Euler’s Method

3

Error Bound Example

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 3 / 25

slide-6
SLIDE 6

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

Lemma 1

For all x ≥ −1 and any positive m, we have 0 ≤ (1 + x)m ≤ emx

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 4 / 25

slide-7
SLIDE 7

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

Proof of Lemma 1

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 5 / 25

slide-8
SLIDE 8

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

Proof of Lemma 1

Applying Taylor’s Theorem with f(x) = ex, x0 = 0, and n = 1 gives ex = 1 + x + 1 2x2eξ where ξ is between x and zero.

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 5 / 25

slide-9
SLIDE 9

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

Proof of Lemma 1

Applying Taylor’s Theorem with f(x) = ex, x0 = 0, and n = 1 gives ex = 1 + x + 1 2x2eξ where ξ is between x and zero. Thus 0 ≤ 1 + x ≤ 1 + x + 1 2x2eξ = ex

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 5 / 25

slide-10
SLIDE 10

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

Proof of Lemma 1

Applying Taylor’s Theorem with f(x) = ex, x0 = 0, and n = 1 gives ex = 1 + x + 1 2x2eξ where ξ is between x and zero. Thus 0 ≤ 1 + x ≤ 1 + x + 1 2x2eξ = ex and, because 1 + x ≥ 0, we have 0 ≤ (1 + x)m ≤ (ex)m = emx

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 5 / 25

slide-11
SLIDE 11

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

Lemma 2

If s and t are positive real numbers, {ai}k

i=0 is a sequence satisfying

a0 ≥ −t/s

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 6 / 25

slide-12
SLIDE 12

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

Lemma 2

If s and t are positive real numbers, {ai}k

i=0 is a sequence satisfying

a0 ≥ −t/s and ai+1 ≤ (1 + s)ai + t for each i = 0, 1, 2, . . . , k − 1,

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 6 / 25

slide-13
SLIDE 13

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

Lemma 2

If s and t are positive real numbers, {ai}k

i=0 is a sequence satisfying

a0 ≥ −t/s and ai+1 ≤ (1 + s)ai + t for each i = 0, 1, 2, . . . , k − 1, then ai+1 ≤ e(i+1)s

  • a0 + t

s

  • − t

s

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 6 / 25

slide-14
SLIDE 14

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

Proof of Lemma 2 (1/3)

For a fixed integer i, the inequality ai+1 ≤ (1 + s)ai + t

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 7 / 25

slide-15
SLIDE 15

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

Proof of Lemma 2 (1/3)

For a fixed integer i, the inequality ai+1 ≤ (1 + s)ai + t implies that ai+1 ≤ (1 + s)ai + t

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 7 / 25

slide-16
SLIDE 16

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

Proof of Lemma 2 (1/3)

For a fixed integer i, the inequality ai+1 ≤ (1 + s)ai + t implies that ai+1 ≤ (1 + s)ai + t ≤ (1 + s)[(1 + s)ai−1 + t] + t

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 7 / 25

slide-17
SLIDE 17

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

Proof of Lemma 2 (1/3)

For a fixed integer i, the inequality ai+1 ≤ (1 + s)ai + t implies that ai+1 ≤ (1 + s)ai + t ≤ (1 + s)[(1 + s)ai−1 + t] + t = (1 + s)2ai−1 + [1 + (1 + s)]t

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 7 / 25

slide-18
SLIDE 18

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

Proof of Lemma 2 (1/3)

For a fixed integer i, the inequality ai+1 ≤ (1 + s)ai + t implies that ai+1 ≤ (1 + s)ai + t ≤ (1 + s)[(1 + s)ai−1 + t] + t = (1 + s)2ai−1 + [1 + (1 + s)]t ≤ (1 + s)3ai−2 +

  • 1 + (1 + s) + (1 + s)2

t

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 7 / 25

slide-19
SLIDE 19

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

Proof of Lemma 2 (1/3)

For a fixed integer i, the inequality ai+1 ≤ (1 + s)ai + t implies that ai+1 ≤ (1 + s)ai + t ≤ (1 + s)[(1 + s)ai−1 + t] + t = (1 + s)2ai−1 + [1 + (1 + s)]t ≤ (1 + s)3ai−2 +

  • 1 + (1 + s) + (1 + s)2

t . . . ≤ (1 + s)i+1a0 +

  • 1 + (1 + s) + (1 + s)2 + · · · + (1 + s)i

t

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 7 / 25

slide-20
SLIDE 20

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

ai+1 ≤ (1 + s)i+1a0 +

  • 1 + (1 + s) + (1 + s)2 + · · · + (1 + s)i

t

Proof of Lemma 2 (2/3)

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 8 / 25

slide-21
SLIDE 21

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

ai+1 ≤ (1 + s)i+1a0 +

  • 1 + (1 + s) + (1 + s)2 + · · · + (1 + s)i

t

Proof of Lemma 2 (2/3)

But 1 + (1 + s) + (1 + s)2 + · · · + (1 + s)i =

i

  • j=0

(1 + s)j is a geometric series with ratio (1 + s)

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 8 / 25

slide-22
SLIDE 22

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

ai+1 ≤ (1 + s)i+1a0 +

  • 1 + (1 + s) + (1 + s)2 + · · · + (1 + s)i

t

Proof of Lemma 2 (2/3)

But 1 + (1 + s) + (1 + s)2 + · · · + (1 + s)i =

i

  • j=0

(1 + s)j is a geometric series with ratio (1 + s) that sums to 1 − (1 + s)i+1 1 − (1 + s) = 1 s[(1 + s)i+1 − 1]

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 8 / 25

slide-23
SLIDE 23

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

ai+1 ≤ (1 + s)i+1a0 +

  • 1 + (1 + s) + (1 + s)2 + · · · + (1 + s)i

t

Proof of Lemma 2 (3/3)

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 9 / 25

slide-24
SLIDE 24

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

ai+1 ≤ (1 + s)i+1a0 +

  • 1 + (1 + s) + (1 + s)2 + · · · + (1 + s)i

t

Proof of Lemma 2 (3/3)

Thus ai+1 ≤ (1 + s)i+1a0 + (1 + s)i+1 − 1 s t = (1 + s)i+1

  • a0 + t

s

  • − t

s

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 9 / 25

slide-25
SLIDE 25

Computational Lemmas Error Bound Example

Euler’s Method: Computational Lemmas

ai+1 ≤ (1 + s)i+1a0 +

  • 1 + (1 + s) + (1 + s)2 + · · · + (1 + s)i

t

Proof of Lemma 2 (3/3)

Thus ai+1 ≤ (1 + s)i+1a0 + (1 + s)i+1 − 1 s t = (1 + s)i+1

  • a0 + t

s

  • − t

s and using Lemma 1 with x = 1 + s gives ai+1 ≤ e(i+1)s

  • a0 + t

s

  • − t

s.

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 9 / 25

slide-26
SLIDE 26

Computational Lemmas Error Bound Example

Outline

1

Computational Lemmas

2

Error Bound for Euler’s Method

3

Error Bound Example

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 10 / 25

slide-27
SLIDE 27

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Theorem

Theorem

Suppose f is continuous and satisfies a Lipschitz condition with constant L on D = { (t, y) | a ≤ t ≤ b and − ∞ < y < ∞ } and that a constant M exists with |y′′(t)| ≤ M, for all t ∈ [a, b] where y(t) denotes the unique solution to the initial-value problem y′ = f(t, y), a ≤ t ≤ b, y(a) = α Continued on the next slide:

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 11 / 25

slide-28
SLIDE 28

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Theorem

Theorem (Cont’d)

Let w0, w1, . . . , wN be the approximations generated by Euler’s method for some positive integer N. Then, for each i = 0, 1, 2, . . . , N, |y(ti) − wi| ≤ hM 2L

  • eL(ti−a) − 1
  • Numerical Analysis (Chapter 5)

Euler’s Method II: Error Bounds R L Burden & J D Faires 12 / 25

slide-29
SLIDE 29

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Theorem

Prrof (1/3)

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 13 / 25

slide-30
SLIDE 30

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Theorem

Prrof (1/3)

When i = 0 the result is clearly true, since y(t0) = w0 = α. Since y′(t) = f(t, y), we have: y(ti+1) = y(ti) + hf(ti, y(ti)) + h2 2 y′′(ξi) for i = 0, 1, . . . , N − 1. Also, Euler’s method is: wi+1 = wi + hf(ti, wi) Using the notation yi = y(ti) and yi+1 = y(ti+1), we subtract these two equations to obtain yi+1 − wi+1 = yi − wi + h[f(ti, yi) − f(ti, wi)] + h2 2 y′′(ξi)

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 13 / 25

slide-31
SLIDE 31

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Theorem

yi+1 − wi+1 = yi − wi + h[f(ti, yi) − f(ti, wi)] + h2 2 y′′(ξi)

Prrof (2/3)

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 14 / 25

slide-32
SLIDE 32

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Theorem

yi+1 − wi+1 = yi − wi + h[f(ti, yi) − f(ti, wi)] + h2 2 y′′(ξi)

Prrof (2/3)

Hence |yi+1 − wi+1| ≤ |yi − wi| + h|f(ti, yi) − f(ti, wi)| + h2 2 |y′′(ξi)| Now f satisfies a Lipschitz condition in the second variable with constant L, and |y′′(t)| ≤ M, so |yi+1 − wi+1| ≤ (1 + hL)|yi − wi| + h2M 2

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 14 / 25

slide-33
SLIDE 33

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Theorem

|yi+1 − wi+1| ≤ (1 + hL)|yi − wi| + h2M 2

Prrof (3/3)

Referring to

Lemma 2 and letting s = hL, t = h2M/2, and aj = |yj − wj|,

for each j = 0, 1, . . . , N,

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 15 / 25

slide-34
SLIDE 34

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Theorem

|yi+1 − wi+1| ≤ (1 + hL)|yi − wi| + h2M 2

Prrof (3/3)

Referring to

Lemma 2 and letting s = hL, t = h2M/2, and aj = |yj − wj|,

for each j = 0, 1, . . . , N, we see that |yi+1 − wi+1| ≤ e(i+1)hL

  • |y0 − w0| + h2M

2hL

  • − h2M

2hL

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 15 / 25

slide-35
SLIDE 35

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Theorem

|yi+1 − wi+1| ≤ (1 + hL)|yi − wi| + h2M 2

Prrof (3/3)

Referring to

Lemma 2 and letting s = hL, t = h2M/2, and aj = |yj − wj|,

for each j = 0, 1, . . . , N, we see that |yi+1 − wi+1| ≤ e(i+1)hL

  • |y0 − w0| + h2M

2hL

  • − h2M

2hL Because |y0 − w0| = 0 and (i + 1)h = ti+1 − t0 = ti+1 − a, this implies that |yi+1 − wi+1| ≤ hM 2L (e(ti+1−a)L − 1) for each i = 0, 1, . . . , N − 1.

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 15 / 25

slide-36
SLIDE 36

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Theorem

Comments on the Theorem

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 16 / 25

slide-37
SLIDE 37

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Theorem

Comments on the Theorem

The weakness of the error-bound theorem lies in the requirement that a bound be known for the second derivative of the solution.

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 16 / 25

slide-38
SLIDE 38

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Theorem

Comments on the Theorem

The weakness of the error-bound theorem lies in the requirement that a bound be known for the second derivative of the solution. Although this condition often prohibits us from obtaining a realistic error bound, it should be noted that if ∂f/∂t and ∂f/∂y both exist, the chain rule for partial differentiation implies that y′′(t) = dy′ dt (t) = df dt (t, y(t)) = ∂f ∂t (t, y(t)) + ∂f ∂y (t, y(t)) · f(t, y(t))

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 16 / 25

slide-39
SLIDE 39

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Theorem

Comments on the Theorem

The weakness of the error-bound theorem lies in the requirement that a bound be known for the second derivative of the solution. Although this condition often prohibits us from obtaining a realistic error bound, it should be noted that if ∂f/∂t and ∂f/∂y both exist, the chain rule for partial differentiation implies that y′′(t) = dy′ dt (t) = df dt (t, y(t)) = ∂f ∂t (t, y(t)) + ∂f ∂y (t, y(t)) · f(t, y(t)) So it is at times possible to obtain an error bound for y′′(t) without explicitly knowing y(t).

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 16 / 25

slide-40
SLIDE 40

Computational Lemmas Error Bound Example

Outline

1

Computational Lemmas

2

Error Bound for Euler’s Method

3

Error Bound Example

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 17 / 25

slide-41
SLIDE 41

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Example

Applying the Theorem

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 18 / 25

slide-42
SLIDE 42

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Example

Applying the Theorem

The solution to the initial-value problem y′ = y − t2 + 1, 0 ≤ t ≤ 2, y(0) = 0.5 was approximated in an earlier example using Euler’s method with h = 0.2.

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 18 / 25

slide-43
SLIDE 43

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Example

Applying the Theorem

The solution to the initial-value problem y′ = y − t2 + 1, 0 ≤ t ≤ 2, y(0) = 0.5 was approximated in an earlier example using Euler’s method with h = 0.2. Use the inequality in the error bound theorem to find bounds for the approximation errors and compare these to the actual errors.

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 18 / 25

slide-44
SLIDE 44

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Example

Solution (1/4)

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 19 / 25

slide-45
SLIDE 45

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Example

Solution (1/4)

Because f(t, y) = y − t2 + 1, we have ∂f(t, y)/∂y = 1 for all y, so L = 1.

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 19 / 25

slide-46
SLIDE 46

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Example

Solution (1/4)

Because f(t, y) = y − t2 + 1, we have ∂f(t, y)/∂y = 1 for all y, so L = 1. For this problem, the exact solution is y(t) = (t + 1)2 − 0.5et, so y′′(t) = 2 − 0.5et and |y′′(t)| ≤ 0.5e2 − 2, for all t ∈ [0, 2].

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 19 / 25

slide-47
SLIDE 47

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Example

Solution (1/4)

Because f(t, y) = y − t2 + 1, we have ∂f(t, y)/∂y = 1 for all y, so L = 1. For this problem, the exact solution is y(t) = (t + 1)2 − 0.5et, so y′′(t) = 2 − 0.5et and |y′′(t)| ≤ 0.5e2 − 2, for all t ∈ [0, 2]. Using the inequality in the error bound for Euler’s method with h = 0.2, L = 1, and M = 0.5e2 − 2 gives |yi − wi| ≤ 0.1(0.5e2 − 2)(eti − 1).

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 19 / 25

slide-48
SLIDE 48

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Example

|yi − wi| ≤ 0.1(0.5e2 − 2)(eti − 1).

Solution (2/4)

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 20 / 25

slide-49
SLIDE 49

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Example

|yi − wi| ≤ 0.1(0.5e2 − 2)(eti − 1).

Solution (2/4)

Hence |y(0.2) − w1| ≤ 0.1(0.5e2 − 2)(e0.2 − 1) = 0.03752

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 20 / 25

slide-50
SLIDE 50

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Example

|yi − wi| ≤ 0.1(0.5e2 − 2)(eti − 1).

Solution (2/4)

Hence |y(0.2) − w1| ≤ 0.1(0.5e2 − 2)(e0.2 − 1) = 0.03752 |y(0.4) − w2| ≤ 0.1(0.5e2 − 2)(e0.4 − 1) = 0.08334 and so on.

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 20 / 25

slide-51
SLIDE 51

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Example

|yi − wi| ≤ 0.1(0.5e2 − 2)(eti − 1).

Solution (2/4)

Hence |y(0.2) − w1| ≤ 0.1(0.5e2 − 2)(e0.2 − 1) = 0.03752 |y(0.4) − w2| ≤ 0.1(0.5e2 − 2)(e0.4 − 1) = 0.08334 and so on. The folloiwng table lists the actual error computed in the original example, together with this error bound.

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 20 / 25

slide-52
SLIDE 52

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Example

Solution (3/4)

ti 0.2 0.4 0.6 0.8 1.0 Actual Error 0.02930 0.06209 0.09854 0.13875 0.18268 Error Bound 0.03752 0.08334 0.13931 0.20767 0.29117 ti 1.2 1.4 1.6 1.8 2.0 Actual Error 0.23013 0.28063 0.33336 0.38702 0.43969 Error Bound 0.39315 0.51771 0.66985 0.85568 1.08264

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 21 / 25

slide-53
SLIDE 53

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Example

Solution (4/4)

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 22 / 25

slide-54
SLIDE 54

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Example

Solution (4/4)

Note that even though the true bound for the second derivative of the solution was used, the error bound is considerably larger than the actual error, especially for increasing values of t.

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 22 / 25

slide-55
SLIDE 55

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Example

Solution (4/4)

Note that even though the true bound for the second derivative of the solution was used, the error bound is considerably larger than the actual error, especially for increasing values of t. The principal importance of the error-bound formula given in this theorem is that the bound depends linearly on the step size h.

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 22 / 25

slide-56
SLIDE 56

Computational Lemmas Error Bound Example

Euler’s Method: Error Bound Example

Solution (4/4)

Note that even though the true bound for the second derivative of the solution was used, the error bound is considerably larger than the actual error, especially for increasing values of t. The principal importance of the error-bound formula given in this theorem is that the bound depends linearly on the step size h. Consequently, diminishing the step size should give correspondingly greater accuracy to the approximations.

Numerical Analysis (Chapter 5) Euler’s Method II: Error Bounds R L Burden & J D Faires 22 / 25

slide-57
SLIDE 57

Questions?

slide-58
SLIDE 58

Reference Material

slide-59
SLIDE 59

Euler’s Method: Computational Lemmas

Lemma 2

If s and t are positive real numbers, {ai}k

i=0 is a sequence satisfying

a0 ≥ −t/s and ai+1 ≤ (1 + s)ai + t for each i = 0, 1, 2, . . . , k − 1, then ai+1 ≤ e(i+1)s

  • a0 + t

s

  • − t

s

Return to Euler’s Error Bound Theorem