Completing the square rewrites a quadratic polynomial so that its minimum or maximum and its roots of a polynomial become easy to read. The linear term is absorbed into a shift of the variable; the resulting polynomial identity changes the description, rather than the values of the polynomial.
For coefficients in the real numbers, with ,
First factor out the leading coefficient from , then add and subtract inside the bracket. The cross term in is , exactly the term needed. Multiplication by restores . Thus the half-coefficient is , rather than unless the quadratic polynomial is a monic polynomial. Expanding the right-hand side verifies the polynomial identity directly.[ref]
For an original example,
For every in the real numbers, , with equality only at . The minimum is therefore , reached at ; no calculus is needed, and there are no roots of a polynomial in the real numbers. The expanded coefficients conceal these conclusions more effectively than the completed square does.
Start with a square of side length and add two rectangles, each with side lengths and . The total area is . Place the rectangles along two adjacent sides of the square: the missing corner is a by square, of area . Filling it produces a square of side length .
Figure 1.
Two rectangles and a missing corner explain
. An original area assembly, drawn at the stipulated positive side length . The corner has area ; the remaining constant gives . The diagram uses positive side lengths, while the polynomial identity holds for every in the real numbers. Details.
The area picture explains why the half-coefficient is squared. It also separates two operations that are easy to confuse: adding changes , whereas adding and subtracting preserves the expression. When solving an equation instead, adding to one side requires adding to the other side too.
Write the quadratic polynomial as
Its function graph is a parabola with vertex of a parabola . Equal offsets from give equal values, since . If , the minimum is ; if , the maximum is . In both cases it is attained only at .
For the nonmonic quadratic polynomial
the negative leading coefficient reverses the inequality: . Its maximum is at . Its coefficients are different from those of the positive example, but the same form exposes the shape of both function graphs.
Figure 1.
Completed squares reveal a quadratic's vertex, extremum and real roots
. Original function graphs of the two stipulated quadratic polynomials. On the left, stays above zero. On the right, opens downward and has roots of a polynomial ; the green labels round these values to three decimal places. The dashed lines pass through the vertices of parabolas. Details.
Completing the square also simplifies an integral containing the exponential function:
The substitution removes the linear term and leaves the standard Gaussian integral. The same shift that locates the minimum makes this integral recognizable.
Setting gives . A positive gives two distinct roots of a polynomial in the real numbers; zero gives a repeated root of a polynomial at ; a negative value gives a pair of complex conjugate roots of a polynomial. For the downward-opening example, the two roots of a polynomial are , approximately and .
The discriminant packages the same calculation, because
Since , the sign of determines which of the three cases occurs. This derives the quadratic formula by a polynomial identity, and explains its structure: first shift to , then take a square root. For the upward-opening example, gives the complex conjugate roots of a polynomial .
Al-Khwarizmi presented geometric completions of squares in his treatment of quadratic equations. His exposition used verbal instructions, positive lengths and areas, rather than the modern algebraic notation used here. The area assembly above illustrates the same principle with a different expression and arrangement. The modern polynomial identity also covers negative values of the variable and roots of a polynomial in the complex numbers, which need no interpretation as positive side lengths.[ref]

Ancestors (5)

  1. Polynomial
  2. Algebra
  3. Area of mathematics
  4. Mathematics
  5. Home

Discussion (0)

New discussion

There are no discussions about this article yet.

Articles by others on the same topic (1)

Completing the square is a mathematical technique used to transform a quadratic equation (or expression) of the form \( ax^2 + bx + c \) into a perfect square trinomial. This method allows us to solve quadratic equations, analyze their graphs, and derive the vertex form of a quadratic function. ### Steps to Complete the Square: 1. **Start with a quadratic expression** in the standard form: \[ ax^2 + bx + c \] 2.