Skip to main content
Logo image

Section Completing the Square

Completing the square is a powerful algebraic tool for rewriting a quadratic expression in a form that reveals key structure. While often introduced in algebra courses, the technique becomes especially important when solving differential equations using the Laplace transform. For example, when taking an inverse Laplace transform, it’s common to encounter expressions like \(\frac{1}{(s + 2)^2 + 9}\text{.}\) Recognizing this as a completed square helps identify the corresponding time-domain function.
The idea is to transform an expression like \(x^2 + bx + c\) into a perfect square plus or minus a constant. That is,
\begin{equation*} x^2 + bx + c = \left(x + \frac{b}{2}\right)^2 - \left(\frac{b}{2}\right)^2 + c. \end{equation*}
This form makes it easier to recognize shifted squares and simplify square roots or integrals.

✳️ Completing the Square.

Completing the square is a tool to rewrite a quadratic expression like \(x^2 + bx + c\) into the form:
\begin{gather*} \left(x - \frac{b}{2}\right)^2 + \text{a number} \end{gather*}
The strategy is as follows:
\begin{align*} x^2 + bx + c \amp = \ub{x^2 + bx + \os{(\large \text{half of } b)^2}{\boxed{\left(\frac{b}{2}\right)^2}}}_{\Large \left(x - \frac{b}{2}\right)^2} - \ub{\os{(\large \text{half of } b)^2}{\boxed{\left(\frac{b}{2}\right)^2}} + c}_{\Large\text{a number}} \end{align*}
Let’s walk through a few examples to get a feel for how this works, especially for later use in Laplace problems.

🌌 Example 306. Complete the Square of each Quadratic.

(a) \(\quad x^2 + 6x + 10\)
Solution.
Since \((\text{half of } b)^2 = (6/2)^2 = 9\text{,}\) we add and substract \(9\text{.}\)
\begin{align*} x^2 + 6x + 10 \amp = x^2 + 6x + \boxed{9} - \boxed{9} + 10\\ \amp = (x + 3)^2 + 1 \end{align*}
(b) \(\quad x^2 - 4x + 13\)
Solution.
Since \((\text{half of } b)^2 = (4/2)^2 = 4\text{,}\) we add and substract \(4\text{.}\)
\begin{align*} x^2 - 4x + 13 \amp = x^2 - 4x + \boxed{4} - \boxed{4} + 13\\ \amp = (x - 2)^2 + 9 \end{align*}
(c) \(\quad x^2 + 8x + 20\)
Solution.
Since \((\text{half of } b)^2 = (8/2)^2 = 16\text{,}\) we add and substract \(16\text{.}\)
\begin{align*} x^2 + 8x + 20 \amp = x^2 + 8x + \boxed{16} - \boxed{16} + 20\\ \amp = (x + 4)^2 + 4 \end{align*}

Exercises Exercises

Exercise Group.

Practice completing the square for each expression below. You can verify your answer by expanding it.
You have attempted of activities on this page.