Finite-difference methods
[5/40%]Let be given. Consider the linear difference equation
(Note the analogy with the differential equation .)
Find the general solution of the equation by trying suitable exponential substitutions.
Find the solution with and . Denote it by , .
Let be fixed and . Show that
Divide the interval into five equal subintervals, and apply the finite difference method in order to approximate the solution of the two-point boundary value problem
at the four interior grid points. Compare your approximate values at the grid points with the exact solution at the grid points. Note: You should not expect very accurate approximations with only four interior grid points.
Divide into equal subintervals, and apply the finite difference approximation method to derive the linear system associated with the two-point boundary value problem
Divide into five equal subintervals, and approximate the solution to
at the four interior grid points. Compare the approximations with the exact values at the grid points.
Consider the partial differential equation (Laplace equation)
with the boundary conditions
Apply the central difference scheme
and then solve the linear equation. Consider the cases and .