In a simple equation like 2x+6=16, we solve for x by undoing each operation until x is alone on one side, but in a quadratic equation like
x2+6x=16
we have both x2 and x, so we need a way to handle the two terms together to isolate x.
Why Quadratics Are Hard to Solve
2x+6x2+6x=16=16xx=?=?
1
Solving by Factoring
To solve
x2+6x=16
we first move every term to one side so the equation equals 0, and then split the quadratic into two simple factors multiplied together.
Solving by Factoring
Text solution
Move everything to one side so the equation equals zeroSubtract 16 from both sides so the right side is 0.
x2+6x−16=0
Factor the quadratic into two parenthesesFind the two numbers that multiply to −16 and add to +6, which are +8 and −2.
(x+8)(x−2)=0
Set each factor equal to zeroTwo expressions multiply to zero whenever either one is zero.
x+8x−2=0⟹x=−8=0⟹x=2
So the solutions are x=−8 and x=2, which are the two x-intercepts where the parabola y=x2+6x−16 crosses the horizontal axis y=0.
Now with a number in front of x2:
2x2+7x+3=0
Split the middle term 7x using the box. Because the two corners multiply to 2x2⋅3=6x2, the other two boxes must also multiply to 6x2 while adding to 7x, which splits 7x into 6x and 1x.
Factor out the common term from each row and column. Reading the common factors along the outside edges of the box gives the two factors.
(2x+1)(x+3)=0
Set each factor equal to zero. Solving each equation gives both solutions.
2x+1⟹xx+3=0⟹2x=−1=−21=0⟹x=−3
2
Completing the Square
If we change the 16 in our first equation to 10 and try to solve
x2+6x−10=0
no two integers multiply to −10 and add to 6, so we cannot factor it with integers. Instead of splitting the quadratic into two factors, we rewrite the x2 and 6x terms inside a single squared expression so x only appears once.
Completing the Square
Text solution
Move the number term to the other sideAdd 10 to both sides so only x2 and 6x remain on the left.
x2+6x=10
Cut the middle number in half and square it to fill the cornerSplitting 6x into two equal 3x strips along two sides of the x2 square leaves a 3-by-3 corner gap, so we add 32=9 to both sides to keep the equation balanced.
x2+6x+9=10+9
Write the left side as a single squared expressionThe completed square has side length x+3.
(x+3)2=19
Undo the square with a square rootBecause both positive and negative numbers square to 19, we include ± before subtracting 3.
x+3x=±19=−3±19
So the exact solutions are x=−3+19 (which is between 1 and 2) and x=−3−19.
For positive x and b, splitting the bx rectangle into two equal 2bx strips leaves the square corner gap shown in the picture. For any real x and b, expanding the square confirms the same algebraic identity:
x2+bx+(2b)2=(x+2b)2
Splitting the rectangle into two equal strips along two sides of the square always leaves a square corner gap whose side matches the strip width.
3
Three Details When Completing the Square
Next, we need to handle three situations that come up when completing the square: a negative middle term, a number in front of x2, and an odd middle number:
x2−10x=11,2x2+16x−18=0,x2+5x−3=0
Three Details When Completing the Square
x2−10x2x2+16x−18x2+5x−3=11=0=0xxx=?=?=?
Text solution
A negative middle term (x2−10x=11)Half of −10 is −5, so the expression inside the square is x−5, while the number you add to both sides is (−5)2=+25, which is still positive.
x2−10x+25(x−5)2x−5x⟹x=11+25=36=±6=5±6=11 or x=−1
A number in front of x2(2x2+16x−18=0)Divide every term by 2 right at the start so you begin with a single x2, then complete the square with 42=16.
x2+8x−9x2+8xx2+8x+16(x+4)2x+4⟹x=0=9=9+16=25=±5=1 or x=−9
An odd middle number (x2+5x−3=0)Leave half of 5 as the fraction 25 rather than a decimal, and add its square (25)2=425 to both sides.
x2+5xx2+5x+425=3=3+425
Rewrite 3 as 412 so the right side combines over the denominator 4, then take the square root of top and bottom.
(x+25)2x+25x=437=±237=2−5±37
4
Where the Quadratic Formula Comes From
To solve any quadratic equation in standard form,
ax2+bx+c=0,a=0
without drawing the box from scratch each time, we can complete the square once using the letters a,b, and c.
Where the Quadratic Formula Comes From
ax2+bx+cx=0,a=0=?
Dividing ax2+bx+c=0 by a and completing the square with half of ab, which is 2ab, turns the equation into
(x+2ab)2=4a2b2−4ac
When b2−4ac≥0, we can take square roots, using 4a2=2∣a∣. Because ± includes both signs, using 2a in the denominator gives the same solutions. Subtracting 2ab gives the Quadratic Formula:
x=2a−b±b2−4ac
Splitting this fraction into two parts shows what each piece means on the graph of the parabola:
x=The Center−2ab±The Step Size2∣a∣b2−4ac
As long as the parabola has real x-intercepts, moving it left or right only changes its center line x=−2ab, while moving it up or down only changes the distance 2∣a∣b2−4ac from that center line to each x-intercept.
Shifting the parabola sideways only moves its center, while shifting it up or down only changes the equal step size from that center to each x-intercept.
5
Using the Quadratic Formula
Now we can use the formula to solve equations where a does not divide evenly into the other terms, both when the number under the root is a perfect square and when it needs to be simplified:
2x2+5x−3=0and2x2−8x+5=0
Using the Quadratic Formula
x=2a−b±b2−4ac
2x2+5x−32x2−8x+5=0=0xx=?=?
Text solution
Plug a=2,b=5, and c=−3 into the formulaKeep the negative sign with c=−3.
x=2(2)−5±52−4(2)(−3)
Work out the inside of the square root firstMultiplying −4(2)(−3) has two negatives, so it becomes +24.
x=4−5±25+24=4−5±49=4−5±7
Calculate the plus and minus cases
xx=4−5+7=42=21=4−5−7=4−12=−3
Now when the number under the square root is not a perfect square, in 2x2−8x+5=0:
Plug in a=2,b=−8, and c=5Because b=−8 is already negative, −b becomes +8, and (−8)2 is positive 64.
x=2(2)−(−8)±(−8)2−4(2)(5)=48±64−40=48±24
Factor any perfect square out of the rootBecause 24=4×6, the 4 comes out of the square root as 2.
x=48±4×6=48±26
Divide all three outside numbers by their common factorBecause the denominator 4 divides the entire top, divide 8,2, and 4 by 2 while leaving the 6 under the root alone.
x=24±6(or x=2±26)
6
When There Are No Real Solutions
What happens if we solve a quadratic equation like
x2−4x+13=0
and end up with a square equal to a negative number, or a negative number inside the square root?
When There Are No Real Solutions
x2−4x+13x=0=?
Text solution
Complete the square (or check b2−4ac under the root)Moving 13 to the right and adding (−2)2=4 to both sides leaves a square equal to −9:
x2−4xx2−4x+4(x−2)2=−13=−13+4=−9
Plugging into the Quadratic Formula gives a negative number under the root as well:
b2−4ac=(−4)2−4(1)(13)=16−52=−36
See what this meansBecause any real number squared is zero or positive, no real number squared can equal −9 (and −36 is not a real number). In vertex form, the parabola is y=(x−2)2+9, which has its vertex at (2,9) and opens upward, so there are no real solutions because the graph never touches the horizontal axis y=0.
As you shift an upward-opening parabola up across the x-axis, its two x-intercepts move closer together, merge into one point on the axis, and then disappear. In the algebra, this happens right as the number on the right side of (x−h)2=… and b2−4ac under the square root go from positive, to zero, to negative.
Drag the parabola up and down to see that the number on the right side of the equation and the number inside the root turn negative right when the graph stops touching the x-axis.
7
Real-World Quadratic Problems
When you throw a ball straight up at 32 feet per second from the roof of a 48-foot building, its height h, in feet, after t seconds is
h=−16t2+32t+48
and we want to find how many seconds it takes for the ball to hit the ground.
Real-World Quadratic Problems
Text solution
Set the height equal to zeroHitting the ground means height h=0.
−16t2+32t+48=0
Divide every term by the common factor −16Dividing by −16 makes all three numbers small before we factor.
t2−2t−3=0
Factor and solve for tThe numbers −3 and +1 multiply to −3 and add to −2.
(t−3)(t+1)⟹t=0=3 or t=−1
Keep only the solution that makes sense in the real worldBecause the ball was thrown from the roof at t=0, the intercept t=−1 comes from extending the parabola backward in time before the throw, so we cross out t=−1 and get t=3 seconds.
8
Picking the Fastest Method
When you need to solve a quadratic equation, looking at the terms in the equation first tells you which method takes the least work.
Picking the Fastest Method
x2−162(x−3)2x2+8x−32x2−8x+5=0=20=0=0
fastest method=?
Key concepts
Before doing a lot of algebra, check whether x is already in one place, with no separate bx term, as in x2−16=0 or 2(x−3)2=20. When it is, do not multiply the square out and do not use the Quadratic Formula. Just get the squared part by itself, (x−3)2=10, and take ± the square root of both sides to get x=3±10.
When both x2 and x appear in the equation, move everything to one side so it equals 0 and divide out any common factor shared by all three terms (turning −16t2+32t+48=0 into t2−2t−3=0). From there:
Factor
if you can spot the two numbers that split the middle term within a few seconds, rewriting x2+6x−16=0 as (x+8)(x−2)=0 to get x=−8 and x=2.
Complete the square
if you do not see the factors right away and the number in front of x2 is 1 (especially when the middle number is even), as in x2+8x−3=0: move −3 over, add half the middle number squared, (28)2=16, to both sides to get (x+4)2=19, and take ± the square root to get x=−4±19.
Use the Quadratic Formula
on ax2+bx+c=0 whenever the number in front of x2 does not divide evenly into the other terms, as in 2x2−8x+5=0:
If a squared expression equals a negative number, or if b2−4ac inside the square root is negative (as in x2−4x+13=0, where (x−2)2=−9), the parabola never meets y=0 and there is no real solution.
9
Practice
1
Solve 2(x−5)2=50.
x is already in a single spot inside the square. What operation should you undo before taking the square root?
(x−5)2x−5=25=±5(forgetting −5 when takingthe square root misses onesolution and gives only x=10)x=5+5orx=5−5
x=10 or x=0
2
Solve x2+4x=21.
Just taking the numbers in parentheses without setting each factor to 0 gives the wrong signs, x=7 or x=−3.
Can you factor while 21 is on the right side, or what number do you need on the right side first? The solution film reaches the same answer by completing the square.
x2+4x−21(x+7)(x−3)=0=0(just taking the numbers inparentheses without settingeach factor to 0 gives thewrong signs, x=7 or x=−3)x+7=0orx−3=0
x=−7 or x=3
3
Solve 3x2+10x−8=0.
Dropping the front 3 to write (x+12)(x−2)=0 gives x=−12 or x=2.
In the 2-by-2 box, the corners multiply to 3x2⋅(−8)=−24x2. What two numbers multiply to −24 and add to +10?
3x2+12x−2x−8=0(picking +6x and +4xmultiplies to +24x2 insteadof −24x2; dropping the front3 to write (x+12)(x−2)=0gives x=−12 or x=2)(3x−2)(x+4)3x−2=0=0orx+4=0
x=32 or x=−4
4
Solve 2x2−16x−10=0.
Forgetting to add 16 to the right side leaves (x−4)2=5 and gives x=4±5.
Look at all three numbers in front of the terms before picking a method: what number divides evenly into every term?
x2−8x−5x2−8xx2−8x+16=0=5=5+16(forgetting to add 16 to theright side leaves (x−4)2=5and gives x=4±5)(x−4)2x−4=21=±21
x=4±21
5
Complete the square to rewrite x2+7x−3=0 in the form (x+p)2=q, then solve for x.
Leave half of 7 as a fraction, and square both its top and bottom to find the number to add to both sides.
x2+7xx2+7x+449=3=412+449(adding 3 directly to 49without rewriting 3=412gives 452=13 andx=−27±13)(x+27)2x+27=461=±261
(x+27)2=461;x=2−7±61
6
Solve 2x2−4x−3=0.
Crossing out only the 4s without dividing 210 by 4 gives 1±210.
Since 2 does not divide evenly into −3, plug a=2,b=−4, and c=−3 into the Quadratic Formula and watch the negative signs on −b and −4ac. The solution film reaches the same answer by dividing by 2 and completing the square.
xx=2(2)−(−4)±(−4)2−4(2)(−3)=44±16+24(subtracting 24 instead ofadding gives −8 and afalse "no real solution")x=44±40=44±210(crossing out only the 4swithout dividing 210 by 4gives 1±210)
x=22±10 (or x=1±210)
7
Solve x2−6x+14=0.
Check the sign on the right side after completing the square, or check the sign of b2−4ac inside the square root.
x2−6xx2−6x+9(x−3)2=−14=−14+9=−5(dropping the negative signon −5 gives x=3±5;in the formula,b2−4ac=(−6)2−4(1)(14)=−20<0)
No real solution
8
You throw a ball straight up from the roof of an 80-foot building at 64 feet per second, so its height h, in feet, after t seconds is h=−16t2+64t+80. How many seconds does it take for the ball to hit the ground?
Keeping t=−1 ignores that time after the throw cannot be negative.
What is the height h when the ball hits the ground, and what number divides evenly into −16,64, and 80?
−16t2+64t+80t2−4t−5=0=0(dividing by −16 withoutflipping the signs givest2+4t+5=0)(t−5)(t+1)t=0=5 or t=−1(keeping t=−1 ignores thattime after the throw cannotbe negative)
5 seconds (t=−1 is crossed out because time after the throw cannot be negative)