maths.free › Algebra › Absolute value

Absolute value

Split into two cases and check each.

|u| = 5 means u is 5 units from zero in either direction, so u = 5 or u = −5. Every absolute-value equation splits into those two cases; solve each and keep the solutions consistent with the case they came from.

Absolute value

In mathematics, the absolute value or modulus of a real number \(x\), denoted \(|x|\), is the (non-negative) magnitude of \(x\) measured without regard to its sign. Namely, \(|x|=x\) if \(x\) is a positive number, and \(|x|=-x\) if \(x\) is negative (in which case \(-x\) is positive), and \(|0|=0\). For example, the absolute value of 3 is 3, and the absolute value of −3 is 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, and it was borrowed into English in 1866 as the Latin equivalent modulus. The term absolute value has been used in this sense from at least 1806 in French and 1857 in English. The notation |x|, with a vertical bar on each side, was introduced by Karl Weierstrass in 1841. Other names for absolute value include numerical value and magnitude. The absolute value of \(x\) has also been denoted \(\operatorname{abs} x\) in some mathematical publications, and in spreadsheets, programming languages, and computational software packages, the absolute value of \(x\) is generally represented by abs(x), or a similar expression, as it has been since the earliest days of high-level programming languages.

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 or sup norm of a vector in \(\R^n\), although double vertical bars with subscripts (\(\|\cdot\|_2\) and \(\|\cdot\|_\infty\), respectively) are a more common and less ambiguous notation.

Real numbers

For any real number \(x\), the absolute value or modulus of \(x\) is denoted by \(|x|\), with a vertical bar on each side of the quantity, and is defined as \[|x| = \begin{cases} x, & \text{if } x \geq 0 \\ -x, & \text{if } x < 0. \end{cases}\]

The absolute value of \(x\) is thus always either a positive number or zero, but never negative. When \(x\) itself is negative (\(x < 0\)), then its absolute value is necessarily positive (\(|x|=-x>0\)).

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. 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| = \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.

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:

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)\) where \(s=\pm 1\), with its sign chosen to make the result positive. Now, since \(-1 \cdot x \le |x|\) and \(+1 \cdot x \le |x|\), it follows that, whichever of \(\pm1\) is the value of \(s\), one has \(s \cdot x\leq |x|\) for all real \(x\). Consequently, \(|a+b|=s \cdot (a+b) = s \cdot a + s \cdot b \leq |a| + |b|\), 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.

Condensed: the full section is in Wikipedia.

Complex numbers

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,\] where \(x\) and \(y\) are real numbers, the absolute value or modulus of \(z\) is denoted \(|z|\) and is defined by \[|z| = \sqrt{\operatorname{Re}(z)^2 + \operatorname{Im}(z)^2}=\sqrt{x^2 + y^2},\] the Pythagorean addition of \(x\) and \(y\), where \(\operatorname{Re}(z)=x\) and \(\operatorname{Im}(z)=y\) denote the real and imaginary parts of \(z\), respectively. When the imaginary part \(y\) is zero, this coincides with the definition of the absolute value of the real number \(x\).

When a complex number \(z\) is expressed in its polar form as \(z = r e^{i \theta},\) its absolute value is \(|z| = r.\)

Since the product of any complex number \(z\) and its complex conjugate \(\bar z = x - iy\), with the same absolute value, is always the non-negative real number \(\left(x^2 + y^2\right)\), the absolute value of a complex number \(z\) is the square root of \(z \cdot \overline{z},\) which is therefore called the absolute square or squared modulus of \(z\): \[|z| = \sqrt{z \cdot \overline{z}}.\] This generalizes the alternative definition for reals: \(|x| = \sqrt{x\cdot x}\).

The complex absolute value shares the four fundamental properties given above for the real absolute value. The identity \(|z|^n = |z^n|\) is a special case of multiplicativity that is often useful by itself.

Absolute value function

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

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| = x \sgn(x),\)

\(|x| \sgn(x) = x,\)

and for x ≠ 0,

\(\sgn(x) = \frac{|x|}{x} = \frac{x}{|x|}.\)

Relationship to the max and min functions

Let \(s,t\in\R\), then the following relationship to the minimum and maximum functions hold:

\(|t-s|= -2 \min(s,t)+s+t\)

and

\(|t-s|=2 \max(s,t)-s-t.\)

The formulas can be derived by considering each case \(s>t\) and \(t>s\) separately.

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

Derivative

The real absolute value function has a derivative for every x ≠ 0, given by a step function equal to the sign function except at x = 0 where the absolute value function is not differentiable: \[\begin{aligned} \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{aligned}\]

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

The complex absolute value function is continuous everywhere but complex differentiable nowhere because it violates the Cauchy-Riemann equations.

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

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

\(\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.

Derivatives and antiderivatives of compositions

The following three formulae are special cases of the chain rule:

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

if the absolute value is inside a function, and

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

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

\({\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\,.\)

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

Condensed: the full section is in Wikipedia.

Power rule for expressions with absolute values

Using chain and product rules, the power rule for expressions of the type \(x^n |x|^m\) can be written as:

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

This holds true even for \(n=0\):

\({\text{d} \over \text{d}x} |x|^m = mx^{-1}|x|^m\,.\)

Distance

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 = (a_1, a_2, \dots , a_n)\] and \[b = (b_1, b_2, \dots , b_n)\] in Euclidean n-space is defined as: \[\sqrt{\textstyle\sum_{i=1}^n(a_i-b_i)^2}.\]

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

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

and for \(a = a_1 + i a_2\) and \(b = b_1 + i b_2\) complex numbers, i.e. in a 2-space,

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:

Ordered rings

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: \[|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.

Fields

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) if it satisfies the following four axioms:

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) \leq \max(d(x,z),d(y,z))\) for all x, y, z in F.
  • \(\left\{ v\left( \sum_{k=1}^n \mathbf{1}\right) : n \in \N \right\}\) is bounded in R.
  • \(v\left({\textstyle \sum_{k=1}^n } \mathbf{1}\right) \le 1\) for every \(n \in \N\).
  • \(v(a) \le 1 \Rightarrow v(1+a) \le 1\) for all \(a \in F\).
  • \(v(a + b) \le \max \{v(a), v(b)\}\) for all \(a, b \in F\).

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.

工作范例 · |x - 2| = 5

Solve Abs(x - 2) = 5

\left|{x - 2}\right| = 5

一步

  1. \left|{x - 2}\right| = 5

    Start from the equation as given.

  2. \left|{x - 2}\right| - 5 = 0

    Split into the two cases inside the absolute value: positive and negative.

  3. x - 7 = 0 \Rightarrow x = 7

    Case x - 2 non-negative: replace |x - 2| by (x - 2) and solve; keep only solutions consistent with that case.

  4. - x - 3 = 0 \Rightarrow x = -3

    Case x - 2 negative: replace |x - 2| by −(x - 2) and solve; keep only solutions consistent with that case.

发送答案
x = 7 ,\; x = -3

现在轮到你 选择问题, 输入或绘制您自己的 。 每一步, 图片, 答案隐藏到您询问 。

保持你自己的工作

免费账户在每一课上都添加注解, 记录你完成的, 在一个地方解决的, 以及您可以询问的关于此页的导师。 数学本身向每个人开放, 是否签名 。

签名上签名 登录

此处所用符号

输入完整定义、图片和其中每个字母的含义的符号。

如何: Absolute value

  1. Start from the equation as given.
  2. Split into the two cases inside the absolute value: positive and negative.
  3. Case x - 2 non-negative: replace |x - 2| by (x - 2) and solve; keep only solutions consistent with that case.
  4. Case x - 2 negative: replace |x - 2| by −(x - 2) and solve; keep only solutions consistent with that case.

人们对人们提出的问题

What does it mean to solve an equation?

To find every value of the unknown that makes both sides equal. Each step is an operation applied to both sides that keeps the solution set the same, until the unknown stands alone.

Why do I sometimes get two answers?

A quadratic can cross the axis twice, so it can have two solutions. A degree-n polynomial has up to n. The graph shows where each one comes from.

How do I know whether to factor or use the quadratic formula?

Try factoring for a few seconds: look for two numbers that multiply to a·c and add to b. If nothing obvious appears, the discriminant b² − 4ac tells you how many real roots there are, and the formula finds them without guessing.

本页部分内容从 Wikipedia (CC BY-SA 4.0). 在这里进行浓缩和重新解释;错误属于我们。

更多 Algebra