When a Hamiltonian operator apply to a wavefunction, how could we write the hamiltonian as, $$H \psi = (E_n-\hbar \omega_0) \psi \ \ ? $$
Is this because $E_n= H+ \hbar \omega_0$?
where $\omega_0$ is the angular frequency.
When a Hamiltonian operator apply to a wavefunction, how could we write the hamiltonian as, $$H \psi = (E_n-\hbar \omega_0) \psi \ \ ? $$
Is this because $E_n= H+ \hbar \omega_0$?
where $\omega_0$ is the angular frequency.
It is not true that \begin{align} E_n = H+\hbar\omega_0. \end{align} Why? Well, $H$ is a linear operator while $E_n$ and $\hbar\omega_0$ are real numbers; an operator cannot equal a real number. You might try to fix this by multiplying each of the real numbers by the identity operator and then claim that \begin{align} E_n I = H+\hbar\omega_0 I \end{align} This is still not correct. You can immediately tell that it can't be correct because the left hand side depends on $n$, a non-negative integer, by the right hand side does not. So what's going on? As essentially mentioned in the comments, the following statement is true:
If $\psi$ is an eigenvector of the harmonic oscillator, then there exists a non-negative integer $n$ for which \begin{align} H\psi = \left(n+\frac{1}{2}\right)\hbar\omega\psi \end{align}
where here we are using notation in which the harmonic oscillator hamiltonian is given by \begin{align} H = \frac{1}{2m} P^2 + \frac{1}{2}m\omega^2X^2 \end{align} where $P$ and $X$ are the position and momentum operators respectively. In other words, if you act the hamiltonian on an eigenvector, then it acts simply by multiplying that eigenvector by a real number, the corresponding eigenvalue. But when the Hamiltonian acts on a vector that is not an eigenvector, this doesn't happen.