\(=x^2+3x-2x-6\\ =x\left(x+3\right)-2\left(x+3\right)\\ =\left(x-2\right)\left(x+3\right)\)
\(x^2+x-6=x^2-2x+3x-6=\left(x^2-2x\right)+\left(3x-6\right)\)
\(=x.\left(x-2\right)+3.\left(x-2\right)\)
\(=\left(x-2\right).\left(x+3\right)\)
`x^2 +x -6`
`=x^2 + 3x -2x -6`
`=x(x+3) -2(x+3)`
`=(x-2)(x+3)`