\(x^2-6x+12\)
\(=x^2-3x-3x+9+3\)
\(=\left(x^2-3x\right)+\left(-3x+9\right)+3\)
\(=x\left(x-3\right)-3\left(x-3\right)+3\)
\(=\left(x-3\right)\left(x-3\right)+3\)
\(=\left(x-3\right)^2+3\)
Ta có: \(\left(x-3\right)^2\ge0\)
\(\Rightarrow\left(x-3\right)^2+3>0\)
Vậy \(P\left(x\right)=x^2-6x+12\) không có nghiệm