In mathematics, a square is the result of multiplying a number by itself. The verb "to square" is used to denote this operation. Squaring is the same as raising to the powerΒ 2, and is denoted by a superscript 2; for instance, the square of 3 may be written as 3, which is the number 9.In some cases when superscripts are not available, as for instance in programming languages or plain text files, the notations x^2 (caret) or x**2 may be used in place of x.The adjective which corresponds to squaring is quadratic.
The square of an integer may also be called a square number or a perfect square. In algebra, the operation of squaring is often generalized to polynomials, other expressions, or values in systems of mathematical values other than the numbers. For instance, the square of the linear polynomial x + 1 is the quadratic polynomial (x + 1) = x + 2x + 1.