TOPICS
Search

Absolute Value


AbsReal
Min Max
Powered by webMathematica

The absolute value of a real number x is denoted |x| and defined as the "unsigned" portion of x,

|x|=xsgn(x)
(1)
={-x for x<=0; x for x>=0,
(2)

where sgn(x) is the sign function. The absolute value is therefore always greater than or equal to 0. The absolute value of x for real x is plotted above.

AbsReImAbs
Min Max
Re
Im Powered by webMathematica

The absolute value of a complex number z=x+iy, also called the complex modulus, is defined as

 |z|=sqrt(x^2+y^2).
(3)

This form is implemented in the Wolfram Language as Abs[z] and is illustrated above for complex z.

Note that the derivative (read: complex derivative) d|z|/dz does not exist because at every point in the complex plane, the value of the derivative of |z| depends on the direction in which the derivative is taken (so the Cauchy-Riemann equations cannot and do not hold). However, the real derivative (i.e., restricting the derivative to directions along the real axis) can be defined for points other than x=0 as

 (d|x|)/(dx)={-1   for x<0; undefined   for x=0; 1   for x>0.
(4)

As a result of the fact that computer algebra languages such as the Wolfram Language generically deal with complex variables (i.e., the definition of derivative always means complex derivative), d|x|/dx correctly returns unevaluated by such software.

Note that the notation |z| is commonly used to denote the complex modulus, p-adic norm, or general valuation. In this work, the norm of a vector x is also denoted |x|, although the notation ||x|| is also in common use.

The notations for the floor function |_x_|, nearest integer function [x], and ceiling function [x] are similar to that used for the absolute value.

The unit square integral of the absolute value of the difference of two variables taken to the power n is given by

 int_0^1int_0^1|x-y|^ndxdy=2/((n+1)(n+2))
(5)

for R[n]>-1, which has values for n=0, 1, ... of 1, 1/3, 1/6, 1/10, 1/15, 1/21, ..., i.e., one over the triangular numbers (OEIS A000217), for n=1, 2, .... This sort of integral arises in the study of the Casimir effect (Milton and Ng 1998, eqn. 3.15; Milton 1999, p. 32, eqn. 3.33).

Similarly, for R[n]>-2,

 int_0^1int_0^1|x+y|^ndxdy=(2(2^(n+1)-1))/((n+1)(n+2)),
(6)

giving the first few values for n=0, 1, ... of 1, 1, 7/6, 3/2, 31, 15, 3, ... (OEIS A116419 and A116420).


See also

Absolute Square, Ceiling Function, Complex Modulus, Floor Function, Nearest Integer Function, Rectangle Function, Sign, Triangle Function, Unit Square Integral, Valuation Explore this topic in the MathWorld classroom

Related Wolfram sites

http://functions.wolfram.com/ComplexComponents/Abs/

Explore with Wolfram|Alpha

References

Milton, K. A. "The Casimir Effect: Physical Manifestations of Zero-Point Energy." 4 Jan 1999. http://arxiv.org/abs/hep-th/9901011.Milton, K. A. and Ng, J. "Observability of the Bulk Casimir Effect: Can the Dynamical Casimir Effect be Relevant to Sonoluminescence?" Phys. Rev. E 57, 5504-5510, 1998.Sloane, N. J. A. Sequences A000217/M2535, A116419, and A116420 in "The On-Line Encyclopedia of Integer Sequences."

Referenced on Wolfram|Alpha

Absolute Value

Cite this as:

Weisstein, Eric W. "Absolute Value." From MathWorld--A Wolfram Web Resource. https://mathworld.wolfram.com/AbsoluteValue.html

Subject classifications