To factor over the complex numbers, David will need the quadratic formula.
x² + 4x + 5 is of the form ax² + bx + c where
Let's plug those into the quadratic formula.

The roots of x² + 4x + 5 are x = -2+i and x = -2-i
Now recall that if x = k is a root of a polynomial, then (x-k) is a factor of that polynomial.
For example, if x = 5 is a root then (x-5) would be a factor.
- -2+i being one root leads to the factor x-(-2+i) which simplifies to x+2-i
- -2-i being the other root leads to the factor x-(-2-i) which simplifies to x+2+i
x² + 4x + 5 factors to (x+2-i)(x+2+i)
Overall x³+4x²+5x fully factors to x(x+2-i)(x+2+i) when factoring over the complex numbers.