The Core Rule: Half of b, Squared
A perfect square trinomial has this pattern:
So to complete the square on , take half of and square it, then add that number.
Example: Complete the square on .
- Half of 6 is 3.
- Square it: .
- Add it: .
Example: Complete the square on .
- Half of is , and .
- .
The number inside the parentheses is always half of , with the same sign as .
Solving an Equation When a = 1
Example: Solve by completing the square.
- Move the constant to the right: .
- Half of 6 is 3, and . Add 9 to both sides: .
- Write the left side as a square: .
- Take the square root of both sides, with : .
- Solve each case: or .
Check: and . Both work.
When b Is Odd
An odd just means you work with fractions. Do not round.
Example: Solve .
- Move the constant: .
- Half of 5 is . Square it: .
- Add to both sides: .
- Factor the left side: .
- Square root both sides: .
- Solve: .
When a Is Not 1
The rule only works when the coefficient of is 1. If it is not, divide every term by first.
Example: Solve .
- Divide every term by 2: .
- Move the constant: .
- Half of 4 is 2, and . Add 4 to both sides: .
- Factor: .
- Square root: .
- Solve: .
To simplify , multiply the top and bottom by 2 inside the root: .
Converting to Vertex Form
Vertex form is , where the vertex is . Completing the square gets you there. Since this is an expression (not an equation), you add and subtract the same number instead of adding to both sides.
Example 1: Write in vertex form.
- Half of is , and .
- Add and subtract 4: .
- Factor: .
- The vertex is .
Example 2: Write in vertex form.
- Factor 3 out of the terms only: .
- Inside, half of 4 is 2, and . Add and subtract 4 inside: .
- Move the outside. It gets multiplied by 3 on the way out: .
- Simplify: .
- The vertex is . Check: .
No Real Solutions, and the Quadratic Formula
If completing the square leaves a negative number on the right, there are no real solutions.
Example: Solve .
- .
- Add 1: .
- No real number squared is negative, so there are no real solutions. With complex numbers, .
Where the quadratic formula comes from. Complete the square on :
- Divide by and move the constant: .
- Add to both sides: .
- Square root and solve:
Paste a quadratic into the VeilGPT solver to check your steps.
Common mistakes
- Adding (b/2)^2 to only one side of an equation, which changes the equation.
- Completing the square before dividing by a, when the rule only works if the x^2 coefficient is 1.
- Forgetting the plus or minus when taking the square root, which loses one of the two solutions.
- Reading the vertex of y = (x + 2)^2 - 7 as (2, -7). The vertex x value has the opposite sign, so it is (-2, -7).
Try one yourself
Solve by completing the square: x^2 - 8x + 3 = 0
Work it out, then check every step with the VeilGPT algebra solver.
Check it with VeilGPT