
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Department of Mathematics Colorado State University
Consider the two-point boundary value problem
−u′′^ = f, 0 < x < 1.
(a) f = −[2x^2 + 2(x − 1)^2 + 8x(x − 1))] and the boundary condition
u(0) = 0, 5 u(1) + u′(1) = 6,
for which the solution is u = x^2 (1 − x)^2 + x. (b) f = 1 when 0 < x < c and f = 0 when c < x < 1, where c =
2 /2. The boundary condition is u(0) = 0, u(1) = 0. The exact solution is given by u = −x^2 /2 + (c − c^2 /2)x for 0 < x < c and c^2 (1 − x)/2 for c < x < 1. In this case the differential equation will hold true for all 0 < x < 1 except for x < c where f is not defined.
Do this for n = 4, 8 , 16 , 32 , 64 uniform subintervals. For each of these values of n, have your program compute the l∞ and l 2 norms of the error vectors. Using doule precision in your computation.
α 1 Chα 2 implies α = ln Eh^1 Eh 2 / ln h^1 h 2
Determine α for each two successive values of h for both boundary value problems and both types of errors.
Notes: Due Feb 6, 2009. Free to choose computer language.