Owe Kristiansen
- 27
- 13
- TL;DR Summary
- Using Newton’s laws and the assumption of constant density, one can derive a gravitational field expression that works at all distances from the center of a sphere. The result is a compact, continuous formula that captures both the linear and inverse-square regimes of gravity using a single conditional structure. It requires two calibrated inputs: the radius R and the density d.
This model describes the gravitational field of a non-rotating, spherically symmetric body—without spin effects such as centrifugal acceleration or equatorial bulging.
The Construction Process
• Begin with Newton’s law of universal gravitation and a sphere of radius R with constant density d.
• For any point at distance r from the center:
• Only the mass enclosed within radius r contributes to the gravitational field.
• All mass outside radius r cancels out and exerts no net force. This follows from Newton’s shell theorem, which states that a spherically symmetric shell of mass exerts no gravitational force on a point inside it.
• The gravitational field is proportional to the enclosed mass divided by r², leading to two regimes:
• g(r) = G × (4/3) × π × d × (r³ / r²) for r < R
• g(r) = G × (4/3) × π × d × (R³ / r²) for r ≥ R
The Unified Formula
g(r) = G × (4/3) × π × d × [ r × (r < R) + R × (r ≥ R) ]³ / r²
Note on the conditional terms in the formula:
(r < R) and (r ≥ R) are logical expressions that evaluate to:
• 1 if the condition is true
• 0 if the condition is false
This allows the formula to automatically select the correct behavior depending on whether the point is inside or outside the sphere, without needing to split the expression into separate cases.
This expression:
• Is derived entirely from Newtonian gravity
• Requires two fixed inputs: the radius R and the calibrated density d
• Transitions smoothly at the surface
• Uses only density and radius—no need to assume total mass
• Encodes both gravitational regimes in a single line using a conditional structure
Why the Behavior Changes at the Surface of the sphere:
• Inside the sphere: As r increases, more mass is enclosed. The gravitational field grows linearly because the enclosed mass scales with r³, while the field scales with 1 / r².
• Outside the sphere: No additional mass is enclosed beyond R. The field now depends only on the total mass, and follows the inverse-square law: g(r) ∝ 1 / r².
This transition reflects the physical structure of the mass distribution and is a direct consequence of Newton’s shell theorem.
Calibrating the Model for Earth
To match Earth’s gravity, the density is calibrated using the known surface value:
g(R) = G × (4/3) × π × d × (R³ / R²) = G × (4/3) × π × d × R
Solving for d:
d = g(R) / [ G × (4/3) × π × R ]
With:
• g(R) = 9.832 m/s²
• R = 6.371 × 10⁶ m
• G = 6.67430 × 10⁻¹¹ m³/kg/s²
This gives:
d ≈ 5,517.4 kg/m³
Both R and d are required inputs to evaluate the field at any point.
What the Model Predicts
• Correct gravity at the surface: g(R) = 9.832 m/s²
• Correct gravity at orbital altitudes: e.g. ISS → g ≈ 8.71 m/s²
• Linear increase inside the sphere
• Inverse-square decay outside the sphere
The Result
• The formula is compact, continuous, and complete.
• It requires only two calibrated inputs: the radius R and the density d.
• The conditional trick allows both regimes to be expressed in a single expression—without case splitting or switching to total mass.
• The transition at r = R is physically motivated by Newton’s shell theorem: beyond that point, no additional mass contributes.
• The model assumes a non-rotating sphere—spin effects are not included.
The Construction Process
• Begin with Newton’s law of universal gravitation and a sphere of radius R with constant density d.
• For any point at distance r from the center:
• Only the mass enclosed within radius r contributes to the gravitational field.
• All mass outside radius r cancels out and exerts no net force. This follows from Newton’s shell theorem, which states that a spherically symmetric shell of mass exerts no gravitational force on a point inside it.
• The gravitational field is proportional to the enclosed mass divided by r², leading to two regimes:
• g(r) = G × (4/3) × π × d × (r³ / r²) for r < R
• g(r) = G × (4/3) × π × d × (R³ / r²) for r ≥ R
The Unified Formula
g(r) = G × (4/3) × π × d × [ r × (r < R) + R × (r ≥ R) ]³ / r²
Note on the conditional terms in the formula:
(r < R) and (r ≥ R) are logical expressions that evaluate to:
• 1 if the condition is true
• 0 if the condition is false
This allows the formula to automatically select the correct behavior depending on whether the point is inside or outside the sphere, without needing to split the expression into separate cases.
This expression:
• Is derived entirely from Newtonian gravity
• Requires two fixed inputs: the radius R and the calibrated density d
• Transitions smoothly at the surface
• Uses only density and radius—no need to assume total mass
• Encodes both gravitational regimes in a single line using a conditional structure

• Inside the sphere: As r increases, more mass is enclosed. The gravitational field grows linearly because the enclosed mass scales with r³, while the field scales with 1 / r².
• Outside the sphere: No additional mass is enclosed beyond R. The field now depends only on the total mass, and follows the inverse-square law: g(r) ∝ 1 / r².
This transition reflects the physical structure of the mass distribution and is a direct consequence of Newton’s shell theorem.
Calibrating the Model for Earth
To match Earth’s gravity, the density is calibrated using the known surface value:
g(R) = G × (4/3) × π × d × (R³ / R²) = G × (4/3) × π × d × R
Solving for d:
d = g(R) / [ G × (4/3) × π × R ]
With:
• g(R) = 9.832 m/s²
• R = 6.371 × 10⁶ m
• G = 6.67430 × 10⁻¹¹ m³/kg/s²
This gives:
d ≈ 5,517.4 kg/m³
Both R and d are required inputs to evaluate the field at any point.

• Correct gravity at the surface: g(R) = 9.832 m/s²
• Correct gravity at orbital altitudes: e.g. ISS → g ≈ 8.71 m/s²
• Linear increase inside the sphere
• Inverse-square decay outside the sphere

• The formula is compact, continuous, and complete.
• It requires only two calibrated inputs: the radius R and the density d.
• The conditional trick allows both regimes to be expressed in a single expression—without case splitting or switching to total mass.
• The transition at r = R is physically motivated by Newton’s shell theorem: beyond that point, no additional mass contributes.
• The model assumes a non-rotating sphere—spin effects are not included.