Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2023/ii/paper-1/41c/b/i/solution

The first stage is
Because , this consists of independent tridiagonal systems of dimension . The Thomas algorithm solves each in operations, for a total of .
The second stage,
is multiplication by a matrix with only nonzero entries, so it also costs . Hence one complete step uses at most
arithmetic operations.

New to topics? Read the docs here!