Vocab
Polynomial
Math glossaryPolynomial
anxn++a1x+a0a_nx^n+\cdots+a_1x+a_0

A finite sum of terms with nonnegative integer variable exponents.

Learn more
Factoring
Math glossaryFactoring
x29=(x3)(x+3)x^2-9=(x-3)(x+3)

Rewrites a sum or difference as an equivalent product.

Learn more
Factor
Math glossaryFactor
(x2)(x+3)(x-2)(x+3)

A quantity multiplied as part of a product.

Learn more
Quadratic
Math glossaryQuadratic
ax2+bx+cax^2+bx+c

A degree-two polynomial equation or function.

Learn more
Zero-product property
Math glossaryZero-product property
ab=0a=0 or b=0ab=0\Rightarrow a=0\ \text{or}\ b=0

A product is zero only when at least one factor is zero.

Learn more
Math glossary

Completing the square without guessing

Add the exact term that turns a quadratic expression into a perfect-square trinomial, while preserving the equation's value.

LaTeX article Updated July 13, 2026

x2+bx+(b2)2=(x+b2)2x^2+bx+\left(\frac b2\right)^2=\left(x+\frac b2\right)^2

The middle term determines the square

Expanding (x + p)² gives x² + 2px + p². Matching 2p with b forces p = b/2, so the constant must be (b/2)².

This is a structural identity, not a factoring guess. It works for every quadratic after the leading coefficient has been normalized to one.

(x+p)2=x2+2px+p2(x+p)^2=x^2+2px+p^2

Equations must stay balanced

Adding the completing term changes an expression. In an equation, add the same amount to both sides so the solution set remains unchanged.

If the coefficient of x² is not one, divide the equation by that coefficient or factor it from the quadratic terms before using the half-and-square step.

x2+6x=7x2+6x+9=16x^2+6x=7\Rightarrow x^2+6x+9=16

Completed square form exposes useful features

The form (x − h)² = k makes square-root solving immediate and reveals the vertex of a parabola. It also explains the structure behind the quadratic formula.

After taking square roots, include both signs. Squaring hides whether the original quantity was positive or negative.

(xh)2=kx=h±k(x-h)^2=k\Rightarrow x=h\pm\sqrt{k}

Worked example

Common mistakes

  • Using b² instead of (b/2)².
  • Adding the completing term to only one side.
  • Keeping only the positive square root.

Keep these ideas

  • Half the linear coefficient and square it.
  • Normalize the leading coefficient first.
  • Square-root solving needs ±.