What is the equation for total energy (TE)?

I suspect in your case it is the total of KE and PE