Books
in black and white
Main menu
Share a book About us Home
Books
Biology Business Chemistry Computers Culture Economics Fiction Games Guide History Management Mathematical Medicine Mental Fitnes Physics Psychology Scince Sport Technics
Ads

Elementary Differential Equations and Boundary Value Problems - Boyce W.E.

Boyce W.E. Elementary Differential Equations and Boundary Value Problems - John Wiley & Sons, 2001. - 1310 p.
Download (direct link): elementarydifferentialequations2001.pdf
Previous << 1 .. 225 226 227 228 229 230 < 231 > 232 233 234 235 236 237 .. 609 >> Next

Another approach is to keep the local truncation error approximately constant throughout the interval by gradually reducing the step size as t increases. In the example problem we would need to reduce h by a factor of about 50 in going from t = 0 to t = 2. A method that provides for variations in the step size is called adaptive. All modern computer codes for solving differential equations have the capability of adjusting the step size as needed. We will return to this question in the next section.
In each of Problems 1 through 6 find approximate values of the solution of the given initial value problem at t = 0.1, 0.2, 0.3, and 0.4.
(a) Use the Euler method with h = 0.05.
(b) Use the Euler method with h = 0.025.
(c) Use the backward Euler method with h = 0.05.
(d) Use the backward Euler method with h = 0.025.
1. = 3 + t - , (0) = 1 > 2. = 5t - 3Jy , (0) = 2
3. y = 2 - 3t, (0) = 1 > 4. / = 2t + -, (0) = 1
5. = ^ (0) = 0.5 > 6. = (t2 - 2) sin , (0) = -1
428
Chapter 8. Numerical Methods
In each of Problems 7 through 12 find approximate values of the solution of the given initial value problem at t = 0.5, 1.0, 1.5, and 2.0.
(a) Use the Euler method with h = 0.025.
(b) Use the Euler method with h = 0.0125.
(c) Use the backward Euler method with h = 0.025.
(d) Use the backward Euler method with h = 0.0125.
> 7. / = 0.5 t + 2y, y(0) = 1 > 8. = 5t 3Jy, y(0) = 2
> 9. = , y(0) = 3 > 10. y = 2t + e-y, y(0) = 1
> 11. / = (4 ty)/(\ + y2), y(0) = -2
> 12. = (y2 + 2ty)/(3 + t2), y(0) = 0.5
> 13. Complete the calculations leading to the entries in columns three and four of Table 8.1.1.
> 14. Complete the calculations leading to the entries in columns three and four of Table 8.1.2.
15. Using three terms in the Taylor series given in Eq. (12) and taking h = 0.1, determine approximate values of the solution of the illustrative example = 1 t + 4y, y(0) = 1 at t = 0.1 and 0.2. Compare the results with those using the Euler method and with the exact values.
Hint: If = f (t, y), what is y"?
In each of Problems 16 and 17 estimate the local truncation error for the Euler method in terms of the solution y = (). Obtain a bound for en+1 in terms of t and () that is valid on the interval 0 < t < 1. By using a formula for the solution obtain a more accurate error bound for e 1. For h = 0.1 compute a bound for e1 and compare it with the actual error at t = 0.1. Also compute a bound for the error e4 in the fourth step.
16. y = 2y 1, y(0) = 1 17. y = 1 t + 2y, y(0) = 1
In each of Problems 18 through 21 obtain a formula for the local truncation error for the Euler method in terms of t and the solution .
18. y = t2 + y2, y(0) = 1 19. y = 5t 3Jy, y(0) = 2
20. = , y(1) = 3 21. = 2t + e-ty, y(0) = 1
> 22. Consider the initial value problem
= cos 5n t, y (0) = 1.
(a) Determine the solution y = () and draw a graph of y = () for 0 < t < 1.
(b) Determine approximate values of (t) at t = 0.2, 0.4, and 0.6 using the Euler method with h = 0.2. Draw a broken-line graph for the approximate solution and compare it with the graph of the exact solution.
(c) Repeat the computation of part (b) for 0 < t < 0. 4, but take h = 0. 1.
(d) Show by computing the local truncation error that neither of these step sizes is sufficiently small. Determine a value of h to ensure that the local truncation error is less than 0.05 throughout the interval 0 < t < 1. That such a small value of h is required results from the fact that max \" (t) \ is large.
23. In this problem we discuss the global truncation error associated with the Euler method for the initial value problem = f (t, y), y(t0) = y0. Assuming that the functions f and fy are continuous in a region R of the ty-plane that includes the point (t0, y0), it can be shown that there exists a constant L such that \ f (t, y) f (t, y\ < L \y y\, where (t, y) and (t, y) are any two points in R with the same t coordinate (see Problem 15 of Section 2.8). Further, we assume that ft is continuous, so the solution has a continuous second derivative.
8.1 The Euler or Tangent Line Method
429
(a) Using Eq. (20) show that
|En+11 < |En| + h| f[tB,()] - f(tn, )| + 1 h2W(In)l<alEn| + eh2, (i)
where a = 1 + hL and = max ^"(t)I/2 on t0 < t < tn.
(b) Accepting without proof that if E0 = 0, and if | En | satisfies Eq. (i), then | En |< h2(aB - 1)/(a - 1) for a = 1, showthat
Previous << 1 .. 225 226 227 228 229 230 < 231 > 232 233 234 235 236 237 .. 609 >> Next