Template:Short description Template:Redirect Template:Pp-semi-indef

File:Nuvola apps edu mathematics blue-p.svg
Notation for the (principal) square root of Template:Mvar.
File:Five Squared.svg
For example, Template:Math, since Template:Math, or Template:Math (5 squared).

In mathematics, a square root of a number Template:Mvar is a number Template:Mvar such that <math>y^2 = x</math>; in other words, a number Template:Mvar whose square (the result of multiplying the number by itself, or <math>y \cdot y</math>) is Template:Mvar.<ref>Gel'fand, p. 120 Template:Webarchive </ref> For example, 4 and −4 are square roots of 16 because <math>4^2 = (-4)^2 = 16</math>.

Every nonnegative real number Template:Mvar has a unique nonnegative square root, called the principal square root or simply the square root (with a definite article, see below), which is denoted by <math>\sqrt{x},</math> where the symbol "<math>\sqrt{~^~}</math>" is called the radical sign<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> or radix. For example, to express the fact that the principal square root of 9 is 3, we write <math>\sqrt{9} = 3</math>. The term (or number) whose square root is being considered is known as the radicand. The radicand is the number or expression underneath the radical sign, in this case, 9. For non-negative Template:Mvar, the principal square root can also be written in exponent notation, as <math>x^{1/2}</math>.

Every positive number Template:Mvar has two square roots: <math>\sqrt{x}</math> (which is positive) and <math>-\sqrt{x}</math> (which is negative). The two roots can be written more concisely using the ± sign as <math>\pm\sqrt{x}</math>. Although the principal square root of a positive number is only one of its two square roots, the designation "the square root" is often used to refer to the principal square root.<ref>Template:Cite book Extract of page 78 Template:Webarchive</ref><ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

Square roots of negative numbers can be discussed within the framework of complex numbers. More generally, square roots can be considered in any context in which a notion of the "square" of a mathematical object is defined. These include function spaces and square matrices, among other mathematical structures.

HistoryEdit

File:Ybc7289-bw.jpg
YBC 7289 clay tablet

The Yale Babylonian Collection clay tablet YBC 7289 was created between 1800 BC and 1600 BC, showing <math>\sqrt{2}</math> and <math display="inline">\frac{\sqrt{2}}{2} = \frac{1}{\sqrt{2}}</math> respectively as 1;24,51,10 and 0;42,25,35 base 60 numbers on a square crossed by two diagonals.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> (1;24,51,10) base 60 corresponds to 1.41421296, which is correct to 5 decimal places (1.41421356...).

The Rhind Mathematical Papyrus is a copy from 1650 BC of an earlier Berlin Papyrus and other textsTemplate:Sndpossibly the Kahun PapyrusTemplate:Sndthat shows how the Egyptians extracted square roots by an inverse proportion method.<ref>Anglin, W.S. (1994). Mathematics: A Concise History and Philosophy. New York: Springer-Verlag.</ref>

In Ancient India, the knowledge of theoretical and applied aspects of square and square root was at least as old as the Sulba Sutras, dated around 800–500 BC (possibly much earlier).<ref>Template:Cite journal</ref> A method for finding very good approximations to the square roots of 2 and 3 are given in the Baudhayana Sulba Sutra.<ref>Joseph, ch.8.</ref> Apastamba who was dated around 600 BCE has given a strikingly accurate value for <math>\sqrt{2}</math> which is correct up to five decimal places as <math display="inline"> 1 + \frac{1}{3} + \frac{1}{3\times 4} - \frac{1}{3\times 4\times 34}</math>.<ref>Template:Cite journal</ref><ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> <ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> Aryabhata, in the Aryabhatiya (section 2.4), has given a method for finding the square root of numbers having many digits.

It was known to the ancient Greeks that square roots of positive integers that are not perfect squares are always irrational numbers: numbers not expressible as a ratio of two integers (that is, they cannot be written exactly as <math>\frac{m}{n}</math>, where Template:Mvar and Template:Mvar are integers). This is the theorem Euclid X, 9, almost certainly due to Theaetetus dating back to Template:Circa.<ref>Template:Cite book</ref> The discovery of irrational numbers, including the particular case of the square root of 2, is widely associated with the Pythagorean school.<ref>Template:Cite book Extract of page 49</ref><ref>Template:Cite book Extract of page 71</ref> Although some accounts attribute the discovery to Hippasus, the specific contributor remains uncertain due to the scarcity of primary sources and the secretive nature of the brotherhood.<ref>Boyer, Carl B.; Merzbach, Uta C. (2011). A History of Mathematics (3rd ed.). Hoboken, NJ: John Wiley & Sons. pp. 51–53. ISBN 978-0470525487.</ref><ref>Stillwell, John (2010). Mathematics and Its History (3rd ed.). New York, NY: Springer. pp. 14–15. ISBN 978-1441960528.</ref> It is exactly the length of the diagonal of a square with side length 1.

In the Chinese mathematical work Writings on Reckoning, written between 202 BC and 186 BC during the early Han dynasty, the square root is approximated by using an "excess and deficiency" method, which says to "...combine the excess and deficiency as the divisor; (taking) the deficiency numerator multiplied by the excess denominator and the excess numerator times the deficiency denominator, combine them as the dividend."<ref>Dauben (2007), p. 210.</ref>

A symbol for square roots, written as an elaborate R, was invented by Regiomontanus (1436–1476). An R was also used for radix to indicate square roots in Gerolamo Cardano's Ars Magna.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

According to historian of mathematics D.E. Smith, Aryabhata's method for finding the square root was first introduced in Europe by Cataneo—in 1546.

According to Jeffrey A. Oaks, Arabs used the letter jīm/ĝīm ({{#invoke:Lang|lang}}), the first letter of the word "{{#invoke:Lang|lang}}" (variously transliterated as jaḏr, jiḏr, ǧaḏr or ǧiḏr, "root"), placed in its initial form ({{#invoke:Lang|lang}}) over a number to indicate its square root. The letter jīm resembles the present square root shape. Its usage goes as far as the end of the twelfth century in the works of the Moroccan mathematician Ibn al-Yasamin.<ref>Template:Cite thesis</ref>

The symbol "√" for the square root was first used in print in 1525, in Christoph Rudolff's Coss.<ref>Template:Cite book</ref>

Properties and usesEdit

File:Square root 0 25.svg
The graph of the function Template:Math, made up of half a parabola with a vertical directrix

The principal square root function <math>f(x) = \sqrt{x}</math> (usually just referred to as the "square root function") is a function that maps the set of nonnegative real numbers onto itself. In geometrical terms, the square root function maps the area of a square to its side length.

The square root of Template:Mvar is rational if and only if Template:Mvar is a rational number that can be represented as a ratio of two perfect squares. (See square root of 2 for proofs that this is an irrational number, and quadratic irrational for a proof for all non-square natural numbers.) The square root function maps rational numbers into algebraic numbers, the latter being a superset of the rational numbers).

For all real numbers Template:Mvar,<math display="block"> \sqrt{x^2} = \left|x\right| = \begin{cases}

 x,  & \text{if }x \ge 0 \\
 -x, & \text{if }x < 0. 

\end{cases} </math> (see absolute value).

For all nonnegative real numbers Template:Mvar and Template:Mvar,<math display="block">\sqrt{xy} = \sqrt x \sqrt y</math> and <math display="block">\sqrt x = x^{1/2}.</math>

The square root function is continuous for all nonnegative Template:Mvar, and differentiable for all positive Template:Mvar. If Template:Math denotes the square root function, whose derivative is given by:<math display="block">f'(x) = \frac{1}{2\sqrt x}.</math>

The Taylor series of <math>\sqrt{1 + x}</math> about Template:Math converges for Template:Math, and is given by

<math display="block">\sqrt{1 + x} = \sum_{n=0}^\infty \frac{(-1)^n(2n)!}{(1-2n)(n!)^2(4^n)}x^n = 1 + \frac{1}{2}x - \frac{1}{8}x^2 + \frac{1}{16} x^3 - \frac{5}{128} x^4 + \cdots,</math>

The square root of a nonnegative number is used in the definition of Euclidean norm (and distance), as well as in generalizations such as Hilbert spaces. It defines an important concept of standard deviation used in probability theory and statistics. It has a major use in the formula for solutions of a quadratic equation. Quadratic fields and rings of quadratic integers, which are based on square roots, are important in algebra and have uses in geometry. Square roots frequently appear in mathematical formulas elsewhere, as well as in many physical laws.

Square roots of positive integersEdit

A positive number has two square roots, one positive, and one negative, which are opposite to each other. When talking of the square root of a positive integer, it is usually the positive square root that is meant.

The square roots of an integer are algebraic integers—more specifically quadratic integers.

The square root of a positive integer is the product of the roots of its prime factors, because the square root of a product is the product of the square roots of the factors. Since <math display="inline">\sqrt{p^{2k}} = p^k,</math> only roots of those primes having an odd power in the factorization are necessary. More precisely, the square root of a prime factorization is<math display="block">\sqrt{p_1^{2e_1+1} \cdots p_k^{2e_k+1}p_{k+1}^{2e_{k+1}} \dots p_n^{2e_n}} = p_1^{e_1} \dots p_n^{e_n} \sqrt{p_1\dots p_k}.</math>

As decimal expansionsEdit

The square roots of the perfect squares (e.g., 0, 1, 4, 9, 16) are integers. In all other cases, the square roots of positive integers are irrational numbers, and hence have non-repeating decimals in their decimal representations. Decimal approximations of the square roots of the first few natural numbers are given in the following table.

Template:Mvar <math>\sqrt{n},</math> truncated to 50 decimal places
0 0
1 1
2 [[Square root of 2|Template:Gaps]]
3 [[Square root of 3|Template:Gaps]]
4 2
5 [[Square root of 5|Template:Gaps]]
6 [[Square root of 6|Template:Gaps]]
7 [[Square root of 7|Template:Gaps]]
8 Template:Gaps
9 3
10 Template:Gaps

As expansions in other numeral systemsEdit

As with before, the square roots of the perfect squares (e.g., 0, 1, 4, 9, 16) are integers. In all other cases, the square roots of positive integers are irrational numbers, and therefore have non-repeating digits in any standard positional notation system.

The square roots of small integers are used in both the SHA-1 and SHA-2 hash function designs to provide nothing up my sleeve numbers.

As periodic continued fractionsEdit

A result from the study of irrational numbers as simple continued fractions was obtained by Joseph Louis Lagrange Template:Circa. Lagrange found that the representation of the square root of any non-square positive integer as a continued fraction is periodic. That is, a certain pattern of partial denominators repeats indefinitely in the continued fraction. In a sense these square roots are the very simplest irrational numbers, because they can be represented with a simple repeating pattern of integers.

<math>\sqrt{2}</math> = [1; 2, 2, ...]
<math>\sqrt{3}</math> = [1; 1, 2, 1, 2, ...]
<math>\sqrt{4}</math> = [2]
<math>\sqrt{5}</math> = [2; 4, 4, ...]
<math>\sqrt{6}</math> = [2; 2, 4, 2, 4, ...]
<math>\sqrt{7}</math> = [2; 1, 1, 1, 4, 1, 1, 1, 4, ...]
<math>\sqrt{8}</math> = [2; 1, 4, 1, 4, ...]
<math>\sqrt{9}</math> = [3]
<math>\sqrt{10}</math> = [3; 6, 6, ...]
<math>\sqrt{11}</math> = [3; 3, 6, 3, 6, ...]
<math>\sqrt{12}</math> = [3; 2, 6, 2, 6, ...]
<math>\sqrt{13}</math> = [3; 1, 1, 1, 1, 6, 1, 1, 1, 1, 6, ...]
<math>\sqrt{14}</math> = [3; 1, 2, 1, 6, 1, 2, 1, 6, ...]
<math>\sqrt{15}</math> = [3; 1, 6, 1, 6, ...]
<math>\sqrt{16}</math> = [4]
<math>\sqrt{17}</math> = [4; 8, 8, ...]
<math>\sqrt{18}</math> = [4; 4, 8, 4, 8, ...]
<math>\sqrt{19}</math> = [4; 2, 1, 3, 1, 2, 8, 2, 1, 3, 1, 2, 8, ...]
<math>\sqrt{20}</math> = [4; 2, 8, 2, 8, ...]

The square bracket notation used above is a short form for a continued fraction. Written in the more suggestive algebraic form, the simple continued fraction for the square root of 11, [3; 3, 6, 3, 6, ...], looks like this:<math display="block"> \sqrt{11} = 3 + \cfrac{1}{3 + \cfrac{1}{6 + \cfrac{1}{3 + \cfrac{1}{6 + \cfrac{1}{3 + \ddots}}}}} </math>

where the two-digit pattern {3, 6} repeats over and over again in the partial denominators. Since Template:Math, the above is also identical to the following generalized continued fractions:

<math display="block"> \sqrt{11} = 3 + \cfrac{2}{6 + \cfrac{2}{6 + \cfrac{2}{6 + \cfrac{2}{6 + \cfrac{2}{6 + \ddots}}}}} = 3 + \cfrac{6}{20 - 1 - \cfrac{1}{20 - \cfrac{1}{20 - \cfrac{1}{20 - \cfrac{1}{20 - \ddots}}}}}. </math>

ComputationEdit

Template:Main article Square roots of positive numbers are not in general rational numbers, and so cannot be written as a terminating or recurring decimal expression. Therefore in general any attempt to compute a square root expressed in decimal form can only yield an approximation, though a sequence of increasingly accurate approximations can be obtained.

Most pocket calculators have a square root key. Computer spreadsheets and other software are also frequently used to calculate square roots. Pocket calculators typically implement efficient routines, such as the Newton's method (frequently with an initial guess of 1), to compute the square root of a positive real number.<ref>Template:Cite book</ref><ref>Template:Cite book</ref> When computing square roots with logarithm tables or slide rules, one can exploit the identities<math display="block">\sqrt{a} = e^{(\ln a)/2} = 10^{(\log_{10} a)/2},</math> where Template:Math and Template:Math are the natural and base-10 logarithms.

By trial-and-error,<ref>Template:Cite book Extract of page 41 Template:Webarchive</ref> one can square an estimate for <math>\sqrt{a}</math> and raise or lower the estimate until it agrees to sufficient accuracy. For this technique it is prudent to use the identity<math display="block">(x + c)^2 = x^2 + 2xc + c^2,</math> as it allows one to adjust the estimate Template:Mvar by some amount Template:Mvar and measure the square of the adjustment in terms of the original estimate and its square.

The most common iterative method of square root calculation by hand is known as the "Babylonian method" or "Heron's method" after the first-century Greek philosopher Heron of Alexandria, who first described it.<ref>Template:Cite book</ref> The method uses the same iterative scheme as the Newton–Raphson method yields when applied to the function Template:Math, using the fact that its slope at any point is Template:Math, but predates it by many centuries.<ref>Template:Cite book, Chapter 5, p 92 Template:Webarchive </ref> The algorithm is to repeat a simple calculation that results in a number closer to the actual square root each time it is repeated with its result as the new input. The motivation is that if Template:Mvar is an overestimate to the square root of a nonnegative real number Template:Mvar then Template:Math will be an underestimate and so the average of these two numbers is a better approximation than either of them. However, the inequality of arithmetic and geometric means shows this average is always an overestimate of the square root (as noted below), and so it can serve as a new overestimate with which to repeat the process, which converges as a consequence of the successive overestimates and underestimates being closer to each other after each iteration. To find Template:Mvar:

  1. Start with an arbitrary positive start value Template:Mvar. The closer to the square root of Template:Mvar, the fewer the iterations that will be needed to achieve the desired precision.
  2. Replace Template:Mvar by the average Template:Math between Template:Math and Template:Math.
  3. Repeat from step 2, using this average as the new value of Template:Mvar.

That is, if an arbitrary guess for <math>\sqrt{a}</math> is Template:Math, and Template:Math, then each Template:Math is an approximation of <math>\sqrt{a}</math> which is better for large Template:Mvar than for small Template:Mvar. If Template:Mvar is positive, the convergence is quadratic, which means that in approaching the limit, the number of correct digits roughly doubles in each next iteration. If Template:Math, the convergence is only linear; however, <math>\sqrt{0} = 0</math> so in this case no iteration is needed.

Using the identity<math display="block">\sqrt{a} = 2^{-n}\sqrt{4^n a},</math> the computation of the square root of a positive number can be reduced to that of a number in the range Template:Closed-open. This simplifies finding a start value for the iterative method that is close to the square root, for which a polynomial or piecewise-linear approximation can be used.

The time complexity for computing a square root with Template:Mvar digits of precision is equivalent to that of multiplying two Template:Mvar-digit numbers.

Another useful method for calculating the square root is the shifting nth root algorithm, applied for Template:Math.

The name of the square root function varies from programming language to programming language, with sqrt<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> (often pronounced "squirt"<ref>Template:Cite book</ref>) being common, used in C and derived languages such as C++, JavaScript, PHP, and Python.

Square roots of negative and complex numbersEdit

Template:Multiple image

The square of any positive or negative number is positive, and the square of 0 is 0. Therefore, no negative number can have a real square root. However, it is possible to work with a more inclusive set of numbers, called the complex numbers, that does contain solutions to the square root of a negative number. This is done by introducing a new number, denoted by Template:Math (sometimes by Template:Math, especially in the context of electricity where i traditionally represents electric current) and called the imaginary unit, which is defined such that Template:Math. Using this notation, we can think of Template:Math as the square root of −1, but we also have Template:Math and so Template:Math is also a square root of −1. By convention, the principal square root of −1 is Template:Math, or more generally, if Template:Math is any nonnegative number, then the principal square root of Template:Math is <math display="block">\sqrt{-x} = i \sqrt x.</math>

The right side (as well as its negative) is indeed a square root of Template:Math, since<math display="block">(i\sqrt x)^2 = i^2(\sqrt x)^2 = (-1)x = -x.</math>

For every non-zero complex number Template:Mvar there exist precisely two numbers Template:Mvar such that Template:Math: the principal square root of Template:Mvar (defined below), and its negative.

Principal square root of a complex numberEdit

Template:Visualisation complex number roots To find a definition for the square root that allows us to consistently choose a single value, called the principal value, we start by observing that any complex number <math>x + i y</math> can be viewed as a point in the plane, <math>(x, y),</math> expressed using Cartesian coordinates. The same point may be reinterpreted using polar coordinates as the pair <math>(r, \varphi),</math> where <math>r \geq 0</math> is the distance of the point from the origin, and <math>\varphi</math> is the angle that the line from the origin to the point makes with the positive real (<math>x</math>) axis. In complex analysis, the location of this point is conventionally written <math>r e^{i\varphi}.</math> If<math display=block>z = r e^{i \varphi} \text{ with } -\pi < \varphi \leq \pi,</math> then the Template:Em of <math>z</math> is defined to be the following:<math display=block>\sqrt{z} = \sqrt{r} e^{i \varphi / 2}.</math> The principal square root function is thus defined using the non-positive real axis as a branch cut. If <math>z</math> is a non-negative real number (which happens if and only if <math>\varphi = 0</math>) then the principal square root of <math>z</math> is <math>\sqrt{r} e^{i (0) / 2} = \sqrt{r};</math> in other words, the principal square root of a non-negative real number is just the usual non-negative square root. It is important that <math>-\pi < \varphi \leq \pi</math> because if, for example, <math>z = - 2 i</math> (so <math>\varphi = -\pi/2</math>) then the principal square root is<math display=block>\sqrt{-2 i} = \sqrt{2 e^{i\varphi}} = \sqrt{2} e^{i\varphi/2} = \sqrt{2} e^{i(-\pi/4)} = 1 - i</math> but using <math>\tilde{\varphi} := \varphi + 2 \pi = 3\pi/2</math> would instead produce the other square root <math>\sqrt{2} e^{i\tilde{\varphi}/2} = \sqrt{2} e^{i(3\pi/4)} = -1 + i = - \sqrt{-2 i}.</math>

The principal square root function is holomorphic everywhere except on the set of non-positive real numbers (on strictly negative reals it is not even continuous). The above Taylor series for <math>\sqrt{1 + x}</math> remains valid for complex numbers <math>x</math> with <math>|x| < 1.</math>

The above can also be expressed in terms of trigonometric functions:<math display=block>\sqrt{r \left(\cos \varphi + i \sin \varphi \right)} = \sqrt{r} \left(\cos \frac{\varphi}{2} + i \sin \frac{\varphi}{2} \right).</math>

Algebraic formulaEdit

When the number is expressed using its real and imaginary parts, the following formula can be used for the principal square root:<ref>Template:Cite book, Section 3.7.27, p. 17 Template:Webarchive </ref><ref>Template:Cite book </ref>

<math display=block> \sqrt{x+iy} = \sqrt{\tfrac12\bigl(\sqrt{\textstyle x^2+y^2} + x\bigr)} +

             i\sgn(y) \sqrt{\tfrac12\bigl(\sqrt{\textstyle x^2+y^2} - x\bigr)},

</math>

where Template:Math if Template:Math and Template:Math otherwise.<ref>This sign function differs from the usual sign function by its value at Template:Math.</ref> In particular, the imaginary parts of the original number and the principal value of its square root have the same sign. The real part of the principal value of the square root is always nonnegative.

For example, the principal square roots of Template:Math are given by:

<math display=block>

  \sqrt{i} = \frac{1+i}{\sqrt2}, \qquad
  \sqrt{-i} = \frac{1 - i}{\sqrt2}.</math>

NotesEdit

In the following, the complex Template:Mvar and Template:Mvar may be expressed as:

  • <math> z = |z| e^{i \theta_z}</math>
  • <math> w = |w| e^{i \theta_w}</math>

where <math>-\pi<\theta_z\le\pi</math> and <math>-\pi<\theta_w\le\pi</math>.

Because of the discontinuous nature of the square root function in the complex plane, the following laws are not true in general.

A similar problem appears with other complex functions with branch cuts, e.g., the complex logarithm and the relations Template:Math or Template:Math which are not true in general.

Wrongly assuming one of these laws underlies several faulty "proofs", for instance the following one showing that Template:Math: <math display="block">\begin{align} -1 &= i \cdot i \\ &= \sqrt{-1} \cdot \sqrt{-1} \\ &= \sqrt{\left(-1\right)\cdot\left(-1\right)} \\ &= \sqrt{1} \\ &= 1. \end{align}</math>

The third equality cannot be justified (see invalid proof).<ref>Template:Cite book</ref>Template:Rp It can be made to hold by changing the meaning of √ so that this no longer represents the principal square root (see above) but selects a branch for the square root that contains <math>\sqrt{1}\cdot\sqrt{-1}.</math> The left-hand side becomes either<math display="block">\sqrt{-1} \cdot \sqrt{-1}=i \cdot i=-1</math> if the branch includes Template:Math or<math display="block">\sqrt{-1} \cdot \sqrt{-1}=(-i) \cdot (-i)=-1</math> if the branch includes Template:Math, while the right-hand side becomes<math display="block">\sqrt{\left(-1\right)\cdot\left(-1\right)} = \sqrt{1} = -1,</math> where the last equality, <math>\sqrt{1} = -1,</math> is a consequence of the choice of branch in the redefinition of Template:Math.

Template:Mvarth roots and polynomial rootsEdit

The definition of a square root of <math>x</math> as a number <math>y</math> such that <math>y^2 = x</math> has been generalized in the following way.

A cube root of <math>x</math> is a number <math>y</math> such that <math>y^3 = x</math>; it is denoted <math>\sqrt[3]x.</math>

If Template:Mvar is an integer greater than two, a [[Nth root|Template:Mvar-th root]] of <math>x</math> is a number <math>y</math> such that <math>y^n = x</math>; it is denoted <math>\sqrt[n]x.</math>

Given any polynomial Template:Math, a root of Template:Math is a number Template:Mvar such that Template:Math. For example, the Template:Mvarth roots of Template:Mvar are the roots of the polynomial (in Template:Mvar) <math>y^n - x.</math>

Abel–Ruffini theorem states that, in general, the roots of a polynomial of degree five or higher cannot be expressed in terms of Template:Mvarth roots.

Square roots of matrices and operatorsEdit

Template:Main article Template:See also

If A is a positive-definite matrix or operator, then there exists precisely one positive definite matrix or operator B with Template:Math; we then define Template:Math. In general matrices may have multiple square roots or even an infinitude of them. For example, the Template:Nowrap identity matrix has an infinity of square roots,<ref>Mitchell, Douglas W., "Using Pythagorean triples to generate square roots of I2", Mathematical Gazette 87, November 2003, 499–500.</ref> though only one of them is positive definite.

In integral domains, including fieldsEdit

Each element of an integral domain has no more than 2 square roots. The difference of two squares identity Template:Math is proved using the commutativity of multiplication. If Template:Mvar and Template:Mvar are square roots of the same element, then Template:Math. Because there are no zero divisors this implies Template:Math or Template:Math, where the latter means that two roots are additive inverses of each other. In other words if an element a square root Template:Mvar of an element Template:Mvar exists, then the only square roots of Template:Mvar are Template:Mvar and Template:Mvar. The only square root of 0 in an integral domain is 0 itself.

In a field of characteristic 2, an element either has one square root or does not have any at all, because each element is its own additive inverse, so that Template:Math. If the field is finite of characteristic 2 then every element has a unique square root. In a field of any other characteristic, any non-zero element either has two square roots, as explained above, or does not have any.

Given an odd prime number Template:Mvar, let Template:Math for some positive integer Template:Mvar. A non-zero element of the field Template:Math with Template:Mvar elements is a quadratic residue if it has a square root in Template:Math. Otherwise, it is a quadratic non-residue. There are Template:Math quadratic residues and Template:Math quadratic non-residues; zero is not counted in either class. The quadratic residues form a group under multiplication. The properties of quadratic residues are widely used in number theory.

In rings in generalEdit

Unlike in an integral domain, a square root in an arbitrary (unital) ring need not be unique up to sign. For example, in the ring <math>\mathbb{Z}/8\mathbb{Z}</math> of integers modulo 8 (which is commutative, but has zero divisors), the element 1 has four distinct square roots: ±1 and ±3.

Another example is provided by the ring of quaternions <math>\mathbb{H},</math> which has no zero divisors, but is not commutative. Here, the element −1 has infinitely many square roots, including Template:Math, Template:Math, and Template:Math. In fact, the set of square roots of Template:Math is exactly<math display="block">\{ai + bj + ck \mid a^2 + b^2 + c^2 = 1\} .</math>

A square root of 0 is either 0 or a zero divisor. Thus in rings where zero divisors do not exist, it is uniquely 0. However, rings with zero divisors may have multiple square roots of 0. For example, in <math>\mathbb{Z}/n^2\mathbb{Z},</math> any multiple of Template:Mvar is a square root of 0.

Geometric construction of the square rootEdit

File:SqrtGeom.gif
Constructing the length <math>x = \sqrt{a}</math>, given the <math>a</math> and the unit length
File:Spiral of Theodorus.svg
The Spiral of Theodorus up to the triangle with a hypotenuse of Template:Math
File:Root rectangles Hambidge 1920.png
Jay Hambidge's construction of successive square roots using root rectangles

The square root of a positive number is usually defined as the side length of a square with the area equal to the given number. But the square shape is not necessary for it: if one of two similar planar Euclidean objects has the area a times greater than another, then the ratio of their linear sizes is <math>\sqrt{a}</math>.

A square root can be constructed with a compass and straightedge. In his Elements, Euclid (fl. 300 BC) gave the construction of the geometric mean of two quantities in two different places: Proposition II.14 and Proposition VI.13. Since the geometric mean of a and b is <math>\sqrt{ab}</math>, one can construct <math>\sqrt{a}</math> simply by taking Template:Math.

The construction is also given by Descartes in his La Géométrie, see figure 2 on page 2. However, Descartes made no claim to originality and his audience would have been quite familiar with Euclid.

Euclid's second proof in Book VI depends on the theory of similar triangles. Let AHB be a line segment of length Template:Math with Template:Math and Template:Math. Construct the circle with AB as diameter and let C be one of the two intersections of the perpendicular chord at H with the circle and denote the length CH as h. Then, using Thales' theorem and, as in the proof of Pythagoras' theorem by similar triangles, triangle AHC is similar to triangle CHB (as indeed both are to triangle ACB, though we don't need that, but it is the essence of the proof of Pythagoras' theorem) so that AH:CH is as HC:HB, i.e. Template:Math, from which we conclude by cross-multiplication that Template:Math, and finally that <math>h = \sqrt{ab}</math>. When marking the midpoint O of the line segment AB and drawing the radius OC of length Template:Math, then clearly OC > CH, i.e. <math display=inline>\frac{a + b}{2} \ge \sqrt{ab}</math> (with equality if and only if Template:Math), which is the arithmetic–geometric mean inequality for two variables and, as noted above, is the basis of the Ancient Greek understanding of "Heron's method".

Another method of geometric construction uses right triangles and induction: <math>\sqrt{1}</math> can be constructed, and once <math>\sqrt{x}</math> has been constructed, the right triangle with legs 1 and <math>\sqrt{x}</math> has a hypotenuse of <math>\sqrt{x + 1}</math>. Constructing successive square roots in this manner yields the Spiral of Theodorus depicted above.

See alsoEdit

Template:Div col

Template:Div col end

NotesEdit

Template:Reflist

ReferencesEdit

External linksEdit

Template:Sister project