Absolute Value

DOWNLOAD Mathematica Notebook EXPLORE THIS TOPIC IN the MathWorld Classroom
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 langauges 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).

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.