Question: how moment of inertia works?
Answer: When a body is free to rotate around an axis, torque must be applied to change its angular momentum. ... For an extended rigid body, the moment of inertia is just the sum of all the small pieces of mass multiplied by the square of their distances from the axis in rotation.