Numerically solving position and velocity of a particle

Click For Summary
SUMMARY

The discussion focuses on numerically solving the position and velocity of a particle using a second-order differential equation. The user has successfully derived the equation and is utilizing Heun's method for solving the corresponding first-order ordinary differential equations (ODEs). To obtain the position from the velocity, the user is advised to integrate the velocity function using Gaussian Quadrature. Additionally, converting the second-order ODE into a system of two first-order ODEs is recommended for effective numerical solutions using methods like Heun or Runge-Kutta.

PREREQUISITES
  • Understanding of second-order differential equations
  • Familiarity with first-order ordinary differential equations (ODEs)
  • Knowledge of numerical methods, specifically Heun's method and Runge-Kutta
  • Basic calculus concepts, particularly integration techniques
NEXT STEPS
  • Study the implementation of Heun's method for solving first-order ODEs
  • Learn about Gaussian Quadrature for numerical integration
  • Explore the conversion of second-order ODEs to first-order systems
  • Investigate the Runge-Kutta methods for numerical solutions of ODEs
USEFUL FOR

Students and professionals in physics, engineering, and applied mathematics who are working on numerical methods for solving differential equations and analyzing particle motion.

cytochrome
Messages
163
Reaction score
3
I have derived a 2nd order differential equation for the position of a particle. I can turn it into a first order ODE by making it an equation for the velocity of a particle, which is easy to solve. Once I have the velocity (which is a large data vector), what is the best way to numerically get the position?

I am using Heun's method for solving the ODE, but I'm confused how to use it for a 2nd order ODE and how to get the velocity AND the position
 
Physics news on Phys.org
Same way you would by hand - integrate it. From calculus you know that,

[tex]x(t) = \int_{t_0}^t v(\xi) d\xi[/tex]

You can do this quite accurately numerically using Gaussian Quadrature.
 
You can convert your original 2nd order ODE into a system of 2 first order ODEs which can be solved with Heun or with one of the other numerical methods (Runge-Kutta, for example). This procedure is covered in standard texts on ODEs.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
958
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 9 ·
Replies
9
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K