Absolute value of a real number

Given a real number a we define the absolute value of a denoted |a|, as the biggest number between a and a: |a|=max(a,a)

Example

|2|=max(2,2)=2

|2|=max(2,(2))=max(2,2)=2

As we can see in the example, the absolute value of a positive number is the same number, while the absolute value of a negative number is its opposite. That is, |a|={a,  if a0a,  if a<0

Properties of the absolute value

For any pair of real numbers a and b, it is satisfied that:

  • |a|>0 if a0, and |0|=0.
  • |a|=|a|.
  • Triangle inequality: |a+b||a|+|b|.
  • |ab|=|a||b|.

And if a is a real number and r is a positive real number, the inequality |a|<r is equivalent to the chain of inequalities r<a<r.