# Completing the Square

Created by: Team Maths - Examples.com, Last Updated: May 3, 2024

## Completing the Square

Completing the Square is an algebraic method used to solve quadratic equations by transforming them into a perfect square trinomial. It is essential in understanding the relationship between rational and irrational numbers, as the process often reveals the nature of a quadratic equation’s roots. This technique involves manipulating integers, square and square roots to rewrite the equation in a simpler form, which aids in finding exact solutions. In statistics, it’s useful for least squares methods, providing insights into the numerical behavior of data. The method also helps in visualizing quadratic functions, revealing their minimum or maximum values.

## What is Completing the Square?

Completing the Square is a method used to rewrite a quadratic equation of the form ππ₯Β²+ππ₯+π = 0 into a perfect square form (π₯βπ)Β² = π. This transformation makes it easier to solve for the roots of the equation by isolating π₯. The process involves adding and subtracting a specific value derived from the coefficient of π₯ to create a perfect square trinomial. Once in this form, the equation can be solved by taking the square root on both sides and then isolating π₯.

## Completing the Square Method

Completing the Square is often used to factorize quadratic equations and identify their roots or zeros, especially when traditional factorization methods fail. A quadratic equation like ππ₯Β²+ππ₯+π=0 can sometimes be challenging to factor due to its complexity. In such cases, completing the square offers a viable solution.

### Consider an example to understand this better:

If you have a quadratic equation that can’t be easily factorized, completing the square can rearrange it into a more manageable form. This approach involves rewriting ππ₯Β²+ππ₯+π as a perfect square trinomial, making it easier to solve for π₯.

## Completing the Square Steps

2. Isolate π₯Β² and π₯: If π (the coefficient of π₯Β²) is not 1, divide the entire equation by πa to make the coefficient of π₯Β² equal to 1.
3. Move πc: Move the constant term πc to the right side of the equation.
4. Find the Completing Term: Take half of the coefficient of π₯, π/2β, and then square it to get the completing term: (π/2)Β².
5. Add and Subtract the Completing Term: Add this completing term to both sides of the equation to keep the equation balanced.
6. Form a Perfect Square: The left side of the equation can now be factored into a perfect square trinomial, (π₯+π/2)Β², which is equal to the right side.
7. Solve for π₯: Take the square root of both sides and solve for π₯. Remember to consider both the positive and negative square roots.
8. Simplify the Solution: Isolate π₯ to find the solution(s).

## How to Apply Completing the Square Method?

Here’s an example with a different quadratic equation:

### Example: Complete the square for 3π₯Β²+12π₯+9

Step 1:
Factor out the coefficient of π₯2x2, which is 33:
3π₯Β²+12π₯+9 = 3(π₯Β²+4π₯+3)
Now, the coefficient of π₯Β² is 1.

Step 2:
Find half of the coefficient of π₯x in the factored expression.
Here, the coefficient of π₯ is . Half of 4 is 2.

Step 3:
Square this number to find (4/2)Β² = 4.

Step 4:
Add and subtract 4 after the π₯ term inside the parentheses:
3(π₯Β²+4π₯+4β4+3)

Step 5:
Factorize the perfect square trinomial formed by the first three terms:
π₯Β²+4π₯+4 = (π₯+2)Β²
So the expression becomes:
3((π₯+2)Β²β4+3)

Step 6:
Simplify the constant terms:
β4+3 = β1
So, the final expression is:
3((π₯+2)Β²β1) = 3(π₯+2)Β²β3

This completes the square for the expression 3π₯Β²+12π₯+9 as:
3(π₯+2)Β²β3

To summarize:

1. Ensure the coefficient of π₯Β² is 1.
2. Add and subtract (π/2π)Β² inside the parentheses.
3. Factorize the perfect square trinomial.
4. Simplify the expression to obtain the result.

## Completing the Square Formula

The formula for completing the square simplifies the process of converting a quadratic equation into its vertex form. For a quadratic expression ππ₯Β²+ππ₯+π, we can rewrite it using the formula π(π₯+π)Β²+π, where π and πn are calculated as π = π/2πβ and π = πβπΒ²/4πβ. This approach allows us to quickly identify the vertex of the parabola represented by the quadratic equation. By substituting the values of πm and πn back into the formula, we transform the equation into a format that highlights the parabola’s vertex. For example, given 2π₯Β²+8π₯+5, we find π = 2 and π = β3, which results in the equivalent form 2(π₯+2)Β²β3. This method provides a streamlined way to manipulate quadratic expressions and understand their geometric properties.

## Completing the Square Formula Examples

### Example 1:

Given 3π₯Β²+12π₯+7

1. Calculate π:
π = 12/2Γ3 = 12/6=2
2. Calculate π:
π = 7β12Β²/4Γ3 = 7β144/12 = 7β12 = β5
3. Substitute into the Formula:
Substitute π and π into the formula:
3π₯Β²+12π₯+7 = 3(π₯+2)Β²β5

### Example 2:

Given β2π₯Β²+4π₯β1

1. Calculate π:
π = 4/2Γβ2 = 4/β4 = β1
2. Calculate π
π = β1β4Β²/4Γβ2 = β1β16/β8 = β1+2 = 1
3. Substitute into the Formula:
Substitute πm and π into the formula:
β2π₯Β²+4π₯β1 = β2(π₯β1)Β²+1

## Derivation of Completing the Square Formula

To complete the square in the expression ππ₯Β²+ππ₯+πa, we follow these steps:

• Normalize the Coefficient of π₯2:
Factor out πa to make the coefficient of π₯Β² equal to 1:
ππ₯Β²+ππ₯+π = π[π₯Β²+πππ₯+ππ]
• Analyze the First Two Terms:
Consider the terms π₯Β² and (π/π)π₯. The term π₯Β² represents the area of a square with side length π₯. The term (π/π)π₯ represents the area of a rectangle with length π/πβ and breadth π₯.
• Visualize the Problem Geometrically:
Draw a square with side length π₯, giving it an area of π₯Β². Then, add a rectangle next to it with length ππabβ and breadth π₯, forming a new composite shape.
• Adjust the Rectangle into Two Identical Parts:
The rectangle’s length π/πβ can be split into two halves of π/2πβ each. Attach these halves on either side of the original square to create a new shape.
• Create a New Larger Square:
To complete the larger square, we need to fill in the missing square in the corner. The missing square’s side length is π/2πβ, and its area is (π/2π)Β² = πΒ²/4πΒ²β.
• Add and Subtract the Missing Area:
Add and subtract the missing area inside the factored expression: π[π₯2+(π/π)π₯+πΒ²/4πΒ²βπΒ²/4πΒ²+π/π]β
• Factor the Perfect Square Trinomial:
The first three terms form a perfect square trinomial: π[(π₯+π/2π)Β²βπΒ²/4πΒ²+π/π]
• Simplify the Expression:
Simplify the expression further: ππ₯Β²+ππ₯+π = π(π₯+π/2π)Β²+π(π/πβπΒ²/4πΒ²)

To complete the square for a quadratic expression like ππ₯Β²+ππ₯+π, the first step is to factor out πa to normalize the coefficient of π₯Β² to 1. This transforms the equation into π[π₯Β²+πππ₯+ππ]. Focusing on the first two terms, π₯Β² and (π/π)π₯, we then calculate half the coefficient of π₯, which is π/2πβ. Squaring this value yields πΒ²/4πΒ²β. We add and subtract this square inside the expression, creating a perfect square trinomial. The equation now looks like π₯Β²+(π/π)π₯ = (π₯+π/2π)Β²βπΒ²4πΒ²β. By substituting this back into the original equation, we obtain ππ₯Β²+ππ₯+π = π[(π₯+π/2π)Β²βπΒ²4πΒ²]+π. Expanding this and simplifying gives the quadratic equation in completed square form: π(π₯+π/2π)Β²+(πβπΒ²/4π). This transformation provides an easy way to see the vertex of the parabola described by the quadratic equation and simplifies further calculations.

## Trick to Learn Completing the Square Method

If the coefficient of π₯Β² isn’t 1, factor it out of the first two terms to ensure the quadratic coefficient is 1.
• Add and Subtract the Missing Square:
Take half the coefficient of π₯, square it, and add and subtract this value after the π₯ term. This completes the square inside the expression.
• Simplify into Completed Square Form:
Rewrite the expression in the form (π₯+π)Β² by factoring the trinomial and adjust the constants outside to find the final expression in the form π(π₯+π)Β²+π.

## What is the purpose of the completing the square method?

The purpose of completing the square is to rewrite a quadratic expression in a different form, specifically π(π₯+π)Β²+π. This transformation makes it easier to solve quadratic equations and identify the vertex of a parabola.

## How do you handle a quadratic equation if the coefficient of π₯Β²is not 1?

If the coefficient of π₯Β² isn’t 1, factor out that coefficient from the quadratic and linear terms to normalize it to 1. For example, with 4π₯Β²+8π₯, factor out 4 to get 4(π₯Β²+2π₯).

## What does adding and subtracting the square achieve in the completing the square method?

Adding and subtracting the square helps create a perfect square trinomial. This trinomial can then be rewritten as a squared binomial, which is essential to putting the quadratic equation into the desired completed square form.

## How does completing the square relate to the quadratic formula?

Completing the square is a method that can be used to derive the quadratic formula. It transforms the quadratic equation into a form where taking the square root directly reveals the values of π₯.

Text prompt