We need a way to solve quadratic equations where x2 and x are separated in two different places, even when factoring with integers doesn't work.
1
Completing the Geometric Square
Compare these two equations:
(x+3)2=16vs.x2+6x=7
When x only shows up once inside a single squared group like (x+3)2=16, we can solve for x right away by taking the square root of both sides. In x2+6x=7, we can't get x by itself directly because x2 and 6x aren't like terms, so our goal is to add a number to both sides that makes the left side a single square.
Completing the Geometric Square
(x+3)2x2+6xx=16=7=?
Text solution
Split the middle term and add the missing cornerHalf of 6 is 3, so we add the missing 32=9 corner to both sides to keep the equation balanced.
x2+6x+9=7+9
Write as a single squareThe left side is now a complete (x+3) by (x+3) square where x appears in only one place.
(x+3)2=16
Take the square root and solve for xUndo the square using both the positive and negative square roots of 16, then subtract 3.
x+3x=4=1ororx+3x=−4=−7
So the solutions to x2+6x=7 are x=1 and x=−7.
For positive x and b, splitting the bx rectangle into two equal strips of width 2b along the right and bottom of the x2 square leaves a missing corner of side 2b and area (2b)2. The algebraic identity below works for every real x and b.
Splitting the middle term into two equal strips always leaves a square corner whose area is half the middle number, squared.
x2+bx+missing corner(2b)2=(x+2b)2
2
Completing the Square Algebraically
Now let's solve an equation that cannot be factored with whole numbers, using the same pattern without drawing the square:
x2+10x=3
Completing the Square Algebraically
x2+10xx=3=?
Text solution
Take half of the middle number to find the square and the cornerHalf of 10 is 5, which tells us the left side will become (x+5)2 once we add 52=25 to both sides.
x2+10x+25=3+25
Write as a single squareRewrite the left side as (x+5)2 and add the numbers on the right side.
(x+5)2=28
Take the square root and solve for xTake ±28 on the right and subtract 5 from both sides.
x+5x=±28=−5±28
This gives both exact solutions, −5+28 and −5−28 (which you might also see written as −5±27).
3
Moving the Constant and Negative Middle Terms
Next, let's solve an equation that starts with a constant term in the way on the left side and a negative middle term:
x2−8x+5=0
Moving the Constant and Negative Middle Terms
x2−8x+5x=0=?
Text solution
Move the constant out of the waySubtract 5 from both sides first to leave room for the corner piece we actually want.
x2−8x=−5
Take half of the negative middle number and square itHalf of −8 is −4, so the squared group keeps the minus sign as (x−4)2, while the corner piece added to both sides is (−4)2=+16.
x2−8x+16(x−4)2=−5+16=11
Take the square root and add 4Undo the square with ±11, then add 4 to both sides.
x−4x=±11=4±11
So the solutions are x=4+11 and x=4−11.
4
Odd Middle Terms and Fractions
Now let's see what happens when the middle number is odd, so cutting it in half gives a fraction:
x2+5x=2
Odd Middle Terms and Fractions
x2+5xx=2=?
Text solution
Keep half the middle number as a fraction and square itHalf of 5 is 25, so the left side will become (x+25)2, and we add (25)2=425 to both sides.
x2+5x+425=2+425
Get a common denominator on the rightRewrite 2 as 48 and add the fractions on the right while writing the square on the left.
(x+25)2(x+25)2=48+425=433
Take the square root of top and bottom, then subtract 25Because 4=2, both fractions already have a denominator of 2 and combine right away.
x+25x=±233=2−5±33
So the two solutions are x=2−5+33 and x=2−5−33.
5
When x2 Has a Coefficient
To use our pattern directly, we need a coefficient of 1 on x2. When solving an equation with a different coefficient, divide every term by that coefficient before splitting the middle term.
2x2+12x−14=0and2x2+5x−3=0
When x² Has a Coefficient
2x2+12x−14x=0=?
Text solution
Divide every term by 2 and move the constantDivide every term in 2x2+5x−3=0 by 2 to get 1x2, then add 23 to both sides.
x2+25x−23x2+25x=0=23
Double the denominator to take half of the middle fractionHalf of 25 is 45, which gives the square (x+45)2 and the corner piece (45)2=1625.
x2+25x+1625=23+1625
Get a common denominator on the rightMultiply the top and bottom of 23 by 8 to get 1624, then add.
(x+45)2(x+45)2=1624+1625=1649
Take the square root and work out both casesBoth 49 and 16 are perfect squares, leaving no square root behind, so work out the plus and minus cases separately.
x+45xxorx=±47=−45±47=4−5+7=21=4−5−7=−3
So the solutions are x=21 and x=−3.
6
Rewriting a Parabola in Vertex Form
When graphing a parabola like y=x2+6x+11, we want to know its vertex, the turning point of the curve. Completing the square rewrites the equation in Vertex Form, which shows the coordinates of the vertex directly while keeping y by itself on the left:
y=x2+6x+11
Rewriting a Parabola in Vertex Form
yvertex=x2+6x+11=(?,?)
Text solution
Group the x terms and move the constant asideLeave y alone on the left and make room inside the parentheses to complete the square on x2+6x.
y=(x2+6x)+11
Add and subtract the corner on the same sideHalf of 6 is 3 and 32=9, so add 9 inside the parentheses and subtract 9 right outside so the total value of the right side doesn't change.
y=(x2+6x+9)+11−9
Write the square and combine the constantsRewrite the parentheses as (x+3)2 and simplify 11−9.
y=(x+3)2+2
In Vertex Form y=(x+3)2+2, we can read the vertex right from the equation at (−3,2).
Wherever the parabola sits on the grid, adding and subtracting (2b)2 on the same side leaves the curve unchanged while turning standard form y=x2+bx+c into vertex form y=(x−h)2+k, where (h,k) is the vertex.
Adding and subtracting the number that completes the square adds zero, so all three equations describe the same parabola, and the last one shows its vertex.
7
Vertex Form When x2 Has a Coefficient
Now let's find Vertex Form when there is a number in front of x2, where dividing the whole equation would mean y is no longer by itself on the left:
y=−2x2+12x−11
Vertex Form When x² Has a Coefficient
yvertex=−2x2+12x−11=(?,?)
Text solution
Factor the front coefficient out of the x terms onlyFactor −2 out of −2x2+12x (which flips +12x to −6x inside the parentheses) and leave −11 outside.
y=−2(x2−6x)−11
Add the corner inside and balance its multiplied value outsidePutting (−3)2=+9 inside the parentheses gets multiplied by the −2 in front, which changes the right side by −2×9=−18, so we add +18 outside to cancel it out.
y=−2(x2−6x+9)−11+18
Write in Vertex FormRewrite the parentheses as (x−3)2 with −2 in front and combine −11+18.
y=−2(x−3)2+7
So the parabola has its vertex at (3,7), and the −2 in front shows that it opens downward.
8
Where the Quadratic Formula Comes From
What happens if we take the general quadratic equation ax2+bx+c=0 and run these exact same steps: move c, divide by a, cut the middle in half, square it, add it to both sides, take the square root, and subtract half the middle coefficient to isolate x?
Where the Quadratic Formula Comes From
ax2+bx+cx=0a=0=?
ax2+bx+c=0⟶x=2a−b±b2−4ac
The Quadratic Formula isn't a separate rule from nowhere. It is just the result of completing the square once and for all with letters instead of numbers.
Key concepts
When not to complete the square
If x already appears in only one place inside a square, like (x+3)2=16, don't multiply it out; just take ±16 right away. And if a quadratic factors easily, factoring can be faster. Complete the square when factoring is difficult or when you need Vertex Form.
The core pattern
Once you have 1x2+bx, take half of the middle coefficient b to get 2b (if b is a fraction like 25, just double its denominator to 45). That half-number immediately gives you both the squared group and the corner piece, which is never negative.
x2+bx+(2b)2=(x+2b)2
For x2−8x, half of −8 is −4, so the square keeps the minus sign as (x−4)2 while the corner piece is (−4)2=+16.
Solving an equation (=0) vs. Rewriting in Vertex Form (y=)
Solving for x: Divide every term on both sides by any number in front of x2 (turning 2x2+5x−3=0 into x2+25x−23=0), move the constant across the equals sign, and add the corner (2b)2 to both sides.
Vertex Form: Keep y alone on the left. Factor any coefficient on x2 out of just the x2 and x terms, add the corner inside the parentheses, and balance the multiplied amount on the same side outside the parentheses:
y=−2(x2−6x+9)−11+18=−2(x−3)2+7⟶vertex (3,7)
9
Practice
1
Solve x2+4x=12 by completing the square.
Watch out: forgetting to add 4 to the right side leaves (x+2)2=12 and gives −2±12; and when taking the square root of 16, forgetting the negative root −4 misses the second solution x=−6.
Cut the middle number 4 in half. What corner piece do you need to add to both sides?
Half of 4 is 2, and 22=4. Add 4 to both sides:
x2+4x+4(x+2)2=12+4=16
(Watch out: forgetting to add 4 to the right side leaves (x+2)2=12 and gives −2±12; and when taking the square root of 16, forgetting the negative root −4 misses the second solution x=−6.)
x+2x=±4=2orx=−6
2
Solve x2+6x=10 by completing the square.
Watch out: putting the corner 9 instead of the half-number 3 inside the parentheses gives (x+9)2=19, leading to the wrong answer −9±19.
Half of 6 is 3. Add 32 to both sides and undo the square with ±10 even though the right side isn't a perfect square.
Half of 6 is 3, and 32=9. Add 9 to both sides and rewrite the left side as (x+3)2:
x2+6x+9(x+3)2=10+9=19
(Watch out: putting the corner 9 instead of the half-number 3 inside the parentheses gives (x+9)2=19, leading to the wrong answer −9±19.)
x+3x=±19=−3±19
3
Solve x2−10x+18=0 by completing the square.
Watch out: dropping the minus sign inside the square to write (x+5)2=7 flips the final answer to −5±7, and squaring −5 as −25 instead of +25 gives −43 on the right.
Move +18 to the right side first to make room, then take half of −10.
Subtract 18 from both sides, then take half of −10, which is −5, and add (−5)2=+25 to both sides:
x2−10xx2−10x+25(x−5)2=−18=−18+25=7
(Watch out: dropping the minus sign inside the square to write (x+5)2=7 flips the final answer to −5±7, and squaring −5 as −25 instead of +25 gives −43 on the right.)
x−5x=±7=5±7
4
Solve x2+3x=5 by completing the square.
Watch out: adding 5+49 without a common denominator gives 414 and 2−3±14; and forgetting to take the square root of the denominator 4 leaves −23±429.
Keep half of 3 as a fraction, then square the top and bottom to find the corner piece.
Half of 3 is 23, and (23)2=49. Add 49 to both sides and rewrite 5 as 420:
x2+3x+49(x+23)2=420+49=429
(Watch out: adding 5+49 without a common denominator gives 414 and 2−3±14; and forgetting to take the square root of the denominator 4 leaves −23±429.)
x+23x=±229=2−3±29
5
Solve 2x2+3x−5=0 by completing the square.
Watch out: doubling the top instead of the bottom gives 26=3, which leads to (x+3)2=223.
Divide every term by 2 first so you start with 1x2, then double the denominator to take half of the middle fraction.
Divide every term by 2 and move 25 to the right:
x2+23x=25
Half of 23 is 43(watch out: doubling the top instead of the bottom gives 26=3, which leads to (x+3)2=223). Add (43)2=169 to both sides, using 25=1640:
Rewrite y=x2+8x+19 in vertex form by completing the square, and give the vertex.
Group (x2+8x)+19 and balance the corner piece outside the parentheses on the same side.
Half of 8 is 4, and 42=16. Add 16 inside the parentheses and subtract 16 outside:
yy=(x2+8x+16)+19−16=(x+4)2+3
(Watch out: adding 16 outside instead of subtracting gives y=(x+4)2+35; and forgetting to flip the sign inside (x+4)2 gives (4,3) instead of (−4,3).)
y=(x+4)2+3;vertex (−4,3)
7
Rewrite y=−3x2+12x−5 in vertex form by completing the square, and give the vertex.
Factor −3 out of −3x2+12x first (watch the middle sign!), then check what −3 times your corner piece really changes.
Factor −3 out of the x terms:
y=−3(x2−4x)−5
Half of −4 is −2, and (−2)2=4. Putting +4 inside the parentheses is multiplied by −3 for a change of −3×4=−12, so add +12 outside to balance it (watch out: simply subtracting 4 outside gives y=−3(x−2)2−9 and vertex (2,−9), and forgetting to flip +12x to −4x when factoring out −3 gives vertex (−2,7)):