Harj. 5

25.3. -99
  1. Download fem1.mws . Modify the example (from [EEHJ] p. 120) to work correctly.
    -u''=f  in (0,1)
    u(0)=u(1)=0,
    f(x)=10(1-10(x-0.5)2)e-5(x-0.5)2
    
  2. See the Matlab-file fem1mlb.html which includes a problem from [T-W] and its FD solution + an untested beginning of FEM-solution. Complete, solve and compare. (You may very well create your own style of solution, both in 1) and 2).
    Do also problem 1) with Matlab.
  3. Solve some of the Dirichlet problems in exercises nr. 4 using PDE Toolbox. Make a comparison to exact sol or to the FFT-based solution provided by Cooper's dirch . Evaluate max error (at grid points or at interpolated mesh points) and see how it is affected by mesh refinement. Make graphic illustrations.