Learn
Lesson · Foundations of Algebra · The number system

Real Numbers and the Number Line

The counting numbers, the integers, the rationals and the reals, each built from the one before. A number is a place on the line, not the notation you happened to write it in, and comparing two of them means comparing places.

naturals 1, 2, 3, … integers …, −2, −1, 0, 1, 2, … rationals p/q with p, q integers and q ≠ 0 reals every point on the line, rational or not
Four systems, each inside the next

Core ideas

What this lesson establishes

Algebra puts a letter where a number goes. Before that is useful you have to know what the letter is allowed to stand for.

1

Each system contains the one before it

Every natural number is an integer, every integer is a rational (5 is 5/1), every rational is a real. The containments are strict in one direction only: −3 is an integer and not a natural, 2/3 is rational and not an integer, √2 is real and not rational.

2

A number is a place, not a spelling

1/2, 2/4, 0.5 and 3/6 are four ways of writing one number, and it occupies one point on the line. Almost every question in this course is a question about the point; the spelling is chosen for convenience.

3

Comparison is position, and it is exact

a < b means a lies to the left of b. Deciding it from a rounded decimal is guesswork — 1.414 and √2 agree to three places and are different numbers. Compare by a common denominator, or by squaring.

The material

The number system, and the line it sits on

Four systems, how you tell a rational from an irrational, and the two facts about the line the rest of the course leans on.

The systems are built outward, and each one is built because the previous one could not answer a question. The naturals cannot answer 3 − 5. The integers cannot answer 3 / 5. The rationals cannot answer "what is the side of a square of area 2". Each answer forces a larger system.

Definition · The four systems

The natural numbers are 1, 2, 3, …. The integers are the naturals, their negatives, and 0. A rational number is one that can be written p/q where p and q are integers and q ≠ 0. The real numbers are all the numbers on the number line; a real number that is not rational is called irrational.

Whether 0 counts as a natural number is a convention and it differs between books. This course starts the naturals at 1 and nothing later depends on the choice.

"Can be written" is the operative phrase, exactly as it will be for polynomials in Polynomials and Factoring. 4 is rational because 4 = 4/1. 0.25 is rational because 0.25 = 1/4. You do not have to be shown the fraction; it has to exist.

Decimals tell you which kind you have

Every rational number has a decimal expansion that either stops or falls into a repeating block, and every such decimal is a rational. An irrational number is exactly one whose expansion does neither.

1/4 = 0.25 stops 1/3 = 0.333… repeats, block length 1 3/7 = 0.428571428571… repeats, block length 6 √2 = 1.41421356… neither: irrational

The dots are not an approximation. 1/3 is 0.333… exactly; 0.333 is a different number, and a smaller one, because it is 333/1000. Throughout this course the fraction is the number and the decimal is a report on it.

Theorem · Whole-number square roots

The square root of a positive whole number is a whole number when the radicand is a perfect square, and is irrational otherwise. Thus √9 = 3, while √2 and √10 are irrational.

The proof of that theorem uses prime factorisation and a contradiction; neither is a prerequisite for this course. The act required here is the usable test: look for a whole number whose square is the radicand. “Roots and Radicals” supplies the factor method used to simplify a root after the classification is made.

The rationals therefore have gaps, and the line does not. That gap is the whole reason the real numbers are needed.

The line

Fix a point for 0 and a length for 1. Every real number then corresponds to exactly one point, and every point to exactly one real number. The second half of that sentence is an assumption about the reals, not something proved here; constructing the reals so that it holds belongs to analysis.

Definition · Order

a < b means a lies to the left of b on the line.

For any two reals exactly one of a < b, a = b, a > b holds. And between any two distinct reals there is another one — their average will do — so no real number has a next one. The integers do: after 4 comes 5.

To compare two numbers exactly, put them over a common denominator, or square them when both are positive. 1.41 against √2: 1.41² = 1.9881, which is less than 2, so 1.41 < √2. Squaring is safe here only because both numbers are positive — on negatives it reverses the order, since −3 < −2 but 9 > 4.

Example · Ordering a mixed list

−5/4, −1.2, 0.6, 2/3, 1.41, √2. Over a common denominator −5/4 = −25/20 and −1.2 = −24/20, so −5/4 is the leftmost. Likewise 0.6 = 9/15 and 2/3 = 10/15. And 1.41 < √2 by the squaring test. The order is −5/4 < −1.2 < 0.6 < 2/3 < 1.41 < √2.

Interactive

Placing numbers on the line

Ordered by exact comparison, not by decimal

Placing numbers on the line
your valuesa rational strictly between the closest two

Method

Deciding where a number goes

Identify it, then place it. The two jobs use different information.

1

Try to write it as a fraction of integers

If you can, it is rational and its decimal will stop or repeat. The square root of a whole number is irrational unless that number is a perfect square, which is what settles √2 and √10. A radical sign on its own proves nothing: √9 is 3, and √(4/9) is 2/3.

2

Use the decimal as evidence, not as the number

A decimal you can see is always a rounding of an irrational and often a rounding of a rational. It tells you roughly where to look and never settles a close comparison.

3

Compare exactly

For fractions, a common denominator. For positive square roots, square both sides — but only when both are positive, because squaring reverses the order of two negatives.

4

Place it, then check the sign

Left of 0 for negatives, right for positives. Among negatives the number with the larger digits is further left: −5/4 sits left of −1.2.

Which number, and where

Score 0 / 0

Six numbers, sorted exactly

No decimal is trusted beyond the digits it actually has.

values −5/4, −1.2, 0.6, 2/3, 1.41, √2 the two negatives −5/4 = −25/20 −1.2 = −6/5 = −24/20 −25/20 < −24/20 so −5/4 < −1.2 the two near 0.6 0.6 = 3/5 = 9/15 2/3 = 10/15 9/15 < 10/15 so 0.6 < 2/3 1.41 against √2 both positive, so square both 1.41² = 1.9881 (√2)² = 2 1.9881 < 2 so 1.41 < √2 order −5/4 < −1.2 < 0.6 < 2/3 < 1.41 < √2

Only one of these six is irrational. The other five are fractions, and every comparison between them was settled by a common denominator rather than by a decimal.

The squaring step is the one with a condition attached. It compared 1.41 and √2 correctly because both are positive. Applied to −5/4 and −1.2 it would give 25/16 > 36/25 and suggest the wrong order, so the negatives were handled by the denominator instead.

Now fade the support: order −7/6, −1.1, 3/4 and √3. Start only with −1.1 = −11/10, then finish the two comparisons yourself before checking: −7/6 < −1.1 < 3/4 < √3. If the first pair reverses, the minus signs were ordered by their digits; if the last pair is uncertain, square the two positive numbers.

Common mistakes

1
Treating a rounded decimal as the number itself1/3 is not 0.333. 0.333 is 333/1000, which is smaller. Rounding is a report on a number, and a comparison decided by a report is a guess.
2
Assuming a radical sign means irrational√9 = 3 and √(4/9) = 2/3, both rational. The root is irrational only when the radicand is not a perfect square of a rational, which is “Roots and Radicals”'s subject.
3
Ordering negatives by their digits5/4 is larger than 1.2, and −5/4 is smaller than −1.2. Adding a minus sign reflects the line, so the order of the two numbers reverses with it.

Check your understanding

✓
Finish when you can order a mixed list of fractions, decimals and roots without a calculator.

Classify and order −9/8, −1.12, 5/6, 0.84 and √3, writing the exact comparison used for each close pair. Reach for a common denominator or for squaring, not for a decimal expansion. That habit is what makes “Roots and Radicals” — where √72 becomes 6√2 — an exact calculation rather than an approximate one.

Note: The line reappears twice on this course. “Absolute Value” measures distance along it, which is what absolute value is, and Lines, Functions and Graphs crosses two copies of it to get the coordinate plane. Nothing about it is decorative: a < b means one point is left of another, and every inequality you solve in Linear Equations and Inequalities is a statement about a stretch of this line.

Kept in this browser only, for you. Nothing is sent anywhere and nothing checks it. Carry it to another device.

Feedback and recommendations

Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.

No recommendations yet for this lesson.