Dear student,
According to the law of conservation of energy, the total energy of a system remains conserved That means change in kinetic energy= change in potential energy
And according to work energy theorem, we know, the net work done of the object by a force is equal to the change in kinetic energy.
So, combining these two laws, we can write;
Regards,