AP · Physics C: Mechanics · Center of Mass and Variable Forces

Center of Mass of Continuous Objects

16 min readUpdated November 30, 2026FreeAP Physics C: Mechanics, Force and Translational Dynamics

In AP® Physics C: Mechanics, the center of mass of a continuous object is found by replacing the sum Σmx\Sigma mx with an integral: xcm=1M∫x dmx_{cm} = \frac{1}{M}\int x\,dm, where M=∫dmM = \int dm. For a rod along the x-axis, write the mass element as dm=λ dxdm = \lambda\,dx, with λ\lambda the linear mass density, and integrate between the rod's ends. Symmetry often gives the answer without integrating.

Quick check

  1. A 2.0 kg mass sits at x = 0 and a 3.0 kg mass at x = 1.0 m. Where is their center of mass?Show answerHide answer

    xcm=2.0(0)+3.0(1.0)5.0=0.60x_{cm} = \dfrac{2.0(0) + 3.0(1.0)}{5.0} = 0.60 m, closer to the heavier mass. The AP® Physics 1 note on systems and center of mass covers this.

  2. What is the integral of x dx from 0 to L?Show answerHide answer

    L22\dfrac{L^2}{2}.

  3. A uniform rod lies from x = 0 to x = 2.0 m. Where is its center of mass?Show answerHide answer

    At x=1.0x = 1.0 m, its midpoint: equal mass lies on each side, so no integral is needed.

Know these already? Jump to the practice questions

What you'll be able to do

  • State the integral definition of the center of mass and link it to Σmx/Σm\Sigma mx/\Sigma m.
  • Calculate a rod's total mass from its linear mass density.
  • Calculate the center of mass of a rod with uniform or nonuniform density, stating dmdm and the limits.
  • Use symmetry, or uniform pieces treated as point masses, to avoid integrating.

Key terms

Linear mass density

The mass per unit length of a thin object, λ=dm/dx\lambda = dm/dx, in kg/m.

In plain English
How heavy each meter of the rod is, at each point.
Don't write
"λ=M/L\lambda = M/L" for a rod whose density varies.

Mass element

A tiny piece of the object, of mass dmdm, small enough to have a single position xx. For a rod, dm=λ dxdm = \lambda\,dx.

In plain English
One thin slice of the rod.
Don't write
"dmdm is the mass of the rod."

Center of mass

The mass-weighted average position of an object, xcm=1M∫x dmx_{cm} = \dfrac{1}{M}\int x\,dm.

In plain English
The balance point of the object.
Don't write
"The center of mass is always at the middle."

How does the sum become an integral?

For separate masses, xcm=ΣmixiΣmix_{cm} = \dfrac{\Sigma m_i x_i}{\Sigma m_i}, which is on the AP® Physics C: Mechanics equation sheet. A rod has no separate masses, so:

  1. Slice the rod into many thin pieces, each of mass dmdm at position xx.
  2. Each slice contributes x dmx\,dm to the top of the fraction and dmdm to the bottom.
  3. As the slices get thinner, the sums become integrals (Learn this):
xcm=∫x dm∫dm=1M∫x dmx_{cm} = \frac{\int x\,dm}{\int dm} = \frac{1}{M}\int x\,dm

The top integral weights each position by the mass there, so the center of mass sits closer to where more mass is. Units: kg·m divided by kg gives meters.

Check yourself

In x_cm = (1/M)∫x dm, what does M stand for, and how do you find it for a rod?
Show answerHide answer

The total mass, M=∫dm=∫λ dxM = \int dm = \int \lambda\,dx over the length of the rod.

How do you write dm for a rod?

Use the linear mass density: dm=λ dxdm = \lambda\,dx (Learn this).

  • Uniform rod: λ\lambda is constant, λ=M/L\lambda = M/L.
  • Nonuniform rod: λ\lambda is a function, such as λ=2.0+3.0x\lambda = 2.0 + 3.0x kg/m with xx in meters. Each coefficient carries a unit: the 3.0 is in kg/m².

The total mass is M=∫0Lλ dxM = \int_0^L \lambda\,dx. For λ=2.0+3.0x\lambda = 2.0 + 3.0x on a 1.0 m rod, M=2.0(1.0)+1.5(1.0)2=3.5M = 2.0(1.0) + 1.5(1.0)^2 = 3.5 kg.

Set the problem up before you evaluate anything:

  1. Put the rod on the x-axis and choose the origin, often at one end.
  2. Write dm=λ(x) dxdm = \lambda(x)\,dx.
  3. Write the limits: the coordinates of the two ends.

Check yourself

A rod from x = 0 to 2.0 m has λ = 4.0x kg/m. What is its mass?
Show answerHide answer

M=∫02.04.0x dx=2.0(2.0)2=8.0M = \int_0^{2.0} 4.0x\,dx = 2.0(2.0)^2 = 8.0 kg.

How do you find the center of mass of a nonuniform rod?

Compute two integrals with the same limits and divide:

xcm=∫0Lx λ(x) dx∫0Lλ(x) dxx_{cm} = \frac{\int_0^L x\,\lambda(x)\,dx}{\int_0^L \lambda(x)\,dx}

For λ=kx\lambda = kx, which grows steadily from x=0x = 0:

  1. M=∫0Lkx dx=12kL2M = \int_0^L kx\,dx = \tfrac{1}{2}kL^2.
  2. ∫0Lx(kx) dx=13kL3\int_0^L x(kx)\,dx = \tfrac{1}{3}kL^3.
  3. xcm=kL3/3kL2/2=2L3x_{cm} = \dfrac{kL^3/3}{kL^2/2} = \dfrac{2L}{3}.

The constant kk cancels, so only the shape of the density matters. The result is past the midpoint, toward the denser end, because more mass sits there.

Key idea

The center of mass shifts from the midpoint toward the denser end, and divides by mass, not length.

Check yourself

For λ = kx on a rod of length 3.0 m starting at x = 0, where is the center of mass?
Show answerHide answer

2L/3=2.02L/3 = 2.0 m from the light end.

How does symmetry save work?

If the density is the same at equal distances on either side of a point, every slice on one side is balanced by a matching slice on the other, so the center of mass is at that point. For a rod from x=−1.0x = -1.0 m to x=1.0x = 1.0 m with λ=2.0+3.0x2\lambda = 2.0 + 3.0x^2 kg/m, λ\lambda is the same at xx and −x-x, so xcm=0x_{cm} = 0 with no integral.

A rod built from uniform pieces needs no integral either: treat each piece as a point mass at its midpoint, then use Σmx/Σm\Sigma m x/\Sigma m.

Examiner's eye

Marks go to stating the symmetry argument in words, for example "λ is symmetric about the midpoint, so the center of mass is at the midpoint."

Check yourself

A rod from x = −2.0 m to 2.0 m has λ = 5.0 + x² kg/m. Where is its center of mass?
Show answerHide answer

At x=0x = 0: the density is symmetric about the origin.

Worked example 1: A rod that gets denser

Question: A thin rod lies along the x-axis from x=0x = 0 to x=2.0x = 2.0 m, with linear mass density λ=1.0+2.0x\lambda = 1.0 + 2.0x, where λ\lambda is in kg/m and xx in meters. Calculate (a) its mass, in kg to 2 significant figures, and (b) the position of its center of mass, in meters to 3 significant figures.

What tells you the method

λ\lambda depends on xx, so integrate with dm=λ dxdm = \lambda\,dx.

  1. Step 1: Set up.

    dm=(1.0+2.0x) dxdm = (1.0 + 2.0x)\,dx, with limits x=0x = 0 and x=2.0x = 2.0 m.

    Why

    The limits are the rod's ends.

  2. Step 2: Find M.

    M=[x+x2]02.0=2.0+4.0=6.0M = \left[x + x^2\right]_0^{2.0} = 2.0 + 4.0 = 6.0 kg.

    Why

    M=∫dmM = \int dm.

  3. Step 3: Find the top integral.

    ∫02.0(x+2.0x2) dx=[12x2+23x3]02.0=2.0+5.33=7.33\int_0^{2.0} (x + 2.0x^2)\,dx = \left[\tfrac{1}{2}x^2 + \tfrac{2}{3}x^3\right]_0^{2.0} = 2.0 + 5.33 = 7.33 kg·m.

    Why

    Each slice is weighted by its position.

  4. Step 4: Divide.

    xcm=7.33/6.0=1.22x_{cm} = 7.33/6.0 = 1.22 m.

    Why

    xcm=1M∫x dmx_{cm} = \frac{1}{M}\int x\,dm.

Check it

1.22 m is past the midpoint, 1.0 m, toward the denser end at x=2.0x = 2.0 m, and inside the rod.

Answer

(a) 6.06.0 kg; (b) 1.221.22 m.

Worked example 2: Weighing slices of a tapered rod

Question: In a class investigation, a tapered rod lying from x=0x = 0 to x=1.00x = 1.00 m is cut into five 0.20 m segments, which are weighed.

Segment midpoint (m)Mass (kg)
0.100.096
0.300.128
0.500.160
0.700.192
0.900.224

(a) Treating each segment as a point mass at its midpoint, calculate the center of mass, in meters to 2 significant figures. (b) The class models λ=0.40+0.80x\lambda = 0.40 + 0.80x, with λ\lambda in kg/m and xx in meters. Calculate the center of mass from this model, in meters to 3 significant figures.

What tells you the method

(a) gives point masses, so use Σmx/Σm\Sigma mx/\Sigma m; (b) gives λ(x)\lambda(x), so integrate.

  1. Step 1: Sum the data.

    Σm=0.800\Sigma m = 0.800 kg and Σmx=0.464\Sigma mx = 0.464 kg·m, so xcm=0.464/0.800=0.58x_{cm} = 0.464/0.800 = 0.58 m.

    Why

    Each segment's mass is placed at its midpoint.

  2. Step 2: Integrate the model.

    M=[0.40x+0.40x2]01.00=0.800M = \left[0.40x + 0.40x^2\right]_0^{1.00} = 0.800 kg and ∫01.00(0.40x+0.80x2) dx=0.2000+0.2667=0.4667\int_0^{1.00} (0.40x + 0.80x^2)\,dx = 0.2000 + 0.2667 = 0.4667 kg·m.

    Why

    dm=λ dxdm = \lambda\,dx with limits at the rod's ends.

  3. Step 3: Divide.

    xcm=0.4667/0.800=0.583x_{cm} = 0.4667/0.800 = 0.583 m.

    Why

    The model treats the rod as a continuous object.

Check it

The two methods agree to 2 significant figures, and the model's total mass matches the data. The center of mass lies past 0.50 m, toward the heavier segments.

Answer

(a) 0.580.58 m; (b) 0.5830.583 m.

Worked example 3: A rod whose density rises by half

Question: A rod of length LL lies from x=0x = 0 to x=Lx = L with λ=λ0(1+xL)\lambda = \lambda_0\left(1 + \dfrac{x}{L}\right). Derive expressions for its mass MM and its center of mass xcmx_{cm} in terms of λ0\lambda_0 and LL. Then, for λ0=0.60\lambda_0 = 0.60 kg/m and L=1.8L = 1.8 m, calculate (a) MM, in kg to 3 significant figures, and (b) xcmx_{cm}, in meters to 3 significant figures.

What tells you the method

"Derive" with a given λ(x)\lambda(x): integrate symbolically, then substitute.

  1. Step 1: Mass.

    M=λ0∫0L(1+xL)dx=λ0(L+L2)=32λ0LM = \lambda_0\int_0^L \left(1 + \dfrac{x}{L}\right)dx = \lambda_0\left(L + \dfrac{L}{2}\right) = \dfrac{3}{2}\lambda_0 L.

    Why

    dm=λ dxdm = \lambda\,dx over the full length.

  2. Step 2: Top integral.

    λ0∫0L(x+x2L)dx=λ0(L22+L23)=56λ0L2\lambda_0\int_0^L \left(x + \dfrac{x^2}{L}\right)dx = \lambda_0\left(\dfrac{L^2}{2} + \dfrac{L^2}{3}\right) = \dfrac{5}{6}\lambda_0 L^2.

    Why

    Multiply dmdm by xx before integrating.

  3. Step 3: Divide.

    xcm=5λ0L2/63λ0L/2=5L9x_{cm} = \dfrac{5\lambda_0L^2/6}{3\lambda_0L/2} = \dfrac{5L}{9}.

    Why

    λ0\lambda_0 cancels, so only LL remains.

  4. Step 4: Substitute.

    M=1.5(0.60)(1.8)=1.62M = 1.5(0.60)(1.8) = 1.62 kg and xcm=5(1.8)/9=1.00x_{cm} = 5(1.8)/9 = 1.00 m.

    Why

    Keep symbols to the end, then put in the numbers.

Check it

5L/9=0.56L5L/9 = 0.56L, slightly past the midpoint, as expected for a rod only twice as dense at one end as at the other. Units: kg/m times m gives kg.

Answer

(a) M=32λ0LM = \tfrac{3}{2}\lambda_0L, which is 1.621.62 kg; (b) xcm=59Lx_{cm} = \tfrac{5}{9}L, which is 1.001.00 m.

Your turn

Question: A rod lies from x=0x = 0 to x=3.0x = 3.0 m with λ=2.0x\lambda = 2.0x, where λ\lambda is in kg/m and xx in meters. Calculate the position of its center of mass, in meters to 2 significant figures.

  1. Step 1: Set up and find M.

    dm=2.0x dxdm = 2.0x\,dx from 0 to 3.0 m, so M=[x2]03.0=9.0M = \left[x^2\right]_0^{3.0} = 9.0 kg.

  2. Step 2: Your go: find the integral of x dm and divide by M.

Show the full solutionHide the solution

Step 2. ∫03.02.0x2 dx=[23x3]03.0=18\int_0^{3.0} 2.0x^2\,dx = \left[\tfrac{2}{3}x^3\right]_0^{3.0} = 18 kg·m, so xcm=18/9.0=2.0x_{cm} = 18/9.0 = 2.0 m, which is 2L/32L/3.

Answer: 2.02.0 m.

Traps

Trap

A rod's center of mass is at its midpoint.

It seems right because most rods in earlier courses are uniform. But the midpoint is the answer only when the density is uniform or symmetric about it; otherwise the center of mass moves toward the denser end.

A rod from 0 to L has λ = kx. Is its center of mass at L/2 or 2L/3?

2L/32L/3. More mass sits near x=Lx = L.

Trap

The center of mass is the integral of xλ dx divided by the rod's length.

It seems right because an average over a rod sounds like an average over its length. But the center of mass is a mass-weighted average, so you divide by the total mass.

A rod from 0 to 2.0 m has λ = 3.0x kg/m, so ∫xλ dx = 8.0 kg·m. Is x_cm equal to 4.0 m or 1.3 m?

1.3 m: M=6.0M = 6.0 kg and 8.0/6.0=1.38.0/6.0 = 1.3 m. Dividing by 2.0 m gives 4.0, which is in kg, not meters, and lies outside the rod.

What's examined

On the AP® Physics C: Mechanics exam (Unit 2: Force and Translational Dynamics), center of mass by integration appears in multiple-choice and free-response questions. Expect to state dm=λ dxdm = \lambda\,dx and the limits, derive a symbolic MM and xcmx_{cm}, calculate them, and justify a position using symmetry or the density trend. Command words include Derive, Calculate and Justify. The integral form is not on the equation sheet, so learn it.

Practice questions

  1. Recall A rod lies from x=0x = 0 to x=Lx = L with density λ(x)\lambda(x). Which expression gives its center of mass?
  • A) 1L∫0Lxλ dx\dfrac{1}{L}\displaystyle\int_0^L x\lambda\,dx
  • B) ∫0Lxλ dx∫0Lλ dx\dfrac{\int_0^L x\lambda\,dx}{\int_0^L \lambda\,dx}
  • C) ∫0Lx2λ dx∫0Lλ dx\dfrac{\int_0^L x^2\lambda\,dx}{\int_0^L \lambda\,dx}
  • D) 1L∫0Lx dx\dfrac{1}{L}\displaystyle\int_0^L x\,dx
Show answer

Answer: B. The top integral is ∫x dm\int x\,dm and the bottom is M=∫dmM = \int dm, with dm=λ dxdm = \lambda\,dx.

Why the others are wrong:

  • A divides by length instead of mass.
  • C uses x2x^2, as in the rotational inertia integral.
  • D ignores the density, so it always gives L/2L/2.
  1. Apply A rod lies from x=0x = 0 to x=4.0x = 4.0 m with λ=0.50+0.25x\lambda = 0.50 + 0.25x, where λ\lambda is in kg/m and xx in meters. Calculate (a) its mass, in kg to 2 significant figures, and (b) its center of mass, in meters to 3 significant figures.
Show answer

Answer: (a) 4.04.0 kg; (b) 2.332.33 m.

Marking points:

  • M=[0.50x+0.125x2]04.0=2.0+2.0=4.0M = \left[0.50x + 0.125x^2\right]_0^{4.0} = 2.0 + 2.0 = 4.0 kg.
  • ∫04.0(0.50x+0.25x2) dx=4.0+5.33=9.33\int_0^{4.0} (0.50x + 0.25x^2)\,dx = 4.0 + 5.33 = 9.33 kg·m.
  • xcm=9.33/4.0=2.33x_{cm} = 9.33/4.0 = 2.33 m.
  1. Apply A 2.0 m rod is made of two uniform pieces joined end to end: a 3.0 kg piece from x=0x = 0 to 1.01.0 m and a 1.0 kg piece from x=1.0x = 1.0 m to 2.02.0 m. Where is the rod's center of mass?
  • A) x=1.0x = 1.0 m
  • B) x=0.50x = 0.50 m
  • C) x=1.25x = 1.25 m
  • D) x=0.75x = 0.75 m
Show answer

Answer: D. Each piece acts as a point mass at its midpoint: 3.0(0.50)+1.0(1.5)4.0=0.75\dfrac{3.0(0.50) + 1.0(1.5)}{4.0} = 0.75 m.

Why the others are wrong:

  • A is the geometric midpoint, which ignores the uneven mass.
  • B uses only the heavier piece.
  • C swaps the masses of the two pieces.

A thin rod lies along the x-axis from x=0x = 0 to x=2.0x = 2.0 m with λ=1.5x2\lambda = 1.5x^2, where λ\lambda is in kg/m and xx in meters. The rod is for questions 4 and 5.

  1. Exam-style Calculate the mass of the rod, in kg to 2 significant figures.
Show answer

Answer: 4.04.0 kg.

Marking points:

  • dm=1.5x2 dxdm = 1.5x^2\,dx from 0 to 2.0 m.
  • M=[0.50x3]02.0=4.0M = \left[0.50x^3\right]_0^{2.0} = 4.0 kg.
  1. Exam-style Where is the rod's center of mass?
  • A) x=1.5x = 1.5 m
  • B) x=1.0x = 1.0 m
  • C) x=3.0x = 3.0 m
  • D) x=1.3x = 1.3 m
Show answer

Answer: A. ∫02.01.5x3 dx=[0.375x4]02.0=6.0\int_0^{2.0} 1.5x^3\,dx = \left[0.375x^4\right]_0^{2.0} = 6.0 kg·m, and 6.0/4.0=1.56.0/4.0 = 1.5 m.

Why the others are wrong:

  • B is the midpoint, which ignores the density.
  • C divides by the length, 2.0 m, instead of the mass, and lands outside the rod.
  • D is 2L/32L/3, the result for a density proportional to xx, not x2x^2.
  1. Exam-style In a class investigation, students measure the linear mass density of a tapered rod lying from x=0x = 0 to x=1.20x = 1.20 m.
Position x (m)Density λ (kg/m)
00.90
0.400.70
0.800.50
1.200.30

Using a linear model for λ(x)\lambda(x) that fits the data, calculate (a) the rod's mass, in kg to 2 significant figures, and (b) its center of mass, in meters to 2 significant figures.

Show answer

Answer: (a) 0.720.72 kg; (b) 0.500.50 m.

Marking points:

  • The density falls by 0.20 kg/m every 0.40 m, so λ=0.90−0.50x\lambda = 0.90 - 0.50x.
  • M=[0.90x−0.25x2]01.20=1.08−0.36=0.72M = \left[0.90x - 0.25x^2\right]_0^{1.20} = 1.08 - 0.36 = 0.72 kg.
  • ∫01.20(0.90x−0.50x2) dx=0.648−0.288=0.36\int_0^{1.20} (0.90x - 0.50x^2)\,dx = 0.648 - 0.288 = 0.36 kg·m, so xcm=0.36/0.72=0.50x_{cm} = 0.36/0.72 = 0.50 m, toward the denser end at x=0x = 0.
  1. Recall A straight rod's density increases steadily from end P to end Q. Where is its center of mass?
  • A) At the midpoint
  • B) At end Q
  • C) Between the midpoint and end Q
  • D) Between end P and the midpoint
Show answer

Answer: C. More mass lies toward Q, so the weighted average moves toward Q, but some mass is everywhere, so it cannot reach Q.

Why the others are wrong:

  • A would need a uniform or symmetric density.
  • B would need all the mass at Q.
  • D moves the center of mass toward the lighter end.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • The integral form 1M∫x dm\frac{1}{M}\int x\,dm is the continuous version of Σmx/Σm\Sigma mx/\Sigma m.
  • For a rod, dm=λ dxdm = \lambda\,dx, and both integrals run between the rod's ends.
  • Always divide by the mass from ∫λ dx\int \lambda\,dx, never by the length.
  • A density symmetric about a point puts the center of mass at that point; uniform pieces act as point masses at their midpoints.
  • A density that rises toward one end pulls the center of mass toward that end, but never to the end itself.

Keep learning

Explore AP Physics C: Mechanics tutoring →

View the full Physics C: Mechanics syllabus →

More in this unit

Force and Translational Dynamics

All Center of Mass and Variable Forces notes

Part of Novark's AP Physics C: Mechanics notes