Runge-Kutta on Elliptical Orbits

AI Thread Summary
To analyze elliptical orbits using the Runge-Kutta method, the second-order differential equations must be converted into a system of first-order equations. This involves introducing new variables for the velocities, dx/dt and dy/dt, which represent the first derivatives of x and y. The original equations for acceleration can be used to derive these velocities by integrating over time. The discussion emphasizes the need for clarity in defining the function f(x, y, t) for the numerical analysis. Properly reformulating the equations is essential for successful implementation of the Runge-Kutta method.
DrDress
Messages
3
Reaction score
0

Homework Statement


Run a numerical analysis on elliptical orbits using the standard Runka-Kutta method. I already have the equations from Euler-Lagrange method in cartesian x,y-coordinates.

d2x/dt2 = -K x (x2 + y2 )-3/2
d2y/dt2 = -K y (x2 + y2 )-3/2

Homework Equations


I find it a little to get started. Most examples online are first order differential equations and/or single variable. So I'm not sure how to define my f(x,y,t) funktion. It's supposed to be the velocity dx/dt, right? But I "only" have the acceleration, so do I just multiply dt to get the velocity or what?

The Attempt at a Solution

 
Physics news on Phys.org
Do a web search on "2D Runge-Kutta"
 
You need to convert your system of second order equations into a system of coupled first order equations. That means introducing two new dependent variables, representing the first derivatives of x and y.
 

Similar threads

Back
Top