The gravitational acceleration caused by a homogenous sphere
For symmetry reasons it is clear that the gravitational force caused by a homogonous sphere is directed towards the centre of the sphere. By making a mathematical integration over all mass elements it can further be shown that this force only depends on the total mass of the sphere and on the distance to the centre but that the radius of the sphere does not matter. This implies that the gravitational force is just the same as if all mass was concentrated to the very centre of the sphere. The acceleration of a body caused by the gravitational force is therefore

where
is the radius vector from the centre of the homogenous sphere to the body
is the product of the general gravitational constant and the mass of the homogenous sphere
is the unit vector directed to the centre of the homogenous sphere
is the distance to the centre of the homogenous sphere
Mathematical solution of the differential equation
Like for the movement under any central force, i.e. a force aligned with
, the angular momentum
stays constant:

Introducing a coordinate system
in the plane orthogonal to
and polar coordinates
the differential equation (1) takes the form


Taking the time derivative of (2) one gets

Using the chain rule for differentiation one gets


Using the expressions for
of equations (2), (4), (5) and (6) all time derivatives in (3) can be replaced by derivatives of
as function of
. After some simplification one gets

The differential equation (7) can be solved analytically by the variable substitution

Using the chain rule for differentiation one gets:


Using the expressions (10) and (9) for
and
one gets

with the general solution

where
and
are constants of integration depending on the initial values for
and
.
Instead of using the integration parameter
explicitly one introduces the convention that the unit vectors
defining the coordinate system in the orbital plane are selected such that
takes the value zero and
is positive. This then means that
is zero at the point where
is maximal and therefore
is minimal. Defining the parameter p as
one has that

This is the equation in polar coordinates for a conic section with origin in a focal point. The argument 
is called "true anomaly".
For
this is a circle with radius
For
this is an ellipse with


For
this is a parabola with focal length 
For
this is a hyperbola with


Using the chain rule for differentiation (5), the equation (2) and the definition of 
as
one gets that the radial velocity component is

The tangential component is

The determination of the connection between the polar argument
and time
is slightly different for ellipses and hyperbolas.
For an elliptic orbit one switches to the "eccentric anomaly"
for which


and consequently


and the angular momentum
is

Integrating with respect to time
one gets

under the assumption that time
is selected such that the integration constant is zero.
As by definition of
one has

this can be written

For an hyperbolic orbit one uses the parameterisation


for which one has


and the angular momentum
is

Integrating with respect to time
one gets

i.e.

To find what time t that corresponds to a certain true anomaly
one computes corresponding parameter
connected to time with relation (27) for an elliptic and with relation (34) for an hyperbolic orbit.
For an elliptic orbit one gets from (20) and (21) that

and therefore that

With some trigonometric calculations one can from this derive that

This relation is convenient for passing between "true anomaly" and "eccentric anomaly", the latter being connected to time through relation (27).
From relation (27) follows that the orbital period
is

As the potential energy corresponding to the force field of relation (1) is

it follows from (13) , (14), (18) and (19) that the sum of the kinetic and the potential energy for an elliptic orbit is

From (13) , (16), (18) and (19) follows that the sum of the kinetic and the potential energy for a hyperbolic orbit is

Orbital Elements
A Kepler orbit is specified by 6 orbital element that normally are
- semi-major axis
- eccentricity
- inclination
- right ascension of ascending node
- argument of perigee
- the true anomaly that corresponds to a specified time
The angles
are the euler angles (
with the notations of that article) characterising the orientation of the coordinate system
with
in the direction of the angular momentum
and with
directed from the centre of the sphere to the pericentre of the orbit.