\(P\le a^2+b^2+c^2+3\sqrt{3\left(a^2+b^2+c^2\right)}=12\)
\(P_{max}=12\) khi \(a=b=c=1\)
Lại có: \(\left(a+b+c\right)^2=3+2\left(ab+bc+ca\right)\ge3\Rightarrow a+b+c\ge\sqrt{3}\)
\(a+b+c\le\sqrt{3\left(a^2+b^2+c^2\right)}=3\)
\(\Rightarrow\sqrt{3}\le a+b+c\le3\)
\(P=\dfrac{\left(a+b+c\right)^2-\left(a^2+b^2+c^2\right)}{2}+3\left(a+b+c\right)\)
\(P=\dfrac{1}{2}\left(a+b+c\right)^2+3\left(a+b+c\right)-\dfrac{3}{2}\)
Đặt \(a+b+c=x\Rightarrow\sqrt{3}\le x\le3\)
\(P=\dfrac{1}{2}x^2+3x-\dfrac{3}{2}=\dfrac{1}{2}\left(x-\sqrt{3}\right)\left(x+6+\sqrt{3}\right)+3\sqrt{3}\ge3\sqrt{3}\)
\(P_{min}=3\sqrt{3}\) khi \(x=\sqrt{3}\) hay \(\left(a;b;c\right)=\left(0;0;\sqrt{3}\right)\) và hoán vị