Find two numbers whose difference is 1 and whose product is 13 (note: a−b can be written as a+(−b)).
Solution
Call the two numbers a and b, with a−b=1 and ab=13. The suggested trick is to consider the pair {a,−b}: for it
sum=a+(−b)=a−b=1,product=a⋅(−b)=−ab=−13.
Hence a and −b are the roots (by Vieta’s formulas) of
t2−1⋅t+(−13)=0⟹t2−t−13=0.
Discriminant:
Δ=(−1)2−4⋅1⋅(−13)=1+52=53>0,
so
t=21±53.
Numerically, 53≈7.280, giving t1≈4.140 and t2≈−3.140.
The two roots are a and −b: taking a=t1≈4.140 gives −b=t2≈−3.140, that is b≈3.140.
Check: difference a−b≈4.140−3.140=1; product ab≈4.140⋅3.140≈13. ✓
n1=a≈4.140,n2=b≈3.140