4. A rod of length L and mass M is placed along the x-axis with one end at the origin, as shown in the figure below. The rod has linear mass density