BrightChamps Logo
Login
Creative Math Ideas Image
Live Math Learners Count Icon106 Learners

Last updated on July 7th, 2025

Math Whiteboard Illustration

Completing the Square

Professor Greenline Explaining Math Concepts

To understand and solve quadratic equations, we can use the method of completing the square. This method is used to convert a quadratic expression into vertex form. For instance, this technique transforms a quadratic expression of the form ax2 + bx + c into the vertex form, which is a(x - h)2 + k, where (h, k) represents the vertex of the parabola. Hence, the left-hand side becomes a perfect square trinomial, helping in rewriting it in vertex form. In this article, we will explore completing the square in detail.

Completing the Square for US Students
Professor Greenline from BrightChamps

What is Completing the Square?

In algebra, completing the square is a technique used to rewrite a quadratic expression in a form that is a perfect square. For example, a quadratic equation like:

   ax2 + bx + c = 0 

It can be rewritten (by completing the square) in the form:
 
a (x + p)2 + q = 0

Where p and q are numbers we calculate during the process.  
 

Professor Greenline from BrightChamps

How to Complete the Square Method?

We can use the process of completing the square to find the roots or zeros of a quadratic equation or quadratic polynomial, and to factorize the equation. When the expression is not possible to factorize, this technique plays an important role.

For instance, x2 + 2x + 3 cannot be factorized using real numbers, because there are no two numbers that add to 2 and multiply to 3. In such cases, we use completing the square to rewrite it in a new form: 
 
a (x + m)2 + n   


This form helps us express the quadratic as a perfect square plus a constant.
   
Here, by rewriting the expression as (x + m), we complete the square. 
 

Professor Greenline from BrightChamps

What are the Steps for Completing the Square?

We have to follow certain steps for the method of completing the square. 
 

Step 1: Express the quadratic equation as x2 + bx + c. 
Here, 1 must be the coefficient of x2. If it is not 1, the number will be a common factor and placed outside. 

Step 2: Find the half of the coefficient of x.

Step 3: Find the square of the number (half of the coefficient). 

Step 4: Add and subtract the square within the expression to maintain equality.

Step 5: To complete the square, factorize the polynomial and use the algebraic identity.   

x2 + 2xy + y2 = (x + y)2
Or
x2 - 2xy + y2 = (x - y)2


Now, let us take an example for better understanding. 

Complete the square for -4x2 - 8x - 12.

 

Step 1: First, we need to find if the coefficient is 1. Here, the coefficient of x2 is not 1, so the number (-4) is placed outside as a common factor.  
-4x2 - 8x - 12 = -4 (x2 + 2x + 3)

However, the coefficient of x2 is now 1. 

Step 2: Next, we need to find half of the coefficient of x. 
Coefficient of x = 2
Half of 2 = 1 


Step 3: Find the square of 1.
12 = 1 


Step 4: Add and subtract the square to the x2 term. 
 -4 (x2 + 2x + 3) = -4 (x2 + 2x + 1 - 1 + 3) 


Step 5: Factorize the polynomials and apply the algebraic identity. 
x2 + 2xy + y2 = (x + y)2


Here, the first three terms: x2 + 2x + 1 
Last two terms: -1  + 3 

 x2 + 2x + 1 = (x + 1)2
 -4 (x2 + 2x + 1 - 1 + 3) = -4 ( (x + 1)2 - 1 + 3


Next, simplify the last two terms: -1 + 3
-1 + 3 = 2


Now, the expression becomes:
-4 ( ( x + 1)2 + 2 


Next, we can distribute the -4:
-4 (x + 1)2 - 8
     

Hence, the final result is:
-4x2 - 8x - 12 = -4 (x + 1)2 - 8


Now, this is the completed square form:
 a (x + m)2 + n 
 


 

Professor Greenline from BrightChamps

What is the Formula for Completing the Square?

Converting a quadratic equation or polynomial into a perfect square with an extra constant is known as the process of completing the square. 
For a quadratic expression:  ax2 + bx + c = 0

Here, a, b, and c are real numbers, but a is not equal to 0. 

The formula for completing the square is:
 ax2 + bx + c  a (x + m)2 + n 


Here,

m = b / 2a 
n = c - (b2 / 4a) 

When completing the square of a given expression, we first need to find the values of m and n, then substitute these values into the formula. 

Now, let us understand the application of the formula for completing the square. 
For example, x2 - 4x - 8 = 0 

Now, we can apply the formula for completing the square:
ax2 + bx + c  a (x + m)2 + n 

Here, a = 1
b = -4 
c = -8 

Now, we can find the value of m and n.
m = b / 2a = -4 / 2 (1) = -2
n = c - b2 / 4a = -8 - (-4)2 / 4 (1) 
n = -8 - 16 / 4 = -8 - 4 
n = -12 


So, the expression becomes: 
 x2 - 4x - 8 = (x - 2)2 - 12 


Now, we can solve the expression. 
   (x - 2)2 - 12 = 0
   (x - 2)2 = 12 
   x - 2 =  √12  =  2√3 
   x = 2 ∓ 2√3 

Therefore, x = 2 + 2√3  or x = 2 - 2√3 


Next, divide the rectangle into two equal parts. So, b / 2a will be the length of each rectangle. 


Fix one rectangle to the right side of the square and the next one to the bottom of the square. 


 

To complete the geometric square, we need to add a square of area [ (b / 2a)2 ] to x2 + (b / a) x. To retain the value of the expression, we must subtract it. Thus, to complete the square:

   x2 + (b / a) x = x2 + (b / a) x + (b / 2a)2 - (b / 2a)2
   
  x2 + (b / a) x = x2 + (b / a) x + (b / 2 a)2 - b2 / 4a2

Multiplying and dividing (b / a) x with 2 gives, 
   x2 + (2x × b / 2a) + (b / 2a)2 - b2 / 4a2

Now, we can use the identity, x2 + 2xy + y2 = (x + y)
The equation above can be expressed as, 
      x2 + (b / a) x = (x + b / 2a)2 - (b2 / 4a2

Now, we had:
   ax2 + bx + c = a (x2 + b / a x) + c 

Next, substitute the completed square form:
      = a ( (x + b / 2a)2 - b2 / 4a2) + c

Now, distribute the ‘a’: 
     a (x + b / 2a)2 - a (b2 / 4a2) + c 

Then, simplify:
a (b2 / 4a2) = b2 / 4a 


Therefore, the expression becomes:
 a (x + b / 2a)2 - b2 / 4a + c


Next, arrange the constants: 
    = a (x + b / 2a)2 - (c - b2 / 4a)

Thus, ax2 + bx + c = a (x + b / 2a)2 - (c - b2 / 4a)

The expression follows the form:
   a (x + m)2 + n 

Where, m = b / 2a and n = c - b2 / 4a 

 

Max Pointing Out Common Math Mistakes

Common Mistakes and How to Avoid Them on Completing the Square

Sometimes, completing the square seems tricky for students when they solve quadratic equations. Thus, they often make some errors that lead them to incorrect answers. Here are some common mistakes and their helpful solutions to prevent them. 

Mistake 1

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

 Using the Coefficient of x Directly Without Halving 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Keep in mind to divide the coefficient of x by 2 before squaring it. Forgetting this step or halving it incorrectly can lead to wrong answers. It is important to first halve the coefficient of x, then square it.  


For example, the expression is x2 + 6x

Half of the coefficient 6 squared is: 
(6 / 2)2 = 9 

So, x2 + 6x = (x + 3)2 - 9 
 

Mistake 2

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Forgetting the Coefficient of x2 is 1

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

 Remember to make the coefficient of x2 equal to 1. Sometimes, students start the operation without factoring out the coefficient of x2 and try to complete the square directly, which leads to incorrect results.

 
 For example, if the given expression is: 
2x2 + 8x + 3 

So, fix it as:
2 (x2 + 4x) + 3 
 

Mistake 3

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

 Incorrectly Using the Algebraic Identity 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Always remember the correct algebraic identity and write them properly to prevent any mistakes. The identity is:
x2 + 2xy + y2 = (x + y)2

If students incorrectly apply the identity, then they will end up with incorrect results.  

For example, the given expression is: 
x2 + 2x + 1 = (x + 1)2 
 

Mistake 4

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Neglecting the Subtraction of Square 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students should remember to add and subtract the square to complete the trinomial and balance the equation. If they forget to subtract the square then the equation will be unbalanced. 

For instance, x2 + 4x + 4 
x2  + 4x = (x + 2)2 - 4 

Mistake 5

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Using the Wrong Values of m and n 
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Remember to use the correct values of m and n for the formula and cross-check the result once it is done. According to the formula, the value of m is b / 2a and the value of n is c - b2 / 4a. If students apply the wrong formula, then the final result will be incorrect. 

For example, x2 + 10x + 2 
m = 10 / 2 = 5
n = 2 - 100 / 4 = -23 
Hence, x2 + 10x + 2 = (x + 5)2 - 23 

arrow-right
Professor Greenline from BrightChamps

Real-Life Applications of Completing the Square

Understanding the significance of the method of completing the square is useful since it can be applied in various situations. Here are some real-world applications of the concept.
 

  • In engineering and construction, engineers use the method of completing the square to ensure proper stability and balance. For example, if they need to construct a building that has different shapes, such as squares and rectangles, professionals can use the technique to find the dimensions. 
     
  • Astronomers and space scientists can use the technique of completing the square to analyze the satellites and orbits of planets.  For instance, to analyze and predict the path of satellites, researchers use the completing the square method. 
     
  • Companies and organizations can analyze their profit and break-even points using completing the square process. For example, if the profit is P(x) = -4x2 + 24x - 10, completing squares can determine the number of items needed to maximize profits.
     
Max from BrightChamps Saying "Hey"

Solved Examples of Completing the Square

Ray, the Character from BrightChamps Explaining Math Concepts
Max, the Girl Character from BrightChamps

Problem 1

Complete the square of: x^2 + 8x

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

(x + 4)2 - 16 
 

Explanation

Here, the given expression is x2 + 8x 

First, we need to find the half of the coefficient of x: 
8 / 2 = 4 

Then, square it:
42 = 16 

Now, add and subtract 16:
x2 + 8x + 16 - 16 

Here, we take the first three terms:
x2 + 8x + 16

We want to express it in the form:
(x + a)

(x + a)2 = x2 + 2ax + a2

In the given expression, x2 + 8x + 16

The coefficient of x is 8. 
That corresponds to 2a. 
2a = 8 
a = 4 

Therefore, a2 = 42 = 16 
So, x2 + 8x + 16 = (x + 4)2

Hence, the expression becomes: 
      (x + 4)2 - 16 

Thus, x2 + 8x = (x + 4)2 - 16

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 2

Solve the equation, x^2 - 10x

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

  (x - 5)2 - 25 
 

Explanation

The given expression is x2 - 10x 

Half of -10 = -5 
Square of -5 (-52) = 25 

Next, add and subtract 25:
x2 - 10x + 25 - 25 

Rewrite it as:
(x - 5)2 - 25 = (x - 5)2

Hence, the expression becomes:
  (x - 5)2 - 25 

Thus, x2 - 10x = (x - 5)2 - 25  

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 3

Solve x^2 + 7x + 5 = 0

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

(-7 ± √29) / 2 

Explanation

The given expression is: 
   x2 + 7x + 5

Now, move the constant to the right side. 
     x2 + 7x = - 5

Take the half of the coefficient of x:
The coefficient of x is 7. 
Half of 7 is: 
   7 / 2 
Next, square it:
   (7 / 2)2 = 49 / 4 

So, we need to add 49 / 4 to both sides of the equation.
    x2 + 7x + 49 / 4 = -5 + 49 / 4 

Next, convert -5 to a fraction with denominator 4: 
     -5 = -20 / 4 

Now, add: 
  -20 / 4 + 49 / 4 = 29 / 4

Hence, the expression is:
   x2 + 7x + 49 / 4 = 29 / 4 

Here, the left-hand side is a perfect square trinomial:
     x2 + 7x + 49 / 4 = (x + 7 / 2)2

Rewrite the equation: 
   (x + 7 / 2)2 = 29 / 4

Now, take the square root of both sides:
      x + 7 / 2 =  √29 / 4 
     x + 7 / 2 =  √29  / 2 

Next, subtract 7 / 2 from both sides: 
   x = - 7 / 2 ± √29  / 2 

Since the denominators are the same, we can write it as: 
       x = -7 ± √29 / 2

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 4

Complete the square of the expression: 2x^2 + 12 x

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

2 (x + 3)2 - 18 
 

Explanation

 First, we need to factor out 2. 
   2 (x2 + 6x)

Half of 6 = 3

Square  it: 
  32 = 9 

Add and subtract inside:
    2 (x2 + 6x + 9 - 9) 

Rewrite it as: 
   2 ( (x + 3)2 - 9) = 2 (x + 3)2 - 18 

Thus, 2x2 + 12x = 2 (x + 3)2 - 18 
 

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 5

Complete the square of the expression: x^2 - 5x

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

 (x - 5 / 2)2 - 25 / 4 
 

Explanation

The given expression is:
     x2 - 5x 

Half of -5 = -5 / 2 

Square it: 
(-5 / 2)2 = (25 / 4)


We add and subtract the square inside the expression so the value does not change:  
  x2 - 5x = x2 - 5x + 25 / 4 - 25 / 4 

Now, we apply the identity: 
   x2 - 2xy + y2 = (x - y)2

Here, x2 - 5x + 25 / 4 is a perfect square trinomial. 

So, it can be written as: 
     (x - 5 / 2)2 

Hence the expression becomes: 
  x2 - 5x = (x - 5 / 2)2 - 25 / 4 


Therefore, the answer is: 
 x2 - 5x = (x - 5 / 2)2 - 25 / 4 
 

Max from BrightChamps Praising Clear Math Explanations
Ray Thinking Deeply About Math Problems

FAQs on Completing the Square

1.What do you mean by completing the square?

Math FAQ Answers Dropdown Arrow

2.Define a perfect square trinomial

Math FAQ Answers Dropdown Arrow

3.Can the coefficient of x2 be a number other than 1?

Math FAQ Answers Dropdown Arrow

4.What do we add to complete the square?

Math FAQ Answers Dropdown Arrow

5.What is the purpose of adding and subtracting the same number?

Math FAQ Answers Dropdown Arrow

6.How does learning Algebra help students in United States make better decisions in daily life?

Math FAQ Answers Dropdown Arrow

7.How can cultural or local activities in United States support learning Algebra topics such as Completing the Square?

Math FAQ Answers Dropdown Arrow

8.How do technology and digital tools in United States support learning Algebra and Completing the Square?

Math FAQ Answers Dropdown Arrow

9.Does learning Algebra support future career opportunities for students in United States?

Math FAQ Answers Dropdown Arrow
Math Teacher Background Image
Math Teacher Image

Jaskaran Singh Saluja

About the Author

Jaskaran Singh Saluja is a math wizard with nearly three years of experience as a math teacher. His expertise is in algebra, so he can make algebra classes interesting by turning tricky equations into simple puzzles.

Max, the Girl Character from BrightChamps

Fun Fact

: He loves to play the quiz with kids through algebra to make kids love it.

INDONESIA - Axa Tower 45th floor, JL prof. Dr Satrio Kav. 18, Kel. Karet Kuningan, Kec. Setiabudi, Kota Adm. Jakarta Selatan, Prov. DKI Jakarta
INDIA - H.No. 8-2-699/1, SyNo. 346, Rd No. 12, Banjara Hills, Hyderabad, Telangana - 500034
SINGAPORE - 60 Paya Lebar Road #05-16, Paya Lebar Square, Singapore (409051)
USA - 251, Little Falls Drive, Wilmington, Delaware 19808
VIETNAM (Office 1) - Hung Vuong Building, 670 Ba Thang Hai, ward 14, district 10, Ho Chi Minh City
VIETNAM (Office 2) - 143 Nguyễn Thị Thập, Khu đô thị Him Lam, Quận 7, Thành phố Hồ Chí Minh 700000, Vietnam
Dubai - BrightChamps, 8W building 5th Floor, DAFZ, Dubai, United Arab Emirates
UK - Ground floor, Redwood House, Brotherswood Court, Almondsbury Business Park, Bristol, BS32 4QW, United Kingdom