Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2022/ii/paper-4/40c/b/i/solution

Sample the diffusion coefficient at edge midpoints and write
Centered differences of the two fluxes give the conservative finite-difference stencil
For example, the part is
Taylor expansion about shows that the odd powers cancel between the two face fluxes and that the result equals . The same calculation in gives total truncation error

New to topics? Read the docs here!