Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2005/iii/paper-69/5/a/solution

Use equal intervals, , and the interior piecewise-linear hat functions , which equal one at node , vanish at all other nodes and vanish outside the two adjacent intervals. Write . Testing with and integrating the second derivative by parts gives
The integrals are local: , , and . Nonadjacent functions do not overlap. Thus the consistent mass matrix and stiffness matrix are
Equivalently the explicit nodal equations are
For merely L2 initial data a natural choice is the Galerkin projection ; nodal interpolation is also possible for suitably smooth data. The relation identifies the natural finite-element energy. Differentiating gives .

New to topics? Read the docs here!