Quadratic equation given its solutions or the sum and product of roots

Construction of a quadratic equation from its solutions

We are going to see now the way we can construct a quadratic equation when the solutions are known.

Example

The solutions of the equation x2+2x3=0 are:

x=2±4+122=2±42={x1=1x2=3

Now let's look at what happens when we do the product (xx1)(xx2)

(x1)(x+3)=x2x+3x3=x2+2x3We have returned to the original equation.

So "the product of x minus a root multiplied by x minus the other root is equal to the quadratic equation that has these roots as a solution".

Example

If the solutions of the equation are x1=4,x2=2 the corresponding quadratic equation is:

(x4)(x2)=x26x+8=0

Example

If the roots of the equation are x1=2,x2=5 the corresponding quadratic equation is:

(x+1)(x+5)=x2+6x+5=0

Example

If the solutions of the equation are x1=3,x2=23 the corresponding quadratic equation is:

(x3)(x+23)=x273x2=0

Example

If the roots of the equation are x1=0,x2=16 the corresponding quadratic equation is:

(x0)(x16)=x2+16x=0

Reconstruction of the quadratic equation from the sum and product of roots

We know that (xx1)(xx2) leads to the equation that has x1,x2 as its solutions. If we do the product:

(xx1)(xx2)=x2x1xx2x+x1x2=x2(x1+x2)x+x1x2

an expression in which appear the sum and the product of the roots, let's call them s and p.

s=x1+x2p=x1x2

So the quadratic equation is:

x2sx+p=0

Example

Write a quadratic equation knowing that the sum of its roots is 5 and its product 6.

We know that s=5, p=6, then the equation will be:

x25x+6=0

This method is faster than doing the product of roots.

Let's see some other examples:

Example

The quadratic equation that has solutions 4 and 9 is:

x213x+36=0

Example

The quadratic equation that has solutions 3 and 5 is:

x2+8x+15=0

Let's say it is not easy to lay out an exercise that ends with a quadratic equation. The easiest way would be writing literally what the equation says.

Example

If we want to get the equation x25x+6=0 as a solution to a problem, we can formulate a statement like: If we raise an amount to the square and we subtract 5 times this amount the result is 6. What is the value of that amount?

The following statement is clearly much more interesting: "Find two numbers knowing that their sum is 5 and their product is 6" , a statement that ends with the same equation and whose solutions can be found solving the proposed equation:

x=5±25242=5±12={x1=3x2=2

With these same values we can approach it geometrically.

Example

We know that the perimeter of a rectangle is 10 and its area 6. Calculate the sides of this rectangle.

imagen

The perimeter of a rectangle is the sum of all its sides, then it is a+a+b+b=2a+2b=2(a+b)=10, that is, a+b=5

On the other side, the area of the rectangle is ab=6.

Then, to solve this problem we have to solve a quadratic equation in which the sum of its roots is 5 and its product 6. This equation is x25x+6=0.

And the solution is:

x=5±25242=5±12

Then, the sides of the rectangle will be, a=2 and b=3