A wedge of mass M fitted with a spring of stiffness 'k' is kept on a smooth horizontal surface. A rod mass m is kept on the wedge as shown in the figure. System is in equilibrium. Assuming that all surfaces are smooth, the potential energy stored in the spring is:
Nsinθ=kx,
Ncosθ=mg,
We get the value of x,
x=mgtanθk
value of potential energy can be evaluated
E=12kx2=12k(mgtanθk)2=m2g2tan2θ2k