The potential energy of a system increases if work is done
Potential energy U for a system is defined as:
Wint=−ΔU=−(Uf−Ui) ...(1)
∫fi→F⋅→dr=−(Uf−Ui) ...(2)
⇒Where →F is an internal conservative force, and Wint is work done by the internal conservative force.
⇒ If U increases then Uf>Ui , or the term −(Uf−Ui) will be −ve.
⇒ Wint will become −ve
Hence we can say that if the work is done by the system then the internal energy of the body will increases.