Chapter 1 ยท Rational number foundations

Comparing and Ordering Integers

Use position on a number line to decide which of two integers is less or greater, then put a list of positive and negative integers in order.

12 min read

You already know that 55 is greater than 22. In this lesson you will make the same kind of comparison when some of the numbers are below zero.

The integers are the counting numbers 1,2,3,โ€ฆ1, 2, 3, \dots, their negatives โˆ’1,โˆ’2,โˆ’3,โ€ฆ-1, -2, -3, \dots, and 00. The counting numbers are positive, the integers written with a minus sign are negative, and 00 is neither.

To compare two integers is to decide which one is less and which one is greater, or whether they are equal. To order a list of different integers is to arrange it so that each number is less than the next (least to greatest) or greater than the next (greatest to least).

When two integers are different, you write the comparison with <<, which means is less than, or >>, which means is greater than. The open side of the symbol faces the greater number, so 2<52 < 5 and 5>25 > 2 state the same fact.

What does less mean below zero? Think of a thermometer that measures degrees Celsius, where 00 is the temperature at which water freezes. A morning at โˆ’10-10 degrees is colder than a morning at โˆ’2-2 degrees. The colder temperature is the lesser number, so โˆ’10-10 is less than โˆ’2-2, even though 1010 is greater than 22.

A number line turns this idea into positions. It is a straight line with equally spaced marks called ticks. Zero is the reference point. The positive integers sit to the right of 00, one at each tick, and the negative integers sit to the left of 00 in steps of the same size. Each integer sits exactly on its own tick, so its position is exact, not an estimate.

Values on the line increase as you move right: each step to the right lands on a greater integer, and each step to the left lands on a lesser one. The figure below shows three integers on such a line.

Number line from -8 to 8, with a step of 1, showing 3 marked points. Markers: marker at -6, named -6; marker at -1, named -1; marker at 3, named 3.
From left to right the markers sit at โˆ’6-6, โˆ’1-1 and 33, so โˆ’6<โˆ’1<3-6 < -1 < 3.

The line above shows the part from โˆ’8-8 to 88 in steps of 11. The full line continues without end in both directions. Each marker is exactly on a tick, so you can read its value instead of judging by eye: the markers sit at โˆ’6-6, โˆ’1-1 and 33.

Reading from left to right, you meet โˆ’6-6, then โˆ’1-1, then 33. So โˆ’6-6 is the least of the three and 33 is the greatest. As a chain, โˆ’6<โˆ’1<3-6 < -1 < 3: each number is less than the one after it.

An integer's distance from zero is the number of steps of 11 from its tick to 00. Here โˆ’6-6 is 66 steps from 00 and 33 is only 33 steps from 00, yet โˆ’6-6 is the lesser number. Distance alone does not decide the order. You also need to know which side of 00 the integer is on, and its sign, positive or negative, tells you that: negative integers are on the left and positive integers are on the right.

Key concept

Left is less, right is greater

On a number line whose values increase from left to right, position decides every comparison of two integers:

  • the integer farther left is less;
  • the integer farther right is greater;
  • two integers at the same tick are equal.

For any integer other than 00, the sign gives the side of 00 and the distance from zero gives how far along that side it sits. Together they fix the exact position, so you can compare integers without drawing the line.

Comparing two different integers by sign and distance from zero
The two integersWhere they sitWhich is lessExample
One negative, one positive
The negative one is left of 00; the positive one is right of 00.
The negative integer
โˆ’9<2-9 < 2
One negative, the other 00
The negative one is left of 00.
The negative integer
โˆ’4<0-4 < 0
One positive, the other 00
The positive one is right of 00.
00
0<60 < 6
Both positive
The one farther from 00 is farther right.
The one closer to 00
4<74 < 7
Both negative
The one farther from 00 is farther left.
The one farther from 00
โˆ’7<โˆ’4-7 < -4

Worked example

Compare two negative integers

Which is greater, โˆ’8-8 or โˆ’3-3? Write the comparison with << and with >>.

  1. Check the signs. Both integers are negative, so both sit to the left of 0. The last row of the table applies.

  2. Find each distance from zero. The integer โˆ’8 is 8 steps to the left of 0, and โˆ’3 is 3 steps to the left of 0.

  3. Compare the positions. Because 8 steps is farther than 3 steps, โˆ’8 sits farther left than โˆ’3. On a number line whose values increase to the right, farther left means less.

    โˆ’8<โˆ’3-8 < -3
  4. State the same fact starting with the greater number. Swap the two numbers and turn the symbol around so that its open side still faces โˆ’3. The meaning does not change.

    โˆ’3>โˆ’8-3 > -8

Answer

The greater integer is โˆ’3-3. In symbols, โˆ’8<โˆ’3-8 < -3, which says the same as โˆ’3>โˆ’8-3 > -8.

Number line from -9 to 9, with a step of 1, showing 4 marked points. Markers: marker at -8, named -8; marker at -3, named -3; marker at 3, named 3; marker at 8, named 8.
The line runs from โˆ’9-9 to 99. The pairs 33, 88 and โˆ’3-3, โˆ’8-8 are the same distances from 00, but 3<83 < 8 while โˆ’8<โˆ’3-8 < -3.

Worked example

Order a list from least to greatest

Order these integers from least to greatest: 33, โˆ’9-9, 00, โˆ’2-2, 55, โˆ’6-6.

  1. Group the integers by their side of 0. The negatives are โˆ’9, โˆ’2 and โˆ’6, and the positives are 3 and 5. Every negative integer is left of 0 and every positive integer is right of 0, so the negatives come first, then 0, then the positives.

  2. Order the negatives. Their distances from zero are 9, 2 and 6 steps. For negative integers, farther from zero means farther left, so the integer 9 steps away comes first, then the one 6 steps away, then the one 2 steps away.

    โˆ’9<โˆ’6<โˆ’2-9 < -6 < -2
  3. Order the positives. For positive integers, farther from zero means farther right, and 3 is closer to 0 than 5 is, so 3 comes before 5.

    3<53 < 5
  4. Join the groups in the order negatives, zero, positives. Each number in the chain is less than the one after it.

    โˆ’9<โˆ’6<โˆ’2<0<3<5-9 < -6 < -2 < 0 < 3 < 5
  5. Check with the number line below, which runs from โˆ’10 to 6 in steps of 1. Read from left to right, its markers sit at โˆ’9, โˆ’6, โˆ’2, 0, 3 and 5, which matches the chain.

Answer

From least to greatest, the integers are โˆ’9-9, โˆ’6-6, โˆ’2-2, 00, 33, 55.

Number line from -10 to 6, with a step of 1, showing 6 marked points. Markers: marker at -9, named -9; marker at -6, named -6; marker at -2, named -2; marker at 0, named 0; marker at 3, named 3; marker at 5, named 5.
Read from left to right, the markers give the order from least to greatest: โˆ’9-9, โˆ’6-6, โˆ’2-2, 00, 33, 55.

Worked example

Order temperatures from warmest to coldest

Five towns report their lowest temperature for the same night, in degrees Celsius: Town A โˆ’12-12, Town B 44, Town C โˆ’7-7, Town D 00 and Town E โˆ’15-15. List the temperatures from warmest to coldest. Which town was coldest?

  1. Turn the question into a comparison. On the Celsius scale a warmer temperature is a greater number, so warmest to coldest means greatest to least.

  2. Place the positive value and zero. The only positive value is 4. A positive integer is greater than 0, and 0 is greater than every negative integer, so the list starts with 4, then 0.

    4>04 > 0
  3. Order the negative values. Their distances from zero are 12, 7 and 15 steps. For negative integers, closer to zero means farther right, so it means greater. Take them from closest to farthest.

    โˆ’7>โˆ’12>โˆ’15-7 > -12 > -15
  4. Join the parts into one chain in which each number is greater than the one after it.

    4>0>โˆ’7>โˆ’12>โˆ’154 > 0 > -7 > -12 > -15
  5. Match the least number to its town. The chain ends with โˆ’15, the temperature in Town E.

Answer

From warmest to coldest, the temperatures in degrees Celsius are 44, 00, โˆ’7-7, โˆ’12-12, โˆ’15-15, so Town E was coldest.

To compare or order integers, think about position. On a number line whose values increase from left to right, the integer farther left is less and the integer farther right is greater. That is why every negative integer is less than 00 and 00 is less than every positive integer. It is also why, for two negative integers, the one farther from zero is the lesser one: โˆ’8<โˆ’3-8 < -3 even though 8>38 > 3.

Next, you will add and subtract integers and use them to solve word problems.