We use Vieta’s formulas: if a monic equation x2−sx+p=0 has roots x1,x2, then s=x1+x2 (sum) and p=x1x2 (product). The signs of the roots are controlled exactly by s and p:
- product p<0 ⇒ roots of opposite sign (one positive, one negative);
- product p>0 and sum s>0 ⇒ both positive;
- product p>0 and sum s<0 ⇒ both negative.
The existence of two real roots requires in every case Δ=s2−4p≥0 (with Δ>0 for distinct roots).
(a) One positive and one negative. Choose the roots x1=2, x2=−3.
s=2+(−3)=−1,p=2⋅(−3)=−6⇒x2+x−6=0.
Δ=12−4⋅1⋅(−6)=25>0.
The roots exist; since p=−6<0 they have opposite signs, as required.
(b) Two positive. Choose the roots x1=2, x2=3.
s=5,p=6⇒x2−5x+6=0.
Δ=(−5)2−4⋅6=25−24=1>0.
The roots exist; p=6>0 and s=5>0, so both are positive.
(c) Two negative. Choose the roots x1=−2, x2=−3.
s=−5,p=6⇒x2+5x+6=0.
Δ=52−4⋅6=25−24=1>0.
The roots exist; p=6>0 and s=−5<0, so both are negative.
(a) x2+x−6=0(b) x2−5x+6=0(c) x2+5x+6=0