I am doing problem 2.3 on page 27 of Quantum Field Theory for the Gifted Amateur.
Use eqns 2.46 and 2.62 to show that \begin{equation} \hat{x}_j = \frac{1}{\sqrt{N}} \left(\frac{\hbar}{m}\right) \sum_k \frac{1}{\sqrt{2\omega_k}} [\hat{a}_k e^{\text{i}kja} +\hat{a}^\dagger_k e^{-\text{i}kja}] \end{equation}
Here's the two equations: \begin{align} \hat{x}_j &= \frac{1}{\sqrt{N}} \sum_k \tilde{x}_k e^{\text{i}kja}\\ \hat{x}_k &= \sqrt{\frac{\hbar}{2m\omega_k}}\left(\hat{a}_k + \hat{a}^\dagger_{-k} \right) \end{align} This seem pretty straightforward. I just substituted (2) into (1), distributed, then adjusted the value of the $e$ exponent by making the indices on the creation operators positive and the exponent negative:
\begin{align} \hat{x}_j &= \frac{1}{\sqrt{N}} \sqrt{\frac{\hbar}{m}}\sum_k\frac{1}{\sqrt{2\omega_k}}\left(\hat{a}_k + \hat{a}^\dagger_{-k} \right) e^{\text{i}kja}\\ \hat{x}_j &= \frac{1}{\sqrt{N}} \sqrt{\frac{\hbar}{m}} \sum_k \frac{1}{\sqrt{2\omega_k}} [\hat{a}_k e^{\text{i}kja} +\hat{a}^\dagger_{-k} e^{\text{i}kja}]\\ \hat{x}_j &= \frac{1}{\sqrt{N}} \sqrt{\frac{\hbar}{m}} \sum_k \frac{1}{\sqrt{2\omega_k}} [\hat{a}_k e^{\text{i}kja} +\hat{a}^\dagger_k e^{-\text{i}kja}]\\ \end{align} But as you can see, this doesn't match what they say I should end up with. I am missing a factor of $\sqrt{\frac{\hbar}{m}}$.
My Question:
Why am I missing this factor of $\sqrt{\frac{\hbar}{m}}$?
Intuitively, the fact that everything else matches up seems like a good sign. But it should work out then and it doesn't. So either I'm missing something or the problem as stated is written wrong.