Completing the Square
Introduction
students, many important graphs in mathematics start with a simple-looking expression like $x^2+6x+5$ 📈. At first, it may look like just an algebraic expression, but in the topic of functions, it can tell us a lot about a parabola, its turning point, its axis of symmetry, and even how to rewrite the function in a more useful form. Completing the square is a method that changes a quadratic expression into a form that is easier to interpret and use.
In this lesson, you will learn how to:
- explain the key ideas and vocabulary of completing the square
- rewrite quadratic functions into vertex form
- use completed square form to find turning points and symmetries
- connect this skill to graphs, transformations, and inverse ideas in functions
- apply IB Mathematics Analysis and Approaches SL reasoning to quadratic models
This is an important part of the Functions topic because it helps you move between different representations of the same function: standard form, vertex form, and graph form. That flexibility is a major goal in IB Mathematics Analysis and Approaches SL.
What Completing the Square Means
A quadratic function is often written in standard form as $f(x)=ax^2+bx+c$, where $a\neq 0$. Completing the square is a way to rewrite this expression so that one part becomes a perfect square trinomial, such as $x^2+6x+9=(x+3)^2$.
Why is this useful? Because a square is always non-negative. This makes the new form easier to analyze. For example, the function $f(x)=(x-2)^2+5$ immediately tells us that the smallest value of the function is $5$, and that it happens when $x=2$.
The completed square form of a quadratic is often called vertex form:
$$f(x)=a(x-h)^2+k$$
In this form, the turning point is $(h,k)$ if the function is written as $a(x-h)^2+k$. This is a powerful idea in functions because it shows the graph’s shape and position directly.
Key vocabulary
- Quadratic function: a function with highest power $2$
- Perfect square trinomial: an expression like $x^2+2px+p^2$ that factors into $(x+p)^2$
- Vertex form: $f(x)=a(x-h)^2+k$
- Turning point: the highest or lowest point on a parabola
- Axis of symmetry: the vertical line through the turning point, $x=h$
How to Complete the Square
Let’s begin with a simple example.
Consider $f(x)=x^2+8x+3$.
The goal is to rewrite the $x^2$ and $x$ terms as a square.
Step 1: Focus on the $x^2$ and $x$ terms
Take $x^2+8x$.
Step 2: Half the coefficient of $x$, then square it
The coefficient of $x$ is $8$. Half of $8$ is $4$, and $4^2=16$.
Step 3: Add and subtract that number
Write:
$$x^2+8x+16-16+3$$
Now group the first three terms:
$$=(x+4)^2-13$$
So the completed square form is:
$$f(x)=(x+4)^2-13$$
This form shows the turning point is $(-4,-13)$.
Why this works
We added $16$ to make a square, but then subtracted $16$ so the expression stayed equivalent. This preserves the original function exactly. In algebra, changing the appearance of an expression without changing its value is very useful because it reveals hidden structure.
Completing the Square When the Leading Coefficient Is Not $1$
Now let’s study a more general case. Suppose we have
$$f(x)=2x^2+12x+7$$
First, factor out $2$ from the terms involving $x$:
$$f(x)=2(x^2+6x)+7$$
Now complete the square inside the brackets. Half of $6$ is $3$, and $3^2=9$.
Add and subtract $9$ inside the brackets:
$$f(x)=2(x^2+6x+9-9)+7$$
Rewrite the square:
$$f(x)=2((x+3)^2-9)+7$$
Distribute the $2$:
$$f(x)=2(x+3)^2-18+7$$
So:
$$f(x)=2(x+3)^2-11$$
This gives the turning point $(-3,-11)$. Because $a=2>0$, the parabola opens upward, so this turning point is a minimum. 🌟
General procedure
For $ax^2+bx+c$:
- Factor out $a$ from the $x^2$ and $x$ terms if $a\neq 1$
- Take half of the coefficient of $x$
- Square that value
- Add and subtract it inside the brackets
- Simplify into vertex form
This procedure is often tested in IB because it checks both algebra skill and interpretation of results.
Connecting Completing the Square to Graphs and Functions
In the topic of functions, one important skill is switching between an equation and its graph. Completing the square makes this easier.
For example, compare these two functions:
$$f(x)=x^2-10x+21$$
and
$$g(x)=(x-5)^2-4$$
If we complete the square for $f(x)$, we get:
$$f(x)=x^2-10x+25-25+21=(x-5)^2-4$$
So $f(x)$ and $g(x)$ are the same function written in different forms.
From the vertex form, we can read off:
- the turning point is $(5,-4)$
- the axis of symmetry is $x=5$
- the parabola opens upward because $a=1>0$
This shows why completed square form is more than a trick. It is a function representation that gives immediate graph information.
Real-world connection
Imagine a ball thrown upward. Its height over time can be modeled by a quadratic function. If the equation is rewritten in completed square form, the turning point tells us the maximum height and the time when it occurs. This is useful in physics and engineering, where quadratic models describe motion, profit, and area problems.
Solving Problems Using Completed Square Form
Completing the square is not only for graphing. It also helps solve equations.
Suppose we want to solve:
$$x^2+4x-1=0$$
Rearrange:
$$x^2+4x=1$$
Complete the square. Half of $4$ is $2$, and $2^2=4$.
Add $4$ to both sides:
$$x^2+4x+4=5$$
So:
$$ (x+2)^2=5 $$
Now take the square root of both sides:
$$x+2=\pm\sqrt{5}$$
Therefore:
$$x=-2\pm\sqrt{5}$$
This method is especially useful when a quadratic cannot be factored easily. In IB Mathematics Analysis and Approaches SL, it connects algebraic manipulation with exact solutions.
Why this matters in functions
A function can be studied through its zeros, turning point, and overall shape. Completing the square helps you find all of these. It also shows the link between algebra and geometry: the algebraic expression reveals the geometric shape of the parabola.
Completing the Square and Broader Function Ideas
Completing the square fits into the Functions topic because it strengthens function language and representation.
It helps you understand:
- function notation such as $f(x)$
- input and output behavior
- transformations like shifts and stretches
- inverse ideas, because rewriting a function can make solving for $x$ easier
For instance, if $f(x)=(x-1)^2+6$, then the graph is the basic parabola $y=x^2$ shifted right by $1$ and up by $6$. This is a transformation of a parent function. Recognizing this helps with sketching and interpreting the graph quickly.
If a quadratic function is part of a larger model, completed square form may help compare it with exponential or logarithmic models by focusing on features such as minimum value, symmetry, and domain. Even though those other function types behave differently, the ability to interpret a function from its form is a shared mathematical skill.
Conclusion
students, completing the square is a key algebraic method that gives deeper meaning to quadratic functions. Instead of seeing only a string of terms like $ax^2+bx+c$, you can rewrite the expression in vertex form $a(x-h)^2+k$ and immediately read important graph features. That includes the turning point, axis of symmetry, direction of opening, and maximum or minimum value.
In IB Mathematics Analysis and Approaches SL, this technique supports solving equations, sketching graphs, analyzing models, and connecting algebra with function behavior. It is a strong example of how one algebraic procedure can reveal the structure of a function. ✅
Study Notes
- A quadratic function has the form $f(x)=ax^2+bx+c$, where $a\neq 0$.
- Completing the square rewrites a quadratic into vertex form $f(x)=a(x-h)^2+k$.
- In vertex form, the turning point is $(h,k)$, and the axis of symmetry is $x=h$.
- If $a>0$, the parabola opens upward and has a minimum value.
- If $a<0$, the parabola opens downward and has a maximum value.
- To complete the square, focus on the $x^2$ and $x$ terms, then use half the coefficient of $x$ and square it.
- For $ax^2+bx+c$ with $a\neq 1$, factor out $a$ first from the $x^2$ and $x$ terms.
- Completing the square can help solve quadratic equations exactly.
- This method is important in Functions because it links algebraic form, graph shape, and transformation ideas.
- Knowing how to complete the square helps you interpret quadratic models in real-world contexts like motion, area, and optimization.
