The potential energy of a body is given by, U = A − Bx2(Where x is the displacement). The magnitude of force acting on the particle is
U = A−Bx2⇒=−dUdx = 2Bx⇒F∝x