Calculating $\langle{n} \; {| \; \hat{X}^2 \; |} \; m\rangle$ in the N-representation, where $| \; m\rangle$ and $| \; n\rangle$ are harmonic oscillator states and $\hat{X} = \sqrt{\frac{\hbar}{2mw}}( \hat{a} + \hat{a}^\dagger )$, I find that :
$ \; \hat{X}^2 = \frac{\hbar}{2mw} [\hat{a}^2 + \hat{a}^{\dagger2} + 2\hat{a}^{\dagger}\hat{a} + 1] \quad $ (1)
Next, omitting the work, I find :
$\langle{n} \; {| \; \hat{X}^2 \; |} \; m\rangle = \frac{\hbar}{2mw} [ \sqrt{m(m-1)}\delta_{n,m-2} + \sqrt{(m+1)(m+2)}\delta_{n,m+2} + (2n+1)\delta_{n,m}] \quad $ (2)
The problem I'm facing is figuring out how to approach the N-representation of $\langle{m} \; {| \; \hat{X}^4 \; |} \; n\rangle$ and would appreciate some guidance.
If I attempt to first expand $\hat{X}^4$ I have problems trying to reduce it, which leads me to wonder if I could simply just multiply the RHS of (2) by itself?
UPDATE
Upon reviewing the suggestions below I realise that a combination of misunderstanding and intimidation led me astray ...
With interest in the coefficients, as well as the form, I find that :
\begin{align} \langle{n} \; {| \; \hat{X}^2 \; |} \; m\rangle & = \sqrt{n(n-1)(n-2)(n-3)}\delta_{m,n-4} \; + \\ & \quad [ 2\sqrt{n(n-1)} + 2n\sqrt{n(n-1)} + 2(n-2)\sqrt{n(n-1)} ]\delta_{m,n-2} \; + \\ & \quad [4n + 1 + \sqrt{(n+1)(n+2)(n+1)(n+2)} + \sqrt{n(n-1)(n-1)n} + 4n^2]\delta_{m,n} \; + \\ & \quad [ 2\sqrt{(n+1)(n+2)} + 2n\sqrt{(n+1)(n+2)} + 2(n+2)\sqrt{(n+1)(n+2)} ]\delta_{m,n+2} \; + \\ & \quad \sqrt{(n+1)(n+2)(n+3)(n+4)}\delta_{m,n+4} \\ \end{align}
Which is then further simplified.