KEVOS
ArticlesServicesCase studiesAboutContact
ArticlesServicesCase studiesAboutContact
← ArticlesCompleting the SquareEngineering · Engineering MathematicsLesson 3/7← PrevNext →
GuidePublished 15 Aug 20265 min readBy Kevin Jogincompleting the squarequadratic equationsperfect squarevertex form
On this page

Ask about this page

KEVOS AICompleting the Square

KEVOS knowledge first · trusted web sources when needed

Equations

Completing the Square

Turning any quadratic into a perfect square plus a constant, the one rule that makes it work, and why the vertex falls out of the result for free.

Category Engineering / MathematicsStream EquationsLevel CoreReading 6 minSource Week 3, pages 4-5; Week 4, page 1

What this page covers

  • Complete the square on a monic quadratic
  • Handle a leading coefficient other than 1
  • Solve a quadratic by completing the square
  • Read the vertex of a parabola directly from the completed form
On this page
  1. The idea
  2. The rule
  3. When the leading coefficient is not 1
  4. What the completed form tells you
  5. Deriving the quadratic formula
  6. Common mistakes
  7. Frequently asked questions

The idea

A quadratic that happens to be a perfect square is trivial to solve: take the square root of both sides. Completing the square manufactures that situation for any quadratic, by adding whatever constant is needed and compensating.

Worked example — the source's first case

Solve x2 - 4x + 3 = 0.

x2 - 4x + 3 = 0x2 - 4x + 4 = 1(x - 2)2 = 1x - 2 = ±1x = 2 ± 1x = 1 or x = 3Source example, Week 3, page 4

Adding 1 to both sides turned x2 - 4x + 3 into x2 - 4x + 4, which is (x - 2)2.

Check

(x - 3)(x - 1) = x2 - 4x + 3. The source verifies this way too.

The rule

What to add

To complete the square on x2 + bx, add (b2)2.

x2 + 2ax + a2 = (x + a)2Source statement, Week 3, page 4. Here b = 2a, so a = b2

The source phrases it as a2 is half of (2a), squared — take half the coefficient of x, then square it.

Correction to the typed notes

The typed supplementary sheet instructs 'add half of b2 to both sides'. That would add 12b2; the correct quantity is (b2)2 = b24. For b = -8 the correct addition is 16, whereas half of b2 is 32. The worked examples on the same sheet use the correct quantity, so the wording is the error, not the arithmetic.

The rule applied
ExpressionCoefficient of xHalf itSquare itCompleted
x2 + 6x639(x + 3)2 - 9
x2 - 8x-8-416(x - 4)2 - 16
x2 + 5x552254(x + 52)2 - 254
x2 + 2x211(x + 1)2 - 1

When the leading coefficient is not 1

Factor the leading coefficient out of the x2 and x terms only, complete the square inside the bracket, then expand back. The constant term stays outside throughout.

Worked example — 2x2 + 3x - 2 = 0

2(x2 + 32x) = 22(x2 + 32x + (34)2) = 2 + 2(34)22(x + 34)2 = 2 + 98 = 258(x + 34)2 = 2516x + 34 = ±54x = -3 ± 54 = 12 or -2Source example, Week 3, pages 4-5
The compensation must be scaled

Adding (34)2 inside a bracket multiplied by 2 adds 2(34)2 to the left side, so that is what must be added on the right. Adding (34)2 to the right instead is the most common error in the non-monic case.

Check

2(14) + 32 - 2 = 12 + 32 - 2 = 0, and 2(4) - 6 - 2 = 0. Both roots verify.

Worked example — 2x2 - 5x + 1 = 0

2(x2 - 52x) + 1 = 02(x - 54)2 - 2(54)2 + 1 = 02(x - 54)2 = 258 - 1 = 178(x - 54)2 = 1716x = 54 ± √174Source example, Week 4, page 1

What the completed form tells you

Completing the square does more than solve. It rewrites the quadratic in vertex form, from which the turning point can be read directly.

Vertex form
y = a(x - h)2 + kVertex at (h, k); opens upward if a > 0, downward if a < 0

The reasoning is simple: (x - h)2 is never negative and is zero exactly at x = h. So when a > 0 the smallest value of y is k, reached at x = h.

Worked example &mdash; the source's vertex case

y = 2x2 - 12x + 4= 2(x2 - 6x) + 4= 2(x2 - 6x + 9) + 4 - 18= 2(x - 3)2 - 14Source example, Week 6, page 3

Minimum y = -14 at x = 3. No calculus and no formula were needed; the answer is visible in the form.

Cross-check

The vertex of y = ax2 + bx + c sits at x = -b2a. Here --124 = 3, agreeing. That shortcut is itself derived by completing the square in general.

Deriving the quadratic formula

Completing the square on the general quadratic produces the formula, which is the deepest reason to learn the technique.

ax2 + bx + c = 0x2 + bax = -cax2 + bax + b24a2 = b24a2 - ca(x + b2a)2 = b2 - 4ac4a2x + b2a = ±√b2 - 4ac2ax = -b ± √b2 - 4ac2aThe formula is completing the square done once, symbolically

Everything in the formula now has a source. The -b2a is the vertex; the radical measures how far the roots sit either side of it; and b2 - 4ac decides whether they are real at all.

Common mistakes

Errors and counterexamples
MistakeCorrectCounterexample
Adding 12b2Add (b2)2b = -8: add 16, not 32
Not compensating on the other sideBalance the equationAdding to one side only changes the equation
Forgetting to scale the compensation when a ≠ 1Add a(b2a)2 outsideThe bracket multiplies it
Dropping the ± at the square-root stepBoth signs(x - 2)2 = 1 gives x = 1 and x = 3
Factoring a out of the constant term tooOnly out of the x2 and x termsOtherwise the compensation is wrong

Frequently asked questions

What exactly do I add?

The square of half the coefficient of x. For x2 - 8x the coefficient is -8, half is -4, and its square is 16. Adding 12b2 instead of (b2)2 is a real and common error.

Why not just use the quadratic formula?

For finding roots, usually you would. Completing the square is what derives the formula, and it does something the formula does not: it produces the vertex form, which gives the maximum or minimum of the parabola directly.

What if the leading coefficient is not 1?

Factor it out of the x2 and x terms first, complete the square inside the bracket, then multiply back out. The source works 2x2 - 5x + 1 = 0 this way.

Does it work when the roots are complex?

Yes, and it shows why cleanly. (x + 2)2 = -1 has no real solution because a real square is never negative; over the complex numbers it gives x = -2 ± i.

Related pages

  • The Quadratic Formula and the Discriminant
  • Multiplying Polynomials and the Special Products
  • Finding the Vertex and Graphing a Quadratic
  • Solving Quadratic Equations by Factoring

Source. Handwritten teaching notes, Week 3, pages 4-5, and Week 4, page 1, with the typed supplementary notes on quadratics.

This page is an original exposition prepared for the KEVOS® knowledge library. It restates, reorganises and verifies the mathematics of the supplied teaching notes; it is not a reproduction of them. Numerical values taken from the notes are identified as source examples and are not presented as engineering standards.

Continue learning

Solving Linear EquationsGuide · Engineering MathematicsNEXT LESSON →The Quadratic Formula and the DiscriminantGuide · Engineering MathematicsConditional and Identical EquationsGuide · Engineering MathematicsCubic and Higher-Degree EquationsGuide · Engineering Mathematics
KEVOS · Engineering, manufacturing and project improvement
ArticlesServicesCase studiesAboutContact
© 2026 KEVOS®