Section A.1 Completing the Square
An important algebraic technique is known as completing the square. For example, when trying to identify the shape of the curve satisfying
we can start by noticing the terms \(x^2+y^2\text{,}\) which suggests that this implicit equation might describe a circle. The equation for a circle involves the sum of squares, so we need to find a way to convert the terms \(x^2-6x\) into a perfect square. That is, we'd like to replace these terms by something of the form \((x-h)^2\text{.}\) Expanding, we have
so it is clear that we should set \(h=3\text{.}\) What about the missing term \(h^2=9\text{?}\) Take it from the constant term \(16\text{!}\) Explicitly, since
we have
or in other words
which is the equation of a circle of radius \(5\) centered at the point \((3,0)\text{.}\)
This example demonstrates the technique known as completing the square. Given an expression of the form
we'd like to eliminate the linear term. Reasoning along similar lines as above, we have
Completing the square is the technique used to prove the quadratic formula, see Section A.2.