Geosynchronous Orbit (Math)
This page or section is in need of being brought up to date. Please help Kerbal Space Program Wiki by fixing inaccurate or outdated information.

A geosynchronous or, more specifically, geostationary orbit is an orbit where your orbital period is equal to that of the gravitational body's "day" (specifically the sidereal time or sidereal rotation period), so you remain in the same spot over the planet consistently. Also the gravitational force and the centripetal force needs to be equal, which is the case for any circular orbit. The difference between geosynchronous and geostationary orbits is that geosynchronous orbits have an orbital period of 1 day, but geostationary orbits are equatorial as well.
For a video about getting into a geosynchronous orbit, click here.
In order to calculate the geostationary orbit around any given body, we must first create an equation with the force of gravity and the centripetal force. The force of gravity is equal to:
where G is the gravitational constant (), M_{1} is the mass of the body, M_{2} is the mass of the satellite, and r is the distance between the center of mass of the planet and that of the satellite.
Because centripetal force is the same as gravitational force in a geostationary orbit, we can put them in opposite sides of the equation:
The masses of the satellite cancel out, so we are left with:
So, no matter how large your satellite is, the geostationary altitude will be the same.
We know that velocity is equal to distance divided by time. In this case, the distance is the circumference of your orbit, which is 2πr, and time in this instance is your orbital period, or one day for the planetary body. So, we now have:
But we are dealing with velocity squared, so we square our equation and get:
Plugging that back into the original equation, we get:
The r^{2} cancels out the r in the denominator and becomes a plain old r. Thus, we have:
We now multiply by r^{2}:
And multiply by t^{2}/4π^{2}:
And by taking the cube root of that, we arrive at our answer (well, sort of):
But remember how r is the distance from the center of mass of the planet to that of the satellite? Well, it turns out that, unlike satellites, the center of mass of a planet is rather far away from its surface:
Where is the altitude from the sea level of the planet, and is the radius of the planet. This formula calculates the altitude above sea level for any given orbital period . To get the height for a stationary orbit, the orbital period must be as long as the sidereal rotation period, the time of a full revolution of the planet relative to the sky.
Always remember to subtract the radius of the planet from your answer once you find altitude.
Note: You probably noticed that the gravitational constant is in three units at once, two of them to a negative power. Don't panic, it will all work out when you plug in real numbers.