The question is :
If $a,b$ are integers such that all the roots of the equation $ ( x^2+ax+20)(x^2+17x+b)=0 $ are negative integers. What are the smallest possible vaues of $a,b$?
My approach to this goes like this:
Either $( x^2+ax+20)=0$ $\rightarrow$ $(1)$
or $(x^2+17x+b)=0 $ $\rightarrow$ $(2)$
Let the roots of $(1)$ be $\alpha $ , $\beta $
so, $\alpha $ + $\beta $ = $- a $
and $\alpha \beta $ = $20$
Now, I just put in possible values and subsequently got $-4,-5$ as the numbers which lead to the smallest possible sum, $i.e $ $ 9$.
Let the roots of $(2)$ be $\gamma $ , $\delta $
so, $\gamma $ + $\delta $ = $- a $
and $\gamma \delta $ = $20$
Again, I just put in the possible values and got $-1,-16$ as the numbers which lead to the smallest possible product, $i.e $ $ 16$.
Of course the value of $a+b=25$ but I want to know the proper mathematical method to reach the answer. Please help me with the same. Thanks!