Other meanings of Completing the square
Algebra
Completing the square is a fundamental algebraic technique that transforms a quadratic expression of the form ax² + bx + c into a perfect square trinomial plus a constant. It is used to solve quadratic equations, derive the quadratic formula, and analyze the properties of parabolas.
Completing the square rewrites a quadratic expression as a perfect square plus a constant. For a monic quadratic x² + bx, add and subtract (b/2)² to obtain (x + b/2)² − (b/2)². For the general form ax² + bx + c, first factor out a, then complete the square inside the parentheses, yielding a(x + b/(2a))² + (c − b²/(4a)). This form reveals the vertex of the parabola: the minimum or maximum occurs at x = −b/(2a).1
Completing the square is essential for solving quadratic equations when factoring is not straightforward. By isolating the perfect square and taking the square root, one obtains the quadratic formula x = (−b ± √(b² − 4ac))/(2a).2 It also simplifies integrals involving quadratics, such as ∫ dx/(x² + px + q), by transforming the denominator into a sum of squares, a technique frequently used in calculus and differential equations.3
The method predates algebraic notation, appearing in geometric form in ancient Babylonian and Greek mathematics. Al-Khwarizmi's 9th-century treatise Al-Jabr solved quadratic equations by literally completing a square geometrically, adding a small square to a larger one to find the side length.4 The algebraic formulation as we know it emerged in the 16th century with European mathematicians like Michael Stifel and François Viète, who introduced symbolic manipulation of variables.5
Beyond quadratics, completing the square generalizes to higher-degree polynomials and matrix equations. In linear algebra, it underlies the Cholesky decomposition and the method of least squares.6 In number theory, it is used to prove that every positive integer is a sum of four squares (Lagrange's theorem) by completing the square in the context of quaternions.7 The technique also appears in statistics when deriving the normal distribution's density, and in physics when analyzing harmonic oscillators. A curious edge case: when the coefficient a is negative, completing the square still works but the vertex represents a maximum rather than a minimum.8
Completing the square is a cornerstone of algebra, bridging geometry, analysis, and number theory.
Help improve the encyclopedia. Reports go straight to the site manager.