I was looking up expectation value of energy for a free particle on the following webpage:
http://hyperphysics.phy-astr.gsu.edu/hbase/quantum/expect.html
It says that $E=\frac{p^2}{2m}$ and therefore $\langle E\rangle=\frac{\langle p^2\rangle}{2m}$
This leads to $$\langle E\rangle=\int\limits_{-\infty}^{+\infty}\Psi^*\frac{-\hbar^2}{2m}\frac{\partial^2}{\partial x^2}\Psi\,dx$$
However, it also has on the bottom of the page: "In general, the expectation value for any observable quantity is found by putting the quantum mechanical operator for that observable in the integral of the wavefunction over space".
Now, I know that the operator for $E$ is $i\hbar\frac{\partial}{\partial t}$. So shouldn't $\langle E\rangle$ be: $$\langle E\rangle=\int\limits_{-\infty}^{+\infty}\Psi^*(i\hbar)\frac{\partial}{\partial t}\Psi\,dx$$