Derive local truncation error for the Improved Euler Method

  • #1
oceanix
1
0
TL;DR Summary
Can't figure out how to find the local truncation error for the Improved Euler method
I'm trying to find the local truncation error of the autonomous ODE: fx/ft = f(x).

I know that the error is |x(t1) − x1|, but I can't successfully figure out the Taylor expansion to get to the answer, which I believe is O(h^3).

Any help would be greatly appreciated!
 

Answers and Replies

  • #2
BvU
Science Advisor
Homework Helper
15,383
4,372
Did you try googling " local truncation error for the Improved Euler " ? I got lots of good hits.
 
  • #3
pasmith
Homework Helper
2022 Award
2,593
1,196
Is that [tex]
\begin{align*}
\bar x_{i+1} &= x_i + hf(x_i) \\
x_{i+1} &= x_i + \tfrac12 h(f(x_i) + f(\bar x_i))\mbox{?}\end{align*}[/tex] The method is to expand the right-hand side of the second equation in a Taylor series about [itex]x_i[/itex],
[tex]
\begin{align*}
x_{i+1} &= x_i + \tfrac12 h \left(f(x_i) + f(x_i + hf(x_i))\right) \\
&= x_i + \tfrac12 h \left(2f(x_i) + hf(x_i)f'(x_i) + \tfrac12h^2f(x_i)^2f''(x_i) + O(h^3) \right)
\end{align*}
[/tex]
and compare it to the Taylor series of the correct value, [tex]
\begin{align*}
x(t_i + h) &= x(t_i) + h\dot x(t_i) + \tfrac12 h^2 \ddot x(t_i) + \tfrac16 h^3 x^{(3)}(t_i) + O(h^4) \\
&= x_i + hf(x_i) + \tfrac12h^2 f'(x_i)f(x_i) + \tfrac16 h^3 f(x_i)(f(x_i)f''(x_i) + f'(x_i)^2) + O(h^4).
\end{align*}[/tex]
 

Suggested for: Derive local truncation error for the Improved Euler Method

Replies
2
Views
911
Replies
1
Views
121
  • Last Post
Replies
4
Views
1K
  • Last Post
Replies
3
Views
1K
Replies
3
Views
414
  • Last Post
Replies
3
Views
824
Replies
8
Views
2K
  • Last Post
Replies
3
Views
173
Replies
10
Views
798
Replies
2
Views
860
Top