Example 3:          The sum of two numbers is 6 and their product is 7.  What are those numbers?

Solution: 

If one of the numbers is x, then the other must be 6 – x since they add to 6.  If their product is 7, then we have the equation x(6 – x) = 7.

Expanding gives 6x – x2 = 7.  If we subtract 7 from both sides, we get :

                              –x2 + 6x – 7 = 0

Whenever an equation begins with a negative x2, it is best to multiply both sides by negative one so it begins with a positive x2.  So we do that and get:

                             x2 – 6x + 7 = 0

Now we use the quadratic formula: