Expresswala Academy Mathematics Tuition

The World of Numbers (Class 9)

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.

By 12 min read

Count­ing gives whole num­bers, but mea­sur­ing rarely does. Half a cup of ghee, three quar­ters of a metre of cloth, a field shared among three chil­dren: all of these need num­bers that sit between the inte­gers. In this les­son we build the ratio­nal num­bers, learn how to cal­cu­late with them and place them on the num­ber line, and then meet num­bers such as 2\sqrt{2} that are not ratio­nal at all.

Ratio­nal num­bers

Frac­tions and their neg­a­tives

A frac­tion describes part of a whole. Just as 77 has the addi­tive inverse −7-7, every pos­i­tive frac­tion has one too: the inverse of 29\displaystyle \frac{2}{9} is −29\displaystyle -\frac{2}{9}, because 29+(−29)=0\displaystyle \frac{2}{9} + \left(-\frac{2}{9}\right) = 0. We call these neg­a­tive frac­tions. The minus sign may be writ­ten in front, on top or under­neath:

−29=−29=2−9\displaystyle -\frac{2}{9} = \frac{-2}{9} = \frac{2}{-9}

All inte­gers together with all pos­i­tive and neg­a­tive frac­tions form the ratio­nal num­bers, writ­ten Q\mathbb{Q} (for quo­tient).

Def­i­n­i­tion. A ratio­nal num­ber is a num­ber that can be writ­ten as pq\displaystyle \frac{p}{q}, where pp and qq are inte­gers and q≠0q \neq 0.

Why must q not be zero?

A frac­tion pq\displaystyle \frac{p}{q} is the num­ber which, mul­ti­plied by qq, gives pp. If q=0q = 0 we would need a num­ber that, mul­ti­plied by 00, gives pp. When p≠0p \neq 0 there is no such num­ber, because any­thing times 00 is 00. When p=0p = 0, every num­ber works, so 00\displaystyle \frac{0}{0} would have no sin­gle value. Either way, divid­ing by zero has no mean­ing, so it is ruled out.

Three obser­va­tions

  • Inte­gers are ratio­nal. Any inte­ger nn equals n1\displaystyle \frac{n}{1}; for instance −8=−81\displaystyle -8 = \frac{-8}{1}. So Q\mathbb{Q} con­tains the nat­ural num­bers, zero and all inte­gers.
  • One ratio­nal num­ber has many names. 34=68=3040=…\displaystyle \frac{3}{4} = \frac{6}{8} = \frac{30}{40} = \ldots These are equiv­a­lent frac­tions. We may can­cel any com­mon fac­tor of numer­a­tor and denom­i­na­tor: divid­ing top and bot­tom of 1824\displaystyle \frac{18}{24} by 66 gives 34\displaystyle \frac{3}{4}.
  • Low­est terms. When we write a ratio­nal num­ber as pq\displaystyle \frac{p}{q} or mark it on the num­ber line, we nor­mally take q≠0q \neq 0 with pp and qq co-prime, that is, shar­ing no fac­tor except 1. So 12\displaystyle \frac{1}{2} stands for 24\displaystyle \frac{2}{4}, 50100\displaystyle \frac{50}{100} and all its other forms.

Arith­metic of ratio­nal num­bers

The rules

Brah­magupta also gave rules for frac­tions, and noted that they work for neg­a­tive frac­tions too. For inte­gers a,b,c,da, b, c, d with the denom­i­na­tors non-zero:

  1. Equal­ity: ab=cd\displaystyle \dfrac{a}{b} = \dfrac{c}{d} exactly when ad=bcad = bc.
  2. Addi­tion and sub­trac­tion: first write both with the same denom­i­na­tor bb, then ab+cb=a+cb\displaystyle \dfrac{a}{b} + \dfrac{c}{b} = \dfrac{a+c}{b} and ab−cb=a−cb\displaystyle \dfrac{a}{b} - \dfrac{c}{b} = \dfrac{a-c}{b}.
  3. Mul­ti­pli­ca­tion: ab×cd=acbd\displaystyle \dfrac{a}{b} \times \dfrac{c}{d} = \dfrac{ac}{bd}, with b,d≠0b, d \neq 0.
  4. Divi­sion: ab÷cd=ab×dc=adbc\displaystyle \dfrac{a}{b} \div \dfrac{c}{d} = \dfrac{a}{b} \times \dfrac{d}{c} = \dfrac{ad}{bc}, with b,c,d≠0b, c, d \neq 0.

With these rules, addi­tion and mul­ti­pli­ca­tion are com­mu­ta­tive (order does not mat­ter), and mul­ti­pli­ca­tion dis­trib­utes over addi­tion: p(q+r)=pq+prp(q + r) = pq + pr for ratio­nal p,q,rp, q, r.

Ratio­nal num­bers are closed under addi­tion, sub­trac­tion and mul­ti­pli­ca­tion, and under divi­sion by any non-zero ratio­nal num­ber. Look at the rules: each answer is again an inte­ger over a non-zero inte­ger.

Mak­ing denom­i­na­tors equal

To add ab\displaystyle \frac{a}{b} and cd\displaystyle \frac{c}{d}, rewrite each frac­tion over a com­mon mul­ti­ple of bb and dd. The prod­uct bdbd always works; the least com­mon mul­ti­ple keeps num­bers small. For exam­ple, for 56\displaystyle \frac{5}{6} and 38\displaystyle \frac{3}{8} the LCM of 66 and 88 is 2424.

Worked exam­ple 1

Are −614\displaystyle \frac{-6}{14} and 9−21\displaystyle \frac{9}{-21} equal?

Use the equal­ity rule with a=−6a = -6, b=14b = 14, c=9c = 9, d=−21d = -21:

ad=(−6)(−21)=126,bc=14×9=126ad = (-6)(-21) = 126, \qquad bc = 14 \times 9 = 126

Since ad=bcad = bc, the two num­bers are equal. (Both reduce to −37\displaystyle -\frac{3}{7}.)

Worked exam­ple 2

Find 56−38\displaystyle \frac{5}{6} - \frac{3}{8}.

56−38=2024−924=20−924=1124\displaystyle \frac{5}{6} - \frac{3}{8} = \frac{20}{24} - \frac{9}{24} = \frac{20 - 9}{24} = \frac{11}{24}

Worked exam­ple 3

Find (−49)÷815\displaystyle \left(-\frac{4}{9}\right) \div \frac{8}{15}.

(−49)×158=−4×159×8=−6072=−56\displaystyle \left(-\frac{4}{9}\right) \times \frac{15}{8} = -\frac{4 \times 15}{9 \times 8} = -\frac{60}{72} = -\frac{5}{6}

Worked exam­ple 4: check­ing the dis­trib­u­tive law

Ver­ify p(q+r)=pq+prp(q + r) = pq + pr for p=23\displaystyle p = \frac{2}{3}, q=14\displaystyle q = \frac{1}{4}, r=56\displaystyle r = \frac{5}{6}.

Left side: 23(312+1012)=23×1312=2636=1318Right side: 23×14+23×56=16+59=318+1018=1318\displaystyle \begin{aligned} \text{Left side: } \frac{2}{3}\left(\frac{3}{12} + \frac{10}{12}\right) &= \frac{2}{3} \times \frac{13}{12} = \frac{26}{36} = \frac{13}{18} \\ \text{Right side: } \frac{2}{3} \times \frac{1}{4} + \frac{2}{3} \times \frac{5}{6} &= \frac{1}{6} + \frac{5}{9} = \frac{3}{18} + \frac{10}{18} = \frac{13}{18} \end{aligned}

Both sides are 1318\displaystyle \frac{13}{18}. In gen­eral, with a com­mon denom­i­na­tor, ab(cd+ed)=a(c+e)bd=acbd+aebd\displaystyle \frac{a}{b}\left(\frac{c}{d} + \frac{e}{d}\right) = \frac{a(c+e)}{bd} = \frac{ac}{bd} + \frac{ae}{bd}, because the inte­gers obey a(c+e)=ac+aea(c + e) = ac + ae.

Ratio­nal num­bers on the num­ber line

Mark­ing a frac­tion

Mark a point 00 (the ori­gin). Equal steps to the right give 1,2,3,…1, 2, 3, \ldots and equal steps to the left give −1,−2,−3,…-1, -2, -3, \ldots. A ratio­nal num­ber can lie between two inte­gers: 12\displaystyle \frac{1}{2} is mid­way between 00 and 11.

To mark pq\displaystyle \frac{p}{q} (with qq pos­i­tive): split each unit into qq equal parts, then move pp parts from 00, to the right if the num­ber is pos­i­tive and to the left if it is neg­a­tive. For a num­ber big­ger than 1, first write it as a mixed num­ber. For instance 94=214\displaystyle \frac{9}{4} = 2\frac{1}{4}: go to 22, split the unit from 22 to 33 into quar­ters and move one quar­ter on.

Answer­ing the book's prompt: 85=135\displaystyle \frac{8}{5} = 1\frac{3}{5}, so it is 3 fifths beyond 11; and −74=−134\displaystyle -\frac{7}{4} = -1\frac{3}{4}, so it is 3 quar­ters to the left of −1-1.

Number line from minus 3 to 3 with minus seven quarters between minus 2 and minus 1, eight fifths between 1 and 2, and nine quarters between 2 and 3
−74\displaystyle -\frac{7}{4}, 85\displaystyle \frac{8}{5} and 94\displaystyle \frac{9}{4} marked by split­ting a unit into quar­ters or fifths.

Absolute value and dis­tance

The absolute value ∣x∣|x| of a ratio­nal num­ber is its dis­tance from 00. So ∣72∣=72\displaystyle \left|\frac{7}{2}\right| = \frac{7}{2}, ∣−72∣=72\displaystyle \left|-\frac{7}{2}\right| = \frac{7}{2} and ∣0∣=0|0| = 0. A pos­i­tive num­ber is its own absolute value; a neg­a­tive num­ber loses its minus sign. Since a dis­tance is never neg­a­tive, ∣x∣≥0|x| \geq 0 always.

The dis­tance between two ratio­nal num­bers aa and bb is ∣a−b∣|a - b|. For −4-4 and 33 it is ∣−4−3∣=7|-4 - 3| = 7.

Worked exam­ple 5

How far apart are −74\displaystyle -\frac{7}{4} and 85\displaystyle \frac{8}{5}?

∣−74−85∣=∣−3520−3220∣=∣−6720∣=6720\displaystyle \left|-\frac{7}{4} - \frac{8}{5}\right| = \left|-\frac{35}{20} - \frac{32}{20}\right| = \left|-\frac{67}{20}\right| = \frac{67}{20}

They are 6720=3.35\displaystyle \frac{67}{20} = 3.35 units apart.

Den­sity: always room for one more

Between 11 and 22 lies 32\displaystyle \frac{3}{2}; between 11 and 32\displaystyle \frac{3}{2} lies 54\displaystyle \frac{5}{4}; and so on for­ever. The sim­plest tool is the aver­age. If a<ba \lt b are ratio­nal, then m=a+b2\displaystyle m = \frac{a+b}{2} is ratio­nal (clo­sure), and

m−a=b−a2>0,b−m=b−a2>0,\displaystyle m - a = \frac{b - a}{2} \gt 0, \qquad b - m = \frac{b - a}{2} \gt 0,

so a<m<ba \lt m \lt b. We can repeat this with aa and mm, then again, as often as we like. So there are infi­nitely many ratio­nal num­bers between any two dif­fer­ent ratio­nal num­bers. We say the ratio­nals are dense. It is tempt­ing to think they cover the whole line. They do not.

Worked exam­ple 6

Find three ratio­nal num­bers between −13\displaystyle -\frac{1}{3} and 12\displaystyle \frac{1}{2}.

12(−13+12)=12×16=11212(−13+112)=12×(−312)=−1812(112+12)=12×712=724\displaystyle \begin{aligned} \frac{1}{2}\left(-\frac{1}{3} + \frac{1}{2}\right) &= \frac{1}{2} \times \frac{1}{6} = \frac{1}{12} \\ \frac{1}{2}\left(-\frac{1}{3} + \frac{1}{12}\right) &= \frac{1}{2} \times \left(-\frac{3}{12}\right) = -\frac{1}{8} \\ \frac{1}{2}\left(\frac{1}{12} + \frac{1}{2}\right) &= \frac{1}{2} \times \frac{7}{12} = \frac{7}{24} \end{aligned}

So −13<−18<112<724<12\displaystyle -\frac{1}{3} \lt -\frac{1}{8} \lt \frac{1}{12} \lt \frac{7}{24} \lt \frac{1}{2}. Another way: write both over a large com­mon denom­i­na­tor, such as −824\displaystyle -\frac{8}{24} and 1224\displaystyle \frac{12}{24}, and pick numer­a­tors in between.

Irra­tional num­bers

A length that is not a frac­tion

For cen­turies peo­ple believed every length is a ratio of two inte­gers. The chap­ter tells us that Baud­hāyana, writ­ing his Śhul­basū­tra (a man­ual for build­ing geo­met­ric fire altars) around 800 BCE, met lengths that no frac­tion describes, and the Greeks met the same prob­lem a few cen­turies later.

Take a square of side 1. By the Baud­hāyana–Pythago­ras the­o­rem its diag­o­nal dd sat­is­fies 12+12=d21^2 + 1^2 = d^2, so d2=2d^2 = 2 and d=2d = \sqrt{2}. Can 2\sqrt{2} be writ­ten as pq\displaystyle \frac{p}{q}? No. Num­bers on the line that can­not be writ­ten as a ratio of inte­gers are called irra­tional num­bers.

Proof that the square root of 2 is irra­tional

The book cred­its the first proof to Hip­pa­sus of the Pythagorean school. It uses proof by con­tra­dic­tion: assume the oppo­site of what we want, and show this leads to some­thing impos­si­ble.

First a small fact. The square of an odd num­ber is odd: (2m+1)2=4m2+4m+1=2(2m2+2m)+1(2m+1)^2 = 4m^2 + 4m + 1 = 2(2m^2 + 2m) + 1. So if n2n^2 is even, nn can­not be odd; nn must be even.

  1. Sup­pose 2=pq\displaystyle \sqrt{2} = \frac{p}{q} with inte­gers p,qp, q, q≠0q \neq 0, in low­est terms (no com­mon fac­tor except 1).
  2. Squar­ing, 2=p2q2\displaystyle 2 = \frac{p^2}{q^2}, so p2=2q2p^2 = 2q^2.
  3. So p2p^2 is even, and there­fore pp is even. Write p=2kp = 2k.
  4. Then 4k2=2q24k^2 = 2q^2, so q2=2k2q^2 = 2k^2. So q2q^2 is even, and qq is even.
  5. Now pp and qq share the fac­tor 2, which con­tra­dicts step 1.

Every step after the assump­tion was cor­rect, so the assump­tion is false: 2\sqrt{2} is irra­tional.

Worked exam­ple 7: the square root of 3

The book asks us to try 3\sqrt{3}. We need one fact: if n2n^2 is a mul­ti­ple of 3, then nn is a mul­ti­ple of 3. Any inte­ger not divis­i­ble by 3 is 3m+13m + 1 or 3m+23m + 2, and

(3m+1)2=3(3m2+2m)+1,(3m+2)2=3(3m2+4m+1)+1,(3m+1)^2 = 3(3m^2 + 2m) + 1, \qquad (3m+2)^2 = 3(3m^2 + 4m + 1) + 1,

which both leave remain­der 1 when divided by 3. So a square that is a mul­ti­ple of 3 must come from a mul­ti­ple of 3.

Now sup­pose 3=pq\displaystyle \sqrt{3} = \frac{p}{q} in low­est terms. Then p2=3q2p^2 = 3q^2, so 33 divides p2p^2 and hence pp. Write p=3kp = 3k: 9k2=3q29k^2 = 3q^2, so q2=3k2q^2 = 3k^2, and 33 divides qq too. That con­tra­dicts low­est terms, so 3\sqrt{3} is irra­tional.

The same method works for 5\sqrt{5} and 7\sqrt{7} (using remain­ders on divi­sion by 5 or 7). For 10\sqrt{10}: p2=10q2p^2 = 10q^2 makes pp even, p=2kp = 2k, then 2k2=5q22k^2 = 5q^2, so 5q25q^2 is even, which forces qq even; both even is a con­tra­dic­tion. The method fails only when nn is a per­fect square, such as 4=2\sqrt{4} = 2, which really is ratio­nal.

Con­struct­ing lengths such as the square root of 2

We can draw these lengths exactly with ruler and com­pass:

  1. On the num­ber line take OA=1OA = 1 unit, with OO at 00, and draw a per­pen­dic­u­lar to the line at AA.
  2. On it mark BB with AB=1AB = 1. Join OBOB. By the the­o­rem, OB=12+12=2OB = \sqrt{1^2 + 1^2} = \sqrt{2}.
  3. With cen­tre OO and radius OBOB, draw an arc cut­ting the num­ber line at PP. Then OP=2OP = \sqrt{2}, so PP marks 2\sqrt{2}.

To get 3\sqrt{3}, draw a per­pen­dic­u­lar of length 1 at PP to reach CC; then OC=(2)2+12=3OC = \sqrt{(\sqrt{2})^2 + 1^2} = \sqrt{3}, and an arc from OO car­ries it to the line. Repeat­ing, a right tri­an­gle with legs n\sqrt{n} and 11 has hypotenuse n+1\sqrt{n+1}, so step by step we reach n\sqrt{n} for every pos­i­tive inte­ger nn. (For 5\sqrt{5} you can also go straight there with legs 22 and 11.)

Right triangle OAB with legs 1 gives OB equal to root 2; a unit perpendicular at P gives OC equal to root 3; dashed arcs carry both to the number line
Ruler-and-com­pass con­struc­tion: OB=2OB = \sqrt{2} lands at PP, and OC=3OC = \sqrt{3} lands at QQ.

The story of pi

Another famous irra­tional num­ber is π\pi, the ratio of a cir­cle's cir­cum­fer­ence to its diam­e­ter. Āryab­haṭa (499 CE) gave the approx­i­ma­tion 39271250=3.1416\displaystyle \frac{3927}{1250} = 3.1416, but called it asanna, an approx­i­ma­tion, and indi­cated that an exact frac­tion prob­a­bly could not be found. Lam­bert proved in 1761 that π\pi is irra­tional, so no frac­tion is exactly π\pi.

In the 14th cen­tury Mād­hava of Sanga­m­a­grama, who started the Ker­ala School of Math­e­mat­ics, found an exact expres­sion by using an infi­nite sum:

π=4×(1−13+15−17+⋯ )\displaystyle \pi = 4 \times \left(1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7} + \cdots\right)

Adding infi­nitely many terms means find­ing the value that the run­ning totals get closer and closer to. With four terms, 4(1−13+15−17)≈2.895\displaystyle 4\left(1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7}\right) \approx 2.895; with a thou­sand terms the total is within 0.0020.002 of π\pi. So the num­ber line holds ratio­nal num­bers and irra­tional num­bers; we can mark some irra­tionals exactly and pic­ture the rest in their places.

Com­mon mis­takes

  • Adding frac­tions by adding tops and bot­toms: 12+13≠25\displaystyle \frac{1}{2} + \frac{1}{3} \neq \frac{2}{5}. Use a com­mon denom­i­na­tor: 56\displaystyle \frac{5}{6}.
  • For­get­ting to flip the sec­ond frac­tion when divid­ing.
  • Writ­ing ∣−35∣=−35\displaystyle |-\frac{3}{5}| = -\frac{3}{5}. Absolute value is never neg­a­tive.
  • Say­ing pq\displaystyle \frac{p}{q} is irra­tional because it "looks messy". Any inte­ger over a non-zero inte­ger is ratio­nal, how­ever large.
  • Think­ing n\sqrt{n} is always irra­tional. 9=3\sqrt{9} = 3 is ratio­nal.
  • In the proof, skip­ping why "p2p^2 even" gives "pp even". It needs the fact that odd num­bers have odd squares.

Try these

  1. Find −23+512\displaystyle -\frac{2}{3} + \frac{5}{12}. Answer: −14\displaystyle -\frac{1}{4}
  2. Find 34×(−815)\displaystyle \frac{3}{4} \times \left(-\frac{8}{15}\right). Answer: −25\displaystyle -\frac{2}{5}
  3. Find the dis­tance between −56\displaystyle -\frac{5}{6} and 13\displaystyle \frac{1}{3}. Answer: 76\displaystyle \frac{7}{6}
  4. Find the ratio­nal num­ber mid­way between 15\displaystyle \frac{1}{5} and 14\displaystyle \frac{1}{4}. Answer: 940\displaystyle \frac{9}{40}
  5. A right tri­an­gle has legs 5\sqrt{5} and 11. How long is its hypotenuse? Answer: 6\sqrt{6}
  6. Write Āryab­haṭa's value 39271250\displaystyle \frac{3927}{1250} as a dec­i­mal. Answer: 3.14163.1416

Key terms

Ratio­nal num­ber
A num­ber of the form pq\displaystyle \frac{p}{q} with p,qp, q inte­gers and q≠0q \neq 0; the set is Q\mathbb{Q}.
Equiv­a­lent frac­tions
Dif­fer­ent forms of the same ratio­nal num­ber, such as 34\displaystyle \frac{3}{4} and 68\displaystyle \frac{6}{8}.
Co-prime
Two inte­gers whose only com­mon fac­tor is 1.
Absolute value
The dis­tance of a num­ber from 0, writ­ten ∣x∣|x|; it is never neg­a­tive.
Den­sity
The prop­erty that between any two dif­fer­ent ratio­nal num­bers there is another ratio­nal num­ber.
Irra­tional num­ber
A num­ber on the num­ber line that can­not be writ­ten as a ratio of two inte­gers, such as 2\sqrt{2} or π\pi.
Proof by con­tra­dic­tion
A proof that assumes the oppo­site of the claim and shows this leads to some­thing impos­si­ble.
Infi­nite series
A sum with end­lessly many terms, whose value is what the run­ning totals approach.

Com­mon ques­tions

Is every inte­ger a ratio­nal num­ber?

Yes. Any inte­ger nn can be writ­ten as n1\displaystyle \frac{n}{1}, which fits the def­i­n­i­tion.

How many ratio­nal num­bers lie between 0 and 1?

Infi­nitely many. Tak­ing aver­ages again and again always gives new ones, for exam­ple 12,14,18,…\displaystyle \frac{1}{2}, \frac{1}{4}, \frac{1}{8}, \ldots

Is 3.1416 equal to pi?

No. 3.1416=39271250\displaystyle 3.1416 = \frac{3927}{1250} is ratio­nal, while π\pi is irra­tional. Āryab­haṭa him­self called his value an approx­i­ma­tion.

Why do we insist on low­est terms in the proof?

Any frac­tion can be reduced to low­est terms, so the assump­tion is fair. The con­tra­dic­tion comes from find­ing that pp and qq still share the fac­tor 2.

Can an irra­tional length be drawn exactly?

Some can. 2\sqrt{2} is the diag­o­nal of a unit square, and repeated right tri­an­gles give 3,4,5,…\sqrt{3}, \sqrt{4}, \sqrt{5}, \ldots with ruler and com­pass.

Ref­er­ences

  1. National Coun­cil of Edu­ca­tional Research and Train­ing. Ganita Man­jari: Text­book of Math­e­mat­ics, Grade 9 (Part I). NCERT, New Delhi.
  2. Hardy, G. H. and Wright, E. M. An Intro­duc­tion to the The­ory of Num­bers. Oxford Uni­ver­sity Press.
  3. Heath, T. L. (trans.) The Thir­teen Books of Euclid's Ele­ments. Dover Pub­li­ca­tions.
  4. Gelfand, I. M. and Shen, A. Alge­bra. Birkhäuser.