Solution

ID: past-exam-of-the-short-options-paper-shared-by-parts-a-and-b-of-the-physics-course-of-the-university-of-oxford/2019/s31/1/b/solution

Write , and . Insert a smooth exact heat equation solution into the Crank-Nicolson method. Expanding about the midpoint gives
Thus the residual, defined as left side minus right side, is
Since implies ,
This proves second-order numerical consistency in both space and time. About the old time level, uncombined Taylor remainders can include ; the midpoint expression displays the symmetric leading errors most cleanly. Multiplying by gives the one-step defect . Stable evolution with suitable initial and boundary data then gives global error ; consistency alone does not prove global convergence.

New to topics? Read the docs here!