Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

8.4: The Quadratic Formula

( \newcommand{\kernel}{\mathrm{null}\,}\)

We first start with the definition of a quadratic equation.

Quadratic equation

A second degree polynomial equation of the form ax2+bx+c=0where a, b, and c are any real numbers, is called a quadratic equation in x.

The goal of this section is to develop a formulaic shortcut that will provide exact solutions of the quadratic equation ax2 +bx+c = 0. We start by moving the constant term to the other side of the equation.

ax2+bx+c=0 Quadratic equation. ax2+bx=c Subtract c from both sides. 

In preparation for completing the square, we next divide both sides of the equation by a.

x2+bax=ca Divide both sides by a

Now we complete the square. Take one-half of the coefficient of x, then square the result.

12ba=b2a when squared gives (b2a)2=b24a2

We now add b24a2 to both sides of the equation.

x2+bax+b24a2=ca+b24a2 Add b2/(4a2) to both sides. 

On the left, we factor the perfect square trinomial. On the right, we make equivalent fractions with a common denominator.

(x+b2a)2=ca4a4a+b24a2 On the left, factor. On the right,  create equivalent fractions with (x+b2a)2=4ac4a2+b24a2 Multiply numerators and denominators. (x+b2a)2=b24ac4a2 Add fractions. 

When we take the square root, there are two answers.

x+b2a=±b24ac4a2 Two square roots. 

When you take the square root of a fraction, you take the square root of both the numerator and denominator.

x+b2a=±b24ac4a2x+b2a=±b24ac2a Simplify: 4a2=2ax=b2a±b24ac2a Subtract b/(2a) from both sides 

Because both fractions have the same denominator, we can add and subtract numerators and put the answer over the common denominator.

x=b±b24ac2a

The quadratic formula

The equation ax2+bx+c=0 is called a quadratic equation. Its solutions are given byx=b±b24ac2acalled the quadratic formula.

Whew! Fortunately, the result is a lot easier to apply than it is to develop! Let’s try some examples.

Example 8.4.1

Solve for x:x24x5=0

Solution

The integer pair 1,5 has product ac=5 and sum b=4. Hence, this trinomial factors.

x24x5=0(x+1)(x5)=0

Now we can use the zero product property to write:

x+1=0 or x5=0x=1x=5

Thus, the solutions are x=1 and x=5. Now, let’s give the quadratic formula a try. First, we must compare our equation with the quadratic equation, then determine the values of a, b, and c.

ax2+bx+c=0x24x5=0

Comparing equations, we see that a=1, b=4, and c=5. We will now plug these numbers into the quadratic formula. First, replace each occurrence of a, b, and c in the quadratic formula with open parentheses.

x=b±b24ac2a The quadratic formula. x=()±()24()()2() Replace a,b, and c with open parentheses. 

Now we can substitute: 1 for a, 4 for b, and 5 forc.

x=(4)±(4)24(1)(5)2(1) Substitute: 1 for a,4 for bx=4±16+202 Simplify. Exponent first, then x=4±362 Add: 16+20=36x=4±62 Simplify: 36=6

Note that because of the “plus or minus” symbol, we have two answers.

x=462orx=4+62x=22x=102x=1x=5

Note that these answers match the answers found using the ac-test to factor the trinomial.

Exercise 8.4.1

Solve for x:x28x+12=0

Answer

2, 6

Example 8.4.2

Solve for x:x2=5x+7

Solution

The equation is nonlinear, make one side zero.

x2=5x+7 Original equation. x25x7=0 Nonlinear. Make one side zero. 

Compare x25x7=0 with ax2+bx+c=0 and note that a=1, b=5, and c=7. Replace each occurrence of a, b, and c with open parentheses to prepare the quadratic formula for substitution.

x=b±b24ac2a The quadratic formula. x=()±()24()()2() Replace a,b, and c with 

Substitute 1 for a, 5 for b, and 7 for c.

x=(5)±(5)24(1)(7)2(1) Substitute: a=1,b=5,c=7x=5±25+282 Exponents and multiplication first. x=5±532 Simplify. 

Check: Use the calculator to check each solution (see Figure 8.4.1). Note that in storing (553)/2 in X, we must surround the numerator in parentheses.

fig 8.4.1.png

Figure 8.4.1: Check (553)/2 and (5+53)/2.

In each image in Figure 8.4.1, after storing the solution in X, note that the left and right-hand sides of the original equation x2=5x+7 produce the same number, verifying that our solutions are correct.

Exercise 8.4.2

Solve for x:x2+7x=10

Answer

(7+89)/2,(789)/2

In addition to placing all square roots into simple radical form, sometimes you need to reduce your answer to lowest terms.

Example 8.4.3

Solve for x:7x210x+1=0

Solution

Compare 7x210x+1=0 with ax2+bx+c=0 and note that a=7, b=10, and c=1. Replace each occurrence of a, b, and c with open parentheses to prepare the quadratic formula for substitution.

x=b±b24ac2a The quadratic formula. x=()±()24()()2() Replace a,b, and c with open parentheses.

Substitute 7 for a, 10 for b, and 1 for c.

x=(10)±(10)24(7)(1)2(7) Substitute: 7 for ax=10±1002814 Exponent, then multiplication. x=10±7214 Simplify. 

In this case, note that we can factor out a perfect square, namely 36.

x=10±3621472=362x=10±6214 Simplify: 36=6

Finally, notice that both numerator and denominator are divisible by 2.

x=10±622142 Divide numerator and denominator by 2.x=102±622142 Distribute the 2.x=5±327 Simplify. 

Alternate simplification: Rather than dividing numerator and denominator by 2, some prefer to factor and cancel, as follows.

x=10±6214 Original answer. x=2(5±32)2(7) Factor out a 2x=2(5±32)2(7) Cancel. x=5±327 Simplify. 

Note that we get the same answer using this technique.

Exercise 8.4.3

Solve for x:3x2+8x+2=0

Answer

(4+10)/3,(410)/3

Example 8.4.4

An object is launched vertically and its height y (in feet) above ground level is given by the equation y=320+192t16t2, wheret is the time (in seconds) that has passed since its launch. How much time must pass after the launch before the object returns to ground level? After placing the answer in simple form and reducing, use your calculator to round the answer to the nearest tenth of a second.

Solution

When the object returns to ground level, its height y above ground level is y=0 feet. To find the time when this occurs, substitute y=0 in the formula y=320+192t16t2 and solve for t.

y=320+192t16t2 Original equation. 0=320+192t16t2 Set y=0

Each of the coefficients is divisible by 16.

0=t212t20 Divide both sides by 16

Compare t212t20=0 with at2+bt+c=0 and note that a=1, b=12, and c=20. Replace each occurrence of a, b, and c with open parentheses to prepare the quadratic formula for substitution. Note that we are solving for t this time, not x.

x=b±b24ac2a The quadratic formula. x=()±()24()()2() Replace a,b, and c with open parentheses. 

Substitute 1 for a, 12 for b, and 20 for c.

t=(12)±(12)24(1)(20)2(1) Substitute: 1 for at=12±144+802 Exponent, then multiplication. t=12±2242 Simplify. 

The answer is not in simple form, as we can factor out 16.

t=12±16142224=1614t=12±4142 Simplify: 16=4

Use the distributive property to divide both terms in the numerator by 2.

t=122±4142 Divide both terms by 2t=6±214 Simplify 

Thus, we have two solutions, t=6214 and t=6+214. Use your calculator to find decimal approximations, then round to the nearest tenth.

fig 8.4.2.png

Figure 8.4.2: Using calculator to find decimal approximations

t1.5,13.5

The negative time is irrelevant, so to the nearest tenth of a second, it takes the object approximately 13.5 seconds to return to ground level.

Exercise 8.4.4

An object is launched vertically and its height y (in feet) above ground level is given by the equation y=160+96t16t2, where t is the time (in seconds) that has passed since its launch. How much time must pass after the launch before the object returns to ground level?

Answer

3+197.4 seconds

Example 8.4.5

Arnie gets on his bike at noon and begins to ride due north at a constant rate of 12 miles per hour. At 1:00 PM, Barbara gets on her bike at the same starting point and begins to ride due east at a constant rate of 8 miles per hour. At what time of the day will they be 50 miles apart (as the crow flies)? Don’t worry about simple form, just report the time of day, correct to the nearest minute.

Solution

At the moment they are 50 miles apart, let t represent the time that Arnie has been riding since noon. Because Barbara started at 1:00 PM, she has been riding for one hour less than Arnie. So, let t1 represent the numbers of hours that Barbara has been riding at the moment they are 50 miles apart.

Now, if Arnie has been riding at a constant rate of 12 miles per hour for t hours, then he has traveled a distance of 12t miles. Because Barbara has been riding at a constant rate of 8 miles per hour for t1 hours, she has traveled a distance of 8(t1) miles.

fig 8.4.3.png

Figure 8.4.3: 50 miles apart.

The distance and direction traveled by Arnie and Barbara are marked in Figure 8.4.3. Note that we have a right triangle, so the sides of the triangle must satisfy the Pythagorean Theorem. That is,

(12t)2+[8(t1)]2=502 Use the Pythagorean Theorem. 

Distribute the 8.

(12t)2+(8t8)2=502 Distribute the 8

Square each term. Use (ab)2=a22ab+b2 to expand (8t8)2.

144t2+64t2128t+64=2500 Square each term. 208t2128t+64=2500 Simplify: 144t2+64t2=208t2

The resulting equation is nonlinear. Make one side equal to zero.

208t2128t2436=0 Subtract 2500 from both sides. 52t232t609=0 Divide both sides by 4.

Compare 52t232t609=0 with at2+bt+c=0 and note that a=52, b=32, and c=609. Replace each occurrence of a, b, and c with open parentheses to prepare the quadratic formula for substitution. Note that we are solving for t this time, not x.

x=b±b24ac2a The quadratic formula. x=()±()24()()2() Replace a,b, and c with 

Substitute 52 for a, 32 for b, and 609 for c.

t=(32)±(32)24(52)(609)2(52) Substitute: 52 for at=32±1024+126672104Exponent, then multiplication.t=32±127696104 Simplify. 
Now, as the request is for an approximate time, we won’t bother with simple form and reduction, but proceed immediately to the calculator to approximate this last result (see Figure 8.4.4). Thus, Arnie has been riding for approximately 3.743709336 hours. To change the fractional part 0.743709336 hours to minutes, multiply by 60min/hr.

fig 8.4.4.png

Figure 8.4.4: Approximate time that Arnie has been riding.

0.743709336hr=0.743709336hr×60minhr=44.62256016min

Rounding to the nearest minute, Arnie has been riding for approximately 3 hours and 45 minutes. Because Arnie started riding at noon, the time at which he and Barbara are 50 miles apart is approximately 3:45 PM.

Exercise 8.4.5

At 6:00 AM, a freight train passes through Sagebrush Junction heading west at 40 miles per hour. At 8:00 AM, a passenger train passes through the junction heading south at 60 miles per hour. At what time of the day, correct to the nearest minute, will the two trains be 180 miles apart?

Answer

9:42 AM


This page titled 8.4: The Quadratic Formula is shared under a CC BY-NC-ND 3.0 license and was authored, remixed, and/or curated by David Arnold via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?