TOPICS
Search

Completing the Square


Completing the square is the geometric or algebraic operation that forms a square from a quadratic polynomial.

The Old Babylonian metric-algebra tablet MS 5112.

The Old Babylonian tablet MS 5112 shown above contains problems solved by metric-algebra transformations equivalent to completing the square (Friberg 2007).

A 1342 Arabic manuscript copy of al-Khwarizmi's {Al-jabr}.

Al-Khwarizmi's ninth-century Al-jabr, represented above by a 1342 manuscript copy, solved quadratic equations using verbal and geometric forms of this operation (Berggren 2007).

In modern notation, it converts a quadratic polynomial of the form ax^2+bx+c to the form

 a(x+b/(2a))^2+(c-(b^2)/(4a)),
(1)

which, defining B=b/2a and C=c-b^2/4a, simplifies to

 a(x+B)^2+C.
(2)
AlKhwarizmiCompletingSquare

For example, the geometric construction illustrated above corresponds to al-Khwarizmi's "square and ten roots equal 39," which in modern notation becomes

x^2+10x=39
(3)
(x+5)^2=64
(4)
x=3,
(5)

where only the positive root is admitted in the original geometrical setting. The added area 25 completes the square of side x+5 (Berggren 2007).


See also

Quadratic Equation, Quadratic Formula, Quadratic Polynomial

Explore with Wolfram|Alpha

References

Berggren, J. L. "Mathematics in Medieval Islam." In The Mathematics of Egypt, Mesopotamia, China, India, and Islam: A Sourcebook. (Ed. V. J. Katz). Princeton, NJ: Princeton University Press, pp. 526-529, 2007.Bodleian Libraries. "Al-Khwarizmi: Al-Jabr." MS Huntington 214, roll 332, frame 36, 1342. Public-domain image. https://commons.wikimedia.org/wiki/File:Bodleian_MS._Huntington_214_roll332_frame36.jpg.Friberg, J. "MS 5112: A Text with Equations for Squares and Rectangles." §11.2 in A Remarkable Collection of Babylonian Mathematical Texts: Manuscripts in the Schøyen Collection: Cuneiform Texts I. New York: Springer-Verlag, pp. 308-341, 2007.History of Mathematics Project. "Al-Khwarizmi's Al-Jabr." https://www.history-of-mathematics.org/artifacts/al-khwarizmis-al-jabr.History of Mathematics Project. "Babylonian Metric Algebra Problems Tablet." Image: Schøyen Collection, MS 5112; Cuneiform Digital Library Initiative, P254180. https://www.history-of-mathematics.org/artifacts/babylonian-metric-algebra-problems-tablet.

Referenced on Wolfram|Alpha

Completing the Square

Cite this as:

Weisstein, Eric W. "Completing the Square." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/CompletingtheSquare.html

Subject classifications