The number of integers $n$ such that the quadratic equation $nx^2+(n+1)x+(n+2)=0$ has rational roots is

The condition for the rational roots is that the discriminant should be greater than or equal to zero and discriminant should be a perfect square.
$-3n^2-6n+1\geq 0.......................(1)$
I dont know how to apply the perfect square condition here.With the equation $(1)$,i get only one integer $n$.But the correct answer given in my book is $2$.Two integer $n$ are possible.$n=-1,n=-2$.

Please help me.Thanks


Complete the square: $$-3n^2-6n+1 = -3n^2-6n-3+3+1 = -3(n+1)^2+4.$$ For this to be nonnegative, we must have $(n+1)^2 \le \frac{4}{3}$. So $n=0, -1, -2$ are the only solutions, and $n=0$ gives a linear, not a quadratic, equation (though this special case would probably stop me from using this problem).


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.