Runge-Kutta (RK4) Method Notes
This Runge-Kutta Method Calculator approximates the solution of an initial value problem with the classic fourth-order scheme, and shows the working line by line. Four slopes are measured across each step, one at the start, two in the middle and one at the end, and their weighted average drives the step. Weighting the middle slopes twice as heavily is what makes it so much more accurate than Euler. Following the same pattern every time keeps the four slopes in order.
Step-by-step method
- Set up the problem.
- Write the fourth-order Runge-Kutta update rule.
- Apply the four slope estimates row by row.
- Report the final approximation y at x_n.
Formula:
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the fourth-order Runge-Kutta update rule.
- Apply the four slope estimates row by row.
- Report the final approximation y at x_n.
Step 1
Step 1 - Set up the problem.
In this problem:
Step 2
Step 2 - Write the fourth-order Runge-Kutta update rule.
In this problem:
Step 3
Step 3 - Apply the four slope estimates row by row.
In this problem:
Step 4
Step 4 - Report the final approximation y at x_n.
In this problem:
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the fourth-order Runge-Kutta update rule.
- Apply the four slope estimates row by row.
- Report the final approximation y at x_n.
Step 1
Step 1 - Set up the problem.
In this problem:
Step 2
Step 2 - Write the fourth-order Runge-Kutta update rule.
In this problem:
Step 3
Step 3 - Apply the four slope estimates row by row.
In this problem:
Step 4
Step 4 - Report the final approximation y at x_n.
In this problem:
Final Answer
See Example 3 Hide Example 3
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the fourth-order Runge-Kutta update rule.
- Apply the four slope estimates row by row.
- Report the final approximation y at x_n.
Step 1
Step 1 - Set up the problem.
In this problem:
Step 2
Step 2 - Write the fourth-order Runge-Kutta update rule.
In this problem:
Step 3
Step 3 - Apply the four slope estimates row by row.
In this problem:
Step 4
Step 4 - Report the final approximation y at x_n.
In this problem:
Final Answer
See Example 4 Hide Example 4
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the fourth-order Runge-Kutta update rule.
- Apply the four slope estimates row by row.
- Report the final approximation y at x_n.
Step 1
Step 1 - Set up the problem.
In this problem:
Step 2
Step 2 - Write the fourth-order Runge-Kutta update rule.
In this problem:
Step 3
Step 3 - Apply the four slope estimates row by row.
In this problem:
Step 4
Step 4 - Report the final approximation y at x_n.
In this problem:
Final Answer