Three different integration schemes

  • Context: Undergrad 
  • Thread starter Thread starter member 428835
  • Start date Start date
  • Tags Tags
    Integration
Click For Summary
SUMMARY

This discussion focuses on the numerical solutions of first-order linear ordinary differential equations (ODEs) using three integration schemes: implicit Euler, explicit Euler, and RK4. The RK4 method is noted for its fourth-order accuracy, while the discussion highlights the importance of understanding error propagation and stability in numerical methods. Additionally, the distinction between symplectic and non-symplectic integrators is emphasized, particularly in relation to preserving phase space volume, which is crucial in fields like quantum mechanics.

PREREQUISITES
  • Understanding of first-order linear ordinary differential equations (ODEs)
  • Familiarity with numerical methods for solving differential equations
  • Knowledge of error analysis in numerical computations
  • Concept of symplectic integrators and their significance in phase space
NEXT STEPS
  • Study the properties and applications of RK4 integration method
  • Explore error propagation techniques in numerical analysis
  • Research symplectic integrators and their role in preserving phase space
  • Investigate stability criteria for numerical methods in ODEs
USEFUL FOR

Mathematicians, physicists, and engineers involved in numerical analysis, particularly those working with differential equations and requiring accurate solutions in simulations.

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   Reactions: member 428835

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
11K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K