math

absolute value

absolute value — from formula anatomy
6 formulas

Description

The absolute value of a real number is its distance from zero on the number line, always non-negative. For a number x, it is written |x| and equals x if x ≥ 0, and -x if x < 0. It appears throughout physics whenever only the magnitude of a quantity matters, regardless of direction, such as in speed (as opposed to velocity) or in the magnitude of a force.

History

The notation |x| was introduced by Karl Weierstrass in 1841, though the concept of distance from zero has been implicit in mathematics for centuries.

How it works

Absolute value strips the sign from a number, turning negatives into positives. In physics, it is used to compute magnitudes of vectors, like the length of a displacement vector or the magnitude of acceleration, by taking the square root of the sum of squared components—a generalization that reduces to the simple absolute value in one dimension.

In practice

It is used in error analysis to express measurement uncertainties, in signal processing to compute signal amplitudes, and in quantum mechanics to find probabilities from wavefunction amplitudes.

Fun fact

The absolute value function is not differentiable at zero, a point that causes subtle issues in optimization problems in physics and engineering.

Concept graph →

Formulas

$$D(\psi_1, \psi_2) = \sqrt{1 - |\langle\psi_1|\psi_2\rangle|^2}$$
Distance between quantum states based on their overlap.
What is in the formula
Dvariabledistance between quantum states — quantum distance
ψ1variablefirst quantum state — wave function
ψ2variablesecond quantum state — wave function
⟨ψ1|ψ2⟩operatorcomputes the complex amplitude of one state in another — inner product
|·|operatorgives the magnitude of the complex amplitude — absolute value
√operatortakes the non-negative root — square root
$$F(U,V) = \frac{1}{N} |\operatorname{Tr}(U^{\dagger}V)|$$
Measure of similarity between two unitary matrices.
What is in the formula
UvariableFirst unitary matrix — unitary matrix
VvariableSecond unitary matrix — unitary matrix
NvariableDimension of the Hilbert space — dimension
TroperatorSum of diagonal elements of a matrix — trace operator
†operatorConjugate transpose of a matrix — hermitian conjugate
| |operatorMagnitude of a complex number — absolute value
$$\delta = \int |W(X,P)|\, dX dP - 1$$
Measures nonclassicality via Wigner function negativity.
What is in the formula
WvariableWigner function of the quantum state — Wigner function
Xvariableposition quadrature variable — position metre
Pvariablemomentum quadrature variable — momentum kilogram metre per second
∫ dX dPoperatorintegration over the full phase space — double integral
| |operatorabsolute value of the Wigner function — absolute value
$$D_{\text{TV}}(P, Q) = \frac{1}{2} \sum_x |P(x) - Q(x)|$$
Maximum difference in probability assigned to any event.
What is in the formula
PvariableProbability distribution over x — probability distribution
QvariableProbability distribution over x — probability distribution
xvariableOutcome index
∑operatorSummation over the discrete sample space — summation
|·|operatorTakes the non-negative magnitude — absolute value
$$\limsup_{n\to\infty} \left| \frac{a_{n+1}}{a_n} \right|$$
The ratio test limit determines series convergence.
What is in the formula
a_nvariablen-th term of the sequence — sequence term
a_{n+1}variable(n+1)-th term of the sequence — sequence term
nvariableindex of the term — index
limsupoperatorlimit superior (largest accumulation point) — limit superior
| |operatorabsolute value (magnitude) — absolute value
$$\text{MAE} = \frac{1}{n}\sum_{i=1}^n |y_i - \hat{y}_i|$$
Average absolute difference between predicted and true values.
What is in the formula
MAEvariableMean absolute error — mean absolute error same as dependent variable
nvariableNumber of observations — sample size
y_ivariableTrue value for observation i — true value same as dependent variable
\hat{y}_ivariablePredicted value for observation i — predicted value same as dependent variable
\sum_{i=1}^noperatorSum over all observations from 1 to n — summation
|\cdot|operatorTakes the absolute value of the difference — absolute value

Related articles · 0

No articles yet