In this explainer, we will learn how to compare and order numbers in .

An ordered set is one in which we can compare any two elements of the set, and , with one of three possible outcomes:

- and are equal,
- the order of is greater than that of ,
- the order of is greater than that of .

Of course, we have not described exactly what is meant by an order since we are working with a general set and there are many different possible interpretations for an ordering. Usually, when working with numbers, we work with the idea of value. So, we can compare the value of two numbers and determine if their values are the same or if one is greater than the other.

For the rest of this explainer, we will only be talking about the set of real numbers . There are two methods we can use to compare real numbers. First, we can compare their decimal expansions. For example, we can see that the value of 0.6 is greater than 0.2 because 6 is greater than 2. This also extends to negative numbers since we can say that negative numbers are always less than positive numbers, and the further from the origin a negative number is, the less it is.

However, it can be difficult to compare the decimal expansions of some numbers. For example, numbers like have a nonrepeating infinite decimal expansion, and it can be difficult to find the digits of irrational numbers.

A second method we can use is to recall that all real numbers can be represented by points on a number line. For example, letβs say are represented by points and on the number line as shown.

We can say that is to the right of , and since this is the positive direction of the number line, we can also say that is greater than . It is worth noting that this is the same as saying that is less than . Of course, the points could be the other way around.

In which case we know that is less than ; or alternatively, is greater than . Finally, points and can be coincident. In other words, they can be the same point on the number line.

Then, we can say that is equal to . We can now describe this ordering formally as follows.

### Definition: Ordering Real Numbers

If and are real numbers represented by points and on a number line, then we know the following:

- If lies to the right of , we say that is greater than , and this is written as .
- If lies to the left of , we say that is less than , and this is written as .
- If points and are congruent, we say that is equal to , and this is written as .

It is also worth noting that saying is the same as saying that , so we can always switch the numbers and switch the direction of the order.

Letβs now see an example of comparing two real numbers given in different forms.

### Example 1: Comparing a Decimal Number to a Given Fraction

Fill in the blank using , , or : .

### Answer

We start by recalling that we order numbers based on their position on a number line. So, we should start by representing each number on a number line. We can do this by finding decimal expansions of each number.

We note that 4.9 is already a decimal, and since , we can note that . Adding these to a number line gives us the following.

We can see that is to the left of 4.9, so we say it is less than 4.9.

We write this as .

Letβs now see another example of comparing two real numbers.

### Example 2: Comparing Decimals to the Absolute Value of Fractions

Fill in the blank using , , or : .

### Answer

We start by recalling that we order numbers based on their position on a number line. So, we should start by representing each number on a number line. We can do this by finding decimal expansions of each number.

We note that 7.2 is already a decimal. We know that taking the absolute value removes the sign of the number, so

We could now find the value of this fraction by using a calculator; however, this is not necessary. Instead, we can note that 38 goes into 47 with a remainder of 9, so

We know that will be between 0 and 1 since the denominator is greater than the numerator. Hence, is between 1 and 2 on the number line. This gives us the following.

We can see that 7.2 is to the right of , so we say it is greater than .

We write this as .

Before we move onto our next example, we can use this definition of the comparison of real numbers to define some useful subsets of the real numbers.

### Definition: Positive and Negative Numbers

The set of positive real numbers is the set of all real numbers greater than 0. So,

The set of negative real numbers is the set of all real numbers less than 0. So,

We call the elements of positive and the elements of negative.

It is worth noting that 0 is not in either of these sets, so we consider 0 to not be positive nor negative. We can include 0 by considering the nonpositive and nonnegative numbers as follows.

### Definition: Nonpositive and Nonnegative Numbers

The set of nonnegative real numbers is the set of all real numbers that are not negative. It is given by .

The set of nonpositive real numbers is the set of all real numbers that are not positive. It is given by .

We can also see that all real numbers are positive, negative, or equal to zero. In other words,

We can see this on a number line.

The negative numbers are those that lie to left of 0, and the positive numbers are those that lie to the right of 0.

Letβs now see an example of determining whether a given real number is positive or negative, also known as determining the sign of the number.

### Example 3: Identifying Whether a Number is Positive or Negative

For a real number , determine whether is positive or negative in each of the following cases.

### Answer

We recall that positive numbers lie to the right of 0 on a number line, and negative numbers lie to the left of 0. We can therefore determine the signs of in each case by considering the possible positions of on a number line.

**Part 1**

We know that will lie to the left of 0 on a number line.

Hence, is negative in this case.

**Part 2**

We are told that . We recall that this means is to the right of 2 on a number line. We can sketch this on a number line as follows.

Since lies to the right of 2 and 2 lies to the right of 0, we can conclude that lies to the right of 0 and is hence positive.

**Part 3**

We are told that . We recall that this means is to the right of on a number line. This is the same as saying lies to the left of , or in other words, .

We can sketch this on a number line as follows.

We can see that must lie to the left of 0 and hence is negative.

In our next example, we will compare a real number to the square root of its square.

### Example 4: Comparing a Real Number with the Square Root of Its Square

Is greater than, equal to, or less than ?

### Answer

We may be tempted to answer this question as βequal toβ since it seems like the square root of a square should always return the same number. However, this is not the case. To see this, letβs consider . We know that . Hence,

In this case, the square root of the square is greater than the original number. The reason for this is that the square root always gives the nonnegative root. Thus, , and in particular, .

We can now consider this method to help us answer the question. First, we note that 38 is much greater than , since . This means that ; in other words, it is negative.

Hence,

We have shown that . So, the square root of the square of this number is greater than the original number.

Now that we can compare any two real numbers, we can use this to order any list of any real numbers. We can order the list in one of two ways, either from least to greatest, which is called ascending order since the numbers get bigger, or from greatest to least, which is called descending order. We can define these terms formally as follows.

### Definition: Ascending and Descending Order

A list of real numbers is said to be in ascending order if . In other words, the numbers are getting larger.

A list of real numbers is said to be in descending order if . In other words, the numbers are getting smaller.

We can order a list of real numbers into either ascending or descending order just by comparing pairs of numbers in the list. However, in order to compare irrational numbers to rational numbers, we will need to know a few useful properties.

First, if and , then . Second, if we have two positive numbers such that , then .

Letβs now see an example of using these properties to order a list of real numbers.

### Example 5: Arranging Real Numbers from Least to Greatest

By considering square numbers, order , , , 4, , 5, and 4.5 from least to greatest.

### Answer

To do this, we can start by ordering all of the rational numbers. We can see that and . We note that none of the radicals are square roots of square numbers, so we cannot easily write these as decimals. Instead, we will use the fact that if we have two positive numbers such that , then . This allows us to write these radicals in ascending order: , , , .

We now need to compare the radicals to the rational numbers. To do this, we can rewrite each rational number as a radical. We note that , , and .

This will allow us to order all of the numbers; we just need to evaluate . One way of doing this is to note that , so

We can now order the radical expressions:

Then, replacing the three radical expressions with their original rational equivalents gives us

In our final example, we will need to order a list of real numbers involving the irrational number into ascending order.

### Example 6: Arranging Real Numbers Involving π in Ascending Order

Without using a calculator, order the numbers , , , 9, and from least to greatest.

### Answer

Since the real numbers in this question involve both and radical expressions, we are going to need to compare the values of the radicals with . We can do this by recalling a few facts:

- ,
- If , then .

This allows us to note that , and we know that . The remaining three expressions are all of the form for some positive real value . We note that if for positive real numbers and , then . This means we need to compare , , and .

We recall that if , then , so ; and we know that , so . We also recall that if we have two positive numbers such that , then . Hence, . Thus,

We now need to compare these two lists. We can do this by comparing to 9. Since and , we know that . However, we cannot add it onto the list without comparing 9 to . Since and , we know that , giving us

Finally, since we already know that , we just need to compare to . We know that , so , giving us .

Letβs finish by recapping some of the important points from this explainer.

### Key Points

- If and are real numbers represented by points and
on a number line, then we know the following:
- If lies to the right of , we say that is greater than , and this is written as .
- If lies to the left of , we say that is less than , and this is written as .
- If points and are coincident, we say that is equal to , and this is written as .

- Saying is the same as saying that , so we can always switch the numbers and switch the direction of the order.
- The set of positive real numbers is the set of all real numbers greater than 0.
- The set of negative real numbers is the set of all real numbers less than 0.
- The set of nonnegative real numbers is the set of all real numbers that are not negative. It is given by .
- The set of nonpositive real numbers is the set of all real numbers that are not positive. It is given by .
- A list of real numbers is said to be in ascending order if . In other words, the numbers are getting larger.
- A list of real numbers is said to be in descending order if . In other words, the numbers are getting smaller.
- For real numbers , if , then .
- For real numbers , if , then .
- For any real number , we have . In general, we can say that , with equality only when .