TeX source:
E = \int_0^T \frac{P_a - P_m}{P_m} , dt