But if we expand or compress a spring by a non- conservative force then the potential energy of the spring increases; infact here the conservative force that is the spring force pulls the spring to its original length and thereby decreasing the potential energy.