Inequality and intervals

Inequality between two numbers

We use the inequality symbols <,,><, \leq, > and \geq to compare the size of two real numbers. For example, the following statements are correct:

We can also use inequality symbols to define subsets of the number sets. Here are some examples:

Example 1
  1. AA is the set of all natural numbers xx with x7x\leq 7. Using a more formal notation, we could write

    A={xNx7}A=\{ x\in \mathbb{N}\,|\, x\leq 7\}

    It is A={1,2,3,4,5,6,7}A=\{1,2,3,4,5,6,7\}

  2. BB is the set of all natural numbers xx with x<7x< 7. Using a more formal notation, we could write

    B={xNx<7}B=\{ x\in \mathbb{N}\,|\,x< 7\}

    It is B={1,2,3,4,5,6}B=\{1,2,3,4,5,6\}

  3. CC is the set of all integers xx with x>3.5x>-3.5. Using a more formal notation, we would write

    C={xZx>3.5}C=\{ x\in \mathbb{Z}\,|\,x>-3.5\}

    It is C={3,2,1,0,1,...}C=\{-3,-2,-1,0,1,...\}

  4. DD is the set of all natural numbers xx with 1x<61\leq x <6. Note that with this notation we mean that 1x1\leq x and x<6x<6 (that is, xx is between 11 and 66, where 11 is in the set, but 66 is not). Using a more formal notation, we write

    D={xN1x<6}D=\{ x\in \mathbb{N}\,|\,1\leq x <6\}

    It is D={1,2,3,4,5}D=\{1,2,3,4,5\}

Of course we can replace N\mathbb{N} with any other number set such as Z,Q,R\mathbb{Z}, \mathbb{Q}, \mathbb{R}.

Exercise 1

Determine the elements of set AA:

  1. AA is the set of all natural numbers xx with x>6x>6.

  2. A={xZ4.75x2}A=\{x \in \mathbb{Z}\,|\, -4.75\leq x\leq 2\}

  3. AA is the set of all rational numbers pq\frac{p}{q} with 1<p<41<p<4 and 12q1412\leq q\leq 14.

  4. A={xN4x<28}A=\{x \in \mathbb{N}\,|\, 4x<28\}

Solution
  1. A={7,8,9,...}A=\{7,8,9,...\}
  2. A={4,3,2,1,0,1,2}A=\{-4,-3,-2,-1,0,1,2\}
  3. A={212,213,214,312,313,314}A=\{\frac{2}{12},\frac{2}{13},\frac{2}{14},\frac{3}{12},\frac{3}{13},\frac{3}{14}\}
  4. A={1,2,3,4,5,6}A=\{1,2,3,4,5,6\}

Intervals

Intervals are segments (or subsets) of the number line (the real numbers). For example, all numbers between 22 and 55 form an interval. Emphasis is on all numbers, so not just the natural numbers between 22 to 55, or just the fractions between 22 and 55, but also the irrational numbers such as π=3.14...\pi=3.14... or 5=2.236...\sqrt{5}=2.236....

We use square brackets to indicate intervals, and distinguish between intervals which do or do not include the borders:

],2]={xRx2}]-\infty,2]=\{x\in \mathbb{R}\,|\, x\leq 2\}
Exercise 2

Express the segments drawn below on the number line by intervals. Several intervals may have to be linked by set operations. The dotted segments in 3 and 4 means that they go on and on.

Solution
  1. [2,4[[2,4[
  2. [3.102,4.13][-3.102, 4.1\overline{3}]
  3. [1,[[1,\infty[
  4. ],2[]-\infty,2[
  5. [1,2][2.5,4][4.5,7][1,2]\cup [2.5,4]\cup [4.5,7]
Exercise 3

Express the following sets using intervals or the union of intervals. Hint: Indicate the sets on the number line. Also note that for intervals the universal set is always R\mathbb{R}.

  1. {1}\{1\}

  2. [1,2[c[1,2[^c

  3. ]0.5,3[[1.5,2[]-0.5,3[ \,\cap\, [1.5,2[

  4. R\mathbb{R}

  5. {xR2x1>2}\{x\in \mathbb{R}\,|\, 2x-1>2\}

  6. ]1,1[c]1,1[^c

  7. [1,1]c[1,1]^c

  8. [1,3]]0.5,2[[1,3]\,\setminus \,]0.5,2[

  9. [1,2[{2}[1,2[\,\cup\, \{2\}

Solution
  1. [1,1][1,1]
  2. ],1[[2,[]-\infty,1[ \,\cup\, [2,\infty[
  3. [1.5,2[[1.5,2[
  4. ],[]-\infty,\infty[
  5. ]1.5,[]1.5,\infty[
  6. {}c=R\{\}^c=\mathbb{R}
  7. {1}c=],1[]1,[\{1\}^c=]-\infty,1[ \,\cup\, ]1,\infty[
  8. [2,3][2,3]
  9. [1,2][1,2]