---
title: Mass, charge and centers
heading: Adding up what's spread out
eyebrow: A6 · Lesson 14 · Mass, charge and centers
xp: 40
---

::: hook
Charge is rarely sitting at a point. It's smeared along a wire, over a plate, through a volume of semiconductor, and the density changes from place to place. How much is there in all, and where is its center? A motor's rotor raises the same questions about mass: how heavy is it, and how hard is it to spin up? Each answer is an integral of a density: chop the object into pieces small enough that the density is constant on each, then add.
:::

::: play
- A 1 m rod carries charge with density $\lambda(x) = 1 + kx$ nC/m, growing toward the right end. The shaded area is the total charge.
- Raise $k$. The marker is the center of charge. Which way does it move, and how far can it go?
:::
:::

```sim plot
view: graph
x: x = 0..1 m
y: density = 0..6
slider: k = 0..5 step 0.1 = 2
plot: 1 + k*x | label: λ(x)
plot: 1 + k*x | fill: 0..1 | color: ch2
marker: x = (1/2 + k/3)/(1 + k/2) | label: center
readout: total charge = 1 + k/2 nC | digits: 4
readout: center at = (1/2 + k/3)/(1 + k/2) m | digits: 4
```

::: predict
## As $k$ grows very large, the density is almost all near the right end. Where does the center of charge end up?

- [ ] At 1 m, the right end
- [x] At $\frac{2}{3}$ m
- [ ] At $\frac{1}{2}$ m
- [ ] At $\frac{3}{4}$ m

::: reveal
At $\frac{2}{3}$ m. For huge $k$ the density is essentially $kx$, a triangle, and a triangle's center is two thirds of the way toward its tall end. The center can't reach the end because there's still charge spread along the whole rod.
:::
:::

::: nameit
## Totals from densities

A **linear density** $\lambda(x)$ (charge per meter, or mass per meter) gives a total

$$Q = \int_a^b\lambda(x)\,dx$$

On a surface with density $\sigma$, or in a volume with density $\rho$, the same idea holds with area or volume elements. For a disk whose density depends only on the radius $r$, slice it into rings of area $2\pi r\,dr$:

$$Q = \int_0^R\sigma(r)\,2\pi r\,dr$$

## Centers

The **center** of a distribution is the density-weighted average position:

$$\bar{x} = \frac{\int x\,\lambda(x)\,dx}{\int\lambda(x)\,dx}$$

For a uniform density this is the **centroid**, the geometric center. For a flat region under $y = f(x)$, $\bar x = \frac{\int x f(x)\,dx}{\int f(x)\,dx}$.

## Moment of inertia

How hard an object is to spin up depends on how far its mass sits from the axis: $I = \int r^2\,dm$. Mass far out counts much more. For a uniform disk of mass $M$ and radius $R$, rings give $I = \frac{1}{2}MR^2$; for a thin rod spun about its center, $I = \frac{1}{12}ML^2$. B1 and S12 use these for motors and generators.
:::

::: example
## A 2 m rod carries $\lambda(x) = 3x^2$ nC/m. Find its total charge and its center.

::: solution
1. **Total charge.**
   $$\begin{aligned} Q &= \int_0^2 3x^2\,dx \\ &= x^3\Big|_0^2 \\ &= 8\ \text{nC} \end{aligned}$$
2. **First moment.**
   $$\begin{aligned} \int_0^2 x \cdot 3x^2\,dx &= \frac{3}{4}x^4\Big|_0^2 \\ &= 12\ \text{nC}\cdot\text{m} \end{aligned}$$
3. **Center.**
   $$\begin{aligned} \bar{x} &= \frac{12}{8} \\ &= 1.5\ \text{m} \end{aligned}$$
   well toward the denser end.

**Answer:** the rod carries 8 nC, and its center is at 1.5 m, well toward the denser end.
:::
:::

::: example
## A motor rotor is a uniform disk of 0.5 kg and radius 3 cm. What is its moment of inertia?

::: solution
1. **Mass of a ring.** Rings of radius $r$ and width $dr$ have mass
   $$dm = \frac{M}{\pi R^2}2\pi r\,dr$$
2. **Add up $r^2\,dm$.**
   $$\begin{aligned} I &= \int_0^R r^2\,\frac{2M}{R^2}r\,dr \\ &= \frac{2M}{R^2}\cdot\frac{R^4}{4} \\ &= \frac{1}{2}MR^2 \end{aligned}$$
3. **Put in the numbers.**
   $$\begin{aligned} I &= \frac{1}{2} \times 0.5 \times 0.03^2 \\ &= 2.25 \times 10^{-4}\ \text{kg}\cdot\text{m}^2 \end{aligned}$$

**Answer:** the rotor's moment of inertia is $\frac{1}{2}MR^2 = 2.25 \times 10^{-4}$ kg·m².
:::
:::

::: example
## Where is the center of mass of a uniform semicircular plate of radius $R$?

::: solution
1. **Use symmetry.** By symmetry the center of mass is on the axis through the middle.
2. **Slice into strips.** Slice the plate into horizontal strips at height $y$, each of width $2\sqrt{R^2 - y^2}$:
   $$\begin{aligned} \bar y &= \frac{\int_0^R y \cdot 2\sqrt{R^2 - y^2}\,dy}{\pi R^2/2} \\ &= \frac{2R^3/3}{\pi R^2/2} \\ &= \frac{4R}{3\pi} \\ &= 0.424R \end{aligned}$$
3. **Check.** It's below halfway up, since the plate is widest near its base.

**Answer:** the center of mass is on the axis through the middle, $\frac{4R}{3\pi} = 0.424R$ up from the base.
:::
:::

::: check
given: l0 = 2 | 5; L = 1 | 3; k = 1 | 3
answer: l0*L*(1 + k/2)
unit: nC

## A rod of length {L} m carries $\lambda(x) = \given{l0}\left(1 + \given{k}\frac{x}{L}\right)$ nC/m from $x = 0$ to $x = L$. What is its total charge, in nC?

::: right
Right. $\int_0^L\lambda_0(1 + kx/L)\,dx = \lambda_0L(1 + k/2)$ = {answer}.
:::

::: misses
- [l0*L] That's the uniform part only. Add the growing part.
- [l0*L*(1 + k)] That uses the density at the right end everywhere. The average density is at the middle.
- [any] Not yet. Integrate the density over the rod.
:::
:::

::: check
given: L = 1 | 2; k = 1 | 3
answer: L*(1/2 + k/3)/(1 + k/2)
unit: m
tolerance: 0.5%

## For the same kind of rod, $\lambda = \lambda_0(1 + \given{k}x/L)$ with $L$ = {L} m, where is the center of charge, in meters from the left end?

::: right
Right. $\bar x = \frac{\int x\lambda\,dx}{\int\lambda\,dx} = \frac{L(1/2 + k/3)}{1 + k/2}$ = {answer} m.
:::

::: misses
- [L/2] That's the center of a uniform rod. This one is denser on the right.
- [L*(1/2 + k/3)] Divide by the total, $\int\lambda\,dx$.
- [any] Not yet. Weight each position by the density and divide by the total.
:::
:::

::: check
given: a = 2 | 4 | 6
answer: 3*a/4
tolerance: 0.5%

## Where is the centroid ($\bar x$) of the region under $y = x^2$ from 0 to {a}?

::: right
Right. $\frac{\int_0^a x^3dx}{\int_0^a x^2dx} = \frac{a^4/4}{a^3/3} = \frac{3a}{4}$ = {answer}.
:::

::: misses
- [a/2] The region is taller on the right, so its centroid is right of the middle.
- [2*a/3] That's a triangle, under $y = x$. This curve rises faster.
- [any] Not yet. $\bar x = \int xf\,dx / \int f\,dx$.
:::
:::

::: check
given: M = 0.2 | 0.5 | 2; R = 2 | 5
answer: 0.5*M*(R/100)^2
unit: kg·m²

## A uniform disk rotor has mass {M} kg and radius {R} cm. What is its moment of inertia, in kg·m²?

::: right
Right. $\frac{1}{2}MR^2$ = {answer}.
:::

::: misses
- [M*(R/100)^2] That's a thin ring, with all its mass at the rim. A disk has mass closer in.
- [0.5*M*R^2] Put the radius in meters.
- [any] Not yet. Rings give $I = \frac{1}{2}MR^2$.
:::
:::

::: check
given: M = 0.1 | 0.3; L = 20 | 50
answer: M*(L/100)^2/12
unit: kg·m²

## A thin uniform rod of mass {M} kg and length {L} cm spins about its center. What is its moment of inertia, in kg·m²?

::: right
Right. $\int_{-L/2}^{L/2}x^2\frac{M}{L}dx = \frac{ML^2}{12}$ = {answer}.
:::

::: misses
- [M*(L/100)^2/3] That's about one end. About the center, each half is shorter.
- [M*L^2/12] Put the length in meters.
- [any] Not yet. $\int x^2\,dm$ with $dm = \frac{M}{L}dx$, from $-L/2$ to $L/2$.
:::
:::

::: check
given: s0 = 1 | 5; R = 5 | 10
answer: 2*pi*s0*(R/100)^2/3*1000
unit: nC

## A disk of radius {R} cm has surface charge $\sigma = \given{s0}\frac{r}{R}$ µC/m², zero at the center and growing outward. What is its total charge, in nC?

::: right
Right. $\int_0^R\sigma_0\frac{r}{R}\,2\pi r\,dr = \frac{2}{3}\pi\sigma_0R^2$ = {answer}.
:::

::: misses
- [pi*s0*(R/100)^2*1000] That's a uniform disk at $\sigma_0$. This density is smaller near the center.
- [pi*s0*(R/100)^2*1000/2] Rings near the rim have more area: the average is weighted by $2\pi r$.
- [any] Not yet. Rings of area $2\pi r\,dr$.
:::
:::

::: check
kind: parts
given: R = 2 | 5; M = 0.5 | 2

## A uniform semicircular plate has radius {R} cm and mass {M} kg.

::: part
answer: 4*R/(3*pi)
unit: cm
tolerance: 0.5%

### How far from the straight edge is its center of mass?

::: misses
- [R/2] It's below halfway: the plate is widest at its base.
- [any] $\bar y = \frac{4R}{3\pi}$.
:::
:::

::: part
answer: M*(R/100)^2/2
unit: kg·m²
tolerance: 0.5%

### What is its moment of inertia about the axis through the center of the full circle, perpendicular to the plate, in kg·m²?

::: misses
- [any] Half a disk has half the mass at the same radii: $\tfrac12MR^2$.
:::
:::
:::

::: check
kind: derivation
vars: R = 0.5..3

## Derive the center of mass of a uniform semicircular plate.

::: step
answer: 2*R^3/3

### Strips at height $y$ have width $2\sqrt{R^2 - y^2}$. What is $\int_0^R y \cdot 2\sqrt{R^2 - y^2}\,dy$?
:::

::: step
answer: 4*R/(3*pi)

### Divide by the area, $\pi R^2/2$.
:::

::: right
Right. $\bar y = \frac{4R}{3\pi}$, about 0.42 of the radius.
:::
:::

::: explain
## Why does a uniform disk have a smaller moment of inertia than a ring of the same mass and radius?

::: model
Moment of inertia adds up each bit of mass times the square of its distance from the axis. In a ring, all the mass sits at the full radius $R$, so $I = MR^2$. In a disk, much of the mass is closer to the center, where $r^2$ is small, so it contributes less. Adding up rings of the disk gives exactly half the ring's value, $\frac{1}{2}MR^2$. That's why a flywheel puts its mass in a heavy rim.
:::
:::

::: practice

::: check
given: a = 1..12 int
answer: 2*a/3
tolerance: 0.5%

## Where is the centroid ($\bar x$) of the triangle under $y = x$ from 0 to {a}?

::: misses
- [a/2] It's taller on the right.
- [any] $\int x^2dx / \int x\,dx$.
:::
:::

::: check
given: n = 1 | 2 | 3; L = 2 | 4
answer: L^(n + 1)/(n + 1)
unit: nC

## A rod from 0 to {L} m carries $\lambda = x^{\given{n}}$ nC/m. What is its total charge, in nC?

::: misses
- [any] $\int_0^L x^n\,dx$.
:::
:::

::: check
given: M = 1 | 4; R = 10 | 20
answer: M*(R/100)^2
unit: kg·m²

## A thin ring of mass {M} kg and radius {R} cm spins about its axis. What is its moment of inertia, in kg·m²?

::: misses
- [0.5*M*(R/100)^2] That's a disk. A ring has all its mass at $R$.
- [any] Every bit of mass is at distance $R$.
:::
:::
:::
