# Astrodynamics/Orbit Determination

According to basic geometry, any three points can be fit by an elipse. This means that if we have at least three observations of a satellite's position, we can determine the entire orbit. However, the process is not an easy one.

## RADAR

RADAR is one of the powerful tools available to observers on earth. A radar installation can determine the position and the velocity of a satellite, with the position being in the topocentric-horizon coordinate system. Once the radar observation has been made, the coordinates can be transformed into the geocentric-equatorial system as such:
    $\mathbf {r} =\mathbf {r} _{e}+\mathbf {p}$
Where r$_e$ is the position vector from the center of the earth to the radar installation, and p is the position vector of the satellite from the radar installation.

## Determination from a Position and Velocity Vector

A radar installation can measure the position and the velocity of the satellite in a single observation. However, this observation is typically going to be made using the polar variety of the topocentric-horizon system (azimuth and elevation). The position of the satellite is given in terms of a line-of-sight vector, ρ, and the velocity vector is the derivative of that, ρ' We can find the distance from the center of the earth (converting to the geocentric-horizon system) by:
    $\mathbf {r} =\mathbf {r} _{e}+\mathbf {\rho }$
And we can find the velocity vector v by:
    $\mathbf {v} =\mathbf {\rho } '+\mathbf {\omega } _{e}\times \mathbf {r}$
Where ω$_e$ is the angular velocity vector of the earth.
Once we have the v and r vectors in the geocentric-equatorial system, we can find all the classical orbital elements.

## Determination from 3 Position Vectors

If we have three observations, with each observation representing a position vector, we can determine the orbit of the satellite. We assume that all three position vectors are coplanar, because if they are not it is not a proper orbit and these equations will not yield proper results.
Given three position vectors, r$_1$, r$_2$, and r$_3$, we can apply the gibbsian method to determine the orbit.

### Gibbsian Method

For the gibbsian method, we first construct three new vectors, N, D, and S (not to be confused the S unit vector from the topocentric-horizon system). We construct these three new vectors as follows:
    $\mathbf {N} =r_{3}\mathbf {r} _{1}\times \mathbf {r} _{2}+r_{1}\mathbf {r} _{2}\times \mathbf {r} _{3}+r_{2}\mathbf {r} _{3}\times \mathbf {r} _{1}$
    $\mathbf {D} =\mathbf {r} _{1}\times \mathbf {r} _{2}+\mathbf {r} _{2}\times \mathbf {r} _{3}+\mathbf {r} _{3}\times \mathbf {r} _{1}$
    $\mathbf {S} =(r_{2}-r_{3})\mathbf {r} _{1}+(r_{3}-r_{1})\mathbf {r} _{2}+(r_{1}-r_{2})\mathbf {r} _{3}$
Now, we can find our p and e quantities from these vectors:
    $p=\mathbf {D} =\mathbf {N}$
N and D always have the same direction, so:
    $\mathbf {N} \cdot \mathbf {D} =ND$
    $p={\frac {N}{D}}$
    $e={\frac {S}{D}}$
Now, we can determine the unit vectors from the perifocal coordinate system, P, Q, and W from the three vectors we already have:
    $\mathbf {Q} ={\frac {\mathbf {S} }{S}}$
    $\mathbf {W} ={\frac {\mathbf {N} }{N}}$
    $\mathbf {P} =\mathbf {Q} \times \mathbf {W}$
Now, we have the p and e values, and we also have the necessarily perifocal unit vectors to define the orbit.

### Determining Velocity Vectors

If we have the three position vectors, we can determine three corresponding velocity vectors at each position. If we have the D, N, and S vectors, we can define a new vector B such that:
    $\mathbf {B} =\mathbf {D} \times \mathbf {r} _{i}$
Where the i subscript corresponds to one of the three position vectors. We can also form a scalar value L, in order to make the calculations easier:
    $L={\sqrt {\frac {\mu }{DN}}}$
Now that we have our 4 vectors and the scalar L, we can find the velocity at position i as:
    $\mathbf {v} _{i}={\frac {L}{r_{i}}}\mathbf {B} +L\mathbf {S}$

## Determination from 3 Observations

Radar observations aren't always available, but optical observations typically are. Optical measurements are typically made with the right ascension and declination coordinate system, so we will have 6 values: α$_1$, δ$_1$, α$_2$, δ$_2$, α$_3$, δ$_3$. We can define three unit vectors L$_i$ as:
    $\mathbf {L} _{i}={\begin{bmatrix}\cos(\delta _{i})\cos(\alpha _{i})\\\cos(\delta _{i})\sin(\alpha _{i})\\\sin(\delta _{i})\end{bmatrix}}$
With the L vectors, we can find the geocentric-equatorial position vector:
    $\mathbf {r} _{i}=\rho _{i}\mathbf {L} _{i}+\mathbf {r} _{e}$
Dotting this equation with itself gives us a second equation:
    $r^{2}=\rho ^{2}+r_{e}^{2}+2\rho \mathbf {L} \cdot \mathbf {r} _{e}$
We can solve these two equations to find the two unknowns ρ and r. With r, we can find the position vector r along the direction of the vector L.

### Finding the Velocity Vector

We can define the derivative of the L vectors using the Lagrange interpolation formula:
    $\mathbf {L} '={\frac {2t-t_{2}-t_{3}}{(t_{1}-t_{2})(t_{1}-t_{3})}}\mathbf {L} _{1}+{\frac {2t-t_{1}-t_{3}}{(t_{2}-t_{1})(t_{2}-t_{3})}}\mathbf {L} _{2}+{\frac {2t-t_{1}-t_{3}}{(t_{3}-t_{1})(t_{3}-t_{2})}}\mathbf {L} _{3}$
    $\mathbf {L} ''={\frac {2}{(t_{1}-t_{2})(t_{1}-t_{3})}}\mathbf {L} _{1}+{\frac {2}{(t_{2}-t_{1})(t_{2}-t_{3})}}\mathbf {L} _{2}+{\frac {2}{(t_{3}-t_{1})(t_{3}-t_{2})}}\mathbf {L} _{3}$
We can use these values to find:
    $\mathbf {v} =\rho '\mathbf {L} +\rho \mathbf {L} '+\mathbf {r} _{e}$

## Differential Orbit Correction

We've seen that with a small number of observations we can determine the complete orbit of a satellite. However, the initial measurements that we have taken can be prone to errors. Any errors that we have in our measurements are made all the more large and glaring because we have relied on so few observations. However, if we increase our number of observations, we can use new values to improve our original "estimate" of the orbit. To do this, we use a method called differential orbit correction.