Where x is the distance from A. If M is the mass of the rod then its moment of inertia about an axis passing through A and perpendicular to the rod is