Explanation:
our first "suspicion" for a factoring is an integer factor of the constant term : 14.
14 = 2 × 7 or -2 × -7
I started to try 2 or -2 and found that -2 is indeed a zero solution.
so, the first factors are
f(x) = (x + 2)(x² + ...)
let's divide (x³ - 4x² - 5x + 14) by (x + 2) to get the x² term.
x³ - 4x² - 5x + 14 ÷ x + 2 = x² - 6x + 7
- x³ + 2x²
--------------
0 -6x² - 5x
- -6x² - 12x
----------------
0 7x + 14
- 7x + 14
------------
0 0
f(x) = (x + 2)(x² - 6x + 7)
the zeros for x² - 6x + 7 we get from the general solution for a quadratic equation
ax² + bx + c = 0
x = (-b ± sqrt(b² - 4ac))/(2a)
in our case
x = (6 ± sqrt((-6)² - 4×1×7))/(2×1) =
= (6 ± sqrt(36 - 28))/2 = (6 ± sqrt(8))/2 =
= 3 ± sqrt(8/4) = 3 ± sqrt(2)
x1 = 3 + sqrt(2)
x2 = 3 - sqrt(2)
so, the zeros are
-2, 3 - sqrt(2), 3 + sqrt(2)