Three Masses, Two Moments of Inertia

Illustrated triangular board with three masses A, B, C and two alternative vertical rotation axes, plus a Python symbol.
A simple model with two possible pin positions. We use only one axis at a time.

Put three small weights on a light board. One is heavier than the others. Now choose where to put a vertical pin so the board can turn.

You could put the pin through the balance point. Or you could put it through a corner. Nothing about the three weights changes. Yet the two turns need different amounts of torque to gain the same angular speed.

That sounds strange until we ask a small question: how far is each mass from the pin? A pencil can give us the answer before Python does.

Three weights on one board

Name the weights A, B, and C. Put A at the origin (0, 0), B three meters to the right, and C two meters above A. Make B twice as heavy as either of the others.

WeightMassx (m)y (m)
A1 kg00
B2 kg30
C1 kg02

The board has no mass of its own in this teaching model. Each weight acts as a point mass, and the board holds the points in place. Our pins point straight up, perpendicular to the flat board.

Where would you support the board on one finger? Halfway across the triangle? Closer to B?

An empty spot where the board balances

The total mass is 1 + 2 + 1 = 4 kg. To find the center of mass, multiply each coordinate by the mass placed there. Add those products, then divide by 4.

xCG = [1(0) + 2(3) + 1(0)] / 4 = 1.5 m

yCG = [1(0) + 2(0) + 1(2)] / 4 = 0.5 m

So CG = (1.5, 0.5) m. There is no weight at that point. It is the mass-weighted position of all three weights. In the nearly uniform gravity of our toy, the center of mass is also the balance point.

Triangle of three point masses: A 1 kg at (0,0), B 2 kg at (3,0), C 1 kg at (0,2); center of mass at (1.5,0.5) meters.
The weighted position falls at (1.5, 0.5) m, where there is no weight.

Imagine putting the first vertical pin right through this green cross. How much turning inertia does the board have about that pin?

Twelve when the pin goes through the center

The moment of inertia of a point mass is its mass multiplied by the square of its perpendicular distance to the rotation axis. In our x-y plane, the distance squared is:

r² = (x − xCG)² + (y − yCG)²

For A, that is (0 − 1.5)² + (0 − 0.5)² = 2.5 m². Do the same for B and C.

Weightr² from CG (m²)m × r² (kg·m²)
A2.52.5
B2.55.0
C4.54.5
Total12.0

B and A are equally far from the CG, but B counts twice as much because it has twice the mass. Together the three weights give ICG = 12 kg·m².

Move the pin, not the weights

Now place the pin through A at the origin, O = (0, 0). Leave every weight where it is. We must measure distances from O instead of the CG.

A: 1 × (0² + 0²) = 0 kg·m²

B: 2 × (3² + 0²) = 18 kg·m²

C: 1 × (0² + 2²) = 4 kg·m²

The new total is IO = 0 + 18 + 4 = 22 kg·m².

Same triangle compared about two parallel axes: inertia 12 kilogram meters squared about CG and 22 about origin O.
Same masses, same places, different axes: 12 kg·m² and 22 kg·m².

Which answer is right, 12 or 22? Both. Moment of inertia has to name its axis. For a fixed axis, a larger moment of inertia means a smaller angular acceleration under the same net torque.

There is another way to check our arithmetic. The two parallel axes are separated by 1.5 m in x and 0.5 m in y, so d² = 1.5² + 0.5² = 2.5 m². The parallel-axis theorem tells us:

IO = ICG + Md² = 12 + 4(2.5) = 22 kg·m².

Why does that extra term work? If we expand each squared distance from O, the terms that depend on the signed positions about the CG cancel. That is what a center of mass does: its mass-weighted offsets add to zero. What remains is Md². The same rule appears in OpenStax's explanation of the parallel-axis theorem.

Move C. Try the pencil again.

Keep A and B in place. Move only C from (0, 2) to (0, 4). Before you read on, guess which way the balance point moves. What happens to the inertia about the new CG?

The total mass stays at 4 kg. The x coordinate remains 1.5 m. But yCG = [1(0) + 2(0) + 1(4)] / 4 = 1.0 m. The new center is (1.5, 1.0) m.

Measured from that new center, the three inertia contributions become 3.25 for A, 6.50 for B, and 11.25 kg·m² for C. Check one of them: C is 1.5 m to the left and 3 m above the new CG, so 1 × (1.5² + 3²) = 11.25 kg·m².

Adding all three gives ICG = 3.25 + 6.50 + 11.25 = 21 kg·m². About the old origin, IO = 0 + 18 + 16 = 34 kg·m². The parallel-axis check still works: 21 + 4(1.5² + 1.0²) = 34.

When point mass C moves from (0,2) to (0,4), center of mass changes to (1.5,1.0) and inertia about CG becomes 21 kilogram meters squared.
Only C moves. The balance point and the distances measured from it both change.

Now ask Python to check

Python will not choose the axis for us. We give it the masses and positions, find the CG, and then pass in the axis we want. The function inertia_about() adds exactly the same mass-times-distance-squared terms as our pencil did.

"""Three point masses: center of mass, axial inertia, and a changed location.

Coordinate units: meters. Mass: kilograms. Inertia: kg*m^2.
The frame is rigid and massless; axes are parallel and normal to the x-y plane.
"""
from math import isclose

parts = [
    ("A", 1.0, 0.0, 0.0),
    ("B", 2.0, 3.0, 0.0),
    ("C", 1.0, 0.0, 2.0),
]


def center_of_mass(items):
    total = sum(m for name, m, x, y in items)
    if total <= 0:
        raise ValueError("Total mass must be positive")
    cx = sum(m * x for name, m, x, y in items) / total
    cy = sum(m * y for name, m, x, y in items) / total
    return total, (cx, cy)


def inertia_about(items, axis):
    ax, ay = axis
    return sum(m * ((x - ax)**2 + (y - ay)**2)
               for name, m, x, y in items)


def show_results(label, items):
    total, center = center_of_mass(items)
    i_cg = inertia_about(items, center)
    i_o = inertia_about(items, (0.0, 0.0))
    d2 = center[0]**2 + center[1]**2
    assert isclose(i_o, i_cg + total * d2)
    print(f"{label}: mass={total:.1f} kg | "
          f"CG=({center[0]:.2f}, {center[1]:.2f}) m | "
          f"I_CG={i_cg:.2f} kg*m^2 | I_O={i_o:.2f} kg*m^2")
    return total, center, i_cg, i_o


if __name__ == "__main__":
    original = show_results("Original", parts)

    moved = parts.copy()
    moved[2] = ("C", 1.0, 0.0, 4.0)  # Change only C's y position.
    changed = show_results("Move C  ", moved)

    assert original == (4.0, (1.5, 0.5), 12.0, 22.0)
    assert changed == (4.0, (1.5, 1.0), 21.0, 34.0)

Run the complete code with Python 3. No extra packages are needed. It prints:

Original: mass=4.0 kg | CG=(1.50, 0.50) m | I_CG=12.00 kg*m^2 | I_O=22.00 kg*m^2
Move C  : mass=4.0 kg | CG=(1.50, 1.00) m | I_CG=21.00 kg*m^2 | I_O=34.00 kg*m^2

The assert lines check that both sets of results agree with our expected numbers. Change a mass or position and you must also change the expected answers. The rules do not change; the data do.

This board is an ideal model. Real structures have mass spread through their parts, and a real aircraft has three-dimensional inertia properties. Our two numbers describe rotation about two particular parallel axes, not every possible turn.

Nothing was wrong with the first answer or the second. The missing information was the pin's position. Before you calculate how hard something is to turn, mark where it turns.

Sources and further reading