- Completing the square
to the form
In this context, "constant" means not depending on x. The expression inside the parenthesis is of the form (x − constant). Thus one converts ax2 + bx + c to
and one must find h and k.
Completing the square is used in
- solving quadratic equations,
- graphing quadratic functions,
- evaluating integrals in calculus,
- finding Laplace transforms.
In mathematics, completing the square is considered a basic algebraic operation, and is often applied without remark in any computation involving quadratic polynomials.
- 1 Overview
- 2 Relation to the graph
- 3 Solving quadratic equations
- 4 Other applications
- 5 Geometric perspective
- 6 A variation on the technique
- 7 References
- 8 External links
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.
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 k is a constant. This operation is known as completing the square. For example:
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.
This allows us to write any quadratic polynomial in the form
The result of completing the square may be written as a formula. For the general case:
Specifically, when a=1:
Relation to the graph
the numbers h and k may be interpreted as the Cartesian coordinates of the vertex of the parabola. That is, h is the x-coordinate of the axis of symmetry, and k is the minimum value (or maximum value, if a < 0) of the quadratic function.
In other words, the graph of the function ƒ(x) = x2 is a parabola whose vertex is at the origin (0, 0). Therefore, the graph of the function ƒ(x − h) = (x − h)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 ƒ(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 ƒ(x − h) + k = (x − h)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
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:
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
Unlike methods involving factoring the equation, which is only reliable 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
In terser language:
Equations with complex roots can be handled in the same way. For example:
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:
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
Consider the expression
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
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". 
A variation on the technique
As conventionally taught, completing the square consists of adding the third term, v 2 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
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
Consider the problem of factoring the polynomial
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).
- ^ Narasimhan, Revathi (2008). Precalculus: Building Concepts and Connections. Cengage Learning. p. 133–134. ISBN 0-618-41301-4. http://books.google.com/books?id=hLZz3xcP0SAC. , Section Formula for the Vertex of a Quadratic Function, page 133–134, figure 2.4.8
- Algebra 1, Glencoe, ISBN 0-07-825083-8, pages 539–544
- Algebra 2, Saxon, ISBN 0-939798-62-X, pages 214–214, 241–242, 256–257, 398–401
Wikimedia Foundation. 2010.
Look at other dictionaries:
completing the square — Math. a method, usually of solving quadratic equations, by which a quadratic expression, as x2 4x + 3, is written as the sum or difference of a perfect square and a constant, x2 4x + 4 + 3 4 = (x 2)2 1, by addition and subtraction of appropriate… … Universalium
completing the square — Math. a method, usually of solving quadratic equations, by which a quadratic expression, as x2 4x + 3, is written as the sum or difference of a perfect square and a constant, x2 4x + 4 + 3 4 = (x 2)2 1, by addition and subtraction of appropriate… … Useful english dictionary
The World Ends with You — Left to right, Joshua, Neku, Beat (above), Shiki, and Rhyme Developer(s) Square Enix Jupiter … Wikipedia
Square Kilometre Array — The Square Kilometre Array (SKA) is a radio telescope in development which will have a total collecting area of approximately one square kilometre. [ [http://www.skatelescope.org/ Square Kilometre Array] website.] It will operate over a wide… … Wikipedia
The Sims 3 — Developer(s) The Sims Studio Publisher(s) Electronic Arts … Wikipedia
The Legend of Zelda (video game) — The Legend of Zelda North American box art Developer(s) Nintendo EAD Publisher(s) Ninten … Wikipedia
The Irish (in Countries Other Than Ireland) — The Irish (in countries other than Ireland) † Catholic Encyclopedia ► The Irish (in countries other than Ireland) I. IN THE UNITED STATES Who were the first Irish to land on the American continent and the time of their arrival are … Catholic encyclopedia
The Elder Scrolls IV: Oblivion — The Elder Scrolls IV: Oblivion … Wikipedia
The New York Times crossword puzzle — is a daily puzzle found in The New York Times and online at the paper s website. It is also syndicated to more than 300 other newspapers and journals. The puzzle is created by various freelance constructors and is edited by Will Shortz. The… … Wikipedia
The Amazing Race 10 — Season run September 17, 2006 – December 10, 2006 Filming dates May 27, 2006 – June 24, 2006 No. of episodes 13 Winning team Tyler Denk James Branaman Continents visited … Wikipedia