Understanding Runge-Kutta

This Demonstration shows the steps involved in computing the Runge–Kutta method of integrating a differential equation and how the approximations behave. in the graphic, drag the locator (from which the calculations start), change the step length , and move through the steps in the calculation.

SNAPSHOTS

  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]

DETAILS

Moving the initial point and varying the step size shows how, by sampling from points that contain the expected trajectory, the Runge–Kutta method improves on the Euler and related methods. Larger step sizes show how the method can err, while decreasing the step size shows the rapid convergence to the actual trajectory.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.