Skip to ContentGo to accessibility page
Algebra 1

9.2.3 Completing the Square

Algebra 19.2.3 Completing the Square

9.2.3 Completing the Square

9.2.3 • Completing the Square

Activity

One technique for solving quadratic equations is called completing the square. Here are two examples of how Diego and Mai completed the square to solve the same equation.

Diego Mai
x2+10x+9=0x2+10x=−9x2+10x+25=−9+25x2+10x+25=16(x+5)2=16(x+5)2=16x+5=±4x+5=4orx+5=−4x=−1andx=−9x2+10x+9=0x2+10x=−9x2+10x+25=−9+25x2+10x+25=16(x+5)2=16(x+5)2=16x+5=±4x+5=4orx+5=−4x=−1andx=−9 x2+10x+9=0x2+10x+9+16=16x2+10x+25=16(x+5)2=16(x+5)2=16(x+5)=±4x+5=4andx+5=−4x=−1orx=−9x2+10x+9=0x2+10x+9+16=16x2+10x+25=16(x+5)2=16(x+5)2=16(x+5)=±4x+5=4andx+5=−4x=−1orx=−9

Study the worked examples. Then, try solving these equations by completing the square for questions 1 – 5.

1.

x 2 + 6 x + 8 = 0 x 2 + 6 x + 8 = 0

2.

x 2 + 12 x = 13 x 2 + 12 x = 13

3.

0 = x 2 − 10 x + 21 0 = x 2 − 10 x + 21

4.

x 2 − 2 x + 3 = 83 x 2 − 2 x + 3 = 83

5.

x 2 + 40 = 14 x x 2 + 40 = 14 x

Video: Solve Equations by Completing the Square

Watch the following video to learn more about solving equations by completing the square.

Solve Equations by Completing the Square

Are you ready for more?

Extending Your Thinking

Here is a diagram made of a square and two congruent rectangles. Its total area is x2+35xx2+35x square units.

Diagram A

1. What is the length of the unlabeled side of each of the two rectangles in Diagram A?

2. In Diagram B, we add lines to make the figure a square. The area of the square becomes a quadratic equation.

Calculate the equation, then put that equation in the standard form ax2+bx+cax2+bx+c to answer questions a and b.

a. Using the standard form ax2+bx+cax2+bx+c to represent the area of the square in Diagram B, what is the value of the coefficient bb?

b. Using the standard form ax2+bx+cax2+bx+c to represent the area of the square in Diagram B, what is the value of the constant cc?

3. How is the process of finding the area of the entire figure like the process of building perfect squares for expressions like x2+bxx2+bx?

Self Check

Find the solutions to x 2 − 10 x = − 9 by completing the square.
  1. x = 9
  2. x = 21
  3. x = 1 , x = 9
  4. x = 25

Additional Resources

Solving Quadratic Equations by Completing the Square

Example

Solve x2+8x=48x2+8x=48 by completing the square.

Step 1 - Isolate the variable terms on one side and place the constant term on the other. This equation has all the variables on the left.

ax2+bx=cax2+bx=c

x2+8x=48x2+8x=48

Step 2 - Find (b2)2b2)2, the number to complete the square. Add to both sides of the equation. Take half of 8 and square it.

42=1642=16

Add 16 to BOTH sides of the equation.

x2+8x+____=48x2+8x+____=48

(b2)2(b2)2

x2+8x+16=48+16x2+8x+16=48+16

Step 3 - Factor the perfect square trinomial as a binomial square.

x2+8x+16=(x+4)2x2+8x+16=(x+4)2

Substitute the binomial square term for the trinomial.

(x+4)2=64(x+4)2=64

Step 4 - Use the square root property.

(x+4)2=64(x+4)2=64

x+4=±8x+4=±8

Step 5 - Simplify the radical and then solve the two resulting equations.

x+4=±8x+4=±8 x+4=8x+4=8         

x+4=−8x+4=−8 x=4x=4            

x=−12x=−12

Step 6 - Check the solutions. Put each answer in the original equation to check.

Substitute x=4x=4.

x2+8x=48x2+8x=48

(4)2+8(4)≟48(4)2+8(4)≟48

16+32≟4816+32≟48

48=48✔48=48✔

Substitute x=−12x=−12.

x2+8x=48x2+8x=48

(−12)2+8(−12)≟48(−12)2+8(−12)≟48

144−96≟48144−96≟48

48=48✔48=48✔

Try it

Solving Quadratic Equations by Completing the Square

Solve x2+4x=5x2+4x=5 by completing the square.

Citation/Attribution
Reuse and redistribution of this content in digital or print format:
  • This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's prior written permission.
  • This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License, which means that you can reuse and modify the material only for noncommercial purposes, must attribute OpenStax, and must distribute any derivative works under the same license.
  • Any commercial printing of this textbook, including using a local or custom printer, must be approved by OpenStax, and proper citation provided.
  • OpenStax-copyrighted images, activities, assessments, and similar components of this book are subject to the same licensing – CC-BY-NC-SA. They can be used for noncommercial purposes with attribution. Commercial use requires permission.
  • Permission requests: Anyone who intends to incorporate this content (including text, images, and other components) into large language models, use it in AI offerings, use it commercially (including in print), and/or has questions about another use case is welcome to complete our reuse request form.
Attribution information
  • If you are redistributing all or part of this book in a noncommercial print format, then you must include on every physical page the following attribution:

    Access for free at https://openstax.org/books/algebra-1/pages/about-this-course

  • If you are redistributing all or part of this book in a noncommercial digital format, then for every page that includes OpenStax content, you must license the derivative work under the same CC-BY-NC-SA license as the original, and include on every digital page view the following attribution:

    Access for free at https://openstax.org/books/algebra-1/pages/about-this-course

Citation information

The information below includes the information needed to generate citations in most major styles (APA, MLA, etc.); you must reformat and organize the information as needed to fit the requirements of the style. Use the information below to generate a citation. We recommend using a citation tool such as this one.

© Apr 23, 2026 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License. The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo, and Rice University name, and Rice University logo trademarks, or wordmarks are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.