3.1 The absolute value

Before we look at subsets of \(\mathbb{Q}\), we introduce the notion of absolute value.

Definition 3.1:

For \(x\in \mathbb{Q}\), the absolute value or modulus of \(x\), denoted \(|x|\), is defined by \[|x| := \begin{cases}x &\text{ if } x\geq 0;\\ -x &\text{ if } x<0.\end{cases}\]

It is often helpful to think of the absolute value \(|x|\) as the distances between the point \(x\) and the origin \(0\). Likewise, \(|x-y|\) is the distance between the points \(x\) and \(y\).

Proposition 3.2:

For any \(x, y \in \mathbb{Q}\)

  1. \(|x|\geq 0\) with \(|x| = 0\) if and only if \(x=0\);

  2. \(|xy| = |x||y|\);

  3. \(|x^2| = |x|^2 = x^2\).

Proof.

Exercise

Example:

Statement Show that \(a^2+b^2\geq 2ab\) for any \(a,b \in \mathbb{Q}\).

Solution Let \(a,b\in\mathbb{Q}\). We have that \((a-b)^2\geq 0\), so [expanding the bracket] \(a^2-2ab+b^2\geq 0\). Rearranging, this gives \(a^2+b^2 \geq 2ab\).

Proposition 3.3: (Triangle Inequality)

For all \(x,y \in \mathbb{Q}\) we have \(|x+y|\leq |x|+|y|\).

Proof.

We prove this by case by case analysis. First note that for all \(x\in\mathbb{Q}\) we have \(x\leq |x|\) and \(-x\leq |x|\). Let \(x,y \in \mathbb{Q}\).

Case 1: Suppose \(x\geq -y\) then \(x+y\geq 0\) and so \(|x+y| = x+y \leq |x|+|y|\).

Case 2: Suppose \(x< -y\) then \(x+y<0\) and so \(|x+y|=-(x+y)=-x+(-y)\leq |x|+|y|\).