Derivation (solution to Schrodinger's equation for constant potentials)

Schrodinger's equation has solution in the form $\hat\psi(x,t) = A\exp ikx$: $$ \begin{align*} -k^2\hat\psi + \frac{2m}{\hbar}(E-V)\hat\psi = 0. \end{align*} $$ so $$ \begin{align*} k = \pm\frac{\sqrt{2m(E-V)}}{\hbar}. \end{align*} $$