I'm trying to quantize the electromagnetic field by solving the vector potential wave equation, that is:
$$\nabla^{2} \mathbf{A} = \dfrac{1}{c^{2}} \dfrac{\partial ^{2} \mathbf{A}}{\partial t^{2}}, $$
combined with the boundary conditions:
$$ \mathbf{A}(\mathbf{x},t) = \mathbf{A}(\mathbf{x}+\mathbf{L},t), $$
where $\mathbf{L}$ is A vector that represent the width, lenght and height of a cubic box of size L.
Well, I suppose that the solution of the above equation could be separable as:
$$ \mathbf{A}(\mathbf{x},t)=u(\mathbf{x})T(t); $$
Then, solving the $\mathbf{x}$ and the $t$ dependence, the solution is:
$$ A(\mathbf{x},t) = \sum_{\mathbf{k},s}\ \ \mathbf{e}_{\mathbf{k},s} \left( A\exp[i \mathbf{k}\cdot \mathbf{x}] + B\exp[-i \mathbf{k}\cdot \mathbf{x}] \right) \left( C\exp[i \omega t] + D\exp[-i \omega t] \right), $$
were A,B,C and D are constants, $\mathbf{k} = 2n\pi \mathbf{x}/\mathbf{L}$, $\omega = |\mathbf{k}|c$, $\mathbf{e}_{\mathbf{f},s}$ its the polarization vector and $s$ represent the two independent polarization directions.
The solution, according to Sakurai (Advanced Quantum Mechanics, ) is:
$$ A(\mathbf{x},t) = \sum_{\mathbf{k},s}\ \ \mathbf{e}_{\mathbf{k},s} \left( A\exp[-i \omega t]\exp[i \mathbf{k}\cdot \mathbf{x}] + B\exp[i \omega t]\exp[-i \mathbf{k}\cdot \mathbf{x}] \right) $$
What I did wrong or what other condition I have to impose to get the correct solution? I have imposed the reality condition on $\mathbf{A}$, but I got nothing useful.
