\(P=\frac{4x+2}{2\left(x^2+2\right)}=\frac{-\left(x^2+2\right)+\left(x^2+4x+4\right)}{2\left(x^2+2\right)}=-\frac{1}{2}+\frac{\left(x+2\right)^2}{2\left(x^2+2\right)}\ge-\frac{1}{2}\)
\(P_{min}=-\frac{1}{2}\) khi \(x=-2\)
\(P=\frac{x^2+2-\left(x^2-2x+1\right)}{x^2+2}=1-\frac{\left(x-1\right)^2}{x^2+2}\le1\)
\(P_{max}=1\) khi \(x=1\)