How to Find Two Numbers Given Their Sum and Product

Finding two numbers when you know their sum and product is a classic problem in algebra. Let’s break it down step by step so it’s easy to understand.

Step-by-Step Solution

  1. Define the Variables

    Let’s denote the two numbers as $x$ and $y$. We’ll use $S$ to represent their sum and $P$ to represent their product. So, we have:

    1. $x + y = S$
    2. $xy = P$

  1. Set Up a Quadratic Equation

    To find $x$ and $y$, we can use these two equations to form a quadratic equation. Recall that the sum and product of the roots of a quadratic equation $ax^2 + bx + c = 0$ are given by $-b/a$ and $c/a$, respectively. In our case, the quadratic equation will be:

    $x^2 – Sx + P = 0$

  1. Solve the Quadratic Equation

    To solve the quadratic equation, we use the quadratic formula:

    $x = frac{-b pm sqrt{b^2 – 4ac}}{2a}$

    For our equation $x^2 – Sx + P = 0$, $a = 1$, $b = -S$, and $c = P$. Plugging these values into the formula, we get:

    $x = frac{S pm sqrt{S^2 – 4P}}{2}$

  1. Find Both Numbers

    The solutions to this equation will give us the two numbers $x$ and $y$. So, we have:

    $x = frac{S + sqrt{S^2 – 4P}}{2}$
    $y = frac{S – sqrt{S^2 – 4P}}{2}$

Example Problem

Let’s go through an example to make this clearer. Suppose we know the sum of two numbers is 10, and their product is 21. We need to find these two numbers.

  1. Sum ($S$) = 10
  2. Product ($P$) = 21

Using the quadratic equation $x^2 – Sx + P = 0$, we get:

$x^2 – 10x + 21 = 0$

Now, we solve this using the quadratic formula:

$x = frac{10 pm sqrt{10^2 – 4 cdot 1 cdot 21}}{2 cdot 1}$
$x = frac{10 pm sqrt{100 – 84}}{2}$
$x = frac{10 pm sqrt{16}}{2}$
$x = frac{10 pm 4}{2}$

So, the solutions are:

$x = frac{10 + 4}{2} = 7$
$y = frac{10 – 4}{2} = 3$

Therefore, the two numbers are 7 and 3.

Special Cases

Case 1: No Real Solution

If $S^2 – 4P < 0$, the numbers cannot be real because the square root of a negative number is not a real number. For example, if $S = 4$ and $P = 5$, the quadratic equation becomes:

$x^2 – 4x + 5 = 0$

Using the quadratic formula:

$x = frac{4 pm sqrt{16 – 20}}{2}$
$x = frac{4 pm sqrt{-4}}{2}$

Since $sqrt{-4}$ is not a real number, there are no real solutions in this case.

Case 2: Perfect Square Discriminant

If $S^2 – 4P$ is a perfect square, the solutions will be rational numbers. For example, if $S = 8$ and $P = 12$, the quadratic equation becomes:

$x^2 – 8x + 12 = 0$

Using the quadratic formula:

$x = frac{8 pm sqrt{64 – 48}}{2}$
$x = frac{8 pm sqrt{16}}{2}$
$x = frac{8 pm 4}{2}$

So, the solutions are:

$x = frac{8 + 4}{2} = 6$
$y = frac{8 – 4}{2} = 2$

Therefore, the two numbers are 6 and 2.

Conclusion

Finding two numbers given their sum and product is a straightforward process once you understand how to set up and solve the corresponding quadratic equation. Remember, the key steps are to define the variables, set up the quadratic equation, and solve it using the quadratic formula. With a bit of practice, you’ll be able to handle this type of problem with ease.

Practice Problems

Try solving these problems on your own:

  1. The sum of two numbers is 15, and their product is 56. What are the numbers?
  2. The sum of two numbers is 20, and their product is 91. What are the numbers?
  3. The sum of two numbers is 12, and their product is 35. What are the numbers?

Good luck, and happy solving!

Citations

  1. 1. Khan Academy – Quadratic Equations
  2. 2. Math is Fun – Quadratic Equation
  3. 3. Purplemath – Solving Quadratic Equations

Related

(2) O3 + H → O2 + OH k2 = 1.78×10^-11 cm^3 s^-1 (3) O + OH → O2 + H k3 = 4.40×10^-11 cm^3 s^-1 (5) O + HO2 → O2 + OH k5 = 3.50×10^-11 cm^3 s^-1 (6) H + HO2 → O2 + H2 k6 = 5.40×10^-12 cm^3 s^-1 (9) OH + HO2 → O2 + H2O2 k9 = 4.00×10^-11 cm^3 s^-1 (10) HO2 + HO2 → O2 + H2O2 k10 = 2.50×10^-12 cm s^-1 (11) O + O2 + M → O3 + M k11 = 1.05×10^-34 cm^6 s^-1 (14) H + O2 + M → HO2 + M k14 = 8.08×10^-32 cm^6 s^-1 (15) H + H + M → H2O + M k15 = 3.31×10^-27 cm^6 s^-1 (16) O2 + hv → 2 O k16 = (1.26×10^-8 s^-1) φ (17) H2O + hv → H + OH k17 = (3.4×10^-6 s^-1) φ (18) O3 + hv → O2 + O k18 = (7.10×10^-5 s^-1) φ

Table 1 Reactions, rate constants and activation energies used in the model* No. Reaction kopt (M⁻¹ s⁻¹) 1 OH + H₂ → H + H₂O 3.74 x 10⁷ 2 OH + HO₂ → HO₂ + OH⁻ 5 x 10⁹ 3 OH + H₂O₂ → HO₂ + H₂O 3.8 x 10⁷ 4 OH + O₂ → O₂ + OH 9.96 x 10⁹ 5 OH + HO₂ → O₂ + H₂O 7.1 x 10⁹ 6 OH + OH → H₂O₂ 5.3 x 10⁹ 7 OH + e⁻aq → OH⁻ 3 x 10¹⁰ 8 H + O₂ → HO₂ 2.0 x 10¹⁰ 9 H + HO₂ → H₂O₂ 2.0 x 10¹⁰ 10 H + H₂O₂ → OH + H₂O 3.44 x 10⁷ 11 H + OH → H₂O 1.4 x 10¹⁰ 12 H + H → H₂ 1.94 x 10¹⁰ 13 e⁻aq + O₂ → O₂⁻ 1.9 x 10¹⁰ 14 e⁻aq + O₂ → HO₂⁻ + OH⁻ 1.3 x 10¹⁰ 15 e⁻aq + HO₂ 2.0 x 10¹⁰ 16 e⁻aq + H₂O₂ 1.1 x 10¹⁰ 17 e⁻aq + HO₂ → OH + OH⁻ 1.3 x 10¹⁰ 18 e⁻aq + H⁺ → H 2.3 x 10¹⁰ 19 e⁻aq + e⁻aq → H₂ + OH⁻ + OH⁻ 2.5 x 10⁹ 20 HO₂ + O₂ → O₂ + HO₂ 1.3 x 10⁹ 21 HO₂ + HO₂ → O₂ + H₂O₂ 8.3 x 10⁵ 22 HO₂ + HO₂ → O₂ + OH + H₂O 3.7 23 HO₂ + HO₂ → O₂ + O₂ + OH + H₂O 7 x 10⁵ s⁻¹ 24 H⁺ + O₂⁻ → HO₂ 4.5 x 10¹⁰ 25 H⁺ + O₂⁻ → O₂ 2.0 x 10¹⁰ 26 H⁺ + OH⁻ 1.4 x 10¹¹ 27 H⁺ + HO₂⁻ 2 x 10¹⁰ 28 H₂O₂ → HO₂ + H⁺ + OH⁻ 2.5 x 10⁻⁵ s⁻¹ 29 H₂O₂ → H⁺ + OH⁻ 1.4 x 10⁻⁷ s⁻¹ 30 O₂ + O₂ → O₂ + HO₂ + OH⁻ 0.3 31 O₂ + H₂O₂ → O₂ + OH + OH 16 32

(2) O3 + H → O2 + OH k2 = 1.78×10^-11 cm^3 s^-1 (3) O + OH → O2 + H k3 = 4.40×10^-11 cm^3 s^-1 (5) O + HO2 → O2 + OH k5 = 3.50×10^-11 cm^3 s^-1 (6) H2O + O → 2 OH k6 = 5.40×10^-12 cm^3 s^-1 (9) OH + HO2 → O2 + H2O k9 = 4.00×10^-11 cm^3 s^-1 (10) HO2 + HO2 → O2 + H2O2 k10 = 2.50×10^-12 cm s^-1 (11) O + O2 + M → O3 + M k11 = 1.05×10^-34 cm^6 s^-1 (14) H + O2 + M → HO2 + M k14 = 8.08×10^-32 cm^6 s^-1 (15) OH + H + M → H2O + M k15 = 3.31×10^-27 cm^6 s^-1 (16) O2 + hv → 2 O k16 = (1.26×10^-8 s^-1) φ (17) H2O + hv → H + OH k17 = (3.4×10^-6 s^-1) φ (18) O3 + hv → O2 + O k18 = (7.10×10^-8 s^-1) φ