The roots of the equation $x^2 + (p + 2)x + 2p = 0$ are distinct integers when-
Reveal answer
Fill a bubble to check yourself
The roots of the equation $x^2 + (p + 2)x + 2p = 0$ are distinct integers when-
The polynomial factors as (x + 2)(x + p), so its roots are -2 and -p. These roots are integers when p is an integer, and they are distinct when p is not 2.
By factoring the quadratic expression by grouping, x^2 + (p + 2)x + 2p becomes x(x + 2) + p(x + 2), leading to (x + p)(x + 2) = 0. This shows the roots of the equation are -p and -2, which are integers if p is an integer. However, if p is exactly 2, the roots become -2 and -2, which are not distinct integers. Therefore, the roots are distinct integers for any integer p except 2.