Solution

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

Let be a uniform periodic mesh, with indices interpreted modulo the number of nodes. Write the finite element approximation as using the chapeau functions. The Galerkin method requires
The mass matrix has and . The spatial matrix has and , with zero diagonal. Therefore the semidiscrete equations are
or equivalently . The coefficients come from integrating the products of the two overlapping piecewise-linear hat functions on each interval; periodicity supplies the wraparound entries.

New to topics? Read the docs here!