Math 2.0

Numerical analysis Ordinary differential equations Proposition

Midpoint method

Builds on Runge–Kutta methodsInitial value problemLocal truncation errorTaylor's theorem

Statement

Let f ⁣:[t0,T]×ℝd→ℝdf \colon [t_0, T] \times \R^d \to \R^d be of class C2C^2, and consider the initial value problem y′=f(t,y)y' = f(t, y), y(t0)=y0y(t_0) = y_0 with exact solution yy. The explicit midpoint method with step h>0h > 0 is yn+1=yn+h f(tn+h2,  yn+h2f(tn,yn)).y_{n+1} = y_n + h \, f\Big(t_n + \frac{h}{2}, \; y_n + \frac{h}{2} f(t_n, y_n)\Big). Its local truncation error is O(h3)O(h^3), so it is a Runge–Kutta method of order 22.

Remarks

Proof idea: by Taylor's theorem, y(t+h)=y+hf+h22(ft+fyf)+O(h3)y(t + h) = y + h f + \frac{h^2}{2}(f_t + f_y f) + O(h^3), with ff and its partial derivatives taken at (t,y(t))(t, y(t)). Expanding the increment gives hf(t+h2,y+h2f)=hf+h22(ft+fyf)+O(h3)h f\big(t + \frac h2, y + \frac h2 f\big) = h f + \frac{h^2}{2}(f_t + f_y f) + O(h^3), and the two expansions agree up to h2h^2. In Butcher form it has c=(0,12)c = (0, \tfrac12), a21=12a_{21} = \tfrac12 and b=(0,1)b = (0, 1). Example: for y′=λyy' = \lambda y it gives yn+1=(1+z+z22)yny_{n+1} = \big(1 + z + \frac{z^2}{2}\big) y_n with z=hλz = h\lambda, the Taylor polynomial of eze^z of degree 22. The implicit midpoint method yn+1=yn+hf(tn+h2,yn+yn+12)y_{n+1} = y_n + h f\big(t_n + \frac h2, \frac{y_n + y_{n+1}}{2}\big) also has order 22; it is the one-stage Gauss–Legendre method.

Going deeper

For a student

The explicit midpoint method is one of the simplest second-order Runge–Kutta methods, together with Heun's method. Both satisfy the order conditions ∑bi=1\sum b_i = 1 and ∑bici=12\sum b_i c_i = \frac12, and they differ in the choice of the second stage. The implicit midpoint method is symplectic and preserves quadratic invariants, which makes it useful for Hamiltonian systems.

Reading path

To understand this page from the ground up, read these 12 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Initial value problem concept
  2. Limit point of a set definition
  3. Local truncation error concept
  4. Runge–Kutta methods concept
  5. Limit of a function definition
  6. Derivative definition
  7. Differentiable function definition
  8. Derivative function definition
  9. Higher derivative definition
  10. Taylor polynomial definition
  11. Taylor's theorem statement
  12. Midpoint method statement

Further reading

  1. Web https://en.wikipedia.org/wiki/Midpoint_method
About this page
TagWHK8D383YT
URIm2://WHK8D383YT
Kindstatement, proposition
WritingW0 stub
MSC65L06, 65L05
StatusThis copy of the site has no build data. Run m2 status WHK8D383YT.
AboutRunge–Kutta methods
UsesRunge–Kutta methods, Initial value problem, Local truncation error, Taylor's theorem
Same as

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.