factorize x^2+x-2
Let's factor in : x2 + x -2
Given the quadratic form ax2 + bx + c, you can calculate the discriminant: Δ = b2 -4ac
Δ = 1 -4·1·-2
Δ = 1 -4·-2
Δ = 1 + 8
Δ = 9
As Δ > 0, the equation has two solutions:
For the first solution, we obtain: -b -Δ2a
x1 = -1 -92
x1 = -1 + 32
x1 = -42
x1 = -2
Solution second: -b + Δ2a
x2 = -1 + 92
x2 = -1 + 32
x2 = 22
x2 = 1
Answer:   (x + 2)·(x -1)