Rotational Inertia by Integration and the Parallel-Axis Theorem
AP Physics C: Mechanics · Unit 5 — Torque and Rotational Dynamics
The definition you are expected to use, not just quote
$$I=\sum m_i r_i^{2}\;\longrightarrow\; I=\int r^{2}\,dm$$$r$ is the distance from the axis of rotation, not from the origin and not from the centre of mass unless the axis happens to pass through it. Every integration follows the same four steps: choose a mass element whose points share one value of $r$; write $dm$ in terms of a density ($dm=\lambda\,dx$ for a rod, $dm=\sigma\,dA$ for a plate, $dm=\rho\,dV$ for a solid); express the density through the total mass; integrate over the whole body.
Standard results, each obtainable from that recipe:
$$I_{\text{rod, centre}}=\tfrac{1}{12}ML^{2},\quad I_{\text{rod, end}}=\tfrac13ML^{2},\quad I_{\text{hoop}}=MR^{2},\quad I_{\text{disk}}=\tfrac12MR^{2},\quad I_{\text{sphere}}=\tfrac25MR^{2}$$Parallel-axis theorem
$$I=I_{\text{cm}}+Md^{2}$$valid only when $I_{\text{cm}}$ is taken about an axis through the centre of mass that is parallel to the new one, with $d$ the distance between the two axes.
Worked example: rod with varying density
A rod of length $L$ lies on the $x$ axis from $x=0$ to $x=L$, with linear density $\lambda(x)=\lambda_0\dfrac{x}{L}$. Find the mass $M$ and the moment of inertia about an axis perpendicular to the rod at $x=0$, with the result in terms of $M$ and $L$.
Solution
Mass:
$$M=\int_0^L\lambda_0\frac{x}{L}\,dx=\frac{\lambda_0}{L}\cdot\frac{L^2}{2}=\frac{\lambda_0L}{2}\ \Longrightarrow\ \lambda_0=\frac{2M}{L}$$Moment of inertia:
$$I=\int_0^Lx^2\lambda(x)\,dx=\frac{\lambda_0}{L}\int_0^Lx^3dx=\frac{\lambda_0}{L}\cdot\frac{L^4}{4}=\frac{\lambda_0L^3}{4}$$Substitute $\lambda_0=\dfrac{2M}{L}$:
$$I=\frac{2M}{L}\cdot\frac{L^3}{4}=\frac{ML^2}{2}$$Compared with a uniform rod rotating about its end ($\frac13ML^2\approx0.333ML^2$), the value $0.5ML^2$ is larger — as expected, because the density increases and so the mass is concentrated toward the end far from the axis.