Energy and entropy