

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!


Comment: In addition to attaching the codes you used, say what the code does in the problem write up so it will be clear to me when I grade it.
f ′′′^ − 3 f ′′f ′^ + 1 = 0, (1)
using the boundary conditions
f (0) = 0, f ′(0) = 0, f ′(10) = − 2. 6. (2)
Plot f ′(x) and f ′′(x) separately. Estimate the error in the solution you report.
y′′^ =
x^2 − 2 x^2 + 2
y, (3)
using the boundary conditions
y(0) = 3, y(∞) = 0. (4)
a.) Approximate solution using y(7) = 0. Plot L∞ versus h for a wide variety of h. Also, plot the solution for various values of h. What do you notice? Explain. (How did you get the exact solution?) b.) Find a better condition at x = 10 and compare the solution with the solution from (a)
∂u ∂t
∂^2 u ∂x^2
the following method can be used
U (^) mn+1 = (1 − 2 r)U (^) mn + r(U (^) mn+1 + U (^) mn− 1 ), r =
∆t ∆x^2
Determine the stablility condition for this method.
du dt = u − 200002 v (7) dv dt
= u − 100002 v (8)
is stiff. Using the boundary conditions
u(0) = v(0) = 1 (9)
do the following:
a.) Find the exact solution for u(t) and v(t). b.) Solve the problem numerically using an explicit method and an implicit method. Get the error as small as possible (ideally machine precision). Plot L∞ versus h for a wide variety of h. Why didn’t you reduce the error any more? (What limitation did you reach with your smallest error?) c.) Plot the solution for a relatively accurate h. Include explicit, implicit, and the exact solution. Make sure your plot reveals all critical features of the results.
x^2 y′′^ + xy′^ + μ^2 x^2 y = 0 (10)
y′(0) = 0, y(1) = 0 (11)
by two methods discussed in class
a.) the shooting method described in class. b.) a direct method.
and another method based on solving a non-linear algebraic equation for the roots μ.