I was watching Allan Adams' lecture on energy eigenfunctions, and there's one part (around 43 minutes into the lecture) that confuses me.
Suppose we have the initial wave function $\Psi (x,0)$ such that $\hat{E}\,\Psi (x,0)=E \,\Psi (x,0)$ for some constant $E$. Then, plugging this into the Schrödinger equation, we'd get:
\begin{align} i \hbar \frac{\partial}{\partial t} \Psi (x, 0) &= E \, \Psi (x,0) \\ \frac{\partial}{\partial t} \Psi (x, 0) &= \frac{E}{i \hbar} \, \Psi (x,0) \tag{1}\\ \therefore \Psi (x, t) &= \exp\left({-i \frac{E\,t}{\hbar}}\right) \Psi(x,0) \tag{2} \end{align}
I'm a bit confused about how to go from $(1)$ to $(2)$.
Now if we make the additional assumption that $\hat{E}\,\Psi (x,t)=E \,\Psi (x,t)$ for all $t$, then the Schrödinger equation becomes: \begin{align} \frac{\partial}{\partial t} \Psi (x, t) &= \frac{E}{i \hbar} \, \Psi (x,t) \end{align}
and I can solve this differential equation easily and get $(2)$. But from watching that part of the lecture, it seems we only need to assume a weaker statement - that the initial wave function is an energy eigenfunction. But then, it's not clear to me how I can get the solution $(2)$ from $(1)$. Am I missing something?
Update: Thanks for all the answers. After reading through the accompanying lecture note, we indeed need to assume that the energy operator is a constant over time.