---
title: Rotation lab
heading: Moments of inertia by integration, a ball that slides into rolling, gear ratios and beams in code
eyebrow: B1 · Lesson 36 · Rotation lab
xp: 50
---

::: hook
Tables of moments of inertia cover hoops, disks and rods. Real parts are tapered, hollow or built up, and their inertias are integrals you compute. Rolling objects start out sliding, and friction spends energy spinning them up. Drives need gear ratios, and structures need support forces. In this lab you'll compute all of these, checking each against the closed forms of lessons 30 to 35.
:::

::: play
- A hoop, a disk, a solid sphere and a frictionless block start from rest down the same incline. The curves are distance along the slope against time.
- Each rolls with acceleration $\frac{g\sin\theta}{1 + c}$, where $c = \frac{I}{mr^2}$: 1 for the hoop, $\frac12$ for the disk, $\frac25$ for the sphere and 0 for the block.
- Steepen the slope: every time shrinks, but the order never changes, and neither mass nor radius matters.
:::

```sim plot
view: graph
x: t = 0..4 s
y: x = 0..5 m
slider: th = 5..40 step 1 = 11.5 °
plot: 0.5*9.8*sin(th*pi/180)/2*t^2 | label: hoop | samples: 200
plot: 0.5*9.8*sin(th*pi/180)/1.5*t^2 | label: disk | color: ch2 | samples: 200
plot: 0.5*9.8*sin(th*pi/180)/1.4*t^2 | label: sphere | color: ch3 | samples: 200
plot: 0.5*9.8*sin(th*pi/180)*t^2 | label: sliding block | dashed | samples: 200
readout: hoop's time over 5 m, s = sqrt(2*5*2/(9.8*sin(th*pi/180))) | digits: 3
readout: sphere's time over 5 m, s = sqrt(2*5*1.4/(9.8*sin(th*pi/180))) | digits: 3
```

::: predict
## A bowling ball is launched along a floor sliding at 8 m/s without spinning. What speed does it have once friction has it rolling without slipping?

- [ ] 8 m/s: friction does no work on it
- [x] 5.7 m/s, five sevenths of the launch speed
- [ ] 4 m/s, half the launch speed
- [ ] 0: friction stops it

::: reveal
5.7 m/s. Friction slows the center while spinning the ball up, until $v = \omega r$. Angular momentum about the contact line is conserved through the sliding (friction acts through that line), which gives $mv_0r = mvr + \frac25mr^2\frac vr$, so $v = \frac57v_0$, whatever the friction coefficient. Two sevenths of the kinetic energy turns into heat.
:::
:::

::: nameit
## Inertia by integration

Split a body into pieces small enough that each sits at one distance from the axis, and add $r^2\,dm$:

- a disk or annulus as rings: $dI = r^2 \cdot \sigma\,2\pi r\,dr$, giving $\frac12M(a^2 + b^2)$ for inner radius a and outer radius b;
- a rod as slices: $dI = (x - x_p)^2\lambda(x)\,dx$ about a pivot at $x_p$, for any density λ(x).

The **midpoint rule**, evaluating each slice at its center, makes this accurate to order $\Delta x^2$.

## Sliding into rolling

A sphere launched sliding at $v_0$ on a surface with friction μ: the center decelerates at μg, and the spin grows at $\frac{5\mu g}{2r}$. Rolling begins at $t = \frac{2v_0}{7\mu g}$, after a distance $\frac{12v_0^2}{49\mu g}$, at speed $\frac57v_0$.

## Statics as a linear system

A beam on two supports carrying loads $F_i$ at positions $x_i$ obeys two equations: forces sum to zero, $R_1 + R_2 = \sum F_i$, and moments about the left support sum to zero, $LR_2 = \sum x_iF_i$. Larger structures give larger systems of the same kind, solved the same way.
:::

::: example
## A hoop, a disk, a solid sphere and a frictionless block run down a 5 m slope that drops 1 m. What are their times?

::: solution
1. **Time formula.** With $\sin\theta = 0.2$,
   $$\begin{aligned} t &= \sqrt{\frac{2L(1 + c)}{g\sin\theta}} \\ &= \sqrt{\frac{10(1 + c)}{1.96}} \end{aligned}$$
2. **Each body.** Hoop ($c = 1$) 3.19 s, disk ($c = \frac12$) 2.77 s, sphere ($c = \frac25$) 2.67 s, block 2.26 s.
3. **Why the hoop is slowest.** The hoop puts all its mass at the rim, so half its kinetic energy goes into spin; the sphere keeps its mass nearer the axis and wastes only $\frac27$ of it.

**Answer:** the hoop takes 3.19 s, the disk 2.77 s, the sphere 2.67 s and the block 2.26 s.
:::
:::

::: example
## A ball launched sliding at 8 m/s on a floor with μ = 0.2. When, where and how fast does it start rolling?

::: solution
1. **When.**
   $$\begin{aligned} t &= \frac{2 \times 8}{7 \times 0.2 \times 9.8} \\ &= 1.17\ \text{s} \end{aligned}$$
2. **How fast.**
   $$\frac{5}{7} \times 8 = 5.71\ \text{m/s}$$
3. **Where.**
   $$\begin{aligned} d &= \frac{12 \times 64}{49 \times 0.2 \times 9.8} \\ &= 8.00\ \text{m} \end{aligned}$$
4. **Energy lost.** The kinetic energy falls from $32m$ to $\frac12m(5.71)^2 \times \frac75 = 22.9m$ joules: two sevenths lost to sliding friction.
5. **A bowling lane.** It's oiled over its first two thirds to μ of about 0.04, where a ball launched without spin would slide 40 m before rolling, more than twice the 18 m lane; the dry far end, with μ near 0.2, is where it grips and hooks.

**Answer:** the ball starts rolling after 1.17 s and 8.00 m, at 5.71 m/s.
:::
:::

::: example
## A 0.5 kg gyroscope wheel with I = 0.002 kg·m² spins at 300 rad/s, supported 5 cm from its center. How fast does it precess?

::: solution
1. **Torque from gravity.**
   $$\begin{aligned} \tau &= mgr \\ &= 0.5 \times 9.8 \times 0.05 \\ &= 0.245\ \text{N·m} \end{aligned}$$
2. **Spin angular momentum.**
   $$I\omega = 0.6\ \text{kg·m}^2\text{/s}$$
3. **Precession rate.**
   $$\begin{aligned} \Omega &= \frac{0.245}{0.6} \\ &= 0.408\ \text{rad/s} \end{aligned}$$
   one turn every 15.4 s.
4. **As the spin changes.** Spin it twice as fast and it precesses half as fast; as it slows from friction, the precession speeds up until the simple formula fails and it falls.

**Answer:** it precesses at 0.408 rad/s, one turn every 15.4 s.
:::
:::

::: check
kind: python

## Step 1. Write `annulus_inertia(M, a, b, n)` for a flat ring of mass M, inner radius a and outer radius b, by adding n thin rings with the midpoint rule.

```python starter
import numpy as np

def annulus_inertia(M, a, b, n):
    return M * b**2

print(annulus_inertia(100, 0, 0.3, 1000))
```

```python solution
import numpy as np

def annulus_inertia(M, a, b, n):
    sigma = M / (np.pi * (b**2 - a**2))
    dr = (b - a) / n
    r = a + (np.arange(n) + 0.5) * dr
    return float(np.sum(sigma * 2 * np.pi * r * dr * r**2))

print(annulus_inertia(100, 0, 0.3, 1000))
```

```python tests
I = annulus_inertia(100, 0, 0.3, 1000)
assert abs(I - 4.5) < 1e-3, f"A 100 kg disk of radius 0.3 m has ½MR² = 4.5 kg·m²; got {I:.5f}."
I2 = annulus_inertia(2, 0.1, 0.2, 1000)
assert abs(I2 - 0.5 * 2 * (0.01 + 0.04)) < 1e-6, f"An annulus has ½M(a² + b²) = 0.05 kg·m²; got {I2:.7f}."
I3 = annulus_inertia(1, 0.299, 0.3, 100)
assert abs(I3 - 0.3**2) / 0.09 < 0.01, "A thin ring approaches MR²."
```

::: right
Right. The rings far from the axis dominate: the outer half of a disk's radius holds 94% of its inertia.
:::
:::

::: check
kind: python

## Step 2. Write `rod_inertia(density, L, pivot, n)` for a rod from 0 to L whose linear density is the function `density(x)`, about an axis at `pivot`, using n midpoint slices.

```python starter
import numpy as np

def rod_inertia(density, L, pivot, n):
    M = density(L / 2) * L
    return M * L**2 / 3

print(rod_inertia(lambda x: 3 * (1 - x / 2), 1, 0, 1000))
```

```python solution
import numpy as np

def rod_inertia(density, L, pivot, n):
    dx = L / n
    x = (np.arange(n) + 0.5) * dx
    return float(np.sum(density(x) * (x - pivot)**2) * dx)

print(rod_inertia(lambda x: 3 * (1 - x / 2), 1, 0, 1000))
```

```python tests
uniform = lambda x: 2 + 0 * x
assert abs(rod_inertia(uniform, 1, 0, 1000) - 2 / 3) < 1e-5, "A uniform 2 kg rod 1 m long has ML²/3 about its end."
assert abs(rod_inertia(uniform, 1, 0.5, 1000) - 2 / 12) < 1e-5, "About its center it has ML²/12."
I = rod_inertia(lambda x: 3 * (1 - x / 2), 1, 0, 1000)
assert abs(I - 0.625) < 1e-5, f"The tapered rod has ∫3(1 - x/2)x² dx = 0.625 kg·m² about its thick end; got {I:.6f}."
```

::: right
Right. The tapered rod, 2.25 kg with its mass toward the pivot, has 0.625 kg·m², less than a uniform rod of the same mass would.
:::
:::

::: check
kind: python

## Step 3. Write `slide(v0, mu, r, dt)` that steps a solid sphere launched sliding at `v0` with no spin: the speed falls at μg and the spin grows at $\frac{5\mu g}{2r}$ (g = 9.8). Stop when $v \le \omega r$, interpolating within the last step, and return `(time, speed)` at that moment.

```python starter
def slide(v0, mu, r, dt):
    return 0.0, v0

print(slide(8, 0.2, 0.11, 1e-4))
```

```python solution
def slide(v0, mu, r, dt):
    v, w, t = v0, 0.0, 0.0
    while True:
        vn = v - mu * 9.8 * dt
        wn = w + 2.5 * mu * 9.8 / r * dt
        if vn <= wn * r:
            f = (v - w * r) / ((v - w * r) - (vn - wn * r))
            return t + f * dt, v + f * (vn - v)
        v, w, t = vn, wn, t + dt

print(slide(8, 0.2, 0.11, 1e-4))
```

```python tests
t, v = slide(8, 0.2, 0.11, 1e-4)
assert abs(t - 16 / (7 * 0.2 * 9.8)) < 1e-6, f"Rolling starts at 2v0/(7μg) = 1.1662 s; got {t:.6f}."
assert abs(v - 40 / 7) < 1e-6, f"The rolling speed is 5v0/7 = 5.7143 m/s; got {v:.6f}."
t2, v2 = slide(5, 0.05, 0.3, 1e-3)
assert abs(v2 - 25 / 7) < 1e-6 and abs(t2 - 10 / (7 * 0.05 * 9.8)) < 1e-6, "The final speed is 5v0/7 for any μ and radius."
```

::: right
Right. The speed at which rolling begins depends only on the launch speed: the friction and radius only set when.
:::
:::

::: check
kind: python

## Step 4. Write `best_ratio(Jm, JL, tau)` that tries gear ratios N from 1 to 40 in steps of 0.01 and returns `(N, alpha)` for the ratio giving the largest load acceleration $\alpha = \frac{N\tau}{N^2J_m + J_L}$.

```python starter
import numpy as np

def best_ratio(Jm, JL, tau):
    return 1.0, tau / (Jm + JL)

print(best_ratio(1e-4, 0.01, 0.5))
```

```python solution
import numpy as np

def best_ratio(Jm, JL, tau):
    N = np.arange(1, 40.0001, 0.01)
    alpha = N * tau / (N**2 * Jm + JL)
    i = int(np.argmax(alpha))
    return float(N[i]), float(alpha[i])

print(best_ratio(1e-4, 0.01, 0.5))
```

```python tests
import math
N, a = best_ratio(1e-4, 0.01, 0.5)
assert abs(N - 10) < 0.011 and abs(a - 250) < 0.01, f"Expect N = 10 and 250 rad/s²; got {N} and {a}."
N2, a2 = best_ratio(2e-4, 0.05, 1.0)
assert abs(N2 - math.sqrt(250)) < 0.011, f"The best ratio is √(JL/Jm) = 15.81; got {N2}."
assert abs(a2 - 1.0 / (2 * math.sqrt(2e-4 * 0.05))) < 0.01, "The peak acceleration is τ/(2√(Jm JL))."
```

::: right
Right. The search lands on lesson 32's $\sqrt{J_L/J_m}$, where the reflected load matches the rotor.
:::
:::

::: check
kind: python

## Step 5. Write `reactions(L, loads)` for a beam of length L on supports at each end, carrying `loads`, a list of `(position, force)` pairs. Set up the force and moment balance as a 2 × 2 system, solve it with NumPy and return `(R_left, R_right)`.

```python starter
import numpy as np

def reactions(L, loads):
    total = sum(F for _, F in loads)
    return total / 2, total / 2

print(reactions(4, [(1.5, 300)]))
```

```python solution
import numpy as np

def reactions(L, loads):
    A = np.array([[1.0, 1.0], [0.0, L]])
    b = np.array([sum(F for _, F in loads), sum(x * F for x, F in loads)])
    R = np.linalg.solve(A, b)
    return float(R[0]), float(R[1])

print(reactions(4, [(1.5, 300)]))
```

```python tests
R1, R2 = reactions(4, [(1.5, 300)])
assert abs(R1 - 187.5) < 1e-9 and abs(R2 - 112.5) < 1e-9, f"300 N at 1.5 m on a 4 m beam: 187.5 N and 112.5 N; got {R1} and {R2}."
R1, R2 = reactions(6, [(1, 200), (4, 500), (6, 100)])
assert abs(R1 - 1000 / 3) < 1e-9 and abs(R2 - 1400 / 3) < 1e-9, f"Three loads on a 6 m beam: 333.3 N and 466.7 N; got {R1} and {R2}."
R1, R2 = reactions(2, [(1, 100)])
assert abs(R1 - 50) < 1e-9 and abs(R2 - 50) < 1e-9, "A centered load splits evenly."
```

::: right
Right. A load placed directly over a support goes entirely into that support, as the moment balance says.
:::
:::

::: check
kind: parts
given: L = 2 | 5; h = 0.5 | 1; c = 0.5 | 0.4 | 1

## A body with $I = c\,mr^2$, c = {c}, rolls from rest down a slope {L} m long that drops {h} m.

::: part
answer: sqrt(2*L*(1 + c)/(9.8*h/L))
unit: s
tolerance: 0.5%

### How long does it take?

::: misses
- [sqrt(2*L/(9.8*h/L))] That's a frictionless block; rolling adds the factor $1 + c$.
- [any] $a = \frac{g\sin\theta}{1 + c}$ with $\sin\theta = h/L$.
:::
:::

::: part
answer: sqrt(2*9.8*h/(1 + c))
unit: m/s
tolerance: 0.5%

### How fast is it moving at the bottom?

::: misses
- [sqrt(2*9.8*h)] Part of the energy goes into spin.
- [any] $mgh = \frac12mv^2(1 + c)$.
:::
:::
:::

::: check
given: m = 0.2 | 0.5; r = 3 | 5; I = 0.001 | 0.002; w = 200 | 400
answer: m*9.8*r/100/(I*w)
unit: rad/s
tolerance: 0.5%

## A {m} kg gyroscope with I = {I} kg·m² spins at {w} rad/s, supported {r} cm from its center. How fast does it precess?

::: right
Right. $\Omega = \frac{mgr}{I\omega}$: the torque turns the angular momentum sideways.
:::

::: misses
- [m*9.8*r/100/I] Divide by the angular momentum, $I\omega$.
- [any] $\Omega = \frac{\tau}{L}$.
:::
:::

::: check
given: v = 3 | 6 | 9; mu = 0.1 | 0.3
answer: 12*v^2/(49*mu*9.8)
unit: m
tolerance: 0.5%

## A ball launched sliding at {v} m/s on a floor with μ = {mu}. How far does it slide before it rolls?

::: right
Right. $\frac{12v_0^2}{49\mu g}$.
:::

::: misses
- [v^2/(2*mu*9.8)] That's how far a block would slide to a stop.
- [any] Integrate the speed for $t = \frac{2v_0}{7\mu g}$.
:::
:::

::: explain
## Why does a sliding ball always end up rolling at five sevenths of its launch speed, whatever the friction?

::: model
Friction acts at the contact point, so it exerts no torque about the line along the floor through that point. The ball's angular momentum about that line is therefore conserved while it slides. At launch that angular momentum is just $mv_0r$, from the center's motion. Once it rolls, it is $mvr$ from the center's motion plus $\frac25mr^2\omega = \frac25mvr$ from the spin, so $v = \frac57v_0$. The friction coefficient only sets how long the sliding takes: strong friction finishes it quickly, weak friction slowly, but the end state is the same.
:::
:::

::: practice

::: check
given: M = 1 | 5; a = 0.05 | 0.1; b = 0.15 | 0.3
answer: 0.5*M*(a^2 + b^2)
unit: kg·m^2
tolerance: 0.5%

## Inertia of a {M} kg annulus, radii {a} m and {b} m?

::: misses
- [any] $\frac12M(a^2 + b^2)$.
:::
:::

::: check
given: v = 4 | 10; mu = 0.15 | 0.4
answer: 2*v/(7*mu*9.8)
unit: s
tolerance: 0.5%

## Time to start rolling, launched at {v} m/s with μ = {mu}?

::: misses
- [any] $\frac{2v_0}{7\mu g}$.
:::
:::
:::
