1)
a) \(=3x^2\left(x^2-1\right)-\left(x^3-1\right)+x^8-3x^4+3x^2-1\)
\(=3x^4-3x^2-x^3+1+x^8-3x^4+3x^2-1=x^8-x^3\)
2)
\(=\left(x^2+5x-6\right)\left(x^2+5x+6\right)-6\left(x^2+5x\right)+45\)
\(=\left(x^2+5x\right)^2-6\left(x^2+5x\right)-36+45\)
\(=\left(x^2+5x\right)^2-6\left(x^2+5x\right)+9=\left(x^2+5x-3\right)^2\)