The Energy of a Wave function is defined to be such that . We can use this to calculate the Energy of a generic Wave function as the Expectation , with having Norm 1. This holds for an Eigenstate of the Hamiltonian we have:
If is not an Eigenstate of , we then use not as the Energy, but as the expected Energy of the system upon Measurement.