The Quadratic Formula

Learning Objectives

Introduction

You can solve any quadratic equation by completing the squareA method for solving quadratic equations by rewriting one side of the equation as a squared binomial., or rewriting part of the equation as a perfect square trinomial. If you complete the square on the generic equation `ax^2 + bx + c = 0` and then solve for `x`, you find that `x=(-b+-sqrt(b^2-4ac))/(2a)`. This equation is known as the Quadratic Formula.

This formula is very helpful for solving quadratic equations that are difficult or impossible to factor, and using it can be faster than completing the square. The Quadratic Formula can be used to solve any quadratic equation of the form `ax^2 + bx + c = 0`.

Standard Form

The form `ax^2 + bx + c = 0` is called the standard form of a quadratic equation. Before solving a quadratic equation using the Quadratic Formula, it's vital that you be sure the equation is in this form. If you don't, you might use the wrong values for `a`, `b`, or `c`, and then the formula will give incorrect solutions.

Example

Problem

Rewrite the equation `3x + 2x^2 + 4 = 5` in standard form and identify `a`, `b`, and `c`.

 

`3x + 2x^2 + 4 = 5`

`3x + 2x^2 + 4 - 5 = 5 - 5`

First, be sure that the right side of the equation is `0`. In this case, all you need to do is subtract `5` from both sides.

 

`3x + 2x^2 - 1 = 0`

`2x^2 + 3x - 1 = 0`

Simplify, and write the terms with the exponent on the variable in descending order.

 

 

`a = 2`, `b = 3`, `c = -1`

 

Now that the equation is in standard form, you can read the values of `a`, `b`, and `c` from the coefficients and constant. Note that since the constant `1` is subtracted, `c` must be negative.

Answer

`2x^2 + 3x - 1 = 0`; `a = 2`, `b = 3`, `c = -1`

 

Example

Problem

Rewrite the equation `2(x + 3)^2 - 5x = 6` in standard form and identify `a`, `b`, and `c`.

 

`2(x + 3)^2 - 5x = 6`

`2(x + 3)^2 - 5x - 6 = 6 - 6`

First, be sure that the right side of the equation is `0`.

 

`2(x^2 + 6x + 9) - 5x-6 = 0`

`2x^2 + 12x + 18 - 5x - 6 = 0`

`2x^2 + 12x - 5x + 18 - 6 = 0`

`2x^2 + 7x + 12 = 0`

Expand the squared binomial, then simplify by combining like terms.

 

Be sure to write the terms with the exponent on the variable in descending order.

 

 

`a = 2`, `b = 7`, `c = 12`

 

Now that the equation is in standard form, you can read the values of `a`, `b`, and `c` from the coefficients and constant.

Answer

`2x^2 + 7x + 12 = 0`; `a = 2`, `b = 7`, `c = 12`

 

Identify the values of `a`, `b`, and `c` in the standard form of the equation `3x + x^2 = 6`.

 

A) `a = 3`, `b = 1`, `c = 6`

 

B) `a = 1`, `b = 3`, `c = 6`

 

C) `a = 1`, `b = 3`, `c = -6`

 

D) `a = 3`, `b = 1`, `c = -6`

 

 

Deriving the Quadratic Formula

Let's complete the square on the general equation and see exactly how that produces the Quadratic Formula. Recall the process of completing the square.

Can you complete the square on the general quadratic equation `ax^2 + bx + c = 0`? Try it yourself before you continue to the example below. Hint: Notice that in the general equation, the coefficient of `x^2` is not equal to `1`. You can divide the equation by `a`, which makes some of the expressions a bit messy, but if you are careful, everything will work out, and at the end, you’ll have the Quadratic Formula!

Example

Problem

Complete the square of `ax^2 + bx + c = 0`  to arrive at the Quadratic Formula.

 

`x^2+b/ax+c/a=0`

 

Divide both sides of the equation by `a`, so that the coefficient of `x^2` is `1`.

 

`x^2+b/ax=-c/a`

 

Rewrite so the left side is in the form `x^2 + bx` (although in this case `bx` is actually `b/ax`).

 

`x^2+b/ax+(b/(2a))^2=-c/a+(b/(2a))^2`

 

The coefficient on `x` is `b/a`, so the value to add to both sides is `(b/(2a))^2`.

 

`(x+b/(2a))^2=-c/a+(b/(2a))^2`

 

Write the left side as a binomial squared.

 

`(x+b/(2a))^2=-c/a+b^2/(4a^2)`

 

Evaluate `(b/(2a))^2` as `b^2/(4a^2)`.

 

`(x+b/(2a))^2=-(4ac)/(4a^2)+b^2/(4a^2)`

 

Write the fractions on the right side using a common denominator.

 

`(x+b/(2a))^2=(b^2-4ac)/(4a^2)`

 

Add the fractions on the right.

 

`x+b/(2a)=+-sqrt((b^2-4ac)/(4a^2))`

 

Use the Square Root Property. Remember that you want both the positive and negative square roots!

 

`x=-b/(2a)+-sqrt((b^2-4ac)/(4a^2))`

 

Subtract `b/(2a)` from both sides to isolate `x`.

 

`x=-b/(2a)+-sqrt(b^2-4ac)/(2a)`

 

The denominator under the radical is a perfect square, so: `sqrt((b^2-4ac)/(4a^2))=sqrt(b^2-4ac)/(sqrt(4a^2))=sqrt(b^2-4ac)/(2a)`

Answer

`x=(−b±sqrt(b^2−4ac))/(2a)`

 

Add the fractions since they have a common denominator.

There you have it, the Quadratic Formula.

Solving a Quadratic Equation using the Quadratic Formula

The Quadratic Formula will work with any quadratic equation, but only if the equation is in standard form, `ax^2+bx+c=0`. To use it, follow these steps.

That's a lot of steps. Let’s try using the Quadratic Formula to solve a relatively simple equation first; then you’ll go back and solve it again using another factoring method.

Example

Problem

Use the Quadratic Formula to solve the equation `x^2+4x=5`.

 

`x^2 + 4x = 5`

`x^2 + 4x - 5 = 0`

 

First, write the equation in standard form.

 

 

`a = 1`, `b = 4`, `c = -5`

 

Note that the subtraction sign means the constant `c` is negative.

 

`x=(-b+-sqrt(b^2-4ac))/(2a)`

`x=(-4+-sqrt((4)^2-4(1)(-5)))/(2(1)`

 

Substitute the values into the Quadratic Formula.

 

`x=(-4+-sqrt(16+20))/2`

 

Simplify, being careful to get the signs correct.

 

`x=(-4+-sqrt36)/2`

 

Simplify some more.

 

`x=(-4+-6)/2`

 

Simplify the radical: `sqrt36=6`.

 

`x=(-4+6)/2=2/2=1`

or

`x=(-4-6)/2=(-10)/2=-5`

 

Separate and simplify to find the solutions to the quadratic equation. Note that in one, `6` is added and in the other, `6` is subtracted.

Answer

`x=1` or `-5`

 

 

You can check these solutions by substituting `1` and `-5` into the original equation. The top table shows `1` being substituted into the original equation, and the bottom table shows `-5` being substituted into the original equation.

`x=1`

`x^2+4x=5`

`(1)^2+4(1)=5`

`1+4=5`

`5=5`

 

`x=-5`

`x^2+4x=5`

`(-5)^2+4(-5)=5`

`25-20=5`

`5=5`

You get two true statements, so you know that both solutions work: `x = 1` or `-5`. You’ve solved the equation successfully using the Quadratic Formula!

However, upon looking at `x^2 + 4x = 5`, you may have thought, “I already know how to do this; I can rewrite this equation as `x^2 + 4x - 5 = 0`, and then factor it as `(x + 5)(x - 1) = 0`, so `x = -5` or `1`.” This is correct, and congratulations if you made this connection!

Sometimes, it may be easier to solve an equation using conventional factoring methods, like finding number pairs that sum to one number (in this example, `4`) and that produce a specific product (in this example `-5`) when multiplied. The power of the Quadratic Formula is that it can be used to solve any quadratic equation, even those where finding number combinations will not work.

Most of the quadratic equations you've looked at have two solutions, like the one above. The following example is a little different.

Example

Problem

Use the Quadratic Formula to solve the equation  `x^2-2x = 6x - 16`.

 

`x^2 - 2x = 6x - 16`

`x^2 - 2x - 6x + 16 = 0`

`x^2 - 8x + 16 = 0`

 

Subtract `6x` from each side and add `16` to both sides to put the equation in standard form.

 

 

 

 

 

Identify the coefficients `a`, `b`, and `c`. `x^2 = 1x^2`, so `a = 1`. Since `8x` is subtracted, `b` is negative.

 

`a = 1`, `b = -8`, `c = 16`

 

 

 

 

 

`x=(-b+-sqrt(b^2-4ac))/(2a)`

 

`x=(-(-8)+-sqrt((-8)^2-4(1)(16)))/(2(1))`

 

 

Substitute the values into the Quadratic Formula.

 

 

`x=(8+-sqrt(64-64))/2`

 

 

Simplify.

 

`x=(8+-sqrt0)/2=8/2=4`

 

Since the square root of `0` is `0`, and both adding and subtracting `0` give the same result, there is only one possible value.

Answer

`x=4`

 

 

Again, check using the original equation.

`x^2 - 2x = 6x - 16`

`(4)^2 - 2(4) = 6(4) - 16`

`16 - 8 = 24 - 16`

`8 = 8`

Let's try one final example. This one also has a difference in the solution.

Example

Problem

Use the Quadratic Formula to solve the equation  `x^2+2x = -5`.

 

`x^2 + 2x = -5`

`x^2 + 2x + 5 = 0`

 

First, write the equation in standard form.

 

 

 

`a = 1`, `b = 2`, `c = 5`

 

 

 

`x=(-b+-sqrt(b^2-4ac))/(2a)`

 

`x=(-2+-sqrt((2)^2-4(1)(5)))/(2(1))`

 

 

 

Substitute the values into the Quadratic Formula.

 

`x=(-2+-sqrt(4-20))/2`

 

 

 

Simplify, being careful to get the signs correct.

 

`x=(-2+-sqrt(-16))/2`

 

Simplify some more.

 

`x=(-2+-4i)/2`

 

Simplify the radical, but notice that the number under the radical symbol is negative! The square root of `-16` is imaginary. `sqrt(-16)=4i`.

 

`x=(-2+4i)/2=(-1+2i)/1*2/2=-1+2i`

or

`x=(-2-4i)/2=(-1-2i)/1*2/2=-1-2i`

 

Separate and simplify to find the solutions to the quadratic equation.

Answer

`x=-1 + 2i` or `-1 - 2i`

 

 

Check these solutions in the original equation in the tables below. Be careful when expanding the squares and replacing `i^2` with `-1`.

`x = -1 + 2i`

`x^2 + 2x = -5`

`(-1+2i)^2 + 2(-1 + 2i) = -5`

`1 - 4i + 4i^2 - 2 + 4i = -5`

`1 - 4i + 4(-1) - 2 + 4i = -5`

`1 - 4 - 2 = -5`

`-5 = -5`

 

`x = -1 - 2i`

`x^2 + 2x = -5`

`(-1 - 2i)^2 + 2(-1 - 2i) = -5`

`1 + 4i + 4i^2 - 2 - 4i = -5`

`1 + 4i + 4(-1) - 2 - 4i = -5`

`1 - 4 - 2 = -5`

`-5=-5`

 

Use the Quadratic Formula to solve the equation `x^2 - 2x - 4 = 0`.

 

A) `x = 2`

 

B) `x=11`, `x = -9`

 

C) `x=2+sqrt5`, `x=2-sqrt5`

 

D) `x=1+sqrt5``x=1-sqrt5`

 

 

The Discriminant

These examples have shown that a quadratic equation may have two real solutions, one real solution, or two complex solutions.

In the Quadratic Formula, the expression underneath the radical symbol determines the number and type of solutions the formula will reveal. This expression, `b^2 - 4ac`, is called the discriminant In the Quadratic Formula, the expression underneath the radical symbol: `b^2 - 4ac`. The discriminant can be used to determine the number and type of solutions the formula will reveal. of the equation `ax^2 + bx + c = 0`.

Let’s think about how the discriminant affects the evaluation of `sqrt(b^2-4ac)`, and how it helps to determine the solution set.

Example

Problem

Use the discriminant to determine how many and what kind of solutions the quadratic equation `x^2-4x + 10 = 0`  has.

 

 

`b^2 - 4ac`

`(-4)^2 - 4(1)(10)`

Evaluate `b^2 - 4ac`. First note that `a = 1`, `b = -4`, and `c=10`.

 

`16 - 40 = -24`

The result is a negative number. The discriminant is negative, so the quadratic equation has two complex solutions.

Answer

The quadratic equation `x^2 - 4x + 10 = 0` has two complex solutions.

       

 

Suppose a quadratic equation has a discriminant that evaluates to zero. Which of the following statements is always true?

 

A) The equation has two solutions.

 

B) The equation has one solution.

 

C) The equation has zero solutions.

 

 

Applying the Quadratic Formula

Quadratic equations are widely used in science, business, and engineering. Quadratic equations are commonly used in situations where two things are multiplied together and they both depend on the same variable. For example, when working with area, if both dimensions are written in terms of the same variable, you use a quadratic equation. Because the quantity of a product sold often depends on the price, you sometimes use a quadratic equation to represent revenue as a product of the price and the quantity sold. Quadratic equations are also used when gravity is involved, such as the path of a ball or the shape of cables in a suspension bridge.

A very common and easy-to-understand application is the height of a ball thrown at the ground off a building. Because gravity will make the ball speed up as it falls, a quadratic equation can be used to estimate its height any time before it hits the ground. Note: The equation isn't completely accurate, because friction from the air will slow the ball down a little. For our purposes, this is close enough.

Example

Problem

A ball is thrown off a building from `200` feet above the ground. Its starting velocity (also called initial velocity) is `-10` feet per second. (The negative value means it's heading toward the ground.)

 

The equation `h = -16t^2 - 10t + 200`  can be used to model the height of the ball after `t` seconds. About how long does it take for the ball to hit the ground?

 

`h = -16t^2 - 10t + 200`

 

`0 = -16t^2 - 10t + 200`

 

`-16t^2 - 10t + 200 = 0`

 

When the ball hits the ground, the height is `0`. Substitute `0` for `h`.

 

 

 

`t=(-(-10)+-sqrt((-10)^2-4(-16)(200)))/(2(-16))`

 

 

This equation is difficult to solve by factoring or by completing the square, so solve it by applying the Quadratic Formula, `x=(-b+-sqrt(b^2-4ac))/(2a)`. In this case, the variable is `t` rather than `x`. `a = -16`, `b = -10`, and `c=200`

 

`t=(10+-sqrt(100+12,800))/-32`

`=(10+-sqrt(12,900))/-32`

 

Simplify. Be very careful with the signs.

 

`t` is approximately `-3.86` or `3.24`.

 

Use a calculator to find both roots.

 

Consider the roots logically. One solution, `-3.86`, cannot be the time because it is a negative number. The other solution, `3.24` seconds, must be when the ball hits the ground.

Answer

The ball hits the ground approximately `3.24` seconds after being thrown.

The area problem below does not look like it includes a Quadratic Formula of any type, and the problem seems to be something you have solved many times before by simply multiplying. But in order to solve it, you will need to use a quadratic equation.

Example

Problem

Bob made a quilt that is `4` feet by  `5` feet. He has `10` square feet of fabric he can use to add a border around the quilt. How wide should he make the border to use all the fabric? (The border must be the same width on all four sides.)

 

A diagram shows a red rectangle labeled 4 feet wide by 5 feet long, inside a larger blue rectangle. The width between the two rectangles is labeled x. Each corner between the red and blue rectangles forms a square labeled x by x.

 

Sketch the problem. Since you don’t know the width of the border, you will let the variable `x` represent the width.

 

In the diagram, the original quilt is indicated by the red rectangle. The border is the area between the red and blue lines.

A diagram shows a red rectangle labeled 4 feet wide by 5 feet long, inside a larger blue rectangle. The width of the outside blue rectangle is labeled 4 plus 2 times x. The length is labeled 5 plus 2 times x. The width between the two rectangles is labeled x. Each corner between the red and blue rectangle forms a square labeled x by x.

 

 

Since each side of the original `4` by `5` quilt has the border of width `x` added, the length of the quilt with the border will be `5 + 2x`, and the width will be `4 + 2x`.

 

(Both dimensions are written in terms of the same variable, and you will multiply them to get an area! This is where you might start to think that a quadratic equation might be used to solve this problem.)

Area of border `=` Area of the blue rectangle minus the area of the red rectangle

 

Area of border `= (4 + 2x)(5 + 2x) - (4)(5)`

 

 

You are only interested in the area of the border strips. Write an expression for the area of the border.

 

`10 = (4 + 2x)(5 + 2x) - 20`

 

There are `10` sq ft of fabric for the border, so set the area of border to be `10`.

 

`10 = 20 + 8x + 10x + 4x^2 - 20`

 

 

Multiply `(4 + 2x)(5 + 2x)`.

 

`10 = 18x + 4x^2`

 

 

Simplify.

 

`0 = 18x + 4x^2 - 10`

or

`4x^2 + 18x - 10 = 0`

 

 

 

`2(2x^2+9x-5)=0`  

`(2(2x^2+9x-5))/2=0/2`

`2x^2+9x-5=0`

 

 

Subtract `10` from both sides so that you have a quadratic equation in standard form and can apply the Quadratic Formula to find the roots of the equation.

 

Factor out the greatest common factor, `2`, so that you can work with the simpler equivalent equation, `2x^2 + 9x - 5 = 0`.

`x=(-b+-sqrt(b^2-4ac))/(2a)`

 

`x=(-9+-sqrt(9^2-4(2)(-5)))/(2(2))`

 

Use the Quadratic Formula. In this case, `a = 2`, `b = 9`, and `c=-5`.

`x=(-9+-sqrt121)/4=(-9+-11)/4`

 

 

Simplify.

`x=(-9+11)/4=2/4=1/2=0.5`

or

`x=(-9-11)/4=-20/4=-5`

 

Find the solutions, making sure that the `+-`is evaluated for both values.

 

 

Answer

 

The width of the border should be `0.5` ft.

Ignore the solution `x = -5`, since the width could not be negative.

       

 

A ball is launched upward at `48` feet/second from a platform that is `100` feet high. The equation giving its height `t` seconds after launch is `h = -16t^2 + 48t + 100`. The ball will shoot up to `136` feet high, then begin to come back down. About how long will the ball take to get to that maximum height?

 

A) `1.5` seconds

 

B) `3.6` seconds

 

C) `4.4` seconds

 

D) This problem cannot be solved.

 

 

Summary

Quadratic equations can appear in different applications. The Quadratic Formula is a useful way to solve these equations, or any other quadratic equation! The Quadratic Formula, `x=(-b+-sqrt(b^2-4ac))/(2a)`, is found by completing the square of the quadratic equation `ax^2+bx+c=0`.

The discriminant of the Quadratic Formula is the quantity under the radical, `b^2-4ac`. It determines the number and the type of solutions that a quadratic equation has. If the discriminant is positive, there are `2` real solutions. If it is `0`, there is `1` real solution. If the discriminant is negative, there are `2` complex solutions (but no real solutions).