Having a hard time understanding Runge-Kutta integration method

Click For Summary

Discussion Overview

The discussion revolves around the Runge-Kutta integration methods, specifically focusing on the interpretation of the function 'f' within these methods, as well as the geometric interpretations of the various slopes (K1, K2, K3, K4) used in the fourth-order Runge-Kutta method. Participants explore the nature of these methods, their classifications, and the implications for error estimation.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Parvulescu Cosmin inquires about the meaning of the 'f' function in the context of Runge-Kutta methods.
  • Some participants describe 'f' as the derivative function in the initial value problem.
  • One participant expresses satisfaction with the clarification regarding 'f' and shares a resource for further learning about RK4.
  • A question is raised about the geometric interpretation of K1, K2, K3, and K4 in the fourth-order Runge-Kutta method.
  • Another participant explains the roles of K1, K2, K3, and K4 in the RK4 method, describing it as a predictor-corrector method.
  • Concerns are expressed about conflicting information regarding whether RK4 is a predictor-corrector method and the ability to estimate error when using RK4.
  • One participant suggests that RK4 can be viewed as a predictor-corrector method but acknowledges that this interpretation may not be particularly useful.

Areas of Agreement / Disagreement

Participants do not reach a consensus on whether RK4 should be classified as a predictor-corrector method, and there are differing views on the ability to estimate error in RK4. The discussion remains unresolved regarding these points.

Contextual Notes

There are references to different textbooks that provide conflicting information about the classification of RK4 and error estimation, indicating a lack of clarity in the literature.

PCosmin89
Messages
2
Reaction score
0
Greetings,

As I am in vacation now there is no way to ask my teacher so I will resort to this forum, I searched and didn't find it on the forum ( hope I haven't skipped anything ) so here goes my question:

For the Runge-Kutta integration methods, I am really puzzled as to what the 'f' function is, for example one of the variables for the xn+1 is f (tn + h⁄2, xn + h⁄2 b), what exactly does the 'f' signify ?

Thank you in advance,

Parvulescu Cosmin
 
Physics news on Phys.org
The Runge Kutta methods (not method) are various ways to solve the initial value problem

[tex]\begin{aligned}<br /> \frac{dx}{dt} &= f(t, x) \\<br /> x(t_0) &= x_0<br /> \end{aligned}[/tex]

One widely-used name for f is the derivative function.
 
D H said:
The Runge Kutta methods (not method) are various ways to solve the initial value problem

[tex]\begin{aligned}<br /> \frac{dx}{dt} &= f(t, x) \\<br /> x(t_0) &= x_0<br /> \end{aligned}[/tex]

One widely-used name for f is the derivative function.

Thank you for the explanation, I have it cleared now !

Also, if anyone else reads this and needs help with RK4, I have found http://www.youtube.com/watch?v=hGN54bkE8Ac" crash-course which also contains a followup example ! Good luck
 
Last edited by a moderator:
Just only formula in the video?

In RK2 we have geometrical interpretation for K1 and K2.
Do we have similar interpretation for K1, K2, K3, K4 in the 4th order Runge-Kutta methods?
 
Runge-Kutta is a "predictor-corrector" method. K1 is the slope of the tangent line at xn. That is used to "predict" the value at xn+1 (as in the basic Euler method) and K2 is the slope there. We then correct by using the average of K1 and K2 as slope to predict the value halfway between xn and xn+1 and find the slope, K3, there. Using that slope we predict a new value halfway between xn and xn+1 and find the new slope, K4, there. Finally, we use the (weighted) average of those four slopes to find the value of the function at xn+1.
 
So it looks like the interpretation for the K's in RK4 are similar to that of Modified Euler's Method, a variant of RK2.

But something is not right here. The book that I have Schaum Easy Outline on Differential Equation page 109 state that RK4 is not a predictor-corrector method.

Another book that I read state that we cannot estimate the error when using RK4. Is this true?
 
The standard RK4 method can be viewed as a predictor-corrector method in a sense. The first three steps collectively yield a prediction of the value at the end of the integration step. The final step provides a correction to this predicted value.

It is a stretch, and not a very useful one.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 65 ·
3
Replies
65
Views
9K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
8K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
5K