Rational and Irrational Numbers Explained, Class 9
What makes a number rational, how to add, multiply and divide fractions, place them on the number line and find numbers between them, and why the square root of 2 cannot be a fraction.
Counting gives whole numbers, but measuring rarely does. Half a cup of ghee, three quarters of a metre of cloth, a field shared among three children: all of these need numbers that sit between the integers. In this lesson we build the rational numbers, learn how to calculate with them and place them on the number line, and then meet numbers such as 2 that are not rational at all.
Rational numbers
Fractions and their negatives
A fraction describes part of a whole. Just as 7 has the additive inverse −7, every positive fraction has one too: the inverse of 92 is −92, because 92+(−92)=0. We call these negative fractions. The minus sign may be written in front, on top or underneath:
−92=9−2=−92
All integers together with all positive and negative fractions form the rational numbers, written Q (for quotient).
Definition. A rational number is a number that can be written as qp, where p and q are integers and q=0.
Why must q not be zero?
A fraction qp is the number which, multiplied by q, gives p. If q=0 we would need a number that, multiplied by 0, gives p. When p=0 there is no such number, because anything times 0 is 0. When p=0, every number works, so 00 would have no single value. Either way, dividing by zero has no meaning, so it is ruled out.
Three observations
Integers are rational. Any integer n equals 1n; for instance −8=1−8. So Q contains the natural numbers, zero and all integers.
One rational number has many names.43=86=4030=… These are equivalent fractions. We may cancel any common factor of numerator and denominator: dividing top and bottom of 2418 by 6 gives 43.
Lowest terms. When we write a rational number as qp or mark it on the number line, we normally take q=0 with p and q co-prime, that is, sharing no factor except 1. So 21 stands for 42, 10050 and all its other forms.
Arithmetic of rational numbers
The rules
Brahmagupta also gave rules for fractions, and noted that they work for negative fractions too. For integers a,b,c,d with the denominators non-zero:
Equality:ba=dc exactly when ad=bc.
Addition and subtraction: first write both with the same denominator b, then ba+bc=ba+c and ba−bc=ba−c.
Multiplication:ba×dc=bdac, with b,d=0.
Division:ba÷dc=ba×cd=bcad, with b,c,d=0.
With these rules, addition and multiplication are commutative (order does not matter), and multiplication distributes over addition: p(q+r)=pq+pr for rational p,q,r.
Rational numbers are closed under addition, subtraction and multiplication, and under division by any non-zero rational number. Look at the rules: each answer is again an integer over a non-zero integer.
Making denominators equal
To add ba and dc, rewrite each fraction over a common multiple of b and d. The product bd always works; the least common multiple keeps numbers small. For example, for 65 and 83 the LCM of 6 and 8 is 24.
Worked example 1
Are 14−6 and −219 equal?
Use the equality rule with a=−6, b=14, c=9, d=−21:
ad=(−6)(−21)=126,bc=14×9=126
Since ad=bc, the two numbers are equal. (Both reduce to −73.)
Worked example 2
Find 65−83.
65−83=2420−249=2420−9=2411
Worked example 3
Find (−94)÷158.
(−94)×815=−9×84×15=−7260=−65
Worked example 4: checking the distributive law
Verify p(q+r)=pq+pr for p=32, q=41, r=65.
Left side: 32(123+1210)Right side: 32×41+32×65=32×1213=3626=1813=61+95=183+1810=1813
Both sides are 1813. In general, with a common denominator, ba(dc+de)=bda(c+e)=bdac+bdae, because the integers obey a(c+e)=ac+ae.
Rational numbers on the number line
Marking a fraction
Mark a point 0 (the origin). Equal steps to the right give 1,2,3,… and equal steps to the left give −1,−2,−3,…. A rational number can lie between two integers: 21 is midway between 0 and 1.
To mark qp (with q positive): split each unit into q equal parts, then move p parts from 0, to the right if the number is positive and to the left if it is negative. For a number bigger than 1, first write it as a mixed number. For instance 49=241: go to 2, split the unit from 2 to 3 into quarters and move one quarter on.
Answering the book's prompt: 58=153, so it is 3 fifths beyond 1; and −47=−143, so it is 3 quarters to the left of −1.
−47, 58 and 49 marked by splitting a unit into quarters or fifths.
Absolute value and distance
The absolute value∣x∣ of a rational number is its distance from 0. So 27=27, −27=27 and ∣0∣=0. A positive number is its own absolute value; a negative number loses its minus sign. Since a distance is never negative, ∣x∣≥0 always.
The distance between two rational numbers a and b is ∣a−b∣. For −4 and 3 it is ∣−4−3∣=7.
Worked example 5
How far apart are −47 and 58?
−47−58=−2035−2032=−2067=2067
They are 2067=3.35 units apart.
Density: always room for one more
Between 1 and 2 lies 23; between 1 and 23 lies 45; and so on forever. The simplest tool is the average. If a<b are rational, then m=2a+b is rational (closure), and
m−a=2b−a>0,b−m=2b−a>0,
so a<m<b. We can repeat this with a and m, then again, as often as we like. So there are infinitely many rational numbers between any two different rational numbers. We say the rationals are dense. It is tempting to think they cover the whole line. They do not.
Worked example 6
Find three rational numbers between −31 and 21.
So −31<−81<121<247<21. Another way: write both over a large common denominator, such as −248 and 2412, and pick numerators in between.
Irrational numbers
A length that is not a fraction
For centuries people believed every length is a ratio of two integers. The chapter tells us that Baudhāyana, writing his Śhulbasūtra (a manual for building geometric fire altars) around 800 BCE, met lengths that no fraction describes, and the Greeks met the same problem a few centuries later.
Take a square of side 1. By the Baudhāyana–Pythagoras theorem its diagonal d satisfies 12+12=d2, so d2=2 and d=2. Can 2 be written as qp? No. Numbers on the line that cannot be written as a ratio of integers are called irrational numbers.
Proof that the square root of 2 is irrational
The book credits the first proof to Hippasus of the Pythagorean school. It uses proof by contradiction: assume the opposite of what we want, and show this leads to something impossible.
First a small fact. The square of an odd number is odd: (2m+1)2=4m2+4m+1=2(2m2+2m)+1. So if n2 is even, n cannot be odd; n must be even.
Suppose 2=qp with integers p,q, q=0, in lowest terms (no common factor except 1).
Squaring, 2=q2p2, so p2=2q2.
So p2 is even, and therefore p is even. Write p=2k.
Then 4k2=2q2, so q2=2k2. So q2 is even, and q is even.
Now p and q share the factor 2, which contradicts step 1.
Every step after the assumption was correct, so the assumption is false: 2 is irrational.
Worked example 7: the square root of 3
The book asks us to try 3. We need one fact: if n2 is a multiple of 3, then n is a multiple of 3. Any integer not divisible by 3 is 3m+1 or 3m+2, and
(3m+1)2=3(3m2+2m)+1,(3m+2)2=3(3m2+4m+1)+1,
which both leave remainder 1 when divided by 3. So a square that is a multiple of 3 must come from a multiple of 3.
Now suppose 3=qp in lowest terms. Then p2=3q2, so 3 divides p2 and hence p. Write p=3k: 9k2=3q2, so q2=3k2, and 3 divides q too. That contradicts lowest terms, so 3 is irrational.
The same method works for 5 and 7 (using remainders on division by 5 or 7). For 10: p2=10q2 makes p even, p=2k, then 2k2=5q2, so 5q2 is even, which forces q even; both even is a contradiction. The method fails only when n is a perfect square, such as 4=2, which really is rational.
Constructing lengths such as the square root of 2
We can draw these lengths exactly with ruler and compass:
On the number line take OA=1 unit, with O at 0, and draw a perpendicular to the line at A.
On it mark B with AB=1. Join OB. By the theorem, OB=12+12=2.
With centre O and radius OB, draw an arc cutting the number line at P. Then OP=2, so P marks 2.
To get 3, draw a perpendicular of length 1 at P to reach C; then OC=(2)2+12=3, and an arc from O carries it to the line. Repeating, a right triangle with legs n and 1 has hypotenuse n+1, so step by step we reach n for every positive integer n. (For 5 you can also go straight there with legs 2 and 1.)
Ruler-and-compass construction: OB=2 lands at P, and OC=3 lands at Q.
The story of pi
Another famous irrational number is π, the ratio of a circle's circumference to its diameter. Āryabhaṭa (499 CE) gave the approximation 12503927=3.1416, but called it asanna, an approximation, and indicated that an exact fraction probably could not be found. Lambert proved in 1761 that π is irrational, so no fraction is exactly π.
In the 14th century Mādhava of Sangamagrama, who started the Kerala School of Mathematics, found an exact expression by using an infinite sum:
π=4×(1−31+51−71+⋯)
Adding infinitely many terms means finding the value that the running totals get closer and closer to. With four terms, 4(1−31+51−71)≈2.895; with a thousand terms the total is within 0.002 of π. So the number line holds rational numbers and irrational numbers; we can mark some irrationals exactly and picture the rest in their places.
Common mistakes
Adding fractions by adding tops and bottoms: 21+31=52. Use a common denominator: 65.
Forgetting to flip the second fraction when dividing.
Writing ∣−53∣=−53. Absolute value is never negative.
Saying qp is irrational because it "looks messy". Any integer over a non-zero integer is rational, however large.
Thinking n is always irrational. 9=3 is rational.
In the proof, skipping why "p2 even" gives "p even". It needs the fact that odd numbers have odd squares.
Try these
Find −32+125. Answer:−41
Find 43×(−158). Answer:−52
Find the distance between −65 and 31. Answer:67
Find the rational number midway between 51 and 41. Answer:409
A right triangle has legs 5 and 1. How long is its hypotenuse? Answer:6
Write Āryabhaṭa's value 12503927 as a decimal. Answer:3.1416
Key terms
Rational number
A number of the form qp with p,q integers and q=0; the set is Q.
Equivalent fractions
Different forms of the same rational number, such as 43 and 86.
Co-prime
Two integers whose only common factor is 1.
Absolute value
The distance of a number from 0, written ∣x∣; it is never negative.
Density
The property that between any two different rational numbers there is another rational number.
Irrational number
A number on the number line that cannot be written as a ratio of two integers, such as 2 or π.
Proof by contradiction
A proof that assumes the opposite of the claim and shows this leads to something impossible.
Infinite series
A sum with endlessly many terms, whose value is what the running totals approach.
Common questions
Is every integer a rational number?
Yes. Any integer n can be written as 1n, which fits the definition.
How many rational numbers lie between 0 and 1?
Infinitely many. Taking averages again and again always gives new ones, for example 21,41,81,…
Is 3.1416 equal to pi?
No. 3.1416=12503927 is rational, while π is irrational. Āryabhaṭa himself called his value an approximation.
Why do we insist on lowest terms in the proof?
Any fraction can be reduced to lowest terms, so the assumption is fair. The contradiction comes from finding that p and q still share the factor 2.
Can an irrational length be drawn exactly?
Some can. 2 is the diagonal of a unit square, and repeated right triangles give 3,4,5,… with ruler and compass.
References
National Council of Educational Research and Training. Ganita Manjari: Textbook of Mathematics, Grade 9 (Part I). NCERT, New Delhi.
Hardy, G. H. and Wright, E. M. An Introduction to the Theory of Numbers. Oxford University Press.
Heath, T. L. (trans.) The Thirteen Books of Euclid's Elements. Dover Publications.