\(a,P=\left(x-a\right)\left(x-b\right)\left(x-c\right)\)
\(=(x^2-ax-bx+ac)\left(x-c\right)\)
\(=x^3-cx^2-ax^2+cax-bx^2+bcx+abx-abc\)
\(=x^3-x^2\left(a+b+c\right)+x\left(ab+bc+ca\right)-abc\)
\(=x^3-12x^2+47x-60\)
\(b,\) Ta có \(\left(x-4\right)^3=x^3-12x^2+48x-64\)
\(\Rightarrow P=\left(x-4\right)^3-\left(x+4\right)\)
Đặt \(t=x-4\)
\(\Rightarrow P=t^3-t\)
\(\Rightarrow P=t\left(t-1\right)\left(t+1\right)\)
\(\Rightarrow P=\left(x-4\right)\left(x-3\right)\left(x-5\right)\)
\(\left|x\right|=3\Rightarrow x=\orbr{\begin{cases}3\\-3\end{cases}}\)
Với \(x=3\Rightarrow P=0\)
Với \(x=-3\Rightarrow P=-336\)