integral energy equation