\(a^3+4a^2-7a-10\)
\(=a^3+3a^2+a^2-10a+3a-10\)
\(=\left(a^3+a^2\right)+\left(3a^2+3a\right)-\left(10a+10\right)\)
\(=a^2\left(a+1\right)+3a\left(a+1\right)-10\left(a+1\right)\)
\(=\left(a+1\right)\left(a^2+3a-10\right)\)
\(=\left(a+1\right)\left[\left(a^2+5a-2a-10\right)\right]\)
\(=\left(a+1\right)\left[a\left(a+5\right)-2\left(a+5\right)\right]\)
\(=\left(a+1\right)\left(a+5\right)\left(a-2\right)\)