# 10.5: Solving Quadratic Equations by the Quadratic Formula

**At Grade**Created by: CK-12

## Learning Objectives

- Solve quadratic equations using the quadratic formula.
- Identify and choose methods for solving quadratic equations.
- Solve real-world problems using functions by completing the square.

## Introduction

The **Quadratic Formula** is probably the most used method for solving quadratic equations. For a quadratic equation in standard form, \begin{align*}ax^2 + bx + c = 0\end{align*}, the quadratic formula looks like this:

\begin{align*}x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\end{align*}

This formula is derived by solving a general quadratic equation using the method of completing the square that you learned in the previous section.

We start with a general quadratic equation: \begin{align*}ax^2 + bx + c = 0\end{align*}

Subtract the constant term from both sides: \begin{align*}ax^2 + bx = -c\end{align*}

\begin{align*}\text{Divide by the coefficient of the} \ x^2 \ \text{term:} && x^2 + \frac{b}{a} x &= - \frac{c}{a}\\ \text{Rewrite:} && x^2 + 2 \left (\frac{b}{2a} \right ) x &= - \frac{c}{a}\\ \text{Add the constant} \ \left (\frac{b}{2a} \right )^2 \ \text{to both sides:} && x^2 + 2 \left (\frac{b}{2a} \right )x + \left (\frac{b}{2a} \right )^2 &= - \frac{c}{a} + \frac{b^2}{4a^2}\\ \text{Factor the perfect square trinomial:} && \left (x + \frac{b}{2a} \right )^2 &= - \frac{4ac}{4a^2} + \frac{b^2}{4a^2}\\ \text{Simplify:} && \left (x + \frac{b}{2a} \right )^2 &= \frac{b^2 - 4ac}{4a^2}\\ \text{Take the square root of both sides:} && x + \frac{b}{2a} &= \sqrt{\frac{b^2 - 4ac}{4a^2}} \ \text{and} \ x + \frac{b}{2a} = - \sqrt{\frac{b^2 - 4ac}{4a^2}}\\ \text{Simplify:} && x + \frac{b}{2a} &= \frac{\sqrt{b^2 - 4ac}}{2a} \ \text{and} \ x + \frac{b}{2a} = - \frac{\sqrt{b^2 - 4ac}}{2a}\\ && x &= - \frac{b}{2a} + \frac{\sqrt{b^2 - 4ac}}{2a} \ \text{and} \ x = - \frac{b}{2a} - \frac{\sqrt{b^2 - 4ac}}{2a}\\ && x &= \frac{-b + \sqrt{b^2 - 4ac}}{2a} \ \text{and} \ x = \frac{-b - \sqrt{b^2 - 4ac}}{2a}\end{align*}

This can be written more compactly as \begin{align*}x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\end{align*}.

You can see that the familiar formula comes directly from applying the method of completing the square. Applying the method of completing the square to solve quadratic equations can be tedious, so the quadratic formula is a more straightforward way of finding the solutions.

## Solve Quadratic Equations Using the Quadratic Formula

To use the quadratic formula, just plug in the values of \begin{align*}a, b,\end{align*} and \begin{align*}c\end{align*}.

**Example 1**

*Solve the following quadratic equations using the quadratic formula.*

a) \begin{align*}2x^2 + 3x + 1 = 0\end{align*}

b) \begin{align*}x^2 - 6x + 5 = 0\end{align*}

c) \begin{align*}-4x^2 + x + 1 = 0\end{align*}

**Solution**

Start with the quadratic formula and plug in the values of \begin{align*}a, b\end{align*} and \begin{align*}c\end{align*}.

a) \begin{align*} \text{Quadratic formula:} && x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\\ \text{Plug in the values} \ a = 2, \ b = 3, \ c = 1 && x &= \frac{-3 \pm \sqrt{(3)^2 - 4(2)(1)}}{2(2)}\\ \text{Simplify:} && x &= \frac{-3 \pm \sqrt{9-8}}{4} = \frac{-3 \pm \sqrt{1}}{4}\\ \text{Separate the two options:} && x &= \frac{-3 + 1}{4} \ \ \text{and} \ \ x = \frac{-3 - 1}{4}\\ \text{Solve:} && x &= \frac{-2}{4} = - \frac{1}{2} \ \text{and} \ x = \frac{-4}{4} = -1\end{align*}

**Answer:** \begin{align*}x = - \frac{1}{2}\end{align*} and \begin{align*}x = -1\end{align*}

b) \begin{align*}\text{Quadratic formula:} && x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\\ \text{Plug in the values} \ a = 1, \ b = -6, \ c = 5 && x &= \frac{-(-6) \pm \sqrt{(-6)^2 - 4(1)(5)}}{2(1)}\\ \text{Simplify:} && x &=\frac{6 \pm \sqrt{36 - 20}}{2} = \frac{6 \pm \sqrt{16}}{2}\\ \text{Separate the two options:} && x &= \frac{6 + 4}{2} \ \text{and} \ x = \frac{6 -4}{2}\\ \text{Solve:} && x &= \frac{10}{2} = 5 \ \text{and} \ x = \frac{2}{2} = 1\end{align*}

**Answer:** \begin{align*}x = 5\end{align*} and \begin{align*}x = 1\end{align*}

c) \begin{align*}\text{Quadratic formula:} && x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\\ \text{Plug in the values} \ a = -4, \ b = 1, \ c = 1 && x &= \frac{-1 \pm \sqrt{(1)^2 - 4(-4)(1)}}{2(-4)}\\ \text{Simplify:} && x &= \frac{-1 \pm \sqrt{1 + 16}}{-8} = \frac{-1 \pm \sqrt{17}}{-8}\\ \text{Separate the two options:} && x &= \frac{-1 + \sqrt{17}}{-8} \ \text{and} \ x = \frac{-1 - \sqrt{17}}{-8}\\ \text{Solve:} && x &= -.39 \ \text{and} \ x = .64\end{align*}

**Answer:** \begin{align*}x = -.39\end{align*} and \begin{align*}x = .64\end{align*}

Often when we plug the values of the coefficients into the quadratic formula, we end up with a negative number inside the square root. Since the square root of a negative number does not give real answers, we say that the equation has no real solutions. In more advanced math classes, you’ll learn how to work with “complex” (or “imaginary”) solutions to quadratic equations.

**Example 2**

*Use the quadratic formula to solve the equation* \begin{align*}x^2 + 2x + 7 = 0\end{align*}.

**Solution**

\begin{align*}\text{Quadratic formula:} && x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\\ \text{Plug in the values} \ a = 1, \ b = 2, \ c = 7 && x &= \frac{-2 \pm \sqrt{(2)^2 - 4(1)(7)}}{2(1)}\\ \text{Simplify:} && x &= \frac{-2 \pm \sqrt{4 - 28}}{2} = \frac{-2 \pm \sqrt{-24}}{2}\end{align*}

**Answer:** There are no real solutions.

To apply the quadratic formula, we must make sure that the equation is written in standard form. For some problems, that means we have to start by rewriting the equation.

**Example 3**

*Solve the following equations using the quadratic formula.*

a) \begin{align*}x^2 - 6x = 10\end{align*}

b) \begin{align*}-8x^2 = 5x + 6\end{align*}

**Solution**

a) \begin{align*}\text{Re-write the equation in standard form:} && x^2 - 6x - 10 &= 0\\ \text{Quadratic formula:} && x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\\ \text{Plug in the values} \ a = 1, \ b = -6, \ c = -10 && x &= \frac{-(-6) \pm \sqrt{(-6)^2 - 4(1)(-10)}}{2(1)}\\ \text{Simplify:} && x &= \frac{6 \pm \sqrt{36 + 40}}{2} = \frac{6 \pm \sqrt{76}}{2}\\ \text{Separate the two options:} && x &= \frac{6 + \sqrt{76}}{2} \ \text{and} \ x = \frac{6 - \sqrt{76}}{2}\\ \text{Solve:} && x &= 7.36 \ \text{and} \ x = -1.36\end{align*}

**Answer:** \begin{align*}x = 7.36\end{align*} and \begin{align*}x = -1.36\end{align*}

b) \begin{align*}\text{Re-write the equation in standard form:} && 8x^2+5x+6 &= 0\\ \text{Quadratic formula:} && x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\\ \text{Plug in the values} \ a = 8, \ b = 5, \ c = 6 && x &= \frac{-5 \pm \sqrt{(5)^2 - 4(8)(6)}}{2(8)}\\ \text{Simplify:} && x &= \frac{-5 \pm \sqrt{25 - 192}}{16} = \frac{-5 \pm \sqrt{-167}}{16}\end{align*}

**Answer:** no real solutions

For more examples of solving quadratic equations using the quadratic formula, see the Khan Academy video at

. This video isn’t necessarily different from the examples above, but it does help reinforce the procedure of using the quadratic formula to solve equations.

## Finding the Vertex of a Parabola with the Quadratic Formula

Sometimes a formula gives you even more information than you were looking for. For example, the quadratic formula also gives us an easy way to locate the vertex of a parabola.

Remember that the quadratic formula tells us the **roots** or **solutions** of the equation \begin{align*}ax^2 + bx + c = 0\end{align*}. Those roots are \begin{align*} x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\end{align*}, and we can rewrite that as \begin{align*}x = \frac{-b}{2a} \pm \frac{\sqrt{b^2 - 4ac}} {2a}\end{align*}

Recall that the roots are **symmetric** about the vertex. In the form above, we can see that the roots of a quadratic equation are symmetric around the \begin{align*}x-\end{align*}coordinate \begin{align*}\frac{-b}{2a}\end{align*}, because they are \begin{align*}\frac{\sqrt{b^2 - 4ac}} {2a}\end{align*} units to the left and right (recall the \begin{align*}\pm\end{align*} sign) from the vertical line \begin{align*}x = \frac{-b}{2a}\end{align*}. For example, in the equation \begin{align*}x^2 - 2x - 3 = 0\end{align*}, the roots -1 and 3 are both 2 units from the vertical line \begin{align*}x = 1\end{align*}, as you can see in the graph below:

## Identify and Choose Methods for Solving Quadratic Equations.

In mathematics, you’ll need to solve quadratic equations that describe application problems or that are part of more complicated problems. You’ve learned four ways of solving a quadratic equation:

- Factoring
- Taking the square root
- Completing the square
- Quadratic formula

Usually you’ll have to decide for yourself which method to use. However, here are some guidelines as to which methods are better in different situations.

**Factoring** is always best if the quadratic expression is easily factorable. It is always worthwhile to check if you can factor because this is the fastest method. Many expressions are not factorable so this method is not used very often in practice.

**Taking the square root** is best used when there is no \begin{align*}x-\end{align*}term in the equation.

**Completing the square** can be used to solve any quadratic equation. This is usually not any better than using the quadratic formula (in terms of difficult computations), but it is very useful if you need to rewrite a quadratic function in vertex form. It’s also used to rewrite the equations of circles, ellipses and hyperbolas in standard form (something you’ll do in algebra II, trigonometry, physics, calculus, and beyond).

**Quadratic formula** is the method that is used most often for solving a quadratic equation. When solving directly by taking square root and factoring does not work, this is the method that most people prefer to use.

If you are using factoring or the quadratic formula, make sure that the equation is in standard form.

**Example 4**

*Solve each quadratic equation.*

a) \begin{align*}x^2 - 4x - 5 = 0\end{align*}

b) \begin{align*}x^2 = 8\end{align*}

c) \begin{align*}-4x^2 + x = 2\end{align*}

d) \begin{align*}25x^2 - 9 = 0\end{align*}

e) \begin{align*}3x^2 = 8x\end{align*}

**Solution**

a) This expression if easily factorable so we can factor and apply the zero-product property:

\begin{align*}& \text{Factor:} && (x - 5)(x + 1) = 0\\ & \text{Apply zero-product property:} && x - 5 = 0 \quad \text{and} \quad x + 1 = 0\\ & \text{Solve:} && x = 5 \qquad \ \ \text{and} \quad x = -1\end{align*}

**Answer:** \begin{align*}x = 5\end{align*} and \begin{align*}x = -1\end{align*}

b) Since the expression is missing the \begin{align*}x\end{align*} term we can take the square root:

Take the square root of both sides: \begin{align*}x = \sqrt{8}\end{align*} and \begin{align*}x = - \sqrt{8}\end{align*}

**Answer:** \begin{align*}x = 2.83\end{align*} and \begin{align*}x = -2.83\end{align*}

c) Re-write the equation in standard form: \begin{align*}-4x^2 + x - 2 = 0\end{align*}

It is not apparent right away if the expression is factorable so we will use the quadratic formula:

\begin{align*}\text{Quadratic formula:} && x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\\ \text{Plug in the values} \ a = -4, \ b = 1, \ c = -2: && x &= \frac{-1 \pm \sqrt{1^2 - 4(-4)(-2)}}{2(-4)}\\ \text{Simplify:} && x &= \frac{-1 \pm \sqrt{1 - 32}}{-8} = \frac{-1 \pm \sqrt{-31}}{-8}\end{align*}

**Answer:** no real solution

d) This problem can be solved easily either with factoring or taking the square root. Let’s take the square root in this case:

\begin{align*}\text{Add} \ 9 \ \text{to both sides of the equation:} && 25x^2 &= 9\\ \text{Divide both sides by} \ 25: && x^2 &= \frac{9}{25}\\ \text{Take the square root of both sides:} && x &= \sqrt{\frac{9}{25}} \ \text{and} \ x=-\sqrt{\frac{9}{25}}\\ \text{Simplify:} && x &= \frac{3}{5} \ \text{and} \ x=-\frac{3}{5}\end{align*}

**Answer:** \begin{align*}x = \frac{3}{5}\end{align*} and \begin{align*}x = -\frac{3}{5}\end{align*}

e) \begin{align*}\text{Re-write the equation in standard form:} && 3x^2 - 8x &= 0\\ \text{Factor out common} \ x \ \text{term:} && x(3x-8) &= 0\\ \text{Set both terms to zero:} && x &= 0 \ \text{and} \ 3x = 8\\ \text{Solve:} && x &= 0 \ \text{and} \ x = \frac{8}{3} = 2.67\end{align*}

**Answer:** \begin{align*}x = 0\end{align*} and \begin{align*}x = 2.67\end{align*}

## Solve Real-World Problems Using Quadratic Functions by any Method

Here are some application problems that arise from number relationships and geometry applications.

**Example 5**

*The product of two positive consecutive integers is 156. Find the integers.*

**Solution**

**Define:** Let \begin{align*}x =\end{align*} the smaller integer

Then \begin{align*}x + 1 =\end{align*} the next integer

**Translate:** The product of the two numbers is 156. We can write the equation:

\begin{align*}x(x + 1) = 156\end{align*}

**Solve:**

\begin{align*}x^2 + x & = 156\\ x^2 + x - 156 & = 0\end{align*}

Apply the quadratic formula with: \begin{align*}a = 1, \ b = 1, \ c = -156\end{align*}

\begin{align*}x & = \frac{-1 \pm \sqrt{1^2 - 4(1)(-156)}}{2(1)}\\ x & = \frac{-1 \pm \sqrt{625}}{2} = \frac{-1 \pm 25}{2} \\ x & = \frac{-1 + 25}{2} \quad \text{and} \quad x = \frac{-1 - 25}{2}\\ x & = \frac{24}{2} = 12 \quad \text{and} \quad x = \frac{-26}{2} = -13\end{align*}

Since we are looking for positive integers, we want \begin{align*}x = 12\end{align*}. So the numbers are **12 and 13.**

**Check:** \begin{align*}12 \times 13 = 156\end{align*}. The answer checks out.

**Example 6**

*The length of a rectangular pool is 10 meters more than its width. The area of the pool is 875 square meters. Find the dimensions of the pool.*

**Solution**

**Draw a sketch:**

**Define:** Let \begin{align*}x =\end{align*} the width of the pool

Then \begin{align*}x + 10 =\end{align*} the length of the pool

**Translate:** The area of a rectangle is \begin{align*}A = \text{length} \times \text{width}\end{align*}, so we have \begin{align*}x(x +10) = 875\end{align*}.

**Solve:**

\begin{align*}x^2 + 10x &= 875\\ x^2 + 10x - 875 &= 0\end{align*}

Apply the quadratic formula with \begin{align*}a = 1, \ b = 10\end{align*} and \begin{align*}c = -875\end{align*}

\begin{align*}x & = \frac{-10 \pm \sqrt{(10)^2 - 4(1)(-875)}}{2(1)}\\ x & = \frac{-10 \pm \sqrt{100 + 3500}}{2}\\ x & = \frac{-10 \pm \sqrt{3600}}{2} = \frac{-10 \pm 60}{2}\\ x & = \frac{-10 + 60}{2} \ \text{and} \ x = \frac{-10 - 60}{2}\\ x & = \frac{50}{2} = 25 \ \text{and} \ x = \frac{-70}{2} = -35\end{align*}

Since the dimensions of the pool should be positive, we want \begin{align*}x = 25 \ meters\end{align*}. So the pool is \begin{align*}25 \ meters \times 35 \ meters\end{align*}.

**Check:** \begin{align*}25 \times 35 = 875 \ m^2\end{align*}. The answer checks out.

**Example 7**

*Suzie wants to build a garden that has three separate rectangular sections. She wants to fence around the whole garden and between each section as shown. The plot is twice as long as it is wide and the total area is* \begin{align*}200 ft^2\end{align*}. *How much fencing does Suzie need?*

**Solution**

**Define:** Let \begin{align*}x =\end{align*} the width of the plot

Then \begin{align*}2x =\end{align*} the length of the plot

**Translate:** area of a rectangle is \begin{align*}A = \text{length} \times \text{width}\end{align*}, so

\begin{align*}x(2x) = 200\end{align*}

**Solve:** \begin{align*}2x^2 = 200\end{align*}

Solve by taking the square root:

\begin{align*}x^2 & = 100\\ x & = \sqrt{100} \ \text{and} \ x = - \sqrt{100}\\ x & = 10 \ \text{and} \ x = - 10\end{align*}

We take \begin{align*}x = 10\end{align*} since only positive dimensions make sense.

The plot of land is \begin{align*}10 \ feet \times 20 \ feet\end{align*}.

To fence the garden the way Suzie wants, we need 2 lengths and 4 widths \begin{align*}= 2(20) + 4(10) = 80\end{align*} **feet of fence.**

**Check:** \begin{align*}10 \times 20 = 200 \ ft^2\end{align*} and \begin{align*}2(20) + 4(10) = 80 \ feet\end{align*}. The answer checks out.

**Example 8**

*An isosceles triangle is enclosed in a square so that its base coincides with one of the sides of the square and the tip of the triangle touches the opposite side of the square. If the area of the triangle is* \begin{align*}20 \ in^2\end{align*} *what is the length of one side of the square?*

**Solution**

**Draw a sketch:**

**Define:** Let \begin{align*}x =\end{align*} base of the triangle

Then \begin{align*}x =\end{align*} height of the triangle

**Translate:** Area of a triangle is \begin{align*} \frac{1}{2} \times base \times height\end{align*}, so \begin{align*} \frac{1}{2} \cdot x \cdot x = 20\end{align*}

**Solve:** \begin{align*}\frac{1}{2}x^2 = 20\end{align*}

Solve by taking the square root:

\begin{align*}x^2 & = 40\\ x & = \sqrt{40} \ \text{and} \ x = - \sqrt{40}\\ x & = 6.32 \ \text{and} \ x = -6.32\end{align*}

The side of the square is **6.32 inches.** That means the area of the square is \begin{align*}(6.32)^2 = 40 \ in^2\end{align*}, twice as big as the area of the triangle.

**Check:** It makes sense that the area of the square will be twice that of the triangle. If you look at the figure you can see that you could fit two triangles inside the square.

## Review Questions

Solve the following quadratic equations using the quadratic formula.

- \begin{align*}x^2 + 4x - 21 = 0\end{align*}
- \begin{align*}x^2 - 6x = 12\end{align*}
- \begin{align*}3x^2 - \frac{1}{2}x = \frac{3}{8}\end{align*}
- \begin{align*}2x^2 + x - 3 = 0\end{align*}
- \begin{align*}-x^2 - 7x + 12 = 0\end{align*}
- \begin{align*}-3x^2 + 5x = 2\end{align*}
- \begin{align*}4x^2 = x\end{align*}
- \begin{align*}x^2 + 2x + 6 = 0\end{align*}

Solve the following quadratic equations using the method of your choice.

- \begin{align*}x^2 - x = 6\end{align*}
- \begin{align*}x^2 - 12 = 0\end{align*}
- \begin{align*}-2x^2 + 5x - 3 = 0\end{align*}
- \begin{align*}x^2 + 7x - 18 = 0\end{align*}
- \begin{align*}3x^2 + 6x = - 10\end{align*}
- \begin{align*}-4x^2 + 4000x = 0\end{align*}
- \begin{align*}-3x^2 + 12x + 1 = 0\end{align*}
- \begin{align*}x^2 + 6x + 9 = 0\end{align*}
- \begin{align*}81x^2 + 1 = 0\end{align*}
- \begin{align*}-4x^2 + 4x = 9\end{align*}
- \begin{align*}36x^2 - 21 = 0\end{align*}
- \begin{align*}x^2 - 2x - 3 = 0\end{align*}
- The product of two consecutive integers is 72. Find the two numbers.
- The product of two consecutive odd integers is 1 less than 3 times their sum. Find the integers.
- The length of a rectangle exceeds its width by 3 inches. The area of the rectangle is 70 square inches, find its dimensions.
- Angel wants to cut off a square piece from the corner of a rectangular piece of plywood. The larger piece of wood is \begin{align*}4 \ feet \times 8 \ feet\end{align*} and the cut off part is \begin{align*}\frac{1}{3}\end{align*} of the total area of the plywood sheet. What is the length of the side of the square?
- Mike wants to fence three sides of a rectangular patio that is adjacent the back of his house. The area of the patio is \begin{align*}192 \ ft^2\end{align*} and the length is 4 feet longer than the width. Find how much fencing Mike will need.

### Notes/Highlights Having trouble? Report an issue.

Color | Highlighted Text | Notes | |
---|---|---|---|

Show More |