I have two basic questions on the solution of the Klein Gordon equation.
The Lagrangian of the Klein Gordon field is $$\mathcal{L}=\frac12\partial_\mu\phi\partial^{\mu}\phi-\frac12m^2\phi^2 $$
Peskin & Schroeder in their Introduction to quantum field theory argue, in analogy with a simple harmonic oscillator $$ \phi(x)=\int\frac{d^3\mathbf{p}}{(2\pi)^3}\frac{1}{\sqrt{2\omega_\mathbf{p}}}(a_\mathbf{p}e^{i\mathbf{p}\cdot\mathbf{x}}+a_{\mathbf{p}}^\dagger e^{-i\mathbf{p}\cdot\mathbf{x}})\\ \pi(x)=-i\int\frac{d^3\mathbf{p}}{(2\pi)^3}\sqrt{\frac{\omega_\mathbf{p}}{2}}(a_\mathbf{p}e^{i\mathbf{p}\cdot\mathbf{x}}-a_{\mathbf{p}}^\dagger e^{-i\mathbf{p}\cdot\mathbf{x}})$$
where $\omega_{\mathbf{p}}=\sqrt{\vec{p}^2+m^2}$, i.e. $\mathbf{p}=(\omega_\mathbf{p}, \vec{p})$. $\pi(x)$ is supposed to be the conjugate momentum of the field, defined as $$\pi(x)=\frac{\partial\mathcal{L}}{\partial(\partial_0\phi)}=\partial_0\phi= i\int\frac{d^3\mathbf{p}}{(2\pi)^3}\sqrt{\frac{\omega_\mathbf{p}}{2}}(a_\mathbf{p}e^{i\mathbf{p}\cdot\mathbf{x}}-a_{\mathbf{p}}^\dagger e^{-i\mathbf{p}\cdot\mathbf{x}})$$
What of the minus sign introduced by the analogy with the harmonic oscillator?
Second question: right after, they say that they'll often use these solutions in the form
$$ \phi(x)=\int\frac{d^3\mathbf{p}}{(2\pi)^3}\frac{1}{\sqrt{2\omega_\mathbf{p}}}(a_\mathbf{p}+a_{\mathbf{-p}}^\dagger )e^{i\mathbf{p}\cdot\mathbf{x}} $$
I fail to see why is this equivalent to the form above, I understand that it is obtained by a change of variable $\mathbf{p}\rightarrow\mathbf{-p}$ in the second part of the integral, but I think this should introduce a minus sign in the measure, because if $p_i\rightarrow -p_i$ for $i=1,2,3$ then $dp_1dp_2dp_3\rightarrow-dp_1dp_2dp_3$ yielding the form
$$ \phi(x)=\int\frac{d^3\mathbf{p}}{(2\pi)^3}\frac{1}{\sqrt{2\omega_\mathbf{p}}}(a_\mathbf{p}-a_{\mathbf{-p}}^\dagger )e^{i\mathbf{p}\cdot\mathbf{x}}. $$