A thin uniform rod with negligible mass and length l is attached to the floor by a frictionless hinge at its one point P as shown in the figure. I is the current in the rod A horizontal spring of spring constant k connects a vertical wall and other end Q of the rod. The whole system is kept in a horizontal uniform magnetic field whose magnitude is B (gravity is absent in the space).