- #1
squenshl
- 479
- 4
Homework Statement
The MATLAB program below uses the finite element method to solve a Dirichlet problem for Poisson's equation.
-a1u''(x) = 0, xl < x < xh
u(xl) = 0, u(xh) = 1
Modify the problem to solve -u''(x) + u(x) = 1, xl < x < xh
u(0) = 0, u(1) = 1
Check your by finding the exact solution.