Skip to main content

Section 2.6 The Quadratic Formula

In SectionΒ 5, we solved certain quadratic equations using the square root property. This worked when the equations were in the right format where it was possible to use a square root radical. Now we learn another method to solve quadratic equations in general: the quadratic formula.
Figure 2.6.1. Alternative Video Lesson

Subsection 2.6.1 Solving Quadratic Equations with the Quadratic Formula

The standard form for a quadratic equation is
\begin{equation*} ax^2+bx+c=0 \end{equation*}
where \(a\) is some nonzero number.
When \(b=0\) and the equation’s form is \(ax^2+c=0\text{,}\) then we can simply use the square root property to solve it as we did with equations like this in SectionΒ 5. But can we solve equations where \(b\neq0\text{?}\) A general method for doing this is to use the quadratic formula.
As we have seen from solving quadratic equations in SectionΒ 5, there can be two solutions to a quadratic equation. Both solutions are represented in the quadratic formula because of the \(\pm\) symbol. We could write the two solutions separately:
\begin{align*} x=\frac{-b-\sqrt{b^2-4ac}}{2a}\amp\amp\text{ or }\amp\amp x=\frac{-b+\sqrt{b^2-4ac}}{2a} \end{align*}
This method for solving quadratic equations will work to solve every quadratic equation. It is most helpful when \(b\ne0\text{.}\)

Example 2.6.3.

Linh is in a physics class that launches a tennis ball from a rooftop that is \(90.2\) feet above the ground. They fire it directly upward at a speed of \(14.4\) feet per second and measure the time it takes for the ball to hit the ground below. We can model the height of the tennis ball, \(h\text{,}\) in feet, with the quadratic equation \(h=-16t^2+14.4t+90.2\text{,}\) where \(x\) represents the time in seconds after the launch. According to the model, when should the ball hit the ground?
The ground has height \(0\) feet, so we should substitute \(0\) in for \(h\text{.}\) This gives us the quadratic equation:
\begin{equation*} 0=-16t^2+14.4t+90.2 \end{equation*}
We cannot solve this equation with the square root property, so we will use the quadratic formula. First we will identify \(\highlight{a=-16}\text{,}\) \(\highlight{b=14.4}\text{,}\) and \(\highlight{c=90.2}\text{,}\) and substitute these into the quadratic formula:
\begin{align*} t\amp=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\\ t\amp=\frac{-(\substitute{14.4})\pm\sqrt{(\substitute{14.4})^2-4(\substitute{-16})(\substitute{90.2})}}{2(\substitute{-16})}\\ t\amp=\frac{-14.4\pm\sqrt{5980.16}}{-32} \end{align*}
These are the exact solutions, but because we have a physical context we want to approximate the solutions with decimals.
\begin{equation*} t\approx-1.966\qquad\text{or}\qquad t\approx2.866 \end{equation*}
We don’t use the negative solution because a negative time does not make sense in this context. The ball will hit the ground approximately \(2.866\) seconds after it is launched.
The quadratic formula can be used to solve any quadratic equation, but it requires that you remembering the formula correctly and that you correctly identify \(a\text{,}\) \(b\text{,}\) and \(c\text{.}\) Also, that you don’t make any arithmetic mistakes when you simplify. We recommend that you always check if you could use the square root property before using the quadratic formula.

Example 2.6.4.

Solve for \(x\) in \(2x^2-9x+5=0\text{.}\)
Explanation.
First, we check and see that we cannot use the square root property (because \(b\neq0\)) so we will use the quadratic formula. We identify \(a=2\text{,}\) \(b=-9\text{,}\) and \(c=5\text{.}\) Substituting these into the quadratic formula:
\begin{align*} x\amp=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\\ x\amp=\frac{-(\substitute{-9})\pm\sqrt{(\substitute{-9})^2-4(\substitute{2})(\substitute{5})}}{2(\substitute{2})}\\ x\amp=\frac{9\pm\sqrt{81-40}}{4}\\ x\amp=\frac{9\pm\sqrt{41}}{4} \end{align*}
This is fully simplified because we cannot simplify \(\sqrt{41}\) or reduce the fraction. The solution set is \(\left\{\frac{9-\sqrt{41}}{4},\frac{9+\sqrt{41}}{4}\right\}\text{.}\) In this exercise, there is no reason to approximate these with decimals.
When a quadratic equation does not start out in standard form we must convert it to standard form before we can clearly identify the values of \(a\text{,}\) \(b\text{,}\) and \(c\text{.}\)

Example 2.6.5.

Solve for \(x\) in \(x^2=-10x-3\text{.}\)
Explanation.
First, we convert the equation into standard form by adding \(10x\) and \(3\) to each side of the equation:
\begin{equation*} x^2+10x+3=0 \end{equation*}
Next, we check that we cannot use the square root property so we will use the quadratic formula. We identify \(a=1\text{,}\) \(b=10\) and \(c=3\text{.}\) Substituting them into the quadratic formula:
\begin{align*} x\amp=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\\ x\amp=\frac{-\substitute{10}\pm\sqrt{(\substitute{10})^2-4(\substitute{1})(\substitute{3})}}{2(\substitute{1})}\\ x\amp=\frac{-10\pm\sqrt{100-12}}{2}\\ x\amp=\frac{-10\pm\sqrt{88}}{2} \end{align*}
We notice that the radical can be simplified:
\begin{align*} x\amp=\frac{-10\pm2\sqrt{22}}{2}\\ x\amp=\frac{-10}{2}\pm\frac{2\sqrt{22}}{2}\\ x\amp=-5\pm\sqrt{22} \end{align*}
The solution set is \(\{-5-\sqrt{22}, -5+\sqrt{22}\}\text{.}\)

Remark 2.6.6.

The irrational solutions to quadratic equations can be checked, but doing this sometimes takes a lot of simplification and is not shown throughout this section. As an example of how much effort goes into a direct check, we will check the solution of \(-5+\sqrt{22}\) from ExampleΒ 5. We need to replace \(x\) with \(-5+\sqrt{22}\) and check that the two sides of the equation are equal. This check is shown here:
\begin{align*} x^2\amp=-10x-3\\ (\substitute{-5+\sqrt{22}})^2\amp\wonder{=}-10(\substitute{-5+\sqrt{22}})-3\\ (-5)^2+2(-5)(\sqrt{22})+(\sqrt{22})^2\amp\wonder{=}-10(-5+\sqrt{22})-3\\ 25-10\sqrt{22}+22 \amp\wonder{=}50-10\sqrt{22}-3\\ 47-10\sqrt{22}\amp\confirm{=}47-10\sqrt{22} \end{align*}
It worked, and it took a lot of effort. As an alternative, we could use a calculator to find \(-5+\sqrt{22}\approx-0.3096\) and see if this decimal approximation appears to be close to working.
\begin{align*} x^2\amp=-10x-3\\ (\substitute{-0.3096})^2\amp\wonder{=}-10(\substitute{-0.3096})-3\\ 0.09585216\amp\wonder{=}0.096 \end{align*}
These are close. So with the help of a calculator, checking like this can give reasonable confidence that the solution we found is valid.
The radicand from the quadratic formula, \(b^2-4ac\text{,}\) is called the discriminant. When it is a negative number, the quadratic equation has no real solution.

Example 2.6.7.

Solve for \(y\) in \(y^2-4y+8=0\text{.}\)
Explanation.
Identify \(a=1\text{,}\) \(b=-4\) and \(c=8\text{.}\) Substitute them into the quadratic formula:
\begin{align*} y\amp=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\\ \amp=\frac{-(\substitute{-4})\pm\sqrt{(\substitute{-4})^2-4(\substitute{1})(\substitute{8})}}{2(\substitute{1})}\\ \amp=\frac{4\pm\sqrt{16-32}}{2}\\ \amp=\frac{4\pm\sqrt{-16}}{2} \end{align*}
The discriminant worked out to be \(-16\text{,}\) which is negative. The square root of a negative number is not a real number, so we will conclude that this equation has no real solutions.

Subsection 2.6.2 Applications

Certain β€œword problems” lead to a quadratic equation where the quadratic formula may be useful.

Example 2.6.8.

A rectangle is \(5\) inches longer than it is wide. The total area of the rectangle is 60 square inches. How wide is the rectangle? (This is asking for the shorter dimension.)
Explanation.
The area of a rectangle is given by multipying its two dimensions. If we let \(w\) stand for the width of the rectangle (the shorter dimension), then \(w+5\) is the length, and the total area is \(w(w+5)\text{.}\) A diagram can help make more clear what needs to be done.
So we must solve the equation \(w(w+5)=60\text{.}\) After multiplying and moving to standard form, we have \(w^2+5w-60=0\text{.}\) Using the quadratic formula:
\begin{align*} w\amp=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\\ \amp=\frac{-5\pm\sqrt{5^2-4(1)(-60)}}{2(1)}\\ \amp=\frac{-5\pm\sqrt{265}}{2}\\ w\amp\approx-10.64\quad\text{or}\quad w\approx5.64 \end{align*}
Only the solution \(w\approx5.64\) makes sense as the width of a rectangle. So the rectangle is about \(5.64\) inches wide.

Checkpoint 2.6.9.

Two numbers have sum \(35\text{,}\) and their product is \(-30\text{.}\) Find these two numbers.
Explanation.
Let \(x\) be one of these numbers. Since the two numbers have sum \(35\text{,}\) it means that the other number must be \(35-x\text{.}\) Since the two numbers have product \(-30\text{,}\) we have the equation
\begin{equation*} \begin{aligned} x(35-x)\amp=-30\\ 35x-x^2\amp=-30 \end{aligned} \end{equation*}
This is a quadratic equation which can be rewritten into standard form by adding \(30\) to each side:
\begin{equation*} \begin{gathered} -x^2+35x+30=0 \end{gathered} \end{equation*}
Then, to solve for \(x\text{,}\) we apply the quadratic formula:
\begin{equation*} \begin{aligned} x\amp=\frac{-35\pm\sqrt{35^2-4(-1)(30)}}{2(-1)}\\ \amp=\frac{-35\pm\sqrt{1225+120}}{-2}\\ \amp=\frac{-35\pm\sqrt{1345}}{-2}\\ \amp=\frac{35\pm\sqrt{1345}}{2} \end{aligned} \end{equation*}
So the two possible solutions for \(x\) are:
\begin{equation*} \begin{gathered} x=\frac{35-\sqrt{1345}}{2}\quad\text{or}\quad x=\frac{35+\sqrt{1345}}{2} \end{gathered} \end{equation*}
Actually these are the two numbers we were looking for. They sum to \(35\) and multiply to \(-30\text{.}\)

Example 2.6.10.

Amita has a food stand where she sells momo (Nepali dumplings). If she charges \(p\) dollars for each momo, she estimates that she’d sell \(80{,}000-20{,}000p\) over the course of a year. (This reflects how raising the price can lead to fewer people making purchases.) What is the largest price that Amita could set to end up with a revenue of \(\$70{,}000\) for the year? (Note that revenue is not the same as profit, and we will not be accounting for Amita’s expenses.)
Explanation.
If Amita sets the price at \(p\) dollars per momo, her total revenue will be \((\text{number sold})\cdot\text{price}\text{,}\) which is \((80000-20000p)p\text{,}\) which simplifies to \(80000p-20000p^2\text{.}\) We have been asked to set that equal to \(70000\text{.}\)
\begin{align*} 80000p-20000p^2 \amp = 70000\\ -20000p^2+80000p-70000 \amp = 0 \end{align*}
So many zeros! We have the option to divide by \(10000\text{.}\)
\begin{align*} -2p^2+8p-7 \amp = 0 \end{align*}
\begin{align*} p\amp=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\\ \amp=\frac{-8\pm\sqrt{8^2-4(-2)(-7)}}{2(-2)}\\ \amp=\frac{-8\pm\sqrt{8}}{-4}\\ p\approx\amp 2.71 \quad\text{or}\quad x\approx1.29 \end{align*}
The possible solutions are about \(2.71\) and \(1.29\text{.}\) They are both valid solutions. Amita can reach the target revenue of \(\$70{,}000\) by setting the price per momo to either \(\$1.29\) or \(\$2.71\text{.}\)

Subsection 2.6.3 Radical Equations

Sometimes a radical equation gives rise to a quadratic equation, and the quadratic formula can then be useful.

Example 2.6.11.

Solve for \(z\) in \(\sqrt{z}+2=z\text{.}\)
Explanation.
We will isolate the radical first, and then square both sides.
\begin{align*} \sqrt{z}+2\amp=z\\ \sqrt{z}\amp=z-2\\ \left(\sqrt{z}\right)^{\highlight{2}}\amp=(z-2)^{\highlight{2}}\\ z\amp=z^2-4z+4\\ 0\amp=z^2-5z+4\\ z\amp=\frac{5\pm\sqrt{(-5)^2-4(1)(4)}}{2}\\ \amp=\frac{5\pm\sqrt{25-16}}{2}\\ \amp=\frac{5\pm\sqrt{9}}{2}\\ \amp=\frac{5\pm3}{2} \end{align*}
\begin{align*} z\amp=\frac{5-3}{2}\amp\text{ or }\amp\amp z\amp=\frac{5+3}{2}\\ z\amp=1\amp\text{ or }\amp\amp z\amp=4 \end{align*}
There was a step in this process where we squared both sides of an equation. Squaring both sides of an equation can cause false equations to become true. For example \(-2=2\) is false, but if you square both sides then \(4=4\) is true. This means that when an equation solving process involves squaring both sides, and we end up with β€œsolutions” like the two \(z\)-values above, they are only potential solutions. Logically we’ve whittled down the list of possible solutions to just these two numbers. But we need to actually check whether or not they actually work.
\begin{align*} \sqrt{\substitute{1}}+2\amp\wonder{=}1\amp\sqrt{\substitute{4}}+2\amp\wonder{=}4\\ 1+2\amp\reject{=}1\amp2+2\amp\confirm{=}4 \end{align*}
It turned out that \(1\) is an extraneous solution, but \(4\) is a valid solution. So the equation has one solution, \(4\text{,}\) and the solution set is \(\{4\}\text{.}\)

Example 2.6.12.

Solve the equation \(\sqrt{2n-6}=1+\sqrt{n-2}\) for \(n\text{.}\)
Explanation.
We cannot isolate two radicals at the same time. One of the radicals is already isolated, so we will simply square both sides and then try to clean up what remains.
\begin{align*} \sqrt{2n-6}\amp=1+\sqrt{n-2}\\ \left(\sqrt{2n-6}\right)^{\highlight{2}}\amp=\left(1+\sqrt{n-2}\right)^{\highlight{2}}\\ 2n-6\amp=1^2+2\sqrt{n-2}+\left(\sqrt{n-2}\right)^2\\ 2n-6\amp=1+2\sqrt{n-2}+n-2\\ 2n-6\amp=2\sqrt{n-2}+n-1\\ n-5\amp=2\sqrt{n-2} \end{align*}
Note here that we can leave the factor of \(2\) next to the radical. We will square the \(2\) also.
\begin{align*} (n-5)^{\highlight{2}}\amp=\left(2\sqrt{n-2}\right)^{\highlight{2}}\\ n^2-10n+25\amp=4(n-2)\\ n^2-10n+25\amp=4n-8\\ n^2-14n+33\amp=0 \end{align*}
\begin{align*} n\amp=\frac{14\pm\sqrt{14^2-4(1)(33)}}{2}\\ \amp=\frac{14\pm\sqrt{196-132}}{2}\\ \amp=\frac{14\pm\sqrt{64}}{2}\\ \amp=\frac{14\pm8}{2} \end{align*}
\begin{align*} n\amp=\frac{14-8}{2}\amp\text{ or }\amp\amp n\amp=\frac{14+8}{2}\\ n\amp=3\amp\text{ or }\amp\amp n\amp=11 \end{align*}
So our two potential solutions are \(3\) and \(11\text{.}\) We should now verify that they truly are solutions.
\begin{align*} \sqrt{2(\substitute{3})-6}\amp\wonder{=}1+\sqrt{\substitute{3}-2}\amp\sqrt{2(\substitute{11})-6}\amp\wonder{=}1+\sqrt{\substitute{11}-2}\\ \sqrt{6-6}\amp\wonder{=}1+\sqrt{1}\amp\sqrt{22-6}\amp\wonder{=}1+\sqrt{9}\\ \sqrt{0}\amp\wonder{=}1+1\amp\sqrt{16}\amp\wonder{=}1+3\\ 0\amp\reject{=}2\amp4\amp\confirm{=}4 \end{align*}
So, \(11\) is the only solution. The solution set is \(\{11\}\text{.}\)

Reading Questions 2.6.4 Reading Questions

2.

Are there any kinds of quadratic equations where the quadratic formula is not the best tool to use?

3.

Given a quadratic equation, will the quadratic formula always lead you to two solutions?

Exercises 2.6.5 Exercises

Review and Warmup

Exercise Group.
Write each fraction in simplified form.
Exercise Group.
Evaluate the given expression for the given values.
5.
\({b^{2}-4ac}\) for \(a=3\text{,}\) \(b=9\text{,}\) and \(c=4\)
6.
\({b^{2}-4ac}\) for \(a=4\text{,}\) \(b=5\text{,}\) and \(c=2\)
7.
\({b^{2}-4ac}\) for \(a=3\text{,}\) \(b=-5\text{,}\) and \(c=5\)
8.
\({b^{2}-4ac}\) for \(a=4\text{,}\) \(b=-9\text{,}\) and \(c=1\)
Exercise Group.
Simplify the radical.

Skills Practice

Exercise Group.
Use the quadratic formula to solve the equation.
21.
\({x^{2}+\left({\frac{15}{2}}\right)x+\left({\frac{25}{2}}\right)}=0\)
22.
\({x^{2}-\left({\frac{54}{7}}\right)x-\left({\frac{16}{7}}\right)}=0\)
27.
\({x^{2}+\left({\frac{11}{18}}\right)x-\left({\frac{4}{3}}\right)}=0\)
28.
\({x^{2}+\left({\frac{43}{28}}\right)x+\left({\frac{9}{28}}\right)}=0\)
39.
\({x^{2}-\left({\frac{1}{2}}\right)x-\left({\frac{1}{3}}\right)}=0\)
40.
\({x^{2}+\left({\frac{3}{2}}\right)x-\left({\frac{1}{2}}\right)}=0\)
41.
\({\left({\frac{1}{2}}\right)x^{2}+\left({\frac{1}{2}}\right)x-\left({\frac{3}{2}}\right)}=0\)
42.
\({\left({\frac{1}{2}}\right)x^{2}-\left({\frac{4}{3}}\right)x+\left({\frac{1}{2}}\right)}=0\)
67.
\({x^{2}-\left({\frac{3}{2}}\right)x}={\left({\frac{9}{2}}\right)}\)
68.
\({x^{2}+\left({\frac{57}{7}}\right)x}={-\left({\frac{8}{7}}\right)}\)
69.
\({x^{2}+\left({\frac{4}{15}}\right)}={\left({\frac{23}{15}}\right)x}\)
70.
\({x^{2}-\left({\frac{39}{28}}\right)x}={-\left({\frac{2}{7}}\right)}\)
75.
\({x^{2}}={-\left({\frac{41}{4}}\right)x-\left({\frac{45}{4}}\right)}\)
76.
\({x^{2}}={-\left({\frac{4}{3}}\right)x-\left({\frac{1}{3}}\right)}\)
77.
\({x^{2}}={\left({\frac{5}{6}}\right)x+\left({\frac{1}{6}}\right)}\)
78.
\({x^{2}}={-\left({\frac{11}{20}}\right)x+\left({\frac{1}{5}}\right)}\)
Radical Equations That Give Rise to Quadratic Equations.
Solve the equation.

Applications

99.
While standing on a rooftop that is 12 m high off the ground, you throw a tennis ball off the roof in an arc. Because of the speed that you throw the ball, its height from the ground, in meters, \(t\) seconds after the throw is \({-4.9t^{2}+26t+14}\text{.}\) How long will it be until the ball hits the ground?
100.
While standing on a tree branch that is 16 ft high off the ground, a squirrel kicks a nut in an arc. The nut falls cleanly to the ground without hitting anything on the way down. While the nut is in the air, its height from the ground, in feet, \(t\) seconds after the kick is \({-16t^{2}+3t+16}\text{.}\) How long will it be until the nut hits the ground?
101.
An astronaut on the moon makes a running jump off a cliff onto a broad flat plain. The clifftop is 2 m higher than the plain. Because of the slight upward jump, the astronaut’s height from the plain, in meters, \(t\) seconds after the jump is \({-0.81t^{2}+1.2t+4}\text{.}\) How long will it be until the astronaut lands in the plain?
102.
An robot on Mars makes a running jump off a cliff onto a broad flat plain. The clifftop is 12 m higher than the plain. Because of the slight upward jump, the robot’s height from the plain, in meters, \(t\) seconds after the jump is \({-1.85t^{2}+3.9t+14}\text{.}\) How long will it be until the robot lands in the plain?
103.
One rectangular wall in your classroom is \({14.75\ {\rm ft}}\) longer than it is tall. The total area of the wall is \({222\ {\rm ft^{2}}}\text{.}\) How tall is the wall?
104.
The rectangular floor of your classroom is \({10.25\ {\rm m}}\) longer than it is wide. The total floor area is \({195\ {\rm m^{2}}}\text{.}\) How wide is the floor? (This is asking for the shorter dimension.)
105.
A metals factory will produce steel picture frames in the form of a rectagle with a smaller rectangle cut out, as in the diagram. The widths of the four edges is to be consistent, and leave a \({72\ {\rm cm}}\) by \({45\ {\rm cm}}\) visible area for photos and other images. There is a standard thickness for the metal from which these frames will be cut, and the manufacturer has a target weight in mind for the final product so that shipping costs will be kept low. This leads to the decision that the surface area of the frame needs to be \({1408\ {\rm cm^{2}}}\text{.}\) How wide should the four edges be? (What is the value of \(x\) in the diagram?)
106.
A vegetable garden will be surrounded by a frame of grass sod. The garden itself will be \({16\ {\rm ft}}\) by \({14\ {\rm ft}}\text{.}\) The widths of the four edges of the frame will be equal to each other. There is only \({191\ {\rm ft^{2}}}\) of grass sod available, and it will all be used for this frame. How wide should the four edges be? (What is the value of \(x\) in the diagram?)
107.
You are ready to self-publish a book online. If the book were free, you estimate \(50000\) would order a copy. If you increase the price to \(p\) dollars per book you will have fewer orders, and after studying similar book sales you estimate you would have \({50000-1000p}\) sales. What is the largest price that you could set to end up with a revenue of \({\$60{,}000}\text{?}\)
108.
A new electric car company is ready to sell its debut model. Studying the current state of the electric car market, they estimate that if they charge each customer \(p\) dollars, they will have \({1000000-4p}\) sales. What is the lowest price that they could use so that they end up with a revenue of \({\$2}\) billion?
109.
If you add \({{\frac{29}{6}}}\) to a certain positive number, then also subtract \(1\) from that same number, and multiply the results, you get \({-{\frac{11}{6}}}\text{.}\) What was the original number?
110.
If you double a certain positive number, then also add \({{\frac{15}{2}}}\) to that same number, and multiply the results, you get \({8}\text{.}\) What was the original number?

Challenge

111.
Solve for \(x\) in the equation \(mx^{2}+nx+p=0\text{,}\) assuming \(m\neq0\text{.}\)