x² − 9 = (x − 3)(x + 3). There is no middle term to place. x² + 9 does not factor over the reals this way.
Check x = 5: 25 − 9 = 16, and (2)(8) = 16.
Polynomial factoring: MathGPT.