Hubbry Logo
Completing the squareCompleting the squareMain
Open search
Completing the square
Community hub
Completing the square
logo
8 pages, 0 posts
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
Completing the square
Completing the square
from Wikipedia
Animation depicting the process of completing the square. (Details, animated GIF version)

In elementary algebra, completing the square is a technique for converting a quadratic polynomial of the form to the form for some values of and .[1] In terms of a new quantity , this expression is a quadratic polynomial with no linear term. By subsequently isolating and taking the square root, a quadratic problem can be reduced to a linear problem.

The name completing the square comes from a geometrical picture in which represents an unknown length. Then the quantity represents the area of a square of side and the quantity represents the area of a pair of congruent rectangles with sides and . To this square and pair of rectangles, one more square is added, of side length . This crucial step completes a larger square of side length .

Completing the square is the oldest method of solving general quadratic equations, used in Old Babylonian clay tablets dating from 1800–1600 BCE, and is still taught in elementary algebra courses today. It is also used for graphing quadratic functions, deriving the quadratic formula, and more generally in computations involving quadratic polynomials, for example in calculus evaluating Gaussian integrals with a linear term in the exponent,[2] and finding Laplace transforms.[3][4]

History

[edit]

The technique of completing the square was known in the Old Babylonian Empire.[5]

Muhammad ibn Musa Al-Khwarizmi, a famous polymath who wrote the early algebraic treatise Al-Jabr, used the technique of completing the square to solve quadratic equations.[6]

Overview

[edit]

Background

[edit]

The formula in elementary algebra for computing the square of a binomial is:

For example:

In any perfect square, the coefficient of x is twice the number p, and the constant term is equal to p2.

Basic example

[edit]

Consider the following quadratic polynomial:

This quadratic is not a perfect square, since 28 is not the square of 5:

However, it is possible to write the original quadratic as the sum of this square and a constant:

This is called completing the square.

General description

[edit]

Given any monic quadratic it is possible to form a square that has the same first two terms:

This square differs from the original quadratic only in the value of the constant term. Therefore, we can write where . This operation is known as completing the square. For example:

Non-monic case

[edit]

Given a quadratic polynomial of the form it is possible to factor out the coefficient a, and then complete the square for the resulting monic polynomial.

Example: This process of factoring out the coefficient a can further be simplified by only factorising it out of the first 2 terms. The integer at the end of the polynomial does not have to be included.

Example:

This allows the writing of any quadratic polynomial in the form

Formula

[edit]

Scalar case

[edit]

The result of completing the square may be written as a formula. In the general case, one has[7] with

In particular, when a = 1, one has with

By solving the equation in terms of and reorganizing the resulting expression, one gets the quadratic formula for the roots of the quadratic equation:

Matrix case

[edit]

The matrix case looks very similar: where and . Note that has to be symmetric.

If is not symmetric the formulae for and have to be generalized to:

Relation to the graph

[edit]
Graphs of quadratic functions shifted to the right by h = 0, 5, 10, and 15.
Graphs of quadratic functions shifted to the right by h = 0, 5, 10, and 15.
Graphs of quadratic functions shifted upward by k = 0, 5, 10, and 15.
Graphs of quadratic functions shifted upward by k = 0, 5, 10, and 15.
Graphs of quadratic functions shifted upward and to the right by 0, 5, 10, and 15.
Graphs of quadratic functions shifted upward and to the right by 0, 5, 10, and 15.

In analytic geometry, the graph of any quadratic function is a parabola in the xy-plane. Given a quadratic polynomial of the form the numbers h and k may be interpreted as the Cartesian coordinates of the vertex (or stationary point) of the parabola. That is, h is the x-coordinate of the axis of symmetry (i.e. the axis of symmetry has equation x = h), and k is the minimum value (or maximum value, if a < 0) of the quadratic function.

One way to see this is to note that the graph of the function f(x) = x2 is a parabola whose vertex is at the origin (0, 0). Therefore, the graph of the function f(xh) = (xh)2 is a parabola shifted to the right by h whose vertex is at (h, 0), as shown in the top figure. In contrast, the graph of the function f(x) + k = x2 + k is a parabola shifted upward by k whose vertex is at (0, k), as shown in the center figure. Combining both horizontal and vertical shifts yields f(xh) + k = (xh)2 + k is a parabola shifted to the right by h and upward by k whose vertex is at (h, k), as shown in the bottom figure.

Solving quadratic equations

[edit]

Completing the square may be used to solve any quadratic equation. For example:

The first step is to complete the square:

Next we solve for the squared term:

Then either and therefore

This can be applied to any quadratic equation. When the x2 has a coefficient other than 1, the first step is to divide out the equation by this coefficient: for an example see the non-monic case below.

Irrational and complex roots

[edit]

Unlike methods involving factoring the equation, which is reliable only if the roots are rational, completing the square will find the roots of a quadratic equation even when those roots are irrational or complex. For example, consider the equation

Completing the square gives so Then either

In terser language: so

Equations with complex roots can be handled in the same way. For example:

Non-monic case

[edit]

For an equation involving a non-monic quadratic, the first step to solving them is to divide through by the coefficient of x2. For example:

Applying this procedure to the general form of a quadratic equation leads to the quadratic formula.

Other applications

[edit]

Integration

[edit]

Completing the square may be used to evaluate any integral of the form using the basic integrals

For example, consider the integral

Completing the square in the denominator gives:

This can now be evaluated by using the substitution u = x + 3, which yields

Complex numbers

[edit]

Consider the expression where z and b are complex numbers, z* and b* are the complex conjugates of z and b, respectively, and c is a real number. Using the identity |u|2 = uu* we can rewrite this as which is clearly a real quantity. This is because

As another example, the expression where a, b, c, x, and y are real numbers, with a > 0 and b > 0, may be expressed in terms of the square of the absolute value of a complex number. Define

Then so

Idempotent matrix

[edit]

A matrix M is idempotent when M2 = M. Idempotent matrices generalize the idempotent properties of 0 and 1. The completion of the square method of addressing the equation shows that some idempotent 2×2 matrices are parametrized by a circle in the (a,b)-plane:

The matrix will be idempotent provided which, upon completing the square, becomes In the (a,b)-plane, this is the equation of a circle with center (1/2, 0) and radius 1/2.

Geometric perspective

[edit]

Consider completing the square for the equation

Since x2 represents the area of a square with side of length x, and bx represents the area of a rectangle with sides b and x, the process of completing the square can be viewed as visual manipulation of rectangles.

Simple attempts to combine the x2 and the bx rectangles into a larger square result in a missing corner. The term (b/2)2 added to each side of the above equation is precisely the area of the missing corner, whence derives the terminology "completing the square".[8]

A variation on the technique

[edit]

As conventionally taught, completing the square consists of adding the third term, v2 to to get a square. There are also cases in which one can add the middle term, either 2uv or −2uv, to to get a square.

Example: the sum of a positive number and its reciprocal

[edit]

By writing we show that the sum of a positive number x and its reciprocal is always greater than or equal to 2. The square of a real expression is always greater than or equal to zero, which gives the stated bound; and here we achieve 2 just when x is 1, causing the square to vanish.

Example: factoring a simple quartic polynomial

[edit]

Consider the problem of factoring the polynomial

This is so the middle term is 2(x2)(18) = 36x2. Thus we get (the last line being added merely to follow the convention of decreasing degrees of terms).

The same argument shows that is always factorizable as (Also known as Sophie Germain's identity).

Completing the cube

[edit]

"Completing the square" consists to remark that the two first terms of a quadratic polynomial are also the first terms of the square of a linear polynomial, and to use this for expressing the quadratic polynomial as the sum of a square and a constant.

Completing the cube is a similar technique that allows to transform a cubic polynomial into a cubic polynomial without term of degree two.

More precisely, if

is a polynomial in x such that its two first terms are the two first terms of the expanded form of

So, the change of variable

provides a cubic polynomial in without term of degree two, which is called the depressed form of the original polynomial.

This transformation is generally the first step of the methods for solving the general cubic equation.

More generally, a similar transformation can be used for removing terms of degree in polynomials of degree , which is called Tschirnhaus transformation.

References

[edit]
[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
Completing the square is an algebraic technique for solving quadratic equations of the form ax2+bx+c=0ax^2 + bx + c = 0 by transforming the quadratic expression into a perfect square trinomial plus or minus a constant, allowing the use of the square root property to find the roots. This method dates back to ancient civilizations, with evidence of geometric approaches to completing squares appearing in Old Babylonian tablets around 1900 BC, where problems involving areas were solved by filling L-shaped regions to form squares. Later, in the , the Persian mathematician formalized the process in his treatise Al-Kitab al-mukhtasar fi hisab al-jabr wa-l-muqabala, using geometric constructions to handle cases of quadratic equations without negative numbers. The primary purpose of completing the square is to rewrite a quadratic polynomial ax2+bx+cax^2 + bx + c in vertex form a(xh)2+ka(x - h)^2 + k, where the vertex of the associated parabola is at (h,k)(h, k) with h=b/(2a)h = -b/(2a) and k=cb2/(4a)k = c - b^2/(4a). This form facilitates graphing parabolas, evaluating definite integrals involving quadratic expressions, and Laplace transforms in more advanced . Although less commonly used for direct equation solving due to its procedural complexity compared to the , it serves as the foundational derivation for that formula by applying the steps to the general . To complete the square, first ensure the leading a=1a = 1 by dividing the equation by aa if necessary; for example, in 2x2+6x+7=02x^2 + 6x + 7 = 0, divide by 2 to get x2+3x+3.5=0x^2 + 3x + 3.5 = 0. Move the constant term to the other side, then add (b2)2\left(\frac{b}{2}\right)^2 (half the of xx, squared) to both sides to form the perfect square: for x2+4x=3x^2 + 4x = -3, add 44 to both sides yielding (x+2)2=1(x + 2)^2 = 1, which solves as x+2=±1x + 2 = \pm 1 or x=1,3x = -1, -3. For non-monic quadratics, factor out aa from the x2x^2 and xx terms before completing the square inside the parentheses. This method is particularly efficient when the of the linear term is even, ensuring values during the process.

Introduction

Definition and purpose

Completing the square is an algebraic technique used to rewrite a quadratic polynomial of the form ax2+bx+cax^2 + bx + c into its vertex form, a(xh)2+ka(x - h)^2 + k, where hh and kk are constants determined by the coefficients aa, bb, and cc. This transformation involves manipulating the expression to form a perfect square trinomial, revealing the structural properties of the quadratic. The process assumes a basic understanding of quadratic polynomials and their standard form. The primary purpose of completing the square is to facilitate the solution of quadratic equations by converting them into a form that can be solved using square roots, thereby avoiding direct reliance on the . It also aids in graphing parabolas by directly identifying the vertex coordinates (h,k)(h, k), which represent the and axis of of the curve. Furthermore, this method provides insights into the minimum or maximum values of the , occurring at the vertex: a minimum if a>0a > 0 or a maximum if a<0a < 0.

Basic example

To illustrate the process of completing the square, consider the quadratic equation x2+6x+5=0x^2 + 6x + 5 = 0. This monic quadratic provides a straightforward case to demonstrate the method's steps, which transform the equation into a form that reveals its roots and vertex. Begin by isolating the quadratic and linear terms on one side of the equation: x2+6x+5=0    x2+6x=5x^2 + 6x + 5 = 0 \implies x^2 + 6x = -5 Here, the constant term is moved to the right side to prepare for forming a perfect square trinomial on the left. Next, take half of the coefficient of xx (which is 6, so half is 3) and square it to get 9. Add this value to both sides of the equation: x2+6x+9=5+9    x2+6x+9=4x^2 + 6x + 9 = -5 + 9 \implies x^2 + 6x + 9 = 4 The left side now factors as a perfect square: (x+3)2=4(x + 3)^2 = 4 This step completes the square by adjusting the expression to match the form (x+b2)2(x + \frac{b}{2})^2, where b=6b = 6. To solve for xx, take the square root of both sides, accounting for both positive and negative roots: x+3=±4    x+3=±2x + 3 = \pm \sqrt{4} \implies x + 3 = \pm 2
Add your contribution
Related Hubs
User Avatar
No comments yet.