The parallel axis theorem relates a body’s moment of inertia about any axis to its moment about a parallel axis through the centre of mass.

Consider the diagram above, where the green area represents a system of particles, each with mass \(m_i\), rotating about an axis perpendicular to point \(h\). Point \(o\) serves as both the origin of the coordinate system and the centre of mass of the system. As a result, point \(h\) has the coordinates \((a,b)\), while particle \(i\) at point \(i\) has the coordinates \((x_i,y_i)\).
By definition, the centre of mass with respect to the \(x\)-coordinate satisfies \(\sum_{i=1}^Nm_i(x_i-x_o)=0\). Similarly, for the \(y\)-coordinate, we have \(\sum_{i=1}^Nm_i(y_i-y_o)=0\). Expanding these two equations and rearranging them yields
$$x_o=\frac{\sum_{i=1}^Nm_ix_i}{M}\;\;\;\;and\;\;\;\;y_o=\frac{\sum_{i=1}^Nm_iy_i}{M}\;\;\;\;\;\;\;\;5$$
where \(M=\sum_{i=1}^Nm_i\).
Since \(x_o=y_o=0\), we have
$$\sum_{i=1}^Nm_ix_i=0\;\;\;\;and\;\;\;\;\sum_{i=1}^Nm_iy_i=0\;\;\;\;\;\;\;\;6$$

Question
Show that the moment of inertia of a system of \(N\) particles, each with mass \(m_i\), and located at perpendicular distances \(r_i\) from the axis of rotation, is given by \(I=\sum_{i=1}^Nm_ir_i^2\).
Answer
From eq4, the total rotational kinetic energy of the particles is
$$KE_{rot}=\sum_{i=1}^NKE_{rot,i}=\frac{1}{2}\omega^2\sum_{i=1}^Nm_ir_i^2=\frac{1}{2}I\omega^2$$
where \(I=\sum_{i=1}^Nm_ir_i^2\).
The moment of inertia about the axis perpendicular to point \(h\) is
$$I_h=\sum_{i=1}^Nm_ir_{hi}^2\;\;\;\;\;\;\;\;7$$
where \(r_{hi}\) is measured from \(h\) to \(i\).
Substituting \(r_{hi}^2=(x_i-a)^2+(y_i-b)^2\) in eq7 and expanding gives
$$I_h=\sum_{i=1}^Nm_i(x_i^2-2ax_i+a^2+y_i^2-2by_i+b^2)\;\;\;\;\;\;\;\;8$$
Substituting eq6 in eq8 yields
$$I_h=\sum_{i=1}^Nm_i(x_i^2+y_i^2)+\sum_{i=1}^Nm_i(a^2+b^2)\;\;\;\;\;\;\;\;9$$
Since \(x_i^2+y_i^2=r_i^2\), where \(r_i^2\) is measured from \(o\) to \(i\), and \(a^2+b^2=d^2\), eq9 becomes
$$I_h=I_{com}+Md^2\;\;\;\;\;\;\;\;10$$
Eq10 is the mathematical expression of the parallel axis theorem.