






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!







Math 4820
Due: Thursday, 4/1/
vj+1 − 2 vj + vj− 1 h^2 − p(tj ) vj+1 − vj− 1 2 h − q(tj )vj = r(tj ), j = 1,... , N − 1
where v 0 = α, vN = β, and p(t), q(t), and r(t) are smooth functions. Show that A is nonsingular if q(t) > 0 and h ≤ 2 / max |p(t)|.
t^2 3
u′′^ − t 2
u′^ −
u =
t^2
, 1 ≤ t ≤ 2 , u(1) =
, u(2) =
Find a numerical solution of the BVP using the finite-difference approximation discussed in class. Solve the difference equations using N = 40, 80 and 160 grid cells. Find the global error E = max |vj − u(tj )| for each case and use this error to verify the order of accuracy of the approximation. Plot the numerical solution and the exact solution on the same graph for N = 40.
u′′^ + f (t, u) = 0 a ≤ t ≤ b
with boundary conditions u(a) = α and u(b) = β, and where f is a smooth function.
(a) Consider the finite-difference approximation
vj+1 − 2 vj + vj− 1 h^2
with v 0 = α and vN = β. Find the first two nonzero terms in the expansion of the truncation error τj.
(b) An alternate finite-difference approximation to the one in (a) is
vj+1 − 2 vj + vj− 1 h^2
f (tj+1, vj+1) + 10f (tj , vj ) + f (tj− 1 , vj− 1 ) 12 = 0, j = 1,... , N − 1
with v 0 = α and vN = β. Determine the order of accuracy of this approximation.
u′′^ − cosh(u) = 0, − 1 ≤ t ≤ 2 , u(−1) = 1, u(2) = 3
using the second-order finite-difference approximation in problem 3, part (a) with h = 3/N and N = 60. Use Newton’s method to solve the nonlinear algebraic equations as discussed in class. Note that there is always an issue of the starting guess for Newton’s method. For this case, it is sufficient to assume that vj = 1 + 2(tj + 1)/3 as a starting guess. Verify that your implementation of Newton’s method converges quadratically and plot solution.