Theory of solutions in energy representation (ER method) developed by Matubayasi and Nakahara provides with an approximate way of calculating solvation free energies (or, identically, the excess chemical potentials) from atomistic simulations. In this document we provide some derivation details of this, to our opinion, theoretically involved method, which will help a non-specialist to follow. There are three points which differ this document from a regular textbook on statistical mechanics or research articles:1. Derivation is detailed and all approximations are explicitly stated; 2. Statistical mechanics derivations are performed in NPT-ensemble;