Parallel axis theorem

Let $A_{CM}$ be an axis through the centre of mass of a rigid body, and $I_{CM}$ is the moment of inertia about $A_{CM}$. If another axis $A$ is parallel to $A_{CM}$ and is distance $a$ from it, then the moment of inertia $I$ about axis $A$ is $$ I = I_{CM} + Ma^2 $$ where $M$ is the total mass of the body. Derivation