The Completing-the-Square Method

Completing the square adds the square of half the x-coefficient to create a perfect square trinomial. Combine this identity with the square root property to solve quadratic equations exactly, or use it to rewrite quadratic functions in vertex form while keeping their values unchanged.

Course cover for The Completing-the-Square Method

The Equation That Won't Factor

Completing the square is like filling a missing corner of a square patio: add the missing piece to create a complete square. In algebra, the missing piece is a constant that turns an expression into a perfect square trinomial

Consider $$x^2 - 10x + 18 = 0$$. Factoring over the integers would require two integers whose product is $$18$$ and whose sum is $$-10$$. The possible negative factor pairs do not meet both conditions

Factor pairProductSum
$$-1$$ and $$-18$$$$18$$$$-19$$
$$-2$$ and $$-9$$$$18$$$$-11$$
$$-3$$ and $$-6$$$$18$$$$-9$$

None of these sums is $$-10$$, so the quadratic does not factor over the integers. It still has two exact solutions. Completing the square will reveal them by turning the equation into a square root problem

The learning tasks are to apply the square root property with both signs, find the constant that completes a square, solve quadratic equations while balancing both sides, and rewrite quadratic functions in vertex form to identify the vertex

The Square Root Property

Which choice lists ALL solutions of $$x^2 = 36$$?

A

$$x = 6$$

B

$$x = 6$$ and $$x = -6$$

C

$$x = -6$$

For the warm-up equation, $$x^2 = 36$$ gives $$x = \pm\sqrt{36} = \pm 6$$. The plus-or-minus notation includes both the positive and negative possibilities

Isolate the square first

Solve exactly: $$2x^2 + 3 = 103$$. Subtract $$3$$ from both sides to get $$2x^2 = 100$$, then divide both sides by $$2$$ to get $$x^2 = 50$$. Only after isolating $$x^2$$ should you apply the square root property: $$x = \pm\sqrt{50}$$

Simplify the radical using a perfect square factor: $$\sqrt{50} = \sqrt{25 \cdot 2} = 5\sqrt{2}$$. The exact solutions are $$x = \pm 5\sqrt{2}$$

A squared binomial counts too

Solve exactly: $$(x-5)^2 = 18$$. The entire quantity $$x-5$$ plays the role of $$u$$ in the square root property. Thus $$x-5 = \pm\sqrt{18}$$. Since $$\sqrt{18} = \sqrt{9 \cdot 2} = 3\sqrt{2}$$, this becomes $$x-5 = \pm 3\sqrt{2}$$. Add $$5$$ to both sides to obtain $$x = 5 \pm 3\sqrt{2}$$, two exact irrational solutions

Solve exactly: $$3x^2 - 6 = 69$$. Which is the complete solution set?

A

$$x = \pm 5$$

B

$$x = 5$$

C

$$x = \pm 25$$

D

$$x = \pm\sqrt{23}$$

Building a Perfect Square

To complete the square for $$x^2 + bx$$, take half the coefficient of $$x$$, keeping its sign, and then square that half. The required constant is $$\left(\frac{b}{2}\right)^2$$

A negative even coefficient

Complete the square: $$x^2 - 12x$$. Here $$b = -12$$, so half of $$b$$ is $$-6$$ and $$(-6)^2 = 36$$. Therefore $$x^2 - 12x + 36 = (x-6)^2$$

Expanding checks the result: the two cross terms give $$-6x + (-6x) = -12x$$, and the constant product is $$(-6)(-6) = +36$$. Both the middle term and constant agree with the trinomial

An odd coefficient

Complete the square: $$x^2 + 9x$$. Half of $$9$$ is $$\frac{9}{2}$$, and $$\left(\frac{9}{2}\right)^2 = \frac{81}{4}$$. Thus $$x^2 + 9x + \frac{81}{4} = \left(x + \frac{9}{2}\right)^2$$. Fractions are expected when the coefficient is odd; the same recipe works for positive, negative, odd, or fractional values of $$b$$

Complete and factor an identity

The practice task asks for both missing constants in $$x^2 + 3x + c = (x+h)^2$$. The candidate values are $$\frac{9}{4}$$, $$\frac{3}{2}$$, $$9$$, $$3$$, $$6$$, and $$\frac{9}{2}$$. Half of $$3$$ is $$\frac{3}{2}$$, which belongs inside the binomial. Its square, $$\frac{9}{4}$$, is the added constant. The completed identity is $$x^2 + 3x + \frac{9}{4} = \left(x + \frac{3}{2}\right)^2$$

The two constants have different roles: the binomial holds the half, while the trinomial holds its square. Adding $$9$$ here would square the whole coefficient instead of first taking half

Solving by Completing the Square

Return to the equation that resisted factoring

Solve exactly: $$x^2 - 10x + 18 = 0$$. First subtract $$18$$ from both sides so the variable terms stand alone: $$x^2 - 10x = -18$$

Half of $$-10$$ is $$-5$$, and $$(-5)^2 = 25$$. Add $$25$$ to both sides to preserve equality: $$x^2 - 10x + 25 = -18 + 25 = 7$$. The left side is the perfect square trinomial built by the half-then-square rule

Factor to get $$(x-5)^2 = 7$$. Apply the square root property: $$x-5 = \pm\sqrt{7}$$. Finally, add $$5$$ to both sides: $$x = 5 \pm\sqrt{7}$$. The two exact solutions are $$5+\sqrt{7}$$ and $$5-\sqrt{7}$$, verifying the opening claim

The correct order of the solving steps

The ordering practice starts with $$x^2 + 8x - 2 = 0$$, so $$x^2 + 8x = 2$$, and ends with $$x = -4 \pm 3\sqrt{2}$$. Its three middle steps must proceed in this order: add $$16$$ to both sides, factor the perfect square, and take square roots

Half of $$8$$ is $$4$$, and $$4^2 = 16$$. Balancing gives $$x^2 + 8x + 16 = 18$$. Factoring then gives $$(x+4)^2 = 18$$. Taking square roots gives $$x+4 = \pm 3\sqrt{2}$$, since $$\sqrt{18} = 3\sqrt{2}$$. Subtracting $$4$$ gives the stated answer, $$x = -4 \pm 3\sqrt{2}$$

The order follows the dependencies: the perfect square must be created before it can be factored, and the squared quantity must be isolated before applying the square root property

Vertex Form

Completing the square also rewrites a quadratic function in vertex form, $$f(x) = a(x-h)^2 + k$$, from which the vertex is $$(h,k)$$. The visible sign inside the parentheses is opposite to the sign of $$h$$; the outside constant gives $$k$$ directly

For $$y = 5(x-2)^2 + 3$$, the binomial $$x-2$$ means $$h = 2$$, and the outside constant means $$k = 3$$. The vertex is $$(2,3)$$

Factor the leading coefficient from the variable terms

Rewrite $$h(x) = 2x^2 - 12x + 7$$ in vertex form and state its vertex. The leading coefficient is $$2$$, so first factor $$2$$ out of the variable terms only: $$h(x) = 2(x^2 - 6x) + 7$$. In this procedure, the constant $$+7$$ stays outside the parentheses

Balance inside the parentheses

Inside the parentheses, half of $$-6$$ is $$-3$$, and $$(-3)^2 = 9$$. To keep the function unchanged, add and subtract $$9$$ inside the same parentheses: $$h(x) = 2(x^2 - 6x + 9 - 9) + 7$$. The paired change $$+9-9$$ is zero

Factor, simplify, and read the vertex

Factor the perfect square trinomial inside: $$h(x) = 2\left((x-3)^2 - 9\right) + 7$$. Distribute $$2$$ to obtain $$h(x) = 2(x-3)^2 - 18 + 7$$, then combine the constants: $$h(x) = 2(x-3)^2 - 11$$

In the final form, $$x-3$$ gives the vertex's horizontal coordinate $$3$$, and $$k = -11$$. The vertex is $$(3,-11)$$. As a balance check, the $$+9$$ inserted inside contributed $$2 \times 9 = 18$$, exactly canceled by the distributed $$-18$$

Rewrite $$f(x) = 4x^2 + 8x + 1$$ in vertex form

A

$$4(x+1)^2 - 3$$

B

$$4(x+1)^2$$

C

$$4(x-1)^2 - 3$$

D

$$4(x+1)^2 - 15$$

Match each function to its vertex

The matching task pairs three vertex-form functions with their vertices. The available points are $$(3,1)$$, $$(-5,-2)$$, $$(4,0)$$, and $$(5,-2)$$. Read each function using $$a(x-h)^2 + k$$ and vertex $$(h,k)$$

For $$y = 2(x-3)^2 + 1$$, $$h = 3$$ and $$k = 1$$, so the match is $$(3,1)$$. For $$y = (x+5)^2 - 2$$, the binomial is $$x-(-5)$$, so the match is $$(-5,-2)$$. For $$y = -3(x-4)^2$$, there is no added outside constant, so $$k = 0$$ and the match is $$(4,0)$$

The extra point $$(5,-2)$$ is not a match. It would incorrectly read the visible plus sign in $$(x+5)$$ as a positive value of $$h$$

Summary

Square root property: after isolating the squared quantity, use $$u^2 = k \Rightarrow u = \pm\sqrt{k}$$ for $$k \ge 0$$. Write $$\pm$$ at the square root step so neither signed possibility is lost

Complete the square: for $$x^2 + bx$$, take half of $$b$$, keeping its sign, then square it. The identity is $$x^2 + bx + \left(\frac{b}{2}\right)^2 = \left(x + \frac{b}{2}\right)^2$$

Solve an equation: move the constant, add the completing number to both sides, factor the perfect square, take square roots with $$\pm$$, and isolate $$x$$

Vertex form: rewrite the function as $$a(x-h)^2 + k$$ to read its vertex $$(h,k)$$. Balance inside parentheses with a matched $$+n-n$$, remembering that the inside change is multiplied by $$a$$. Read $$h$$ with the opposite sign from the visible binomial sign

Quiz

Solve exactly: $$(x+2)^2 = 20$$. Which is the complete solution set?

A

$$x = -2 \pm 2\sqrt{5}$$

B

$$x = 2 \pm 2\sqrt{5}$$

C

$$x = -2 + 2\sqrt{5}$$ only

D

$$x = -2 \pm 4\sqrt{5}$$

The trinomial $$x^2 - 14x + 49$$ is a perfect square. Which is its factored form?

A

$$(x-7)^2$$

B

$$(x+7)^2$$

C

$$(x-7)(x+7)$$

D

$$(x-49)^2$$

Solve by completing the square: $$x^2 - 6x + 1 = 0$$

A

$$x = 3 \pm 2\sqrt{2}$$

B

$$x = -3 \pm 2\sqrt{2}$$

C

$$x = 3 + 2\sqrt{2}$$ only

D

$$x = 3 \pm \sqrt{10}$$

Continue with the interactive lesson