The moment of inertia of a long straight rod rotating about one end, as shown below, is given by
I = 0.5*M*L^2