Algebra 1Quadratic Functions and Equations5 of 8
Quadratic Functions and Equations · 5

Completing the Square

We need a way to solve quadratic equations where x2\xsq{x^2} and x\strip{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\displaystyle (x + \strip{3})^2 =16vs.x2+6x\displaystyle = 16 \qquad \text{vs.} \qquad \xsq{x^2} + \strip{6x} =7\displaystyle = 7

When xx only shows up once inside a single squared group like (x+3)2=16(x + \strip{3})^2 = 16, we can solve for xx right away by taking the square root of both sides. In x2+6x=7\xsq{x^2} + \strip{6x} = 7, we can't get xx by itself directly because x2\xsq{x^2} and 6x\strip{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)2=16x2+6x=7x=  ?\displaystyle \begin{aligned}(x + \strip{3})^2 &= 16\\[6pt]\xsq{x^2} + \strip{6x} &= 7\\[6pt]x &= \;?\end{aligned}
xx
xx
x2\htmlClass{lc-blue}{x^2}
3\htmlClass{lc-pink}{3}
3\htmlClass{lc-pink}{3}
3x\htmlClass{lc-pink}{3x}
3x\htmlClass{lc-pink}{3x}
9\htmlClass{lc-orange}{9}
x+3x + \htmlClass{lc-pink}{3}
x+3x + \htmlClass{lc-pink}{3}
Text solution
Split the middle term and add the missing cornerHalf of 6\strip{6} is 3\strip{3}, so we add the missing 32=9\corner{\strip{3}^2} = \corner{9} corner to both sides to keep the equation balanced.
x2+6x+9\displaystyle \xsq{x^2} + \strip{6x} + \corner{9} =7+9\displaystyle = 7 + \corner{9}
Write as a single squareThe left side is now a complete (x+3)(x + \strip{3}) by (x+3)(x + \strip{3}) square where xx appears in only one place.
(x+3)2\displaystyle (x + \strip{3})^2 =16\displaystyle = 16
Take the square root and solve for xxUndo the square using both the positive and negative square roots of 1616, then subtract 3\strip{3}.
x+3=4orx+3=−4x=1orx=−7\displaystyle \begin{aligned} x + \strip{3} &= 4 && \text{or} & x + \strip{3} &= -4 \\ x &= 1 && \text{or} & x &= -7 \end{aligned}

So the solutions to x2+6x=7\xsq{x^2} + \strip{6x} = 7 are x=1x = 1 and x=−7x = -7.

For positive xx and b\strip{b}, splitting the bx\strip{bx} rectangle into two equal strips of width b2\strip{\frac{b}{2}} along the right and bottom of the x2\xsq{x^2} square leaves a missing corner of side b2\strip{\frac{b}{2}} and area (b2)2\corner{\left(\strip{\frac{b}{2}}\right)^2}. The algebraic identity below works for every real xx and b\strip{b}.

Splitting the middle term into two equal strips always leaves a square corner whose area is half the middle number, squared.
x2+bx+(b2)2⏟missing corner\displaystyle \xsq{x^2} + \strip{bx} + \underbrace{\corner{\left(\strip{\frac{b}{2}}\right)^2}}_{\text{missing corner}} =(x+b2)2\displaystyle = \left(x + \strip{\frac{b}{2}}\right)^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\displaystyle \xsq{x^2} + \strip{10x} =3\displaystyle = 3
Completing the Square Algebraically
x2+10x=3x=  ?\displaystyle \begin{aligned}\xsq{x^2} + \strip{10x} &= 3\\[6pt]x &= \;?\end{aligned}
Text solution
Take half of the middle number to find the square and the cornerHalf of 10\strip{10} is 5\strip{5}, which tells us the left side will become (x+5)2(x + \strip{5})^2 once we add 52=25\corner{\strip{5}^2} = \corner{25} to both sides.
x2+10x+25\displaystyle \xsq{x^2} + \strip{10x} + \corner{25} =3+25\displaystyle = 3 + \corner{25}
Write as a single squareRewrite the left side as (x+5)2(x + \strip{5})^2 and add the numbers on the right side.
(x+5)2\displaystyle (x + \strip{5})^2 =28\displaystyle = 28
Take the square root and solve for xxTake ±28\pm\sqrt{28} on the right and subtract 5\strip{5} from both sides.
x+5=±28x=−5±28\displaystyle \begin{aligned} x + \strip{5} &= \pm\sqrt{28} \\ x &= -5 \pm \sqrt{28} \end{aligned}

This gives both exact solutions, −5+28-5 + \sqrt{28} and −5−28-5 - \sqrt{28} (which you might also see written as −5±27-5 \pm 2\sqrt{7}).

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\displaystyle \xsq{x^2} - \strip{8x} + 5 =0\displaystyle = 0
Moving the Constant and Negative Middle Terms
x2−8x+5=0x=  ?\displaystyle \begin{aligned}\xsq{x^2} - \strip{8x} + 5 &= 0\\[6pt]x &= \;?\end{aligned}
Text solution
Move the constant out of the waySubtract 55 from both sides first to leave room for the corner piece we actually want.
x2−8x\displaystyle \xsq{x^2} - \strip{8x} =−5\displaystyle = -5
Take half of the negative middle number and square itHalf of −8\strip{-8} is −4\strip{-4}, so the squared group keeps the minus sign as (x−4)2(x - \strip{4})^2, while the corner piece added to both sides is (−4)2=+16\corner{(\strip{-4})^2} = \corner{+16}.
x2−8x+16=−5+16(x−4)2=11\displaystyle \begin{aligned} \xsq{x^2} - \strip{8x} + \corner{16} &= -5 + \corner{16} \\ (x - \strip{4})^2 &= 11 \end{aligned}
Take the square root and add 4\strip{4}Undo the square with ±11\pm\sqrt{11}, then add 4\strip{4} to both sides.
x−4=±11x=4±11\displaystyle \begin{aligned} x - \strip{4} &= \pm\sqrt{11} \\ x &= 4 \pm \sqrt{11} \end{aligned}

So the solutions are x=4+11x = 4 + \sqrt{11} and x=4−11x = 4 - \sqrt{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\displaystyle \xsq{x^2} + \strip{5x} =2\displaystyle = 2
Odd Middle Terms and Fractions
x2+5x=2x=  ?\displaystyle \begin{aligned}\xsq{x^2} + \strip{5x} &= 2\\[6pt]x &= \;?\end{aligned}
Text solution
Keep half the middle number as a fraction and square itHalf of 5\strip{5} is 52\strip{\frac{5}{2}}, so the left side will become (x+52)2\left(x + \strip{\frac{5}{2}}\right)^2, and we add (52)2=254\corner{\left(\strip{\frac{5}{2}}\right)^2} = \corner{\frac{25}{4}} to both sides.
x2+5x+254\displaystyle \xsq{x^2} + \strip{5x} + \corner{\frac{25}{4}} =2+254\displaystyle = 2 + \corner{\frac{25}{4}}
Get a common denominator on the rightRewrite 22 as 84\frac{8}{4} and add the fractions on the right while writing the square on the left.
(x+52)2=84+254(x+52)2=334\displaystyle \begin{aligned} \left(x + \strip{\frac{5}{2}}\right)^2 &= \frac{8}{4} + \corner{\frac{25}{4}} \\ \left(x + \strip{\frac{5}{2}}\right)^2 &= \frac{33}{4} \end{aligned}
Take the square root of top and bottom, then subtract 52\strip{\frac{5}{2}}Because 4=2\sqrt{4} = 2, both fractions already have a denominator of 22 and combine right away.
x+52=±332x=−5±332\displaystyle \begin{aligned} x + \strip{\frac{5}{2}} &= \pm\frac{\sqrt{33}}{2} \\ x &= \frac{-5 \pm \sqrt{33}}{2} \end{aligned}

So the two solutions are x=−5+332x = \frac{-5 + \sqrt{33}}{2} and x=−5−332x = \frac{-5 - \sqrt{33}}{2}.

5

When x2\xsq{x^2} Has a Coefficient

To use our pattern directly, we need a coefficient of 1\mult{1} on x2\xsq{x^2}. When solving an equation with a different coefficient, divide every term by that coefficient before splitting the middle term.

2x2+12x−14\displaystyle \mult{2}\xsq{x^2} + \strip{12x} - 14 =0and2x2+5x−3\displaystyle = 0 \qquad \text{and} \qquad \mult{2}\xsq{x^2} + \strip{5x} - 3 =0\displaystyle = 0
When x² Has a Coefficient
2x2+12x−14=0x=  ?\displaystyle \begin{aligned}\mult{2}\xsq{x^2} + \strip{12x} - 14 &= 0\\[6pt]x &= \;?\end{aligned}
Text solution
Divide every term by 2\mult{2} and move the constantDivide every term in 2x2+5x−3=0\mult{2}\xsq{x^2} + \strip{5x} - 3 = 0 by 2\mult{2} to get 1x2\mult{1}\xsq{x^2}, then add 32\frac{3}{2} to both sides.
x2+52x−32=0x2+52x=32\displaystyle \begin{aligned} \xsq{x^2} + \strip{\frac{5}{2}x} - \frac{3}{2} &= 0 \\ \xsq{x^2} + \strip{\frac{5}{2}x} &= \frac{3}{2} \end{aligned}
Double the denominator to take half of the middle fractionHalf of 52\strip{\frac{5}{2}} is 54\strip{\frac{5}{4}}, which gives the square (x+54)2\left(x + \strip{\frac{5}{4}}\right)^2 and the corner piece (54)2=2516\corner{\left(\strip{\frac{5}{4}}\right)^2} = \corner{\frac{25}{16}}.
x2+52x+2516\displaystyle \xsq{x^2} + \strip{\frac{5}{2}x} + \corner{\frac{25}{16}} =32+2516\displaystyle = \frac{3}{2} + \corner{\frac{25}{16}}
Get a common denominator on the rightMultiply the top and bottom of 32\frac{3}{2} by 88 to get 2416\frac{24}{16}, then add.
(x+54)2=2416+2516(x+54)2=4916\displaystyle \begin{aligned} \left(x + \strip{\frac{5}{4}}\right)^2 &= \frac{24}{16} + \corner{\frac{25}{16}} \\ \left(x + \strip{\frac{5}{4}}\right)^2 &= \frac{49}{16} \end{aligned}
Take the square root and work out both casesBoth 4949 and 1616 are perfect squares, leaving no square root behind, so work out the plus and minus cases separately.
x+54=±74x=−54±74x=−5+74=12orx=−5−74=−3\displaystyle \begin{aligned} x + \strip{\frac{5}{4}} &= \pm\frac{7}{4} \\ x &= -\frac{5}{4} \pm \frac{7}{4} \\ x &= \frac{-5 + 7}{4} = \frac{1}{2} \\ \text{or} \quad x &= \frac{-5 - 7}{4} = -3 \end{aligned}

So the solutions are x=12x = \frac{1}{2} and x=−3x = -3.

6

Rewriting a Parabola in Vertex Form

When graphing a parabola like y=x2+6x+11y = \xsq{x^2} + \strip{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 yy by itself on the left:

y\displaystyle y =x2+6x+11\displaystyle = \xsq{x^2} + \strip{6x} + 11
Rewriting a Parabola in Vertex Form
y=x2+6x+11vertex=(?, ?)\displaystyle \begin{aligned}y &= \xsq{x^2} + \strip{6x} + 11\\[6pt]\text{vertex} &= (\strip{?},\, \height{?})\end{aligned}
Text solution
Group the xx terms and move the constant asideLeave yy alone on the left and make room inside the parentheses to complete the square on x2+6x\xsq{x^2} + \strip{6x}.
y\displaystyle y =(x2+6x)+11\displaystyle = (\xsq{x^2} + \strip{6x} \quad ) + 11
Add and subtract the corner on the same sideHalf of 6\strip{6} is 3\strip{3} and 32=9\corner{\strip{3}^2} = \corner{9}, so add 9\corner{9} inside the parentheses and subtract 9\balance{9} right outside so the total value of the right side doesn't change.
y\displaystyle y =(x2+6x+9)+11−9\displaystyle = (\xsq{x^2} + \strip{6x} + \corner{9}) + 11 - \balance{9}
Write the square and combine the constantsRewrite the parentheses as (x+3)2(x + \strip{3})^2 and simplify 11−911 - \balance{9}.
y\displaystyle y =(x+3)2+2\displaystyle = (x + \strip{3})^2 + \height{2}

In Vertex Form y=(x+3)2+2y = (x + \strip{3})^2 + \height{2}, we can read the vertex right from the equation at (−3,2)(\strip{-3}, \height{2}).

Wherever the parabola sits on the grid, adding and subtracting (b2)2\corner{\left(\strip{\frac{b}{2}}\right)^2} on the same side leaves the curve unchanged while turning standard form y=x2+bx+cy = \xsq{x^2} + \strip{bx} + c into vertex form y=(x−h)2+ky = (x - \strip{h})^2 + \height{k}, where (h,k)(\strip{h}, \height{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\xsq{x^2} Has a Coefficient

Now let's find Vertex Form when there is a number in front of x2\xsq{x^2}, where dividing the whole equation would mean yy is no longer by itself on the left:

y\displaystyle y =−2x2+12x−11\displaystyle = \mult{-2}\xsq{x^2} + \strip{12x} - 11
Vertex Form When x² Has a Coefficient
y=−2x2+12x−11vertex=(?, ?)\displaystyle \begin{aligned}y &= \mult{-2}\xsq{x^2} + \strip{12x} - 11\\[6pt]\text{vertex} &= (\strip{?},\, \height{?})\end{aligned}
y=(x+3)2+2\htmlClass{lc-blue}{y} = (x + \htmlClass{lc-pink}{3})^2 + \htmlClass{lc-green}{2}
y=−2(x−3)2+7\htmlClass{lc-violet}{y} = \htmlClass{lc-violet}{-2}(x - \htmlClass{lc-pink}{3})^2 + \htmlClass{lc-green}{7}
(−3,2)(\htmlClass{lc-pink}{-3}, \htmlClass{lc-green}{2})
(3,7)(\htmlClass{lc-pink}{3}, \htmlClass{lc-green}{7})
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
Text solution
Factor the front coefficient out of the xx terms onlyFactor −2\mult{-2} out of −2x2+12x\mult{-2}\xsq{x^2} + \strip{12x} (which flips +12x\strip{+12x} to −6x\strip{-6x} inside the parentheses) and leave −11-11 outside.
y\displaystyle y =−2(x2−6x)−11\displaystyle = \mult{-2}(\xsq{x^2} - \strip{6x} \quad ) - 11
Add the corner inside and balance its multiplied value outsidePutting (−3)2=+9\corner{(\strip{-3})^2} = \corner{+9} inside the parentheses gets multiplied by the −2\mult{-2} in front, which changes the right side by −2×9=−18\mult{-2} \times \corner{9} = \balance{-18}, so we add +18\balance{+18} outside to cancel it out.
y\displaystyle y =−2(x2−6x+9)−11+18\displaystyle = \mult{-2}(\xsq{x^2} - \strip{6x} + \corner{9}) - 11 + \balance{18}
Write in Vertex FormRewrite the parentheses as (x−3)2(x - \strip{3})^2 with −2\mult{-2} in front and combine −11+18-11 + \balance{18}.
y\displaystyle y =−2(x−3)2+7\displaystyle = \mult{-2}(x - \strip{3})^2 + \height{7}

So the parabola has its vertex at (3,7)(\strip{3}, \height{7}), and the −2\mult{-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\mult{a}\xsq{x^2} + \strip{bx} + c = 0 and run these exact same steps: move cc, divide by a\mult{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 xx?

Where the Quadratic Formula Comes From
ax2+bx+c=0a≠0x=  ?\displaystyle \begin{aligned}\mult{a}\xsq{x^2} + \strip{bx} + c &= 0 \qquad \mult{a} \neq 0\\[6pt]x &= \;?\end{aligned}
ax2+bx+c\displaystyle \mult{a}\xsq{x^2} + \strip{bx} + c =0⟶x\displaystyle = 0 \quad \longrightarrow \quad x =−b±b2−4ac2a\displaystyle = \frac{-\strip{b} \pm \sqrt{\strip{b}^2 - 4\mult{a}c}}{2\mult{a}}

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 xx already appears in only one place inside a square, like (x+3)2=16(x + \strip{3})^2 = 16, don't multiply it out; just take ±16\pm\sqrt{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\mult{1}\xsq{x^2} + \strip{bx}, take half of the middle coefficient b\strip{b} to get b2\strip{\frac{b}{2}} (if b\strip{b} is a fraction like 52\strip{\frac{5}{2}}, just double its denominator to 54\strip{\frac{5}{4}}). That half-number immediately gives you both the squared group and the corner piece, which is never negative.

x2+bx+(b2)2\displaystyle \xsq{x^2} + \strip{bx} + \corner{\left(\strip{\frac{b}{2}}\right)^2} =(x+b2)2\displaystyle = \left(x + \strip{\frac{b}{2}}\right)^2
For x2−8x\xsq{x^2} - \strip{8x}, half of −8\strip{-8} is −4\strip{-4}, so the square keeps the minus sign as (x−4)2(x - \strip{4})^2 while the corner piece is (−4)2=+16\corner{(\strip{-4})^2} = \corner{+16}.

Solving an equation (=0= 0) vs. Rewriting in Vertex Form (y=y =)

  • Solving for xx: Divide every term on both sides by any number in front of x2\xsq{x^2} (turning 2x2+5x−3=0\mult{2}\xsq{x^2} + \strip{5x} - 3 = 0 into x2+52x−32=0\xsq{x^2} + \strip{\frac{5}{2}x} - \frac{3}{2} = 0), move the constant across the equals sign, and add the corner (b2)2\corner{\left(\strip{\frac{b}{2}}\right)^2} to both sides.
  • Vertex Form: Keep yy alone on the left. Factor any coefficient on x2\xsq{x^2} out of just the x2\xsq{x^2} and x\strip{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)\displaystyle \begin{aligned} y &= \mult{-2}(\xsq{x^2} - \strip{6x} + \corner{9}) \\ &\qquad - 11 + \balance{18} \\ &= \mult{-2}(x - \strip{3})^2 + \height{7} \\ &\quad \longrightarrow \quad \text{vertex } (\strip{3}, \height{7}) \end{aligned}
9

Practice

1

Solve x2+4x=12x^2 + 4x = 12 by completing the square.

Cut the middle number 4\strip{4} in half. What corner piece do you need to add to both sides?

Half of 4\strip{4} is 2\strip{2}, and 22=4\corner{\strip{2}^2} = \corner{4}. Add 4\corner{4} to both sides:
x2+4x+4=12+4(x+2)2=16\displaystyle \begin{aligned} \xsq{x^2} + \strip{4x} + \corner{4} &= 12 + \corner{4} \\ (x + \strip{2})^2 &= 16 \end{aligned}
(Watch out: forgetting to add 4\corner{4} to the right side leaves (x+2)2=12(x + \strip{2})^2 = 12 and gives −2±12-2 \pm \sqrt{12}; and when taking the square root of 1616, forgetting the negative root −4-4 misses the second solution x=−6x = -6.)
x+2=±4x=2orx=−6\displaystyle \begin{aligned} x + \strip{2} &= \pm 4 \\ x &= 2 \quad \text{or} \quad x = -6 \end{aligned}
2

Solve x2+6x=10x^2 + 6x = 10 by completing the square.

Half of 6\strip{6} is 3\strip{3}. Add 32\corner{\strip{3}^2} to both sides and undo the square with ±10\pm\sqrt{\phantom{10}} even though the right side isn't a perfect square.

Half of 6\strip{6} is 3\strip{3}, and 32=9\corner{\strip{3}^2} = \corner{9}. Add 9\corner{9} to both sides and rewrite the left side as (x+3)2(x + \strip{3})^2:
x2+6x+9=10+9(x+3)2=19\displaystyle \begin{aligned} \xsq{x^2} + \strip{6x} + \corner{9} &= 10 + \corner{9} \\ (x + \strip{3})^2 &= 19 \end{aligned}
(Watch out: putting the corner 9\corner{9} instead of the half-number 3\strip{3} inside the parentheses gives (x+9)2=19(x + \corner{9})^2 = 19, leading to the wrong answer −9±19-9 \pm \sqrt{19}.)
x+3=±19x=−3±19\displaystyle \begin{aligned} x + \strip{3} &= \pm\sqrt{19} \\ x &= -3 \pm \sqrt{19} \end{aligned}
3

Solve x2−10x+18=0x^2 - 10x + 18 = 0 by completing the square.

Move +18+18 to the right side first to make room, then take half of −10\strip{-10}.

Subtract 1818 from both sides, then take half of −10\strip{-10}, which is −5\strip{-5}, and add (−5)2=+25\corner{(\strip{-5})^2} = \corner{+25} to both sides:
x2−10x=−18x2−10x+25=−18+25(x−5)2=7\displaystyle \begin{aligned} \xsq{x^2} - \strip{10x} &= -18 \\ \xsq{x^2} - \strip{10x} + \corner{25} &= -18 + \corner{25} \\ (x - \strip{5})^2 &= 7 \end{aligned}
(Watch out: dropping the minus sign inside the square to write (x+5)2=7(x + 5)^2 = 7 flips the final answer to −5±7-5 \pm \sqrt{7}, and squaring −5\strip{-5} as −25-25 instead of +25\corner{+25} gives −43-43 on the right.)
x−5=±7x=5±7\displaystyle \begin{aligned} x - \strip{5} &= \pm\sqrt{7} \\ x &= 5 \pm \sqrt{7} \end{aligned}
4

Solve x2+3x=5x^2 + 3x = 5 by completing the square.

Keep half of 3\strip{3} as a fraction, then square the top and bottom to find the corner piece.

Half of 3\strip{3} is 32\strip{\frac{3}{2}}, and (32)2=94\corner{\left(\strip{\frac{3}{2}}\right)^2} = \corner{\frac{9}{4}}. Add 94\corner{\frac{9}{4}} to both sides and rewrite 55 as 204\frac{20}{4}:
x2+3x+94=204+94(x+32)2=294\displaystyle \begin{aligned} \xsq{x^2} + \strip{3x} + \corner{\frac{9}{4}} &= \frac{20}{4} + \corner{\frac{9}{4}} \\ \left(x + \strip{\frac{3}{2}}\right)^2 &= \frac{29}{4} \end{aligned}
(Watch out: adding 5+945 + \corner{\frac{9}{4}} without a common denominator gives 144\frac{14}{4} and −3±142\frac{-3 \pm \sqrt{14}}{2}; and forgetting to take the square root of the denominator 44 leaves −32±294-\frac{3}{2} \pm \frac{\sqrt{29}}{4}.)
x+32=±292x=−3±292\displaystyle \begin{aligned} x + \strip{\frac{3}{2}} &= \pm\frac{\sqrt{29}}{2} \\ x &= \frac{-3 \pm \sqrt{29}}{2} \end{aligned}
5

Solve 2x2+3x−5=02x^2 + 3x - 5 = 0 by completing the square.

Divide every term by 2\mult{2} first so you start with 1x2\mult{1}\xsq{x^2}, then double the denominator to take half of the middle fraction.

Divide every term by 2\mult{2} and move 52\frac{5}{2} to the right:
x2+32x\displaystyle \xsq{x^2} + \strip{\frac{3}{2}x} =52\displaystyle = \frac{5}{2}
Half of 32\strip{\frac{3}{2}} is 34\strip{\frac{3}{4}} (watch out: doubling the top instead of the bottom gives 62=3\frac{6}{2} = 3, which leads to (x+3)2=232(x + 3)^2 = \frac{23}{2}). Add (34)2=916\corner{\left(\strip{\frac{3}{4}}\right)^2} = \corner{\frac{9}{16}} to both sides, using 52=4016\frac{5}{2} = \frac{40}{16}:
x2+32x+916=4016+916(x+34)2=4916x+34=±74x=−3+74=1orx=−3−74=−52\displaystyle \begin{aligned} \xsq{x^2} + \strip{\frac{3}{2}x} + \corner{\frac{9}{16}} &= \frac{40}{16} + \corner{\frac{9}{16}} \\ \left(x + \strip{\frac{3}{4}}\right)^2 &= \frac{49}{16} \\ x + \strip{\frac{3}{4}} &= \pm\frac{7}{4} \\ x &= \frac{-3 + 7}{4} = 1 \\ \text{or} \quad x &= \frac{-3 - 7}{4} = -\frac{5}{2} \end{aligned}
6

Rewrite y=x2+8x+19y = x^2 + 8x + 19 in vertex form by completing the square, and give the vertex.

Group (x2+8x)+19(\xsq{x^2} + \strip{8x} \quad ) + 19 and balance the corner piece outside the parentheses on the same side.

Half of 8\strip{8} is 4\strip{4}, and 42=16\corner{\strip{4}^2} = \corner{16}. Add 16\corner{16} inside the parentheses and subtract 16\balance{16} outside:
y=(x2+8x+16)+19−16y=(x+4)2+3\displaystyle \begin{aligned} y &= (\xsq{x^2} + \strip{8x} + \corner{16}) + 19 - \balance{16} \\ y &= (x + \strip{4})^2 + \height{3} \end{aligned}
(Watch out: adding 16\balance{16} outside instead of subtracting gives y=(x+4)2+35y = (x + 4)^2 + 35; and forgetting to flip the sign inside (x+4)2(x + \strip{4})^2 gives (4,3)(4, 3) instead of (−4,3)(\strip{-4}, \height{3}).)
y\displaystyle y =(x+4)2+3;vertex (−4,3)\displaystyle = (x + 4)^2 + 3; \quad \text{vertex } (-4, 3)
7

Rewrite y=−3x2+12x−5y = -3x^2 + 12x - 5 in vertex form by completing the square, and give the vertex.

Factor −3\mult{-3} out of −3x2+12x\mult{-3}\xsq{x^2} + \strip{12x} first (watch the middle sign!), then check what −3\mult{-3} times your corner piece really changes.

Factor −3\mult{-3} out of the xx terms:
y\displaystyle y =−3(x2−4x)−5\displaystyle = \mult{-3}(\xsq{x^2} - \strip{4x} \quad ) - 5
Half of −4\strip{-4} is −2\strip{-2}, and (−2)2=4\corner{(\strip{-2})^2} = \corner{4}. Putting +4\corner{+4} inside the parentheses is multiplied by −3\mult{-3} for a change of −3×4=−12\mult{-3} \times \corner{4} = \balance{-12}, so add +12\balance{+12} outside to balance it (watch out: simply subtracting 44 outside gives y=−3(x−2)2−9y = -3(x - 2)^2 - 9 and vertex (2,−9)(2, -9), and forgetting to flip +12x\strip{+12x} to −4x\strip{-4x} when factoring out −3\mult{-3} gives vertex (−2,7)(-2, 7)):
y=−3(x2−4x+4)−5+12y=−3(x−2)2+7\displaystyle \begin{aligned} y &= \mult{-3}(\xsq{x^2} - \strip{4x} + \corner{4}) - 5 + \balance{12} \\ y &= \mult{-3}(x - \strip{2})^2 + \height{7} \end{aligned}
y\displaystyle y =−3(x−2)2+7;vertex (2,7)\displaystyle = -3(x - 2)^2 + 7; \quad \text{vertex } (2, 7)