Cookmath

Completing the Square

Adding (b/2)² to x²+bx creates (x+b/2)², a perfect square whose center reveals the parabola's vertex.

Before you begin

Expand (x+3)²=x²+6x+9. The middle coefficient is twice 3, not 3.

What you will learn

Understand the idea

Half the x coefficient, then square that half: x²+bx+(b/2)²=(x+b/2)². The added constant must be balanced on the other side of an equation, or subtracted in an expression. This changes the representation, not the value or the solution set.

Worked example 1

Solve x²+6x=7 by completing the square.

  1. Half of 6 is 3; add 3²=9 to both sides.
  2. (x+3)²=16, so x+3=±4.
  3. x=1 or −7; substitution gives 7 in both cases.

Worked example 2

Write y=2x²−8x+3 in vertex form.

  1. Factor 2 from the variable terms: 2(x²−4x)+3.
  2. Inside the bracket, x²−4x=(x−2)²−4.
  3. y=2(x−2)²−8+3=2(x−2)²−5, with vertex (2,−5).

Diagnose an error

Why is x²+8x=(x+4)² false?

Compare your reasoning

Why is x²+8x=(x+4)² false?

  1. Expanding the right side adds 16 that is absent on the left.
  2. The correct identity is x²+8x=(x+4)²−16.

Independent practice

Submit your answer in the interactive lesson to unlock the worked solution. Type your reasoning or build it with clickable tiles.

Practice 1

Complete x²+10x+___ as a square.

Solution locked until submission.

Practice 2

Solve x²−4x=5.

Solution locked until submission.

Practice 3

Complete the square in x²+3x+1.

Solution locked until submission.

Practice 4

Find the minimum of 3x²+12x+7 over all real x.

Solution locked until submission.

Connect and reflect

Use completing the square when you need a vertex or a derivation, even if factoring could find the roots faster.

Original Cookmath explanations and exercises. Scope reference: IM v.360 Algebra 1 — scope reference. Cookmath units are smaller study groups, not publisher chapter counts.

Continue learning

Quadratics