{{Short description|Distance from zero to a number}} {{about|the magnitude of real and complex numbers|a generalization of the concept|Absolute value (algebra)|other uses}} {{Use dmy dates|date=December 2020}} [[Image:Absolute value.svg|thumb|The graph of the absolute value function for real numbers]] thumb|The absolute value of a number may be thought of as its distance from zero. In mathematics, the '''absolute value''' or '''modulus''' of a real number <math>x</math>, {{nowrap|denoted <math>|x|</math>,}} is the (non-negative) magnitude {{nowrap|of <math>x</math>}} measured without regard to its sign. Namely, <math>|x|=x</math> if <math>x</math> is a positive number, and <math>|x|=-x</math> if <math>x</math> is negative (in which case <math>-x</math> is positive), and {{nowrap|<math>|0|=0</math>.}} For example, the absolute value of 3 {{nowrap|is 3,}} and the absolute value of −3 is {{nowrap|also 3.}} The absolute value of a number may be thought of as its distance from zero.

Generalisations of the absolute value for real numbers occur in a wide variety of mathematical settings. For example, an absolute value is also defined for the complex numbers, the quaternions, ordered rings, fields and vector spaces. The absolute value is closely related to the notions of magnitude, distance, and norm in various mathematical and physical contexts.

==Terminology and notation== In 1806, Jean-Robert Argand introduced the term ''module'', meaning ''unit of measure'' in French, specifically for the ''complex'' absolute value,<ref name=oed>Oxford English Dictionary, Draft Revision, June 2008</ref><ref>Nahin, [http://www-history.mcs.st-andrews.ac.uk/Mathematicians/Argand.html O'Connor and Robertson], and [http://functions.wolfram.com/ComplexComponents/Abs/35/ functions.Wolfram.com.]; for the French sense, see Littré, 1877</ref> and it was borrowed into English in 1866 as the Latin equivalent ''modulus''.<ref name=oed /> The term ''absolute value'' has been used in this sense from at least 1806 in French<ref>Lazare Nicolas M. Carnot, ''Mémoire sur la relation qui existe entre les distances respectives de cinq point quelconques pris dans l'espace'', p.&nbsp;105 [https://books.google.com/books?id=YyIOAAAAQAAJ&pg=PA105 at Google Books]</ref> and 1857 in English.{{efn|The oldest citation in the 2nd edition of the Oxford English Dictionary is from 1907. The term ''absolute value'' is also used in contrast to ''relative value''.<ref>{{cite book|first=James Mill|last=Peirce|title=A Text-book of Analytic Geometry|url=https://archive.org/details/atextbookanalyt00peirgoog/page/n60|page=42|via=Internet Archive}}</ref>}} The notation {{math|{{abs|{{mvar|x}}}}}}, with a vertical bar on each side, was introduced by Karl Weierstrass in 1841.<ref>Nicholas J. Higham, ''Handbook of writing for the mathematical sciences'', SIAM. {{ISBN|0-89871-420-6}}, p.&nbsp;25</ref> Other names for ''absolute value'' include ''numerical value''<ref name=oed /> and ''magnitude''.<ref name=oed /> The absolute value of <math>x</math> has also been denoted <math>\operatorname{abs} x</math> in some mathematical publications,{{sfnp|Siegel|1942}} and in spreadsheets, programming languages, and computational software packages, the absolute value of <math display="inline">x</math> is generally represented by <code>abs(''x'')</code>, or a similar expression,{{sfnp|Bluttman|2015|p=[https://books.google.com/books?id=3pVxBgAAQBAJ&pg=PA135 135]}} as it has been since the earliest days of high-level programming languages.{{sfnp|Knuth|1962|p=43, 126}}

The vertical bar notation also appears in a number of other mathematical contexts: for example, when applied to a set, it denotes its cardinality; when applied to a matrix, it denotes its determinant.{{sfnp|Sargent|2025|p=10}} Vertical bars denote the absolute value only for algebraic objects for which the notion of an absolute value is defined, notably an element of a normed division algebra, for example, a real number, a complex number, or a quaternion. A closely related but distinct notation is the use of vertical bars for either the Euclidean norm{{sfnp|Spivak|1965|p=1}} or sup norm{{sfnp|Munkres|1991|p=4}} of a vector {{nowrap|in <math>\R^n</math>,}} although double vertical bars with subscripts {{nowrap|(<math>\|\cdot\|_2</math>}} {{nowrap|and <math>\|\cdot\|_\infty</math>,}} respectively) are a more common and less ambiguous notation.

==Definition and properties==

===Real numbers=== For any {{nowrap|real number <math>x</math>,}} the absolute value or modulus {{nowrap|of <math>x</math>}} is denoted {{nowrap|by <math>|x|</math>}}, with a vertical bar on each side of the quantity, and is defined as{{sfnp|Mendelson|2008|p=[https://books.google.com/books?id=A8hAm38zsCMC&pg=PA2 2]}} <math display=block>|x| = \begin{cases} x, & \text{if } x \geq 0 \\ -x, & \text{if } x < 0. \end{cases} </math>

The absolute value {{nowrap|of <math>x</math>}} is thus always either a positive number or zero, but never negative. When <math>x</math> itself is negative {{nowrap|(<math>x < 0</math>),}} then its absolute value is necessarily positive {{nowrap|(<math>|x|=-x>0</math>).{{sfnp|Smith|2013|p=[https://books.google.com/books?id=ZUJbVQN37bIC&pg=PA8 8]}}}}

From an analytic geometry point of view, the absolute value of a real number is that number's distance from zero along the real number line, and more generally, the absolute value of the difference of two real numbers (their absolute difference) is the distance between them.{{sfnp|Smith|2013|p=[https://books.google.com/books?id=ZUJbVQN37bIC&pg=PA8 8]}} The notion of an abstract distance function in mathematics can be seen to be a generalisation of the absolute value of the difference.{{sfnp|Tabak|2014|p=[https://books.google.com/books?id=r0HuPiexnYwC&pg=PA150 150]}} See {{slink||Distance}} below.

Since the square root symbol represents the unique ''positive'' square root, when applied to a positive number, it follows that{{sfnp|Varberg|Purcell|Rigdon|2007|p=[https://archive.org/details/matematika-a-purcell-calculus-9th-ed/page/13 13]}} <math display=block qid=Q120645811>|x| = \sqrt{x^2}.</math> This is equivalent to the definition above, and may be used as an alternative definition of the absolute value of real numbers.{{sfnp|Stewart|2001|p=A5}}

The absolute value has the following four fundamental properties (<math display="inline">a</math>, <math display="inline">b</math> are real numbers), that are used for generalization of this notion to other domains:{{sfnp|Shechter|1997|p=[https://books.google.com/books?id=eqUv3Bcd56EC&pg=PA259 259]}}

{| style="margin-left:1.6em" |- | style="width: 250px" |<math qid=Q120645720>|a| \ge 0 </math> | Non-negativity{{sfnp|Shechter|1997|p=[https://books.google.com/books?id=eqUv3Bcd56EC&pg=PA259 259]}} |- |<math>|a| = 0 \iff a = 0 </math> |Positive-definiteness{{sfnp|Shechter|1997|p=[https://books.google.com/books?id=eqUv3Bcd56EC&pg=PA259 259]}} |- |<math>|ab| = \left|a\right| \left|b\right|</math> |Multiplicativity{{sfnp|Shechter|1997|p=[https://books.google.com/books?id=eqUv3Bcd56EC&pg=PA259 259]}} |- |<math qid=Q120645947>|a+b| \le |a| + |b| </math> | Subadditivity, specifically the triangle inequality{{sfnp|Shechter|1997|p=[https://books.google.com/books?id=eqUv3Bcd56EC&pg=PA259 259]}} |}

Non-negativity, positive definiteness, and multiplicativity are readily apparent from the definition. To see that subadditivity holds, first note that <math>|a+b|=s(a+b)</math> {{nowrap|where <math>s=\pm 1</math>,}} with its sign chosen to make the result positive. Now, since <math>-1 \cdot x \le |x|</math> {{nowrap|and <math>+1 \cdot x \le |x|</math>,}} it follows that, whichever of <math>\pm1</math> is the value {{nowrap|of <math>s</math>,}} one has <math>s \cdot x\leq |x|</math> for all {{nowrap|real <math>x</math>.}} Consequently, <math>|a+b|=s \cdot (a+b) = s \cdot a + s \cdot b \leq |a| + |b|</math>, as desired.

Some additional useful properties are given below. These are either immediate consequences of the definition or implied by the four fundamental properties above.

{| style="margin-left:1.6em" |- | style="width:250px" |<math>\bigl| \left|a\right| \bigr| = |a|</math> |Idempotence (the absolute value of the absolute value is the absolute value) |- | style="width:250px" |<math>\left|-a\right| = |a|</math> |Evenness (reflection symmetry of the graph){{sfnp|Varberg|Purcell|Rigdon|2007|p=[https://archive.org/details/matematika-a-purcell-calculus-9th-ed/page/32 32]}} |- |<math>|a - b| = 0 \iff a = b </math> |Identity of indiscernibles (equivalent to positive-definiteness) |- |<math>|a - b| \le |a - c| + |c - b| </math> |Triangle inequality (equivalent to subadditivity) |- |<math>\left|\frac{a}{b}\right| = \frac{|a|}{|b|}\ </math> (if <math>b \ne 0</math>) |Preservation of division &ndash; equivalent to multiplicativity{{sfnp|Varberg|Purcell|Rigdon|2007|p=[https://archive.org/details/matematika-a-purcell-calculus-9th-ed/page/11 11]}} |- |<math>|a-b| \geq \bigl| \left|a\right| - \left|b\right| \bigr| </math> |Reverse triangle inequality &ndash; equivalent to subadditivity{{sfnp|Varberg|Purcell|Rigdon|2007|p=[https://archive.org/details/matematika-a-purcell-calculus-9th-ed/page/11 11]}} |}

Two other useful properties concerning inequalities are:{{sfnp|Varberg|Purcell|Rigdon|2007|p=[https://archive.org/details/matematika-a-purcell-calculus-9th-ed/page/11 11]}} {| style="margin-left:1.6em" |- |<math>|a| \le b \iff -b \le a \le b </math> |- |<math>|a| \ge b \iff a \le -b\ </math> or <math>a \ge b </math> |}

These relations may be used to solve inequalities involving absolute values. For example:

{| style="margin-left:1.6em" |- |<math>|x-3| \le 9 </math> |<math>\iff -9 \le x-3 \le 9 </math> |- | |<math>\iff -6 \le x \le 12 </math> |}

The absolute value, as "distance from zero", is used to define the absolute difference between arbitrary real numbers, the standard metric on the real numbers.

===Complex numbers=== {{Anchor|complex modulus}}[[Image:Complex conjugate picture.svg|right|thumb|The absolute value of a {{nowrap|complex number <math>z</math>}} is the {{nowrap|distance <math>r</math>}} {{nowrap|of <math>z</math>}} from the origin. It is also seen in the picture that <math>z</math> and its {{nowrap|complex conjugate <math>\bar z</math>}} have the same absolute value.]]

Since the complex numbers are not ordered, the definition given at the top for the real absolute value cannot be directly applied to complex numbers. However, the geometric interpretation of the absolute value of a real number as its distance from 0 can be generalised. The absolute value of a complex number is defined by the Euclidean distance of its corresponding point in the complex plane from the origin. This can be computed using the Pythagorean theorem: for any complex number <math display=block>z = x + iy,</math> where <math>x</math> and <math>y</math> are real numbers, the absolute value or modulus {{nowrap|of <math>z</math>}} is {{nowrap|denoted <math>|z|</math>}} and is defined by{{sfnp|González|1992|p=[https://books.google.com/books?id=ncxL7EFr7GsC&pg=PA19 19]}} <math display=block>|z| = \sqrt{\operatorname{Re}(z)^2 + \operatorname{Im}(z)^2}=\sqrt{x^2 + y^2},</math> the Pythagorean addition of <math>x</math> and <math>y</math>, where <math>\operatorname{Re}(z)=x</math> and <math>\operatorname{Im}(z)=y</math> denote the real and imaginary parts {{nowrap|of <math>z</math>,}} respectively. When the {{nowrap|imaginary part <math>y</math>}} is zero, this coincides with the definition of the absolute value of the {{nowrap|real number <math>x</math>.}}{{sfnp|González|1992|p=[https://books.google.com/books?id=ncxL7EFr7GsC&pg=PA19 19]}}

When a complex number <math>z</math> is expressed in its polar form {{nowrap|as <math>z = r e^{i \theta},</math>}} its absolute value {{nowrap|is <math>|z| = r.</math>}}

Since the product of any complex number <math>z</math> and its {{nowrap|complex conjugate <math>\bar z = x - iy</math>,}} with the same absolute value, is always the non-negative real number {{nowrap|<math>\left(x^2 + y^2\right)</math>,}} the absolute value of a complex number <math>z</math> is the square root {{nowrap|of <math>z \cdot \overline{z},</math>}} which is therefore called the absolute square or ''squared modulus'' {{nowrap|of <math>z</math>:}}{{sfnp|González|1992|p=[https://books.google.com/books?id=ncxL7EFr7GsC&pg=PA19 19]}} <math display=block>|z| = \sqrt{z \cdot \overline{z}}.</math> This generalizes the alternative definition for reals: {{nowrap|<math display="inline">|x| = \sqrt{x\cdot x}</math>.}}

The complex absolute value shares the four fundamental properties given above for the real absolute value. The identity <math>|z|^n = |z^n|</math> is a special case of multiplicativity that is often useful by itself.{{sfnp|González|1992|p=[https://books.google.com/books?id=ncxL7EFr7GsC&pg=PA19 19]}}

==Absolute value function== [[Image:Absolute value.svg|thumb|The graph of the absolute value function for real numbers]] [[Image:Absolute value composition.svg|thumb|Composition of absolute value with a cubic function in different orders]] The real absolute value function is continuous everywhere. It is differentiable everywhere except for {{math|1=''x'' = 0}}. It is monotonically decreasing on the interval {{open-closed|−∞, 0}} and monotonically increasing on the interval {{closed-open|0, +∞}}.{{sfnp|Varberg|Purcell|Rigdon|2007|p=[https://archive.org/details/matematika-a-purcell-calculus-9th-ed/page/84 84]}} Since a real number and its opposite have the same absolute value, it is an even function, and is hence not invertible.{{sfnp|Baronti et al.|2016|p=[http://books.google.com/books?id=dBFuDQAAQBAJ&pg=PA37 37]}} The real absolute value function is a piecewise linear, convex function.{{sfnp|Varberg|Purcell|Rigdon|2007|p=[https://archive.org/details/matematika-a-purcell-calculus-9th-ed/page/32 32]}}

For both real and complex numbers, the absolute value function is idempotent (meaning that the absolute value of any absolute value is itself).

===Relationship to the sign function=== The absolute value function of a real number returns its value irrespective of its sign, whereas the sign (or signum) function returns a number's sign irrespective of its value. The following equations show the relationship between these two functions: :<math>|x| = x \sgn(x),</math> or :<math> |x| \sgn(x) = x,</math> and for {{math|''x'' ≠ 0}}, :<math>\sgn(x) = \frac{|x|}{x} = \frac{x}{|x|}.</math>

===Relationship to the max and min functions=== Let <math>s,t\in\R</math>, then the following relationship to the minimum and maximum functions hold: :<math>|t-s|= -2 \min(s,t)+s+t</math> and :<math>|t-s|=2 \max(s,t)-s-t.</math>

The formulas can be derived by considering each case <math>s>t</math> and <math>t>s</math> separately.

From the last formula one can derive also <math>|t|= \max(t,-t)</math>.

===Derivative=== The real absolute value function has a derivative for every {{math|''x'' ≠ 0}}, given by a step function equal to the sign function except at {{math|1=''x'' = 0}} where the absolute value function is not differentiable:<ref name="MathWorld">{{cite web| url = http://mathworld.wolfram.com/AbsoluteValue.html| title = Weisstein, Eric W. ''Absolute Value.'' From MathWorld – A Wolfram Web Resource.}}</ref>{{sfnp|Bartle|2011|p=163}} <math display="block">\begin{align} \frac{d\left|x\right|}{dx} &= \frac{x}{|x|} = \begin{cases} -1 & x<0 \\ 1 & x>0 \end{cases} \\[7mu] &= \sgn x\quad \text{for } x \ne 0. \end{align}</math>

The real absolute value function is an example of a continuous function that achieves a global minimum where the derivative does not exist.

The subdifferential of&nbsp;{{math|{{abs|{{mvar|x}}}}}} at&nbsp;{{math|1=''x'' = 0}} is the interval&nbsp;{{closed-closed|−1, 1}}.{{sfnp|Curnier|1999|p=[https://books.google.com/books?id=tiBtC4GmuKcC&pg=PA31 31&ndash;32]}}

The complex absolute value function is continuous everywhere but complex differentiable ''nowhere'' because it violates the Cauchy–Riemann equations.<ref name="MathWorld"/>

The second derivative of&nbsp;{{math|{{abs|{{mvar|x}}}}}} with respect to&nbsp;{{mvar|x}} is zero everywhere except zero, where it does not exist. As a generalised function, the second derivative may be taken as two times the Dirac delta function.

===Antiderivative=== The antiderivative (indefinite integral) of the real absolute value function is

:<math>\int \left|x\right| dx = \frac{x\left|x\right|}{2} + C,</math>

where {{mvar|C}} is an arbitrary constant of integration. This is not a complex antiderivative because complex antiderivatives can only exist for complex-differentiable (holomorphic) functions, which the complex absolute value function is not.

=== Derivatives and antiderivatives of compositions === The following three formulae are special cases of the chain rule:

<math>{\text{d}^n \over \text{d}x^n} f(|x|)= (\sgn x)^n f^{(n)}(|x|)\quad \text{for } x \ne 0\,,</math>

if the absolute value is inside a function, and

<math>{\text{d}^n \over \text{d}x^n} |f(x)|=\sgn(f(x)) f^{(n)}(x)\quad \text{for } f(x) \ne 0\,,</math>

if another function is inside the absolute value. Combining both, the result is:

<math>{\text{d}^n \over \text{d}x^n} |f(|x|)|=(\sgn x)^n \sgn(f(|x|)) f^{(n)}(|x|)\quad \text{for } x \ne 0, f(|x|) \ne 0\,.</math>

From these formulae and using integration by parts, antiderivatives can also be obtained:

<math>\int {f(|x|)\text{d}x}= \sgn (x) F(|x|)\quad \text{for } x \ne 0\,,</math>

<math>\int {|f(x)| \text{d}x} = \int {{|f(x)| \over f(x)} f(x) \text{d}x} = \sgn(f(x)) F(x)\quad \text{for } f(x) \ne 0\,,</math>

<math>\int {|f(|x|)| \text{d}x} = \int {{|f(|x|)| \over f(|x|)} f(|x|) \text{d}x} = \sgn (x) \sgn(f(|x|)) F(|x|)\quad \text{for } x \ne 0, f(|x|) \ne 0\,,</math>

supposing the derivative of the sign function is 0.

=== Power rule for expressions with absolute values === Using chain and product rules, the power rule for expressions of the type <math>x^n |x|^m</math> can be written as:

<math>{\text{d} \over \text{d}x} x^n |x|^m = (n+m)x^{n-1}|x|^m\,.</math>

This holds true even for <math>n=0</math>:

<math>{\text{d} \over \text{d}x} |x|^m = mx^{-1}|x|^m\,.</math>

==Distance== {{See also|Metric space}} The absolute value is closely related to the idea of distance. As noted above, the absolute value of a real or complex number is the distance from that number to the origin, along the real number line, for real numbers, or in the complex plane, for complex numbers, and more generally, the absolute value of the difference of two real or complex numbers is the distance between them.

The standard Euclidean distance between two points <math display="block">a = (a_1, a_2, \dots , a_n) </math> and <math display="block">b = (b_1, b_2, \dots , b_n) </math> in Euclidean {{mvar|n}}-space is defined as:{{sfnp|Tabak|2014|p=[https://books.google.com/books?id=r0HuPiexnYwC&pg=PA150 150]}} <math display="block">\sqrt{\textstyle\sum_{i=1}^n(a_i-b_i)^2}. </math>

This can be seen as a generalisation, since for <math>a_1</math> and <math>b_1</math> real, i.e. in a 1-space, according to the alternative definition of the absolute value,

:<math>|a_1 - b_1| = \sqrt{(a_1 - b_1)^2} = \sqrt{\textstyle\sum_{i=1}^1(a_i-b_i)^2},</math>

and for <math> a = a_1 + i a_2 </math> and <math> b = b_1 + i b_2 </math> complex numbers, i.e. in a 2-space, :{| |- |<math>|a - b| </math> |<math> = |(a_1 + i a_2) - (b_1 + i b_2)|</math> |- | |<math> = |(a_1 - b_1) + i(a_2 - b_2)|</math> |- | |<math> = \sqrt{(a_1 - b_1)^2 + (a_2 - b_2)^2} = \sqrt{\textstyle\sum_{i=1}^2(a_i-b_i)^2}.</math> |}

The above shows that the "absolute value"-distance, for real and complex numbers, agrees with the standard Euclidean distance, which they inherit as a result of considering them as one and two-dimensional Euclidean spaces, respectively.

The properties of the absolute value of the difference of two real or complex numbers: non-negativity, identity of indiscernibles, symmetry and the triangle inequality given above, can be seen to motivate the more general notion of a distance function as follows:

A real valued function {{mvar|d}} on a set {{math|''X'' × ''X''}} is called a metric (or a ''distance function'') on&nbsp;{{mvar|X}}, if it satisfies the following four axioms:{{efn|These axioms are not minimal; for instance, non-negativity can be derived from the other three: {{math|1=0 = ''d''(''a'', ''a'') ≤ ''d''(''a'', ''b'') + ''d''(''b'', ''a'') = 2''d''(''a'', ''b'')}}.}} :{| |- |style="width:250px" | <math>d(a, b) \ge 0 </math> |Non-negativity |- |<math>d(a, b) = 0 \iff a = b </math> |Identity of indiscernibles |- |<math>d(a, b) = d(b, a) </math> |Symmetry |- |<math>d(a, b) \le d(a, c) + d(c, b) </math> |Triangle inequality |}

==Generalizations==

===Ordered rings=== The definition of absolute value given for real numbers above can be extended to any ordered ring. That is, if&nbsp;{{mvar|a}} is an element of an ordered ring&nbsp;''R'', then the '''absolute value''' of&nbsp;{{mvar|a}}, denoted by {{math|{{abs|''a''}}}}, is defined to be: <math display="block">|a| = \left\{ \begin{array}{rl} a, & \text{if } a \geq 0 \\ -a, & \text{if } a < 0. \end{array}\right. </math> where {{math|−''a''}} is the additive inverse of&nbsp;{{mvar|a}}, 0 is the additive identity, and < and ≥ have the usual meaning with respect to the ordering in the ring.{{sfnp|Mac Lane|Birkhoff|1999|p=[https://books.google.com/books?id=L6FENd8GHIUC&pg=PA264 264]}}

===Fields=== {{Main|Absolute value (algebra)}} The four fundamental properties of the absolute value for real numbers can be used to generalise the notion of absolute value to an arbitrary field, as follows.

A real-valued function&nbsp;{{mvar|v}} on a field&nbsp;{{mvar|F}} is called an ''absolute value'' (also a ''modulus'', ''magnitude'', ''value'', or ''valuation''){{sfnp|Shechter|1997|p=[https://books.google.com/books?id=eqUv3Bcd56EC&pg=PA260 260]}}{{efn|1=This meaning of ''valuation'' is rare. Usually, a valuation is the logarithm of the inverse of an absolute value.}} if it satisfies the following four axioms:

:{| cellpadding=10 |- |<math>v(a) \ge 0 </math> |Non-negativity |- |<math>v(a) = 0 \iff a = \mathbf{0} </math> |Positive-definiteness |- |<math>v(ab) = v(a) v(b) </math> |Multiplicativity |- |<math>v(a+b) \le v(a) + v(b) </math> |Subadditivity or the triangle inequality |}

Where '''0''' denotes the additive identity of&nbsp;{{mvar|F}}. It follows from positive-definiteness and multiplicativity that {{math|1=''v''('''1''') = 1}}, where '''1''' denotes the multiplicative identity of&nbsp;{{mvar|F}}. The real and complex absolute values defined above are examples of absolute values for an arbitrary field.

If {{mvar|v}} is an absolute value on&nbsp;{{mvar|F}}, then the function&nbsp;{{mvar|d}} on {{math|''F'' × ''F''}}, defined by {{math|1=''d''(''a'', ''b'') = ''v''(''a'' − ''b'')}}, is a metric and the following are equivalent:

* {{mvar|d}} satisfies the ultrametric inequality <math>d(x, y) \leq \max(d(x,z),d(y,z))</math> for all {{mvar|x}}, {{mvar|y}}, {{mvar|z}} in&nbsp;{{mvar|F}}. * <math display="inline"> \left\{ v\left( \sum_{k=1}^n \mathbf{1}\right) : n \in \N \right\} </math> is bounded in&nbsp;'''R'''. * <math> v\left({\textstyle \sum_{k=1}^n } \mathbf{1}\right) \le 1\ </math> for every <math>n \in \N</math>. * <math> v(a) \le 1 \Rightarrow v(1+a) \le 1\ </math> for all <math>a \in F</math>. * <math> v(a + b) \le \max \{v(a), v(b)\}\ </math> for all <math>a, b \in F</math>.

An absolute value which satisfies any (hence all) of the above conditions is said to be '''non-Archimedean''', otherwise it is said to be Archimedean.{{sfnp|Shechter|1997|pp=[https://books.google.com/books?id=eqUv3Bcd56EC&pg=PA260 260–261]}}

===Vector spaces=== {{Main|Norm (mathematics)}} Again the fundamental properties of the absolute value for real numbers can be used, with a slight modification, to generalise the notion to an arbitrary vector space.

A real-valued function on a vector space&nbsp;{{mvar|V}} over a field&nbsp;{{mvar|F}}, represented as {{math|{{norm}}}}, is called an '''absolute value''', but more usually a '''norm''', if it satisfies the following axioms:

For all&nbsp;{{mvar|a}} in&nbsp;{{mvar|F}}, and {{math|'''v'''}}, {{math|'''u'''}} in&nbsp;{{mvar|V}},

:{| cellpadding=10 |- |<math>\|\mathbf{v}\| \ge 0 </math> |Non-negativity |- |<math>\|\mathbf{v}\| = 0 \iff \mathbf{v} = 0</math> |Positive-definiteness |- |<math>\|a \mathbf{v}\| = \left|a\right| \left\|\mathbf{v}\right\| </math> |Absolute homogeneity or positive scalability |- |<math>\|\mathbf{v} + \mathbf{u}\| \le \|\mathbf{v}\| + \|\mathbf{u}\| </math> |Subadditivity or the triangle inequality |}

The norm of a vector is also called its ''length'' or ''magnitude''.

In the case of Euclidean space <math>\mathbb{R}^n</math>, the function defined by

:<math>\|(x_1, x_2, \dots , x_n) \| = \sqrt{\textstyle\sum_{i=1}^{n} x_i^2}</math>

is a norm called the Euclidean norm. When the real numbers <math>\mathbb{R}</math> are considered as the one-dimensional vector space <math>\mathbb{R}^1</math>, the absolute value is a norm, and is the {{mvar|p}}-norm (see L<sup>p</sup> space) for any&nbsp;{{mvar|p}}. In fact the absolute value is the "only" norm on <math>\mathbb{R}^1</math>, in the sense that, for every norm {{math|{{norm}}}} on <math>\mathbb{R}^1</math>, {{math|1={{norm|''x''}} = {{norm|1}} ⋅ {{abs|''x''}}}}.

The complex absolute value is a special case of the norm in an inner product space, which is identical to the Euclidean norm when the complex plane is identified as the Euclidean plane&nbsp;<math>\mathbb{R}^2</math>.

===Composition algebras=== {{Main|Composition algebra}} Every composition algebra ''A'' has an involution ''x'' → ''x''* called its '''conjugation'''. The product in ''A'' of an element ''x'' and its conjugate ''x''* is written ''N''(''x'') = ''x x''* and called the '''norm of x'''.

The real numbers <math>\mathbb{R}</math>, complex numbers <math>\mathbb{C}</math>, and quaternions <math>\mathbb{H}</math> are all composition algebras with norms given by definite quadratic forms. The absolute value in these division algebras is given by the square root of the composition algebra norm.

In general, the norm of a composition algebra may be a quadratic form that is not definite and has null vectors. However, as in the case of division algebras, when an element ''x'' has a non-zero norm, then ''x'' has a multiplicative inverse given by ''x''*/''N''(''x'').

==See also== *Least absolute values

== Notes == {{notelist}}

== Footnotes == {{reflist|20em}}

==References== * {{cite book | last1 = Baronti | first1 = Marco | last2 = De Mari | first2 = Filippo | last3 = van der Putten | first3 = Robertus | last4 = Venturi | first4 = Irene | year = 2016 | publisher = Springer | url = https://books.google.com/books?id=dBFuDQAAQBAJ | ref = {{harvid|Baronti et al.|2016}} | title = Calculus Problems | doi = 10.1007/978-3-319-15428-2 | isbn = 978-3-319-15428-2 }} * {{cite book | last = Bartle | first = Sherbert | title = Introduction to real analysis | edition = 4th | publisher = John Wiley & Sons | year = 2011 | isbn = 978-0-471-43331-6 }} * {{cite book | last = Bluttman | first = Ken | title = Excel Formulas and Functions For Dummies | publisher = John Wiley & Sons | year = 2015 | isbn = 9781119076780 | page = 135 | contribution = Ignoring signs | contribution-url = https://books.google.com/books?id=3pVxBgAAQBAJ }} * {{cite book | last = Curnier | first = A. | editor-first1 = Peter | editor-last1 = Wriggers | editor-first2 = Panagiotis | editor-last2 = Panatiotopoulos | title = New Developments in Contact Problems | year = 1999 | publisher = Springer | isbn = 3-211-83154-1 | url = https://books.google.com/books?id=tiBtC4GmuKcC }} * {{cite book | last = González | first = Mario O. | title = Classical Complex Analysis | publisher = CRC Press | year = 1992 | isbn = 9780824784157 | page = 19 | url = https://books.google.com/books?id=ncxL7EFr7GsC }} * {{cite book | last = Knuth | first = D. E. | author-link = Donald Knuth | contribution = Invited papers: History of writing compilers | doi = 10.1145/800198.806098 | publisher = ACM Press | title = Proceedings of the 1962 ACM National Conference | year = 1962 | doi-access = free }} * {{cite book | last1 = Mac Lane | first1 = Saunders |author-link1=Saunders Mac Lane | last2 = Birkhoff | first2 = Garrett |author-link2=Garrett Birkhoff | title = Algebra | publisher = American Mathematical Society | year = 1999 | isbn = 978-0-8218-1646-2 }} * {{cite book | last = Mendelson | first = Elliott | title = Schaum's Outline of Beginning Calculus | publisher = McGraw-Hill Professional | year = 2008 | isbn = 978-0-07-148754-2 | url = https://books.google.com/books?id=A8hAm38zsCMC }} * {{cite book | last = Munkres | first = James |author-link=James Munkres | title = Analysis on Manifolds | publisher = Westview | year= 1991 | isbn = 0201510359 | location = Boulder, CO }} *{{cite book|last=Nahin|first=Paul J.|title=An Imaginary Tale|publisher=Princeton University Press|edition=hardcover|year=1998|isbn=0-691-02795-1}} *{{cite web|last1=O'Connor|first1=J.J.|last2=Robertson|first2=E.F.|archive-url=https://web.archive.org/web/20190402101735/http://www-history.mcs.st-andrews.ac.uk/Biographies/Argand.html|archive-date=2 April 2019|url=http://www-history.mcs.st-andrews.ac.uk/Biographies/Argand.html|title=Jean Robert Argand|publisher=School of Mathematics and Statistics, University of St Andrews|location=Scotland}} * {{cite tech report | last = Sargent | first = Murray III | url = https://www.unicode.org/notes/tn28/UTN28-PlainTextMath-v3.3.pdf | type = Unicode report 28 | title = A Nearly Plain-Text Encoding of Mathematics | date = January 22, 2025 | access-date = 2025-02-23 }} * {{cite book | last = Shechter | first = Eric | title = Handbook of Analysis and Its Foundations | url = https://books.google.com/books?id=eqUv3Bcd56EC | publisher = Academic Press | year = 1997 | isbn = 0-12-622760-8 }} * {{cite journal | last = Siegel | first = Carl Ludwig |author-link1=Carl Ludwig Siegel | doi = 10.2307/1968953 | journal = Annals of Mathematics | jstor = 1968953 | mr = 8095 | pages = 613–616 | series = Second Series | title = Note on automorphic functions of several variables | volume = 43 | year = 1942| issue = 4 }} * {{cite book | last = Smith | first = Karl | title = Precalculus: A Functional Approach to Graphing and Problem Solving | publisher = Jones & Bartlett Publishers | year = 2013 | isbn = 978-0-7637-5177-7 | page = 8 | url = https://books.google.com/books?id=ZUJbVQN37bIC }} * {{cite book | last = Spivak | first = Michael |author-link=Michael Spivak | title = Calculus on Manifolds | publisher = Westview | year = 1965 | isbn = 0805390219 | location = Boulder, CO }} * {{cite book | last = Stewart | first = James B. | title = Calculus: concepts and contexts | year = 2001 | publisher = Brooks/Cole | location = Australia | isbn = 0-534-37718-1 }} * {{cite book | last = Tabak | first = John | title = Geometry: The Language of Space and Form | series = Facts on File math library | publisher = Infobase Publishing | year = 2014 | isbn = 978-0-8160-6876-0 | url = https://books.google.com/books?id=r0HuPiexnYwC }} * {{cite book | last1 = Varberg | first1 = Dale E. | last2 = Purcell | first2 = Edwin J. | last3 = Rigdon | first3 = Steven E. | title = Calculus | year = 2007 | publisher = Pearson Prentice Hall | edition = 9th | isbn = 978-0131469686 | page = 11 | url = https://archive.org/details/matematika-a-purcell-calculus-9th-ed }}

==External links== * {{springer|title=Absolute value|id=p/a010370|mode=cs1}} * {{PlanetMath | urlname=AbsoluteValue | title=absolute value | id=448}} * {{MathWorld | urlname=AbsoluteValue | title=Absolute Value}}

{{Authority control}}

{{DEFAULTSORT:Absolute Value}} Category:Special functions Category:Real numbers Category:Norms (mathematics)