# Nakafa Framework: LLM
URL: https://nakafa.com/en/subject/high-school/10/mathematics/quadratic-function/quadratic-equation-perfect-square
Source: https://raw.githubusercontent.com/nakafaai/nakafa.com/refs/heads/main/packages/contents/subject/high-school/10/mathematics/quadratic-function/quadratic-equation-perfect-square/en.mdx
Output docs content for large language models.
---
export const metadata = {
   title: "Completing the Square",
   description: "Master completing the square method to solve quadratic equations by transforming them into perfect square trinomials with detailed steps and examples.",
   authors: [{ name: "Nabil Akbarazzima Fatih" }],
   date: "04/19/2025",
   subject: "Quadratic Functions",
};
## What is Completing the Square?
Completing the square is a method for solving quadratic equations by converting the equation from the form  to the form . This method is particularly useful for quadratic equations that are difficult to factor using regular factorization.
Remember that a perfect square trinomial follows the pattern . We use this pattern to transform quadratic equations into a more solvable form.
## Why Use This Method?
Not all quadratic equations are easily factored. For example, the equation  cannot be easily factored using rational numbers because there are no two numbers that multiply to give 2 and add up to 4.
In such cases, the completing the square method becomes an effective choice for finding the roots of the equation.
## Steps for Completing the Square
Here are the steps to solve a quadratic equation  using the completing the square method:
1. **Ensure the Coefficient of x² is 1**
   If the coefficient  of  is not 1, divide the entire equation by the value of .
   **Example:** For the equation 
   
     
     
   
2. **Move the Constant Term to the Right Side**
   Move the constant term to the right side of the equation.
   **Example:** From the equation 
   
3. **Add the Square of Half the Coefficient of x to Both Sides**
   Add  to both sides of the equation. This value is the square of half the coefficient of .
   **Example:** For the equation 
   Half of the coefficient of  is 
   The square of this value: 
   Add to both sides:
   
4. **Factor the Left Side into a Perfect Square**
   The left side now has the form , which can be factored as .
   **Example:** From the equation 
   
5. **Simplify the Right Side**
   Perform calculations on the right side to get a simpler form.
   **Example:** For 
   
   So the equation becomes:
   
6. **Take the Square Root of Both Sides**
   To eliminate the square, take the square root of both sides.
   **Example:** From the equation 
   
7. **Solve for the Value of x**
   Isolate the variable  to find the roots of the equation.
   **Example:** From 
   For the positive sign:
   
   For the negative sign:
   
   Therefore, the roots of the equation are  and .
## Complete Solution Examples
### Equation with Coefficient of x² = 1
Let's solve the equation: 
**Step 1**: The coefficient , so we proceed to the next step.
**Step 2**: Move the constant to the right side.
**Step 3**: Add the square of half the coefficient of  to both sides.
  
  
  
**Step 4**: Factor the left side into a perfect square.
**Step 5**: Simplify the right side.
  
  
**Step 6**: Take the square root of both sides.
**Step 7**: Solve for the value of .
  
  
Therefore, the roots of the equation are  and .
### Equation with Coefficient of x² ≠ 1
Let's solve the equation: 
**Step 1**: Divide all terms by the coefficient 
**Step 2**: Move the constant to the right side
**Step 3**: Add the square of half the coefficient of  to both sides
  
  
  
**Step 4**: Factor the left side into a perfect square
**Step 5**: Simplify the right side
  
  
**Step 6**: Take the square root of both sides
**Step 7**: Solve for the value of 
  
  
Therefore, the roots of the equation are  and .
## Important Points in Completing the Square
1. **For equations with coefficient of  not equal to 1**: Always divide the entire equation by the coefficient  first. Example:  becomes 
2. **Constant to be added**: Always add the square of half the coefficient of  to both sides. Example: For , add  to both sides.
3. **Final form**: The equation will transform into the form . Example:  becomes 
## Special Cases and Variations
### When the Discriminant is Negative
If , then the equation has no real roots.
**Concrete example:** 
Completing the square:
  
  
Since no real number has a square of -1, this equation has no real roots.
### For Incomplete Quadratic Equations
For equations of the form , we don't need to complete the square.
**Concrete example:** 
  
  
  
Therefore, the roots of the equation are  and .
## Practice Problems
Solve the following quadratic equations using the completing the square method:
1. 
2. 
3. 
4. 
5. 
### Answer Key
1. 
   1. Move the constant to the right side:
      
   2. Add the square of half the coefficient of  to both sides:
      
        
        
        
      
   3. Factor the left side into a perfect square:
      
   4. Simplify the right side:
      
        
        
      
   5. Take the square root of both sides:
      
   6. Solve for the value of :
      
        
        
      
   Therefore, the roots of the equation are  and .
2. 
   1. Divide all terms by the coefficient :
      
   2. Move the constant to the right side:
      
   3. Add the square of half the coefficient of  to both sides:
      
        
        
        
      
   4. Factor the left side into a perfect square:
      
   5. Simplify the right side:
      
        
        
      
   6. Take the square root of both sides:
      
   7. Solve for the value of :
      
        
      
   Therefore, the roots of the equation are  and .
3. 
   1. Divide all terms by the coefficient :
      
   2. Move the constant to the right side:
      
   3. Add the square of half the coefficient of  to both sides:
      
        
        
        
      
   4. Factor the left side into a perfect square:
      
   5. Simplify the right side:
      
   6. Take the square root of both sides:
      
   7. Solve for the value of :
      
   Therefore, this equation has one (double) root, which is .
4. 
   1. Move the constant to the right side:
      
   2. Add the square of half the coefficient of  to both sides:
      
        
        
        
      
   3. Factor the left side into a perfect square:
      
   4. Take the square root of both sides:
      
   5. Solve for the value of :
      
   Therefore, the roots of the equation are  and .
5. 
   1. Divide all terms by the coefficient :
      
        
      
   2. Move the constant to the right side:
      
   3. Add the square of half the coefficient of  to both sides:
      
        
        
        
      
   4. Factor the left side into a perfect square:
      
   5. Simplify the right side:
      
        
        
      
   6. Take the square root of both sides:
      
   7. Solve for the value of :
      
        
      
   Therefore, the roots of the equation are  and .