I have come across a problem which is a homework indeed, but i tried to pack this question up so that it is more theoretical.
What I want to know is: If I am allowed to write energy conservation for an atom which emits a photon (when its electron changes energy for a value $\Delta E$) like this (the atom is kicked back when it emits a photon):
\begin{align} E_1 &= E_2\\ E_{ \text{H atom 1}} &= E_{ \text{H atom 2} } + E_\gamma\\ \sqrt{ \!\!\!\!\!\!\!\!\!\!\smash{\underbrace{(E_0 + \Delta E)^2}_{\substack{\text{I am not sure about}\\\text{this part where normally}\\\text{we write only ${E_0}^2$. Should I}\\\text{put $\Delta E$ somewhere else?}}}}\!\!\!\!\!\!\!\!\!\!\!\! + {p_1}^2c^2} &= \sqrt{ {E_0}^2 + {p_2}^2c^2 } + E_\gamma \longleftarrow \substack{\text{momentum $p_1=0$ and because of}\\\text{the momentum conservation}\\\text{$p_2 = p_\gamma = E_\gamma/c$}}\\ \phantom{1}\\ \phantom{1}\\ \phantom{1}\\ \sqrt{{(E_0 + \Delta E)}^2} &= \sqrt{{E_0}^2 + {E_\gamma}^2} + E_\gamma\\\ E_0 + \Delta E &= \sqrt{{E_0}^2 + {E_\gamma}^2} + E_\gamma\\\ \end{align}
EDIT: Is this a better way? I know we get the same result this time, but what if momentum $p_1$ wasn't $0$? Then it would come out differently right?
\begin{align} E_1 &= E_2\\ E_{ \text{H atom 1}} + \Delta E &= E_{ \text{H atom 2} } + E_\gamma\\ \sqrt{{E_0}^2 + {p_1}^2c^2} + \Delta E &= \sqrt{ {E_0}^2 + {p_2}^2c^2 } + E_\gamma \longleftarrow \substack{\text{momentum $p_1=0$ and because of}\\\text{the momentum conservation}\\\text{$p_2 = p_\gamma = E_\gamma/c$}}\\ E_0 + \Delta E &= \sqrt{{E_0}^2 + {E_\gamma}^2} + E_\gamma \end{align}