Two Numbers That Multiply to and Add to: Complex Solutions
The two numbers with sum \(S\) and product \(P\) are \(\frac{S+\sqrt{S^2-4P}}{2}\) and \(\frac{S-\sqrt{S^2-4P}}{2}\). When \(S^2-4P\) is negative, the square root introduces \(i\), so the answer is a pair of complex conjugates rather than two real numbers. This method works whether the answers are integers, fractions, irrational numbers, or complex numbers.
What It Means for Two Numbers to Add and Multiply to Given Values
Suppose the two unknown numbers are \(a\) and \(b\). The problem gives you these two conditions:
\[ a+b=S \]
The product condition is \(ab=P\).
The order does not matter: if \(a\) and \(b\) work, then \(b\) and \(a\) work too.
The connection to quadratics comes from expanding the expression with roots \(a\) and \(b\):
Expanding the expression with roots \(a\) and \(b\) gives \((t-a)(t-b)=t^2-(a+b)t+ab\).
Substituting \(a+b=S\) and \(ab=P\) into that expansion gives the quadratic equation.
The quadratic equation is \(t^2-St+P=0\).
So finding two numbers that add to \(S\) and multiply to \(P\) is the same as solving the quadratic equation:
Its roots are the two numbers that satisfy the required sum and product.
A failed integer-factor search only rules out integer answers; it does not rule out real or complex answers.
For example, a problem may have no whole-number factor pair but still have irrational real answers. If it has no real answers, it can still have valid complex answers.
The Solution: Use the Quadratic Formula
Use this decision table after calculating the discriminant, \(D=S^2-4P\).
| Discriminant | Type of Pair | Square Root to Use |
|---|---|---|
| \(D>0\) | Two distinct real numbers | \(\sqrt{D}\) |
| \(D=0\) | One repeated real number | \(0\) |
| \(D<0\) | Two nonreal complex conjugates | \(i\sqrt{-D}\) |
Step 1: Identify the Sum and Product
Write the requirements in the form:
\[ a+b=S \]
Record the product requirement as \(ab=P\).
Be careful with signs. If the product is negative, the two real numbers, if real answers exist, must have opposite signs.
Step 2: Calculate the Discriminant
Compute:
\[ D=S^2-4P \]
The discriminant determines whether the answer is real or complex. Keep parentheses around a negative product when you substitute it, because subtracting a negative value changes to addition.
Step 3: Choose the Correct Form of the Square Root
If the discriminant is negative, rewrite it using \(i\), where:
\[ i^2=-1 \]
For a negative discriminant written as \(-q\), where \(q\) is positive:
\[ \sqrt{-q}=i\sqrt{q} \]
This is the step that turns an apparently impossible real-number problem into a valid complex-number solution.
Step 4: Substitute Into the Formula
Use:
\[ a=\frac{S+\sqrt{S^2-4P}}{2} \]
The second number is \(b=\frac{S-\sqrt{S^2-4P}}{2}\).
The plus and minus forms are the two required numbers. They are not competing answers; together, they make the pair.
When the discriminant is negative, the result can also be written as:
\[ \frac{S}{2}+\frac{\sqrt{-D}}{2}i \]
and
the conjugate with the negative imaginary part, \(\frac{S}{2}-\frac{\sqrt{-D}}{2}i\).
Step 5: Verify Both Conditions
Finish by checking both original requirements:
- Add the two results and confirm that the sum is \(S\).
- Multiply the two results and confirm that the product is \(P\).
For complex conjugates, use this identity:
\[ (u+vi)(u-vi)=u^2+v^2 \]
The imaginary terms cancel during multiplication because \(i^2=-1\).
When Complex Solutions Are the Answer
With real values for the required sum and product, nonreal solutions always come as a conjugate pair.
A complex answer occurs when:
the discriminant is negative, meaning \(S^2-4P<0\).
Equivalently:
the product satisfies \(P>\frac{S^2}{4}\).
In that situation, no two real numbers can have both the required sum and product. The complex pair is:
the number \(\frac{S}{2}+\frac{\sqrt{4P-S^2}}{2}i\)
and
the conjugate with the negative imaginary part, \(\frac{S}{2}-\frac{\sqrt{4P-S^2}}{2}i\).
The real parts are equal, and the imaginary parts have opposite signs. That is why their sum is real:
Adding a conjugate pair gives \((u+vi)+(u-vi)=2u\).
Their product is also real:
\[ (u+vi)(u-vi)=u^2+v^2 \]
Complex solutions are therefore not a workaround or an error. They are the exact answers to the original add-and-multiply conditions.
Factor Pairs, Irrational Answers, and Complex Answers
Looking for factor pairs is useful when a problem appears likely to have integer answers. But it is only one possible method.
If \(S\) and \(P\) are integers:
- A positive discriminant that is a perfect square can produce rational or integer answers.
- A positive discriminant that is not a perfect square produces irrational real answers.
- A zero discriminant produces the same real number twice.
- A negative discriminant produces complex conjugates.
The sign of the product can offer a quick clue when you are checking real factor pairs. A negative product requires opposite signs, while a positive product requires matching signs. But those sign checks do not tell you whether a real pair exists; the discriminant does.
If \(P=0\), the two numbers are \(0\) and \(S\), because one factor must be zero and the other must supply the entire sum.
How to Confirm Complex Sum-and-Product Answers
Use exact forms such as radicals and \(i\) whenever possible rather than rounding early. Decimal approximations can hide whether two values add or multiply exactly as required.
Check these points:
- Add the real parts together and add the imaginary parts together.
- In multiplication, replace every \(i^2\) with \(-1\).
- For a conjugate pair \(u+vi\) and \(u-vi\), confirm that their sum is \(2u\).
- Confirm that the product is \(u^2+v^2\), which must match the required product.
If your final pair has imaginary parts that do not cancel when added, it cannot satisfy a real-number sum requirement by itself.
Frequently Asked Questions
Does Anything Multiply to -93 and Add to 2?
Yes. The two real numbers are \(1+\sqrt{94}\) and \(1-\sqrt{94}\). Adding them gives \(2\), and multiplying them gives \(-93\).
What Two Numbers Multiply to 783 and Add to 2?
For a sum of \(2\) and a product of \(783\), the numbers are \(1+i\sqrt{782}\) and \(1-i\sqrt{782}\). The discriminant is \(2^2-4(783)=-3128=-4(782)\), and the conjugates multiply to \(1+782=783\).
How Do You Add Two Complex Numbers?
Add real parts to real parts and imaginary parts to imaginary parts: \((a+bi)+(c+di)=(a+c)+(b+d)i\). For example, the imaginary part does not disappear unless the imaginary coefficients add to zero.
What Is the Sum of \(2+7i\) and Its Complex Conjugate?
The sum of \(2+7i\) and its conjugate \(2-7i\) is \(4\). The \(7i\) and \(-7i\) terms cancel, leaving twice the real part.
If you meant \(2\cdot 7i=14i\), its conjugate is \(-14i\), and their sum is \(0\).
Is \(2+3i\) a Complex Number?
Yes, \(2+3i\) is a complex number with real part \(2\) and imaginary part \(3\). Every real number is also a complex number with an imaginary part of zero, but \(2+3i\) is nonreal because its imaginary part is not zero.
What Are Two Complex Numbers With a Product of 20?
One nonreal pair is \(2+4i\) and \(2-4i\). Their product is \(2^2+4^2=20\), and their sum is \(4\).
There are infinitely many pairs with product \(20\) if no required sum is specified.
How Do You Multiply Two Complex Numbers?
Multiply as you would two binomials, then use \(i^2=-1\):
\[ (a+bi)(c+di)=(ac-bd)+(ad+bc)i \]
For a sum-and-product problem, multiply your candidate pair with this rule, then add the pair separately to confirm both required conditions.
