Ta có: \(A=a\left(a^2-bc\right)+b\left(b^2-ac\right)+c\left(c^2-ab\right)=0\)
\(\Rightarrow A=a^3+b^3+c^3-3abc=0\) \(\Rightarrow A=\left(a+b\right)^3+c^3-3ab\left(a+b\right)-3abc=0\)
\(\Rightarrow A=\left(a+b+c\right)\left[\left(a+b\right)^2-c\left(a+b\right)+c^2\right]-3ab\left(a+b+c\right)=0\)
\(\Rightarrow A=\left(a+b+c\right)\left(a^2+b^2+c^2-ab-bc-ac\right)=0\)
Vì \(a+b+c\ne0\Rightarrow a^2+b^2+c^2-ab-ac-bc=0\)
Xét \(M=a^2+b^2+c^2-ab-ac-bc=0\)
\(\Rightarrow2M=2a^2+2b^2+2c^2-2ab-2ac-2bc=0\)
\(\Rightarrow2M=\left(a-b\right)^2+\left(b-c\right)^2+\left(c-a\right)^2=0\)
Vì \(\left(a-b\right)^2\ge0;\left(b-c\right)^2\ge0;\left(c-a\right)^2\ge0\forall a,b,c\)
\(\Rightarrow a-b=0;b-c=0;c-a=0\) \(\Rightarrow a=b=c\)
\(\Rightarrow P=\frac{a^2}{b^2}+\frac{b^2}{c^2}+\frac{c^2}{a^2}=1+1+1=3\)