Solution

ID: past-exam-of-the-approximation-theory-and-finite-element-methods-course-of-the-university-of-oxford/2008/b/8/a/solution

Use the full continuous piecewise linear space , including endpoint basis functions, because the boundary conditions are Neumann. Define
Choose as the projection of onto . For each time step seek with
This is the conforming Crank-Nicolson method. The reaction coefficient and the diffusion are both treated at the midpoint; integration by parts has removed the boundary flux through the homogeneous Neumann condition.

New to topics? Read the docs here!