Lời giải:
\((x^2-5x+8)^2-6x+8\)
\(=(x^2-5x+8)^2-4-(6x-12)\)
\(=(x^2-5x+8)^2-2^2-6(x-2)\)
\(=(x^2-5x+8-2)(x^2-5x+8+2)-6(x-2)\)
\(=(x^2-5x+6)(x^2-5x+10)-6(x-2)\)
\(=(x-2)(x-3)(x^2-5x+10)-6(x-2)\)
\(=(x-2)[(x-3)(x^2-5x+10)-6]\)
\(=(x-2)(x^3-8x^2+25x-36)\)
\(=(x-2)[x^2(x-4)-4x(x-4)+9(x-4)]\)
\(=(x-2)(x-4)(x^2-4x+9)\)