The absolute value of a real number , written , is its distance from on the number line — always non-negative. Formal definition:
Common rules:
- (with )
- — the triangle inequality.
Solving requires considering both cases: or , giving or .
Generalisations: in the complex plane, is the distance from in 2D. In vector spaces, becomes the norm. The absolute value generalises to any structure where "size" or "distance" makes sense.