factorize x^2-3x-4
Let's factor in : x2 -3x -4
Given the quadratic form ax2 + bx + c, let's compute the discriminant: Δ = b2 -4ac
Δ = (-3)2 -4·1·-4
Δ = 9 -4·-4
Δ = 9 + 16
Δ = 25
Since Δ > 0, the equation has two solutions:
For the 1st solution, we obtain: -b -Δ2a
x1 = 3 -252
x1 = 3 -52
x1 = -22
x1 = -1
For the 2nd solution, we obtain: -b + Δ2a
x2 = 3 + 252
x2 = 3 + 52
x2 = 82
x2 = 4
Result:   (x + 1)·(x -4)