If I have a Lorentz invariant equation of motion, like Klein-Gordon equation, is the solution automatically guaranteed to be Lorentz invariant?
I ask this question because of the discussion from Mark Srednicki's Quantum Field Theory section 3 from equations (3.11) to (3.14). If I have a K-G equation, $$ \tag 1 \partial^\mu\partial_\mu\phi -m^2\phi=0,$$ we have a solution of the form $$ \tag 2\exp (i \mathbf{k} \cdot \mathbf{x} \pm i\omega t),$$ which I do not think is Lorentz invariant for solution with $i \mathbf{k} \cdot \mathbf{x} + i\omega t$ as an argument, unless we allow $k^\mu = (-\omega, \mathbf{k})$.
However, he starts constructing a Lorentz invariant solution, and comes up with $$ \tag 3 \phi(\mathbf{x},t) = \int d\tilde{k}[ a(\mathbf{k})e^{ikx} + a^*(\mathbf{k})e^{-ikx}],$$ where $kx = \mathbf{k}\cdot\mathbf{x} - \omega t$. $d\tilde{k}$ is a Lorentz invariant measure and argument of each exponents are Lorentz invariant as well.
However, he says in the beginning that $a(\mathbf{k})$ is an arbitrary function of the wave vector $\mathbf{k}$, which does not sound Lorentz invariant to me. So I am not sure how $\phi(\mathbf{x},t)$ is Lorentz invariant.