Undergrad Three different integration schemes

  • Thread starter Thread starter member 428835
  • Start date Start date
  • Tags Tags
    Integration
Click For Summary
Different numerical integration methods for solving first-order linear ODE systems, such as implicit Euler, explicit Euler, and RK4, exhibit varying levels of accuracy and stability. RK4, known for its fourth-order accuracy, provides better approximations compared to the other methods, which may struggle with error propagation and stability. Some techniques, like symplectic integrators, preserve phase space volume, while others may offer higher accuracy at the cost of distorting phase space. The choice of method can significantly impact the results, especially in sensitive applications like quantum mechanics where norm conservation is crucial. Understanding these differences is essential for selecting the appropriate numerical method for a given problem.
member 428835
I'm solving a first order linear ODE system numerically three different ways: implicit Euler, explicit Euler, and RK4. Attached are the plots of the numerical solutions (line and stream of small closely-connected dots) and the exact solution (big dots). Also I plot the maximum error (right column).

My question is, why are some techniques better than others?
 

Attachments

Physics news on Phys.org
joshmccraney said:
My question is, why are some techniques better than others?
A complete answer would necessitate writing a textbook on numerical methods. Therefore, my best recommendation is to read good resources on the subject.

In a nutshell, you have to remember that these numerical methods produce approximations to the actual solutions. For instance, RK4 is called that because it is accurate up to 4th order. Different methods will have different accuracies. Also, there is the question of propagation of error: how does the error in one step affect the error in a subsequent step? Some methods are unstable: it is impossible to keep the errors from accumulating to the point of producing incorrect results.

There is also a choice of what is being approximated out. For example, some integrators are symplectic, meaning that they will preserve the volume in phase space. Another method which is not symplectic might be of higher accuracy, but the price to pay in using it is a distortion in phase space. In quantum mechanics, it is often important to use methods that are unitary and will conserve the norm of the wave function.
 
  • Like
Likes member 428835

Similar threads

Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
10K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K