Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2008/ii/paper-2/38c/a/solution

Substitute the exact smooth solution into the leapfrog advection scheme and expand the centered differences. With and , the normalized local truncation error is
Because , repeated differentiation gives . Hence
Equivalently the unnormalized one-update residual is . Thus the scheme is second order in space and time. When , the exact translating solution satisfies the grid recurrence exactly; initialization still matters for the independent computational branch.

New to topics? Read the docs here!