Internal energy equation