I'm currently going through An Introduction to Quantum Field Theory by Hartmut Wittig I've stumbled upon. Having trouble with equation (2.29), I'm asking the question:
Do creation and annihilation operators ($\hat a^\dagger(k)$ and $\hat a(k)$) depend on spacetime?
At first, it seems they shouldn't, because time dependence is being put in $e^{ik\cdot x}$ and $e^{-ik\cdot x}$, however, after using the commutation relations \begin{split} [\hat p^\mu,\hat a^\dagger(k)]=k^\mu \hat a^\dagger(k)\\ [\hat p^\mu,\hat a(k)]=-k^\mu \hat a(k) \end{split} and generalized Heisenberg equation \begin{equation} \frac{\partial}{\partial x^\mu}\hat A = i[\hat p^\mu,\hat A] \end{equation} it seems that they do depend on spacetime.
In equation (2.29), in the first line derivation was applied, while in second line the generalized Heisenberg equation was applied. It seems that in the first line the constancy of $\hat a^\dagger(k)$ and $\hat a(k)$ was used, while in the second line it seems that $x_\mu$ (without hat) and $\hat p_\nu$ commute (I also fail to understand why is this so, because $\hat p_\mu$ is essentially $\frac{\partial}{\partial x^\mu}$ up to some factor).
So, are $\hat a^\dagger(k)$ and $\hat a(k)$ constant? If they are, how to reconcile this with apparent contradiction with commutation relations with $\hat p_\mu$? If they aren't, what is the correct form of equation (2.29)?