Create your own
Lesson illustration

Deriving Gravitational Acceleration from Newton’s Inverse-Square Law

Welcome back. You have already fixed the coordinate language for the first model: an Earth-centred, non-rotating Cartesian frame, with a satellite described by its position and velocity . The remaining physical ingredient is a rule that assigns an acceleration to each possible position.

Here we derive that rule carefully. The destination is the compact expression

for a satellite at position under the gravity of a point mass at the origin. The power in the denominator is not a different distance law: combined with the vector , it produces an acceleration whose magnitude obeys the familiar inverse-square law and whose direction is toward the attracting mass.


Inverse-square magnitude: a geometric intuition

Newton’s law of universal gravitation says that two point masses and , separated by a distance , attract with force magnitude

Here is the universal gravitational constant. In SI units,

The inverse-square dependence means that doubling separation reduces the force to one quarter; tripling separation reduces it to one ninth.

The law is an empirical law of the Newtonian model, rather than something that can be proved solely from a diagram. But spherical geometry gives useful intuition for why point-source effects commonly have this form. At greater distances, the same influence from a source is distributed across larger spherical surfaces, whose areas scale as .

A fixed bundle of rays from source \(S\) intersects successively larger cross-sectional areas at distances \(r\), \(2r\), and \(3r\). The diagram illustrates why a point-source influence spread over space has intensity proportional to the reciprocal of distance squared.

This geometric argument concerns the magnitude only. A simulator also needs the direction, and it must represent that direction consistently in three dimensions.


From a scalar law to a vector force

The following reading uses a two-body convention that will become important in the next module: it defines a relative displacement first, then lets that displacement determine both the direction and magnitude of each force.

Two-Body Equations of Motion in an Inertial Frame — Orbital Mechanics & Astrodynamics

Read “Two-Body Equations of Motion in an Inertial Frame” from Orbital Mechanics & Astrodynamics to see the standard relative-vector convention and its conversion from force to acceleration.

In the opening definitions, note that the relative vector is defined from m_1 to m_2, and that its associated unit vector has length one. Then read the subsection “Forces in the Two-Body System” and “Finding the Equations of Motion,” beginning at the force discussion. Track the sign carefully: a force on one mass points toward the other, so the two vector forces are opposites. Finish by checking how division by each body's own mass produces acceleration.

We will now use a convention tailored to the fixed-Earth satellite model.

Let:

  • be the source mass, such as Earth;
  • be the mass of the body being accelerated, such as a satellite;
  • be the source position;
  • be the satellite position.

Define the displacement from the source to the satellite as

Its length is the separation distance:

The corresponding outward unit vector, pointing from the source toward the satellite, is

That word outward determines the sign. Gravitation is attractive, so the force on the satellite points in the direction opposite to : back toward the source.

Thus the vector force on mass due to source mass is

The scalar coefficient supplies the inverse-square magnitude. The minus sign reverses the outward unit vector, making the force inward.

Two masses exert equal-magnitude and opposite-direction gravitational forces along the line joining their centres. The displayed scalar formula gives the force magnitude; the displacement-vector convention determines the force directions.

The equal-and-opposite pair in the diagram is Newton’s third law. In the restricted Earth–satellite model, we retain the force and acceleration of the satellite while neglecting Earth’s extremely small response. That is an approximation, not a claim that Earth feels no gravitational force. When we move to the full two-body problem, both accelerations will be evolved.


Why the vector formula contains

Substitute the unit-vector definition into the force law:

Combining the distance factors gives

This is the form worth remembering. The denominator appears because we began with:

  1. an inverse-square scalar magnitude, ;
  2. a unit direction vector, .

It does not mean that gravity’s magnitude decays as . Taking the norm makes the cancellation explicit:

Therefore,

exactly as Newton’s scalar law requires.

A useful way to diagnose a sign or power error is to test a simple position. Put the source at the origin and the satellite on the positive -axis:

The acceleration must point toward the origin, in the negative -direction. Any formula that produces a positive -component has the direction wrong.


Dividing by inertial mass: gravitational acceleration

Newton’s second law is

Insert the gravitational force and divide by the accelerated body’s mass :

Equivalently, in terms of the two absolute positions,

This is the gravitational acceleration generated by a point mass at , evaluated at .

The cancellation of means that, in this model, all test bodies at the same location have the same gravitational acceleration, irrespective of their own masses. A -kg and a -kg satellite released from the same position with the same velocity follow the same trajectory, provided both are treated as test particles and non-gravitational effects are omitted.

It is often helpful to name this position-dependent acceleration field:

Then a test satellite obeys simply

Near Earth’s surface, one often approximates as a constant downward vector. Orbital motion is different: distance and direction both change substantially around the orbit, so we retain the full position-dependent expression.


The Earth-centred formula

For the initial satellite model, Earth is fixed at the origin. Therefore,

The acceleration becomes

where is Earth’s mass.

In orbital mechanics, it is conventional and computationally convenient to combine the constants into Earth’s standard gravitational parameter:

The governing acceleration law is then

The parameter has units

That gives a valuable dimensional check:

which is indeed acceleration.

In Cartesian components, if

then

Each component is coupled through the common distance . This is why orbital gravity is a nonlinear vector system: the denominator depends on the current position itself.


Three checks before trusting the formula

Before putting this acceleration into an integrator, make these checks habitual.

1. Direction check

The acceleration must be antiparallel to the source-to-satellite displacement. Their dot product is negative:

Since , , and are positive for separated bodies, the result is negative. This confirms that gravity pulls inward.

2. Magnitude and scaling check

The norm satisfies

For a scaled position , with ,

The direction is unchanged along a radial line, while the magnitude follows the inverse-square rule.

3. Translation check

The general formula depends on positions only through their difference:

If the same constant displacement is added to both positions, their relative displacement and the acceleration do not change. This is exactly what should happen: the force depends on separation, not on an arbitrary coordinate origin.


A direct computational translation

For the Earth-centred restricted problem, the force calculation is small enough to inspect line by line:

import numpy as np

def gravitational_acceleration(position, mu):
    r2 = np.dot(position, position)

    if r2 == 0.0:
        raise ValueError("Acceleration is undefined at the point-mass source.")

    return -mu * position / (r2 * np.sqrt(r2))

The expression r2 * np.sqrt(r2) is , computed from . The returned array has the same three components as position.

For a satellite initially at positive ,

position = np.array([7000.0, 0.0, 0.0])  # km

the returned acceleration must have:

  • a negative first component;
  • zero second and third components, up to floating-point roundoff;
  • units of if is supplied in .

The unit system is a property of the whole calculation. If position is in kilometres, then must use kilometres cubed per second squared; combining kilometres with an SI value of expressed in metres cubed per second squared introduces a factor-of- error.


Scope and singularity of the point-mass model

The formula

is undefined at . Its magnitude tends without bound as tends to zero. This is a mathematical singularity of the point-mass idealisation.

For a satellite outside a nearly spherical Earth, the point-mass field is an excellent first model: Earth’s external gravitational field behaves as though its mass were concentrated at its centre. But the formula does not describe motion through Earth’s interior, a collision with Earth’s surface, atmospheric drag, or the gravitational influence of Earth’s oblateness, Moon, Sun, and other bodies. Those exclusions are consistent with the modelling brief you established in the first lesson.

For now, the useful operational condition is simple:

throughout a physically meaningful Earth-orbit simulation, where is Earth’s radius in the chosen distance units.


Key takeaways

Newton’s inverse-square law gives the gravitational force magnitude:

Defining the displacement from source to satellite as

makes the attractive direction unambiguous. The vector force and acceleration are

With Earth fixed at the origin, this reduces to

The vector numerator supplies radial direction; together with the cubic denominator, it yields an inverse-square acceleration magnitude. This is the central physical function your simulator will repeatedly evaluate.

Next, we will place this acceleration law into a formal initial-value problem and convert the resulting second-order vector equation into the first-order state-space form used by numerical ODE solvers.

Can't find a good explanation? Sign up and we'll make it for you

Sign up