3.2.17Orbital Mechanics & Astrodynamics

Converting between orbital elements and state vectors (r, v)

1,821 words8 min readdifficulty · medium1 backlinks

The six orbital elements (WHAT each means)


Foundations we DERIVE everything from

Two conserved quantities do all the heavy lifting.

WHY these matter: h\vec h is perpendicular to the orbit plane, so it fixes ii and Ω\Omega. Energy ε\varepsilon fixes the size aa. The eccentricity vector (below) points to periapsis, fixing ee and ω\omega.


Direction A: State vectors → Orbital elements

WHY the quadrant checks? cos1\cos^{-1} only returns [0,π][0,\pi]. The sign of a companion quantity (e.g. rv\vec r\cdot\vec v: positive means moving away from periapsis, so ν<π\nu<\pi) restores the full [0,2π)[0,2\pi).


Direction B: Orbital elements → State vectors

Figure — Converting between orbital elements and state vectors (r, v)

Worked example 1 — State → Elements

Given (units: km, km/s, μ=398600 km3/s2\mu=398600\ \text{km}^3/\text{s}^2): r=(7000,0,0)\vec r=(7000,0,0), v=(0,7.5,1.0)\vec v=(0,7.5,1.0).

  • h=r×v=(0107.5, 0070001, 70007.50)=(0,7000,52500)\vec h=\vec r\times\vec v=(0\cdot1-0\cdot7.5,\ 0\cdot0-7000\cdot1,\ 7000\cdot7.5-0)=(0,-7000,52500). Why: cross product fixes the plane; h=52964.6h=52964.6.
  • r=7000r=7000, v=7.52+12=7.566v=\sqrt{7.5^2+1^2}=7.566. ε=7.566223986007000=28.31\varepsilon=\frac{7.566^2}{2}-\frac{398600}{7000}=-28.31. Why: energy → a=μ/2ε=7040a=-\mu/2\varepsilon=7040 km.
  • cosi=hz/h=52500/52964.6=0.9912i=7.60\cos i=h_z/h=52500/52964.6=0.9912\Rightarrow i=7.60^\circ. Why: small vzv_z gives a slight tilt.
  • e=1μ[(v2μ/r)r(rv)v]\vec e=\frac1\mu[(v^2-\mu/r)\vec r-(\vec r\cdot\vec v)\vec v]; here rv=0\vec r\cdot\vec v=0, so e=v2μ/rμr=(0.00579)(7000,0,0)\vec e=\frac{v^2-\mu/r}{\mu}\vec r=(0.00579)(7000,0,0)... giving e0.0057e\approx0.0057. Why: rv=0\vec r\cdot\vec v=0 means we're at periapsis/apoapsis, so ν=0\nu=0 or 180180^\circ; since orbit is nearly circular here it's tiny ee.

Worked example 2 — Elements → State

Given a=8000a=8000 km, e=0.1e=0.1, i=30i=30^\circ, Ω=40\Omega=40^\circ, ω=60\omega=60^\circ, ν=0\nu=0^\circ (at periapsis).

  • p=a(1e2)=8000(0.99)=7920p=a(1-e^2)=8000(0.99)=7920 km.
  • r=p/(1+ecos0)=7920/1.1=7200r=p/(1+e\cos0)=7920/1.1=7200 km. Why: periapsis distance =a(1e)=7200=a(1-e)=7200. ✓
  • rpqw=7200(cos0,sin0,0)=(7200,0,0)\vec r_{pqw}=7200(\cos0,\sin0,0)=(7200,0,0).
  • vpqw=μ/p(sin0, e+cos0,0)=7.094(0,1.1,0)=(0,7.803,0)\vec v_{pqw}=\sqrt{\mu/p}(-\sin0,\ e+\cos0,0)=7.094(0,1.1,0)=(0,7.803,0). Why: at periapsis velocity is purely tangential — no radial component, matching sinν=0-\sin\nu=0.
  • Apply R~\tilde R with those angles to get r,v\vec r,\vec v in inertial frame.


Recall Feynman: explain to a 12-year-old

Imagine a race car on an oval track. One way to describe it: "it's here on the map going that fast" (state vector). Another way: "the track is this big, this squished, tilted this much, and the car is this far past the start line" (orbital elements). Both tell you everything about the car. To translate, you use two facts that never change: how fast the car sweeps area (angular momentum) and how much total energy it has. From those you rebuild the whole track and the car's spot — then just spin your map to line it up with north.


Flashcards

What two conserved vectors/scalars drive the state→element conversion?
Specific angular momentum h=r×v\vec h=\vec r\times\vec v (fixes plane, ii, Ω\Omega) and specific energy ε=v2/2μ/r\varepsilon=v^2/2-\mu/r (fixes aa).
Formula for semi-major axis from energy?
a=μ/(2ε)a=-\mu/(2\varepsilon) where ε=v2/2μ/r\varepsilon=v^2/2-\mu/r.
What does the eccentricity vector point toward?
Toward periapsis; its magnitude equals ee. e=v×hμrr\vec e=\frac{\vec v\times\vec h}{\mu}-\frac{\vec r}{r}.
Why do we need quadrant checks after using cos1\cos^{-1}?
cos1\cos^{-1} only returns [0,π][0,\pi]; a companion sign (e.g. rv\vec r\cdot\vec v for ν\nu) recovers the full [0,2π)[0,2\pi).
Sign check for true anomaly ν\nu?
If rv<0\vec r\cdot\vec v<0 (moving toward periapsis), then ν=2πcos1()\nu=2\pi-\cos^{-1}(\cdots).
Position vector in perifocal frame?
rpqw=r(cosν,sinν,0)\vec r_{pqw}=r(\cos\nu,\sin\nu,0) with r=p/(1+ecosν)r=p/(1+e\cos\nu).
Velocity vector in perifocal frame?
vpqw=μ/p(sinν, e+cosν, 0)\vec v_{pqw}=\sqrt{\mu/p}\,(-\sin\nu,\ e+\cos\nu,\ 0).
Rotation sequence from perifocal to inertial frame?
R3(Ω)R1(i)R3(ω)R_3(-\Omega)R_1(-i)R_3(-\omega) (swivel Ω, tilt i, spin ω), applied to both r\vec r and v\vec v.
What is pp (semi-latus rectum) in terms of a,ea,e and of hh?
p=a(1e2)=h2/μp=a(1-e^2)=h^2/\mu.
Which elements become undefined for a circular orbit (e=0e=0)?
ω\omega (no periapsis); use argument of latitude u=ω+νu=\omega+\nu instead.

Connections

Concept Map

two languages for

conserves

conserves

integrated gives

cross z gives

fixes plane

points to node

sets size

points to periapsis

compute

State vectors r v

Orbital elements a e i Omega omega nu

Two-body equation

Angular momentum h = r x v

Specific energy epsilon

Eccentricity vector e

Node vector n = z x h

Semi-major axis a

Inclination i and RAAN Omega

Eccentricity e and periapsis omega

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, ek orbit ko do tareeke se describe kar sakte ho. Pehla: state vectors (r,v)(\vec r,\vec v) — matlab satellite abhi kahan hai aur kitni tezi se move kar raha hai. Doosra: orbital elements (a,e,i,Ω,ω,ν)(a,e,i,\Omega,\omega,\nu) — jo orbit ki shape, tilt, aur position batate hain. Dono same ellipse ki alag-alag bhaasha hain. Sensor tumhe r,v\vec r,\vec v deta hai, par insaan ke samajhne ke liye elements zyada useful hain (circular hai kya? kitna tilted hai? perigee kahan hai?).

Conversion ka jaadu do conserved cheezon par tika hai: angular momentum h=r×v\vec h=\vec r\times\vec v (jo orbit plane ke perpendicular hota hai, isse ii aur Ω\Omega milta hai) aur energy ε=v2/2μ/r\varepsilon=v^2/2-\mu/r (jisse size a=μ/2εa=-\mu/2\varepsilon milta hai). Ek aur cheez — eccentricity vector — seedha periapsis ki taraf point karta hai, isse ee aur ω\omega mil jaate hain.

Ulta direction (elements se state) mein pehle perifocal frame mein r,v\vec r,\vec v nikaalo — ye easy hai kyunki periapsis p^\hat p axis par hota hai. Phir teen rotations R3(Ω)R1(i)R3(ω)R_3(-\Omega)R_1(-i)R_3(-\omega) lagakar inertial frame mein le aao. Bas map ko north ke saath align karna, samjho.

Sabse important galti: cos1\cos^{-1} sirf 00 se 180180^\circ deta hai, isliye quadrant check zaroori hai — jaise rv<0\vec r\cdot\vec v<0 ho to ν\nu ko 2π2\pi se subtract karo. Aur circular ya equatorial orbits mein ω\omega/Ω\Omega undefined ho jaate hain, tab alternate elements use karo. Ye topic har mission planning, Hohmann transfer, aur tracking ka base hai.

Go deeper — visual, from zero

Test yourself — Orbital Mechanics & Astrodynamics

Connections