Orbital Mechanics

Newton's Law of Gravity

The N-body Problem

We are interested in the motion of n particles or masses interacting with each other via
mutual gravitation. We will denote the mass of each particle as mi and the position and
velocity of each particle as ri and vi respectively1.
We can denote the distance between two bodies i and j as

rij:=||rirj||=(rirj)(rirj).
Theorem

Newton's Law of Universal Gravitation for N bodies For a system of N particles each with mass mi and position ri, the total force experienced by particle i is:

fi=j=1,ijNGmimj(rjri)rij3

the force on body i is directed raidially towards particle j in the direction of the unit vector (rjri)/rij

Fact

Equations of motion for N bodies For an N-body system, the equations of motion are:

d2ridt2=j=1,ieqjNGmj(rjri)rij3

2 body problem

For a system of two bodies, our equations of motion are:

m1d2r1dt2=Gm1m2(r2r1)r123m2d2r2dt2=Gm1m2(r1r2)r213.

However, we generally are more interested in the relative motion of the two bodies. We can therefore define

r:=r2r1v:=v2v1r:=||r||=||r2r1||μ:=G(m1+m2)

so taking the difference of the above 2 equations we get

d2rdt2+μrr3=0.

which is what we call the fundamental ODE of the 2 body problem

however notice that this implies

ddt(r×v)=ddtr×v+r×ddtv=v×v+r×(μr3r)=0,

so we conclude immediately that

r×v=h=constant

we denote h to be the (specific) angular momentum vector

Corollary

we may also derive the eccentricity vector e from

ddt[v×hμrr]=0

in which we obtain

v×hμrr=μe=constant

its magnitude e is known as the eccentricity of the orbit

Proof.
Step 1: Compute the Time Derivative

Consider the expression v×hμrr and take its time derivative:

ddt(v×hμrr)=ddt(v×h)+ddt(μrr)

Compute each term separately.

Step 2: Derivative of v×h

Using the product rule for cross products:

ddt(v×h)=dvdt×h+v×dhdt

Since h=r×v is constant (from the first verification), its derivative is:

dhdt=0

Thus:

ddt(v×h)=dvdt×h+v×0=dvdt×h

Substitute the acceleration:

dvdt=μr3r

So:

ddt(v×h)=(μr3r)×h=μr3(r×h)

Since h=r×v, substitute this in:

r×h=r×(r×v)

Use the vector triple product identity A×(B×C)=B(AC)C(AB), with A=r, B=r, C=v:

r×(r×v)=r(rv)v(rr)

Since rr=r2:

r×h=r(rv)vr2

Now:

μr3(r×h)=μr3[r(rv)vr2]

Distribute:

=μr3r(rv)+μr3vr2=μrvr3r+μr2r3v=μrvr3r+μ1rv

So:

ddt(v×h)=μrvr3r+μ1rv

Step 3: Derivative of μrr

Rewrite μrr=μrr, where μ is constant:

ddt(μrr)=μddt(rr)

Use the product rule for rr=rr1:

ddt(rr)=drdtr1+rddt(r1)

Since drdt=v and r1=1r:

ddt(r1)=ddt(1r)=1r2drdt

Compute drdt:

r=|r|=(x2+y2+z2)1/2,drdt=rdrdtr=rvr

So:

ddt(r1)=1r2rvr=rvr3

Thus:

ddt(rr)=v1r+r(rvr3)=vrrvr3r

So:

ddt(μrr)=μ(vrrvr3r)=μvr+μrvr3r

Alternatively, use the product rule directly:

ddt(rr)=ddt(r1)r+r1drdt=(rvr3)r+vrddt(μrr)=μ(rvr3r+vr)=μrvr3rμvr

Step 4: Combine the Results

Now, sum the derivatives:

ddt(v×hμrr)=(μrvr3r+μ1rv)+(μrvr3rμ1rv)

Combine like terms:

ddt(v×hμrr)=0

Theorem

This equation can be then rearranged to give the orbital equation by taking its dot product with the position vector r

r=h2μ11+ecosθ  or  r=p1+ecosθ

where p is the parameter of the orbit defined by p=h2μ

Proof:

Step 3: Take the Dot Product with the Position Vector r
Following the image's hint, we take the dot product of the LRL vector A with the position vector r:

rA=r(v×hμrr)

Using the distributive property of the dot product, this splits into two terms:

rA=r(v×h)r(μrr)

Step 4: Compute Each Term
First Term: r(v×h)
Use the scalar triple product identity:
r(v×h)=(r×v)h
Since h=r×v, substitute:
(r×v)h=hh
The dot product of a vector with itself is the square of its magnitude:
hh=h2
So:
r(v×h)=h2
Second Term: r(μrr)
Compute:
r(μrr)=μrrr
Since rr=r2:
μrrr=μr2r=μr
Combine:
rA=h2μr

Step 5: Express the Dot Product Geometrically
Since A is a constant vector, the dot product rA can also be written as:

rA=rAcosθ

where:

A=|A|

is the magnitude of the LRL vector.

θ is the angle between r and A. In orbital mechanics, with the periapsis at

θ=0

, A aligns with the periapsis direction, so θ is the true anomaly.
Thus:

rAcosθ=h2μr

Step 6: Solve for r
Rearrange the equation to isolate terms involving r:

rAcosθ+μr=h2

Factor out r:

r(Acosθ+μ)=h2

Solve for r:

r=h2Acosθ+μ

Step 7: Convert to Standard Orbital Equation Form
Rewrite the expression to resemble the orbital equation:

r=h2μ+Acosθ=h2μ1+Aμcosθ

Compare this to the standard form:

r=p1+ecosθ

• The semi-latus rectum is:

p=h2μ

• The eccentricity is:

e=Aμ

Since A=μe (from the properties of the LRL vector), this confirms:

Aμ=μeμ=e

Thus:

r=h2/μ1+ecosθ=p1+ecosθ

Finally we define

Definition

The total mechanical energy per unit mass of the system

E=12v2μr=constant

To sum up what we have so far we essentially have shown

Theorem

Kepler's First Law
Each of the planets orbits the sun in an ellipse with the sun at once focus

this is a restatement of the equation of orbit just above

Theorem

Kepler's Second Law
A line joining a planet to the sun sweeps out equal areas in equal times

This law can be verified by writing the position and velocity vectors in cylindrical coordinates

r=rr^rv=drdtr^r+rdθdtr^θ

so that

r×v=r2dθdtr^z=h.

The angular momentum vector h is constant, and its magnitude

h=r2dθdt=2dAdt

is proportional to the rate at which the radius vector sweeps out area.

5. Coordinate Systems and Orbital Elements

Attachments/Pasted image 20250626234303.png

State Vector and Orbital Elements

ECI frame(earth centered intertial)

ECEF(earth centered earth fixed)

Remark

therefore the vectors iX,iY are attached to the earth surface and rotate once a day. The angle between iX and ix is the greenwhich mean sideral time θGMST which can be measured in hours or degrees

just consider that

1h=15  and  θGMST=ω(tt0)

and obviously we can relate ECI coordinates with ECEF coordinates through a rotation matrix in the x,y plane like so

{XYZ}=R3[θGMST]=[cosθGMSTsinθGMST0sinθGMSTcosθGMST0001]{xyz}.

which is just anticlockwise by θGMST from ECI. Makes sense

Perifocal Frame

Attachments/Pasted image 20250627013155.png

The plane (x^,y^) is the orbital plane. In perifocal coordinates we have

r=xie+yipv=xie+yip.

note that

x=rcosθ,x˙=r˙cosθrθ˙sinθy=rsinθ,y˙=r˙sinθ+rθ˙cosθ.
Proposition

we have that

r˙=μhesinθ

given that θ˙=h/r2(by kepler's second law above)

Rewrite the orbit equation as a product:

r(1+ecosθ)=h2μ

Since the right-hand side is constant, differentiate both sides:

ddt[r(1+ecosθ)]=0

Apply the product rule:

r˙(1+ecosθ)+rddt(1+ecosθ)=0

From Step 4:

ddt(1+ecosθ)=esinθθ˙

So:

r˙(1+ecosθ)+r(esinθθ˙)=0r˙(1+ecosθ)=resinθθ˙r˙=resinθθ˙1+ecosθ

Substitute θ˙=hr2:

r˙=resinθhr21+ecosθ=esinθh/r1+ecosθ

Now, use 1+ecosθ=h2/μr:

r˙=esinθhrh2/μr=esinθhrrμh2=esinθhμh2=μesinθh


so essentially it is now clear to see we can write

Fact

position and velocity and perifocal frame is

r=h2μ11+ecosθ(cosθie+sinθip)v=μh[sinθie+(e+cosθ)ip].

State Vector and Orbital Elements

Attachments/Pasted image 20250627014757.png
recall: ip=ih×ie

Definition

Consider the 6 classical orbital elements

  • a the semimajor axis

To obtainj the position and velocity in the inertial frame, rI,vI we need to rotate the perifocal frame into the inertial frame. We are not chaning r we merely rotating the coordinate axes! In particular we have

rI=ArpvI=Avp

where we have the rotation matrices

R3[Ω]=[cosΩsinΩ0sinΩcosΩ0001]R1[i]=[1000cosisini0sinicosi]R3[ω]=[cosωsinω0sinωcosω0001]A=[R3(ω)R1(i)R3(Ω)]T.
Question

find the eccentricity

To find e, we first calculate e2=ee:

ee=(v×hμrr)(v×hμrr)

Expand the dot product using the distributive property:

ee=(v×hμ)(v×hμ)2(v×hμ)(rr)+(rr)(rr)

Evaluate each term:

(v×hμ)(v×hμ)=|v×h|2μ2

Since h=r×v, and using the vector identity for the magnitude of a cross product, |a×b|2=|a|2|b|2(ab)2, we get:

|v×h|2=v2h2(vh)2

But h is perpendicular to v (because h=r×v), so vh=0. Thus:

|v×h|2=v2h2

Therefore:

|v×h|2μ2=v2h2μ2
  1. Second term (cross term):
2(v×hμ)(rr)=2μr(v×h)r

Compute (v×h)r using the scalar triple product identity (a×b)c=(b×c)a:

(v×h)r=(h×r)v

Since h=r×v, consider h×r=(r×v)×r. Using the vector triple product identity a×(b×c)=(ac)b(ab)c:

h×r=(r×v)×r=(rr)v(rv)r=r2v(rv)r

Then:

(h×r)v=(r2v(rv)r)v=r2v2(rv)r=r2v2(rv)2

7. Non Keplerian Orbits

Recall that so far we have solving the classical two body problem where the dynamics is

d2dt2r+μrr3=0

now consider the case where there is perturbing acceleration ad so that the above equations of motion become

d2dt2r+μrr3=ad

the most accurate solutions come from special perturbation methods like Cowell's method(which consists of a lot of Runge-Kutta numerical integration) however they are very computationally expensive. Instead we try to use as much information as possible we have from unperturbed Keplerian motion first. The procedure to this is known as Encke's method

9. Gravity Gradient

11. Gravity Gradient Torque