\(\left(x^2-x-3\right)\left(x^2-x-4\right)-12\)
\(=x^4-x^3-4x^2-x^3+x^2+4x-3x^2+3x+12-12=x^4-2x^3-6x^2+7x\)
\(=x.\left(x^3-2x^2-6x+7\right)=x.\left(x^3-x^2-x^2+x-7x+7\right)\)
\(=x.\left[x^2.\left(x-1\right)-x.\left(x-1\right)-7.\left(x-1\right)\right]=x\left(x-1\right)\left(x^2-x-7\right)\)