Absolute value: Difference between revisions
Jump to navigation
Jump to search
imported>Iljhgtn m Reverted edits by 2600:1700:C8A0:3AF0:8574:9019:FCB2:77B9 (talk) (AV) |
imported>EEng : it is not negating x that makes –x positive; –x is positive all on its own, period, without needing outside help |
||
| Line 1: | Line 1: | ||
{{Short description|Distance from zero to a number}} | {{Short description|Distance from zero to a number}} | ||
{{about|the | {{about|the [[Magnitude (mathematics)#Numbers|magnitude]] of real and complex numbers|a generalization of the concept|Absolute value (algebra)|other uses}} | ||
{{Use dmy dates|date=December 2020}} | {{Use dmy dates|date=December 2020}} | ||
[[Image:Absolute value.svg|thumb|The [[graph of a function|graph]] of the absolute value function for real numbers]] | [[Image:Absolute value.svg|thumb|The [[graph of a function|graph]] of the absolute value function for real numbers]] | ||
[[Image:AbsoluteValueDiagram.svg|thumb|The absolute value of a number may be thought of as its distance from zero.]] | [[Image:AbsoluteValueDiagram.svg|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]] | In [[mathematics]], the '''absolute value''' or '''modulus''' of a [[real number]] <math>x</math>, {{nowrap|denoted <math>|x|</math>,}} is the ([[non-negative]]) [[Magnitude (mathematics)#Numbers|magnitude]] {{nowrap|of <math>x</math>}} [[Measurement|measured]] without regard to its [[sign (mathematics)|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 number|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 number]]s, the [[quaternion]]s, [[ordered ring]]s, [[Field (mathematics)|fields]] and [[vector space]]s. The absolute value is closely related to the notions of [[magnitude (mathematics)|magnitude]], [[distance]], and [[Norm (mathematics)|norm]] in various mathematical and physical contexts. | 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 number]]s, the [[quaternion]]s, [[ordered ring]]s, [[Field (mathematics)|fields]] and [[vector space]]s. The absolute value is closely related to the notions of [[magnitude (mathematics)|magnitude]], [[distance]], and [[Norm (mathematics)|norm]] in various mathematical and physical contexts. | ||
==Terminology and notation== | ==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 [[Dictionnaire de la langue française (Littré)|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 Marguerite Carnot|Lazare Nicolas M. Carnot]], ''Mémoire sur la relation qui existe entre les distances respectives de cinq point quelconques pris dans l'espace'', p. 105 [https://books.google.com/books?id=YyIOAAAAQAAJ&pg=PA105 at Google Books]</ref> and 1857 in English. | 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 [[Dictionnaire de la langue française (Littré)|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 Marguerite Carnot|Lazare Nicolas M. Carnot]], ''Mémoire sur la relation qui existe entre les distances respectives de cinq point quelconques pris dans l'espace'', p. 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. 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 [[spreadsheet]]s, 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 language]]s.{{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 (math)|matrix]], it denotes its [[determinant]]. | 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 (math)|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 (mathematics)|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== | ==Definition and properties== | ||
===Real numbers=== | ===Real numbers=== | ||
For any {{nowrap|[[real number]] <math>x</math>,}} the | 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| = | <math display=block>|x| = | ||
\begin{cases} | \begin{cases} | ||
| Line 42: | Line 24: | ||
</math> | </math> | ||
The absolute value {{nowrap|of <math>x</math>}} is thus always either a [[positive number]] or [[0|zero]], but never [[negative number|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>).}} | The absolute value {{nowrap|of <math>x</math>}} is thus always either a [[positive number]] or [[0|zero]], but never [[negative number|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. | 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 [[radical symbol|square root symbol]] represents the unique ''positive'' [[square root]], when applied to a positive number, it follows that | Since the [[radical symbol|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> | <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. | 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: | 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="margin-left:1.6em" | ||
|- | |- | ||
| style="width: 250px" |<math qid=Q120645720>|a| \ge 0 </math> | | style="width: 250px" |<math qid=Q120645720>|a| \ge 0 </math> | ||
| Non-negativity | | Non-negativity{{sfnp|Shechter|1997|p=[https://books.google.com/books?id=eqUv3Bcd56EC&pg=PA259 259]}} | ||
|- | |- | ||
|<math>|a| = 0 \iff a = 0 </math> | |<math>|a| = 0 \iff a = 0 </math> | ||
|Positive-definiteness | |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> | |<math>|ab| = \left|a\right| \left|b\right|</math> | ||
|[[Multiplicativeness|Multiplicativity]] | |[[Multiplicativeness|Multiplicativity]]{{sfnp|Shechter|1997|p=[https://books.google.com/books?id=eqUv3Bcd56EC&pg=PA259 259]}} | ||
|- | |- | ||
|<math qid=Q120645947>|a+b| \le |a| + |b| </math> | |<math qid=Q120645947>|a+b| \le |a| + |b| </math> | ||
| [[Subadditivity]], specifically the [[triangle inequality]] | | [[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. | 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. | 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="margin-left:1.6em" | ||
| Line 77: | Line 59: | ||
|- | |- | ||
| style="width:250px" |<math>\left|-a\right| = |a|</math> | | style="width:250px" |<math>\left|-a\right| = |a|</math> | ||
|[[even function|Evenness]] ([[reflection symmetry]] of the graph) | |[[even function|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> | |<math>|a - b| = 0 \iff a = b </math> | ||
| Line 86: | Line 68: | ||
|- | |- | ||
|<math>\left|\frac{a}{b}\right| = \frac{|a|}{|b|}\ </math> (if <math>b \ne 0</math>) | |<math>\left|\frac{a}{b}\right| = \frac{|a|}{|b|}\ </math> (if <math>b \ne 0</math>) | ||
|Preservation of division | |Preservation of division – 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> | |<math>|a-b| \geq \bigl| \left|a\right| - \left|b\right| \bigr| </math> | ||
|[[Reverse triangle inequality]] | |[[Reverse triangle inequality]] – 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: | 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" | {| style="margin-left:1.6em" | ||
|- | |- | ||
| Line 118: | Line 100: | ||
Since the [[complex number]]s are not [[Totally ordered set|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 (mathematics)|origin]]. This can be computed using the [[Pythagorean theorem]]: for any complex number | Since the [[complex number]]s are not [[Totally ordered set|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 (mathematics)|origin]]. This can be computed using the [[Pythagorean theorem]]: for any complex number | ||
<math display=block>z = x + iy,</math> | <math display=block>z = x + iy,</math> | ||
where <math>x</math> and <math>y</math> are real numbers, the | 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> | <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. | 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 [[Complex number#Polar form|polar form]] {{nowrap|as <math>z = r e^{i \theta},</math>}} its absolute value {{nowrap|is <math>|z| = r.</math>}} | When a complex number <math>z</math> is expressed in its [[Complex number#Polar form|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>:}} | 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> | <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>.}} | 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|^ | 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== | ==Absolute value function== | ||
[[Image:Absolute value.svg|thumb | [[Image:Absolute value.svg|thumb|The [[graph of a function|graph]] of the absolute value function for real numbers]] | ||
[[Image:Absolute value composition.svg | [[Image:Absolute value composition.svg|thumb|[[composition of functions|Composition]] of absolute value with a [[cubic function]] in different orders]] | ||
The real absolute value function is [[continuous function|continuous]] everywhere. It is [[differentiable]] everywhere except for {{math|1=''x'' = 0}}. It is [[monotonic function|monotonically decreasing]] on the [[Interval (mathematics)|interval]] {{open-closed|−∞, 0}} and monotonically increasing on the interval {{closed-open|0, +∞}}. Since a real number and its [[additive inverse|opposite]] have the same absolute value, it is an [[even function]], and is hence not [[Inverse function|invertible]]. The real absolute value function is a [[piecewise linear function|piecewise linear]], [[convex function]]. | The real absolute value function is [[continuous function|continuous]] everywhere. It is [[differentiable]] everywhere except for {{math|1=''x'' = 0}}. It is [[monotonic function|monotonically decreasing]] on the [[Interval (mathematics)|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 [[additive inverse|opposite]] have the same absolute value, it is an [[even function]], and is hence not [[Inverse function|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 function|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). | 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=== | ===Relationship to the sign function=== | ||
| Line 156: | Line 138: | ||
===Derivative=== | ===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> | 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{d\left|x\right|}{dx} | ||
&= \frac{x}{|x|} = \begin{cases} -1 & x<0 \\ 1 & x>0 \end{cases} \\[7mu] | &= \frac{x}{|x|} = \begin{cases} -1 & x<0 \\ 1 & x>0 \end{cases} \\[7mu] | ||
| Line 165: | Line 147: | ||
The real absolute value function is an example of a continuous function that achieves a [[Maximum and minimum|global minimum]] where the derivative does not exist. | The real absolute value function is an example of a continuous function that achieves a [[Maximum and minimum|global minimum]] where the derivative does not exist. | ||
The [[subderivative|subdifferential]] of {{math|{{abs|{{mvar|x}}}}}} at {{math|1=''x'' = 0}} is the interval {{closed-closed|−1, 1}}. | The [[subderivative|subdifferential]] of {{math|{{abs|{{mvar|x}}}}}} at {{math|1=''x'' = 0}} is the interval {{closed-closed|−1, 1}}.{{sfnp|Curnier|1999|p=[https://books.google.com/books?id=tiBtC4GmuKcC&pg=PA31 31–32]}} | ||
The [[complex number|complex]] absolute value function is continuous everywhere but [[complex differentiable]] ''nowhere'' because it violates the [[Cauchy–Riemann equations]].<ref name="MathWorld"/> | The [[complex number|complex]] absolute value function is continuous everywhere but [[complex differentiable]] ''nowhere'' because it violates the [[Cauchy–Riemann equations]].<ref name="MathWorld"/> | ||
| Line 178: | Line 160: | ||
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. | 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 of compositions === | === Derivatives and antiderivatives of compositions === | ||
The following | The following three formulae are special cases of the [[chain rule]]: | ||
<math>{d \over | <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 | if the absolute value is inside a function, and | ||
<math>{d \over | <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#Differentiation|sign function]] is 0. | |||
=== Power rule for expressions with absolute values === | |||
Using [[Chain rule|chain]] and [[Product rule|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== | ==Distance== | ||
| Line 194: | Line 197: | ||
The standard [[Euclidean distance]] between two points | The standard [[Euclidean distance]] between two points | ||
<math display="block">a = (a_1, a_2, \dots , a_n) </math> | |||
and | and | ||
<math display="block">b = (b_1, b_2, \dots , b_n) </math> | |||
in [[Euclidean space|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> | |||
in [[Euclidean space|Euclidean {{mvar|n}}-space]] is defined as: | |||
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, | 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, | ||
| Line 226: | Line 225: | ||
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: | 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 (mathematics)|metric]] (or a ''distance function'') on {{mvar|X}}, if it satisfies the following four axioms: | A real valued function {{mvar|d}} on a set {{math|''X'' × ''X''}} is called a [[Metric (mathematics)|metric]] (or a ''distance function'') on {{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'')}}.}} | ||
:{| | :{| | ||
|- | |- | ||
| Line 245: | Line 244: | ||
===Ordered rings=== | ===Ordered rings=== | ||
The definition of absolute value given for real numbers above can be extended to any [[ordered ring]]. That is, if {{mvar|a}} is an element of an ordered ring ''R'', then the '''absolute value''' of {{mvar|a}}, denoted by {{math|{{abs|''a''}}}}, is defined to be: | The definition of absolute value given for real numbers above can be extended to any [[ordered ring]]. That is, if {{mvar|a}} is an element of an ordered ring ''R'', then the '''absolute value''' of {{mvar|a}}, denoted by {{math|{{abs|''a''}}}}, is defined to be: | ||
<math display="block">|a| = \left\{ | |||
\begin{array}{rl} | \begin{array}{rl} | ||
a, & \text{if } a \geq 0 \\ | a, & \text{if } a \geq 0 \\ | ||
| Line 253: | Line 251: | ||
\end{array}\right. | \end{array}\right. | ||
</math> | </math> | ||
where {{math|−''a''}} is the [[additive inverse]] of {{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]}} | |||
where {{math|−''a''}} is the [[additive inverse]] of {{mvar|a}}, 0 is the [[additive identity]], and < and ≥ have the usual meaning with respect to the ordering in the ring. | |||
===Fields=== | ===Fields=== | ||
| Line 260: | Line 257: | ||
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. | 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 {{mvar|v}} on a [[field (mathematics)|field]] {{mvar|F}} is called an ''absolute value'' (also a ''modulus'', ''magnitude'', ''value'', or ''valuation'') | A real-valued function {{mvar|v}} on a [[field (mathematics)|field]] {{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 (algebra)|valuation]] is the logarithm of the inverse of an absolute value.}} if it satisfies the following four axioms: | ||
:{| cellpadding=10 | :{| cellpadding=10 | ||
| Line 287: | Line 284: | ||
* <math> v(a + b) \le \max \{v(a), v(b)\}\ </math> for all <math>a, b \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 field|Archimedean]]. | 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 field|Archimedean]].{{sfnp|Shechter|1997|pp=[https://books.google.com/books?id=eqUv3Bcd56EC&pg=PA260 260–261]}} | ||
===Vector spaces=== | ===Vector spaces=== | ||
| Line 328: | Line 325: | ||
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 form]]s. The absolute value in these [[division algebra]]s is given by the square root of the composition algebra norm. | 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 form]]s. The absolute value in these [[division algebra]]s 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 vector]]s. 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''). | In general, the norm of a composition algebra may be a [[quadratic form]] that is not definite and has [[null vector]]s. 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== | ==See also== | ||
*[[Least absolute values]] | *[[Least absolute values]] | ||
==Notes== | == Notes == | ||
{{ | {{notelist}} | ||
== Footnotes == | |||
{{reflist|20em}} | |||
==References== | ==References== | ||
* Bartle | * {{cite book | ||
* | | last1 = Baronti | first1 = Marco | ||
* Mac Lane | | last2 = De Mari | first2 = Filippo | ||
* Mendelson | | last3 = van der Putten | first3 = Robertus | ||
* O'Connor | | 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== | ==External links== | ||