Which complex number has an absolute value?

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[edit]

In 1806, Jean-Robert Argand introduced the term module, meaning unit of measure in French, specifically for the complex absolute value,[1][2] and it was borrowed into English in 1866 as the Latin equivalent modulus.[1] The term absolute value has been used in this sense from at least 1806 in French[3] and 1857 in English.[4] The notation |x|, with a vertical bar on each side, was introduced by Karl Weierstrass in 1841.[5] Other names for absolute value include numerical value[1] and magnitude.[1] In programming languages and computational software packages, the absolute value of x is generally represented by abs(x), or a similar expression.

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. 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[6] or sup norm[7] of a vector in Rn{\displaystyle \mathbb {R} ^{n}}

Which complex number has an absolute value?
, although double vertical bars with subscripts (‖⋅‖2{\displaystyle \|\cdot \|_{2}}
Which complex number has an absolute value?
and ‖⋅‖∞{\displaystyle \|\cdot \|_{\infty }}
Which complex number has an absolute value?
, respectively) are a more common and less ambiguous notation.

Definition and properties[edit]

Real numbers[edit]

For any real number x{\displaystyle x}

Which complex number has an absolute value?
, the absolute value or modulus of x{\displaystyle x} is denoted by |x|{\displaystyle |x|}
Which complex number has an absolute value?
, with a vertical bar on each side of the quantity, and is defined as[8]

|x|={x,if x≥0−x,if x<0.{\displaystyle |x|={\begin{cases}x,&{\text{if }}x\geq 0\\-x,&{\text{if }}x<0.\end{cases}}}

The absolute value of x{\displaystyle x} is thus always either a positive number or zero, but never negative. When x{\displaystyle x} itself is negative (x<0{\displaystyle x<0}

Which complex number has an absolute value?
), then its absolute value is necessarily positive (|x|=−x>0{\displaystyle |x|=-x>0}
Which complex number has an absolute value?
).

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.[9] The notion of an abstract distance function in mathematics can be seen to be a generalisation of the absolute value of the difference (see "Distance" below).

Since the square root symbol represents the unique positive square root, when applied to a positive number, it follows that

|x|=x2.{\displaystyle |x|={\sqrt {x^{2}}}.}

This is equivalent to the definition above, and may be used as an alternative definition of the absolute value of real numbers.[10]

The absolute value has the following four fundamental properties (a, b are real numbers), that are used for generalization of this notion to other domains:

|a|≥0{\displaystyle |a|\geq 0}Non-negativity|a|=0⟺a=0{\displaystyle |a|=0\iff a=0}Positive-definiteness|ab|=|a||b|{\displaystyle |ab|=\left|a\right|\left|b\right|}Multiplicativity|a+b|≤|a|+|b|{\displaystyle |a+b|\leq |a|+|b|}Subadditivity, specifically the triangle inequality

Non-negativity, positive definiteness, and multiplicativity are readily apparent from the definition. To see that subadditivity holds, first note that |a+b|=s(a+b){\displaystyle |a+b|=s(a+b)}

Which complex number has an absolute value?
where s=±1{\displaystyle s=\pm 1}
Which complex number has an absolute value?
, with its sign chosen to make the result positive. Now, since −1⋅x≤|x|{\displaystyle -1\cdot x\leq |x|}
Which complex number has an absolute value?
and +1⋅x≤|x|{\displaystyle +1\cdot x\leq |x|}
Which complex number has an absolute value?
, it follows that, whichever of ±1{\displaystyle \pm 1}
Which complex number has an absolute value?
is the value of s{\displaystyle s}
Which complex number has an absolute value?
, one has s⋅x≤|x|{\displaystyle s\cdot x\leq |x|}
Which complex number has an absolute value?
for all real x{\displaystyle x}. Consequently, |a+b|=s⋅(a+b)=s⋅a+s⋅b≤|a|+|b|{\displaystyle |a+b|=s\cdot (a+b)=s\cdot a+s\cdot b\leq |a|+|b|}
Which complex number has an absolute value?
, 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.

||a||=|a|{\displaystyle {\bigl |}\left|a\right|{\bigr |}=|a|}Idempotence (the absolute value of the absolute value is the absolute value)|−a|=|a|{\displaystyle \left|-a\right|=|a|}Evenness (reflection symmetry of the graph)|a−b|=0⟺a=b{\displaystyle |a-b|=0\iff a=b}Identity of indiscernibles (equivalent to positive-definiteness)|a−b|≤|a−c|+|c−b|{\displaystyle |a-b|\leq |a-c|+|c-b|}Triangle inequality (equivalent to subadditivity)|ab|=|a||b| {\displaystyle \left|{\frac {a}{b}}\right|={\frac {|a|}{|b|}}\ } (if b≠0{\displaystyle b\neq 0})Preservation of division (equivalent to multiplicativity)|a−b|≥||a|−|b||{\displaystyle |a-b|\geq {\bigl |}\left|a\right|-\left|b\right|{\bigr |}}Reverse triangle inequality (equivalent to subadditivity)

Two other useful properties concerning inequalities are:

|a|≤b⟺−b≤a≤b{\displaystyle |a|\leq b\iff -b\leq a\leq b}|a|≥b⟺a≤−b {\displaystyle |a|\geq b\iff a\leq -b\ } or a≥b{\displaystyle a\geq b}

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

|x−3|≤9{\displaystyle |x-3|\leq 9}⟺−9≤x−3≤9{\displaystyle \iff -9\leq x-3\leq 9}⟺−6≤x≤12{\displaystyle \iff -6\leq x\leq 12}

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[edit]

Which complex number has an absolute value?

The absolute value of a complex number z{\displaystyle z}

Which complex number has an absolute value?
is the distance r{\displaystyle r}
Which complex number has an absolute value?
of z{\displaystyle z} from the origin. It is also seen in the picture that z{\displaystyle z} and its complex conjugate z¯{\displaystyle {\bar {z}}}
Which complex number has an absolute value?
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

z=x+iy,{\displaystyle z=x+iy,}

where x{\displaystyle x} and y{\displaystyle y} are real numbers, the absolute value or modulus of z{\displaystyle z} is denoted |z|{\displaystyle |z|} and is defined by[11]

|z|=Re⁡(z)2+Im⁡(z)2=x2+y2,{\displaystyle |z|={\sqrt {\operatorname {Re} (z)^{2}+\operatorname {Im} (z)^{2}}}={\sqrt {x^{2}+y^{2}}},}

the Pythagorean addition of x{\displaystyle x} and y{\displaystyle y}, where Re⁡(z)=x{\displaystyle \operatorname {Re} (z)=x} and Im⁡(z)=y{\displaystyle \operatorname {Im} (z)=y} denote the real and imaginary parts of z{\displaystyle z}, respectively. When the imaginary part y{\displaystyle y} is zero, this coincides with the definition of the absolute value of the real number x{\displaystyle x}.

When a complex number z{\displaystyle z} is expressed in its polar form as z=reiθ,{\displaystyle z=re^{i\theta },}

Which complex number has an absolute value?
its absolute value is |z|=r.{\displaystyle |z|=r.}
Which complex number has an absolute value?

Since the product of any complex number z{\displaystyle z} and its complex conjugate z¯=x−iy{\displaystyle {\bar {z}}=x-iy}

Which complex number has an absolute value?
, with the same absolute value, is always the non-negative real number (x2+y2){\displaystyle \left(x^{2}+y^{2}\right)}
Which complex number has an absolute value?
, the absolute value of a complex number z{\displaystyle z} is the square root of z⋅z¯,{\displaystyle z\cdot {\overline {z}},}
Which complex number has an absolute value?
which is therefore called the absolute square or squared modulus of z{\displaystyle z}:

|z|=z⋅z¯.{\displaystyle |z|={\sqrt {z\cdot {\overline {z}}}}.}

This generalizes the alternative definition for reals: |x|=x⋅x{\textstyle |x|={\sqrt {x\cdot x}}}.

The complex absolute value shares the four fundamental properties given above for the real absolute value. The identity |z|2=|z2|{\displaystyle |z|^{2}=|z^{2}|}

Which complex number has an absolute value?
is a special case of multiplicativity that is often useful by itself.

Absolute value function[edit]

Which complex number has an absolute value?

The graph of the absolute value function for real numbers

Which complex number has an absolute value?

The real absolute value function is continuous everywhere. It is differentiable everywhere except for x = 0. It is monotonically decreasing on the interval (−∞, 0] and monotonically increasing on the interval [0, +∞). Since a real number and its opposite have the same absolute value, it is an even function, and is hence not invertible. The real absolute value function is a piecewise linear, convex function.

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[edit]

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:

|x|=xsgn⁡(x),{\displaystyle |x|=x\operatorname {sgn}(x),}

or

|x|sgn⁡(x)=x,{\displaystyle |x|\operatorname {sgn}(x)=x,}

and for x ≠ 0,

sgn⁡(x)=|x|x=x|x|.{\displaystyle \operatorname {sgn}(x)={\frac {|x|}{x}}={\frac {x}{|x|}}.}

Derivative[edit]

The real absolute value function has a derivative for every x ≠ 0, but is not differentiable at x = 0. Its derivative for x ≠ 0 is given by the step function:[12][13]

d|x|dx=x|x|={−1x<01x>0.{\displaystyle {\frac {d\left|x\right|}{dx}}={\frac {x}{|x|}}={\begin{cases}-1&x<0\\1&x>0.\end{cases}}}

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 |x| at x = 0 is the interval [−1, 1].[14]

The complex absolute value function is continuous everywhere but complex differentiable nowhere because it violates the Cauchy–Riemann equations.[12]

The second derivative of |x| with respect to 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[edit]

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

∫|x|dx=x|x|2+C,{\displaystyle \int \left|x\right|dx={\frac {x\left|x\right|}{2}}+C,}

where 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.

Distance[edit]

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

a=(a1,a2,…,an){\displaystyle a=(a_{1},a_{2},\dots ,a_{n})}

and

b=(b1,b2,…,bn){\displaystyle b=(b_{1},b_{2},\dots ,b_{n})}

in Euclidean n-space is defined as:

∑i=1n(ai−bi)2.{\displaystyle {\sqrt {\textstyle \sum _{i=1}^{n}(a_{i}-b_{i})^{2}}}.}

This can be seen as a generalisation, since for a1{\displaystyle a_{1}}

Which complex number has an absolute value?
and b1{\displaystyle b_{1}}
Which complex number has an absolute value?
real, i.e. in a 1-space, according to the alternative definition of the absolute value,

|a1−b1|=(a1−b1)2=∑i=11(ai−bi)2,{\displaystyle |a_{1}-b_{1}|={\sqrt {(a_{1}-b_{1})^{2}}}={\sqrt {\textstyle \sum _{i=1}^{1}(a_{i}-b_{i})^{2}}},}

and for a=a1+ia2{\displaystyle a=a_{1}+ia_{2}}

Which complex number has an absolute value?
and b=b1+ib2{\displaystyle b=b_{1}+ib_{2}}
Which complex number has an absolute value?
complex numbers, i.e. in a 2-space,

|a−b|{\displaystyle |a-b|}=|(a1+ia2)−(b1+ib2)|{\displaystyle =|(a_{1}+ia_{2})-(b_{1}+ib_{2})|}=|(a1−b1)+i(a2−b2)|{\displaystyle =|(a_{1}-b_{1})+i(a_{2}-b_{2})|}=(a1−b1)2+(a2−b2)2=∑i=12(ai−bi)2.{\displaystyle ={\sqrt {(a_{1}-b_{1})^{2}+(a_{2}-b_{2})^{2}}}={\sqrt {\textstyle \sum _{i=1}^{2}(a_{i}-b_{i})^{2}}}.}

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 d on a set X × X is called a metric (or a distance function) on X, if it satisfies the following four axioms:[15]

d(a,b)≥0{\displaystyle d(a,b)\geq 0}Non-negativityd(a,b)=0⟺a=b{\displaystyle d(a,b)=0\iff a=b}Identity of indiscerniblesd(a,b)=d(b,a){\displaystyle d(a,b)=d(b,a)}Symmetryd(a,b)≤d(a,c)+d(c,b){\displaystyle d(a,b)\leq d(a,c)+d(c,b)}Triangle inequality

Generalizations[edit]

Ordered rings[edit]

The definition of absolute value given for real numbers above can be extended to any ordered ring. That is, if a is an element of an ordered ring R, then the absolute value of a, denoted by |a|, is defined to be:[16]

|a|={a,if a≥0−a,if a<0.{\displaystyle |a|=\left\{{\begin{array}{rl}a,&{\text{if }}a\geq 0\\-a,&{\text{if }}a<0.\end{array}}\right.}

where −a is the additive inverse of a, 0 is the additive identity, and < and ≥ have the usual meaning with respect to the ordering in the ring.

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 v on a field F is called an absolute value (also a modulus, magnitude, value, or valuation)[17] if it satisfies the following four axioms:

v(a)≥0{\displaystyle v(a)\geq 0}Non-negativityv(a)=0⟺a=0{\displaystyle v(a)=0\iff a=\mathbf {0} }Positive-definitenessv(ab)=v(a)v(b){\displaystyle v(ab)=v(a)v(b)}Multiplicativityv(a+b)≤v(a)+v(b){\displaystyle v(a+b)\leq v(a)+v(b)}Subadditivity or the triangle inequality

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

If v is an absolute value on F, then the function d on F × F, defined by d(a, b) = v(a − b), is a metric and the following are equivalent:

  • d satisfies the ultrametric inequality d(x,y)≤max(d(x,z),d(y,z)){\displaystyle d(x,y)\leq \max(d(x,z),d(y,z))}
    Which complex number has an absolute value?
    for all x, y, z in F.
  • {v(∑k=1n1):n∈N}{\textstyle \left\{v\left(\sum _{k=1}^{n}\mathbf {1} \right):n\in \mathbb {N} \right\}}
    Which complex number has an absolute value?
    is bounded in R.
  • v(∑k=1n1)≤1 {\displaystyle v\left({\textstyle \sum _{k=1}^{n}}\mathbf {1} \right)\leq 1\ }
    Which complex number has an absolute value?
    for every n∈N{\displaystyle n\in \mathbb {N} }
    Which complex number has an absolute value?
    .
  • v(a)≤1⇒v(1+a)≤1 {\displaystyle v(a)\leq 1\Rightarrow v(1+a)\leq 1\ }
    Which complex number has an absolute value?
    for all a∈F{\displaystyle a\in F}
    Which complex number has an absolute value?
    .
  • v(a+b)≤max{v(a),v(b)} {\displaystyle v(a+b)\leq \max\{v(a),v(b)\}\ }
    Which complex number has an absolute value?
    for all a,b∈F{\displaystyle a,b\in F}
    Which complex number has an absolute value?
    .

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.[18]

Vector spaces[edit]

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 V over a field F, represented as || · ||, is called an absolute value, but more usually a norm, if it satisfies the following axioms:

For all a in F, and v, u in V,

‖v‖≥0{\displaystyle \|\mathbf {v} \|\geq 0}Non-negativity‖v‖=0⟺v=0{\displaystyle \|\mathbf {v} \|=0\iff \mathbf {v} =0}Positive-definiteness‖av‖=|a|‖v‖{\displaystyle \|a\mathbf {v} \|=\left|a\right|\left\|\mathbf {v} \right\|}Positive homogeneity or positive scalability‖v+u‖≤‖v‖+‖u‖{\displaystyle \|\mathbf {v} +\mathbf {u} \|\leq \|\mathbf {v} \|+\|\mathbf {u} \|}Subadditivity or the triangle inequality

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

In the case of Euclidean space Rn{\displaystyle \mathbb {R} ^{n}}, the function defined by

‖(x1,x2,…,xn)‖=∑i=1nxi2{\displaystyle \|(x_{1},x_{2},\dots ,x_{n})\|={\sqrt {\textstyle \sum _{i=1}^{n}x_{i}^{2}}}}

is a norm called the Euclidean norm. When the real numbers R{\displaystyle \mathbb {R} }

Which complex number has an absolute value?
are considered as the one-dimensional vector space R1{\displaystyle \mathbb {R} ^{1}}
Which complex number has an absolute value?
, the absolute value is a norm, and is the p-norm (see Lp space) for any p. In fact the absolute value is the "only" norm on R1{\displaystyle \mathbb {R} ^{1}}, in the sense that, for every norm || · || on R1{\displaystyle \mathbb {R} ^{1}}, ||x|| = ||1|| ⋅ |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 R2{\displaystyle \mathbb {R} ^{2}}

Which complex number has an absolute value?
.

Composition algebras[edit]

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 R{\displaystyle \mathbb {R} }, complex numbers C{\displaystyle \mathbb {C} }

Which complex number has an absolute value?
, and quaternions H{\displaystyle \mathbb {H} }
Which complex number has an absolute value?
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).

What is the absolute value of a complex number?

The absolute value of a complex number , a+bi (also called the modulus ) is defined as the distance between the origin (0,0) and the point (a,b) in the complex plane.

Why is the absolute value of a complex number?

In the complex plane, the origin represents the number 0. Thus, the absolute value of a complex number is the distance between that number and the origin (0) on the complex plane.

Is the absolute value of a complex number always positive?

The absolute value of a number is always positive (or zero) because it is a distance (more specifically, the distance on the number line between zero and the number). Absolute value cannot be negative, since a distance is always positive or zero.

What is an example of an absolute value?

The absolute value (or modulus) | x | of a real number x is the non-negative value of x without regard to its sign. For example, the absolute value of 5 is 5, and the absolute value of −5 is also 5. The absolute value of a number may be thought of as its distance from zero along real number line.