A Byte of PhysicsLogo

Center of mass computation

The center of mass is a mass-weighted average position. It gives a compact description of how a collection of bodies moves as a whole.

Think like a programmer

This is a weighted reduction over an array of body records. Sum mass times position, then divide by total mass. The function is easy to test with symmetric and unequal-mass examples.

Model checklist

Inputs
Masses in kilograms and positions in metres.
State
An array of point-mass records.
Rule
Compute mass-weighted average position.
Output
Center-of-mass coordinate.
Check
Equal masses at symmetric positions have a midpoint center.
\[\\mathbf{R}=\\frac{\\sum_i m_i\\mathbf{r}_i}{\\sum_i m_i}\]

Mass-weighted location

Change the right-hand mass. The center moves toward it, but always remains between the two bodies.

Left mass 1 kg at 0 m; right mass 3 kg at 8 m; center of mass 6.00 m.

Try this experiment

Prediction: Increasing the right-hand mass moves the center right without moving either object.

Increase the right mass from 1 kg to 10 kg. Compare the exact center value with the positions of both bodies.

Where this model breaks

Point masses ignore size, shape, rotation, and distributed density. For extended objects, integrate density over volume or approximate the object with enough point masses.

Summary

Use a mass-weighted average for system location. Test symmetric cases and state clearly whether objects are modeled as points or extended bodies.

Glossary

Self-check

  1. Which body pulls the center more strongly?
  2. What symmetric case tests the function?
  3. What does a point-mass model omit?

Sources

Model contract

Treat the lesson as a small function before treating it as a fact to memorize. Give every value a unit, keep only the state needed for the next step, and make the output easy to inspect.

\[\text{observable output} = f(\text{inputs},\,\text{state})\]
Inputs
Quantities you set or measure, with units and useful bounds.
State
Values the program must retain to reproduce the next result.
Rule
The relationship or update that turns inputs and state into a result.
Check
A known limit, unit check, invariant, or measured result that can expose a bad model.

Implement the idea as a model

For Center of Mass Computation, write down the quantities you can control, the values your program must retain, and the result a reader could inspect. In Momentum and Collisions, the useful program is not the drawing: it is the smallest explicit model that makes a prediction you can test.

Guided experiment

Prediction: changing one declared input while holding the others fixed should change only the outputs that the model connects to that input. Choose one input, predict the direction of change, then check a limiting case such as zero, a symmetric arrangement, or a familiar low-speed or small-change approximation.

Where this model breaks

This lesson is a teaching model, not a complete simulator. Before using it outside the stated question, check which interactions, scales, uncertainties, boundary conditions, and measurement limits it leaves out.

Summary

Treat Center of Mass Computation as a contract: named inputs and units enter a rule, the rule produces an observable result, and a known limit or invariant checks whether the implementation deserves trust.

Glossary

  • Input: a measured value or chosen parameter supplied to a model.
  • State: the smallest set of values needed to continue or reproduce a model.
  • Validation: comparing an output with a known result, limit, invariant, or measurement.

Self-check

  1. Which values are inputs, and which values must remain state?
  2. What observable result would tell you the model is behaving as expected?
  3. Which assumption would you test first before applying the model to a real system?

Model review: turn Center of Mass Computation into a test

Calculate a mass-weighted average position and see why a system's center moves toward its heavier parts.

  1. Name the inputs and units that the momentum and collisions model needs.
  2. Separate the state you must keep from values you can calculate when needed.
  3. Write one rule that maps the current state and inputs to an observable result.
  4. Choose a limiting case, unit check, invariant, or known result before trusting an output.
  5. State one assumption you would change before using this simplified model for a real decision.

Share to: