Numerical Analysis/Order of RK methods/Implicit RK2 on an Autonomous ODE

From testwiki
Jump to navigation Jump to search

We consider an autonomous initial value ODE Template:NumBlk Applying the Tradezoidal rule gives the implicit Runge-Kutta method Template:NumBlk We will show that (Template:EquationNote) is second order.

Expanding the true solution y(tn+h) about tn using Taylor series, we have

y(tn+h)=y(tn)+hy(tn)+h22y(tn)+h33!y(tn)+O(h4).

Since y(t) satisfies (Template:EquationNote), we can substitute y(t)=f(y(t)) and obtain Template:NumBlk In (Template:EquationNote) we can assume yn=y(tn) since that is the previous data. Subtracting (Template:EquationNote) from (Template:EquationNote) gives us the local truncation error Template:NumBlk In order to cancel more terms we need to expand f(yn+1). However, yn+1=y(tn+h) so we cannot do a regular Taylor expansion. Instead we can plug (Template:EquationNote) back into f and then do a Taylor expansion to obtain Template:NumBlk Substituting (Template:EquationNote) into (Template:EquationNote) yields Template:NumBlk This substitution was productive since the h terms canceled. We can do this trick again, but this time only need (Template:EquationNote) up to O(h2) since everything will be multiplied by at least h2 and this can go into the O(h4). Substituting (Template:EquationNote) in for the first occurance of f(yn+1) in (Template:EquationNote) yields Template:NumBlk This substitution was productive since the h2 terms canceled. We can do this again, now truncating (Template:EquationNote) at O(h). Substituting (Template:EquationNote) into (Template:EquationNote) yields

h312{f(y(tn))(f(y(tn)))2+(f(y(tn)))2f(y(tn))}+O(h4).

Since the h3 term does not cancel, we have shown that the local truncation error is O(h3) and thus the method is order 2.