\(4=a^2+\frac{1}{a^2}+a^2+\frac{b^2}{4}\ge2\sqrt{\frac{a^2}{a^2}}+2\sqrt{\frac{a^2b^2}{4}}\)
\(\Rightarrow4\ge2+ab\Rightarrow ab\le2\)
\(\Rightarrow P_{max}=2\) khi \(\left\{{}\begin{matrix}a=1\\b=2\end{matrix}\right.\) hoặc \(\left\{{}\begin{matrix}a=-1\\b=-2\end{matrix}\right.\)