U is defined only in such a way that W=-delU . Actually U is a measure of how stable a system is ,less the U more is the stability.