Math Lab
Home/Class IX/Ch 1/Rational and Irrational Numbers

Rational and Irrational Numbers

When you write 34\dfrac{3}{4} or 72-\dfrac{7}{2} you are using a rational number , a fraction of two integers. When you write 2\sqrt{2} or π\pi, you are using something different. Both kinds of numbers live on the same line, and together they form the real numbers. This lesson sorts out what each kind is, how to spot one, and how to find many of them in any tiny stretch of the line.

Definitions

A rational number is a number that can be written in the form r=pq,p,qZ, q0.r = \frac{p}{q}, \quad p, q \in \mathbb{Z}, \ q \ne 0. Examples: 34,72,5=51,0=01,0.25=14\dfrac{3}{4}, -\dfrac{7}{2}, 5 = \dfrac{5}{1}, 0 = \dfrac{0}{1}, 0.25 = \dfrac{1}{4}.

A real number that is not rational is called irrational. So an irrational number is one that cannot be expressed as pq\dfrac{p}{q} for any integers pp and qq. Examples include 2,3,5,π\sqrt{2},\sqrt{3},\sqrt{5}, \pi, and 0.10100100010.1010010001\ldots (each block of zeros one longer than the last).

The set of rationals is denoted Q\mathbb{Q}, the set of irrationals has no standard one-letter name, and together they form the real numbers, R\mathbb{R}.

Concept and structure

Rationals are dense. Between any two distinct rationals there are infinitely many other rationals. The cheapest way to find one is the mean (or average): If a<b,then a<a+b2<b.\text{If } a < b, \quad \text{then } a < \frac{a+b}{2} < b. Now repeat with (a,a+b2)\big(a, \tfrac{a+b}{2}\big) to get another rational between them. This trick produces as many rationals as you like in any open interval.

There are many irrationals too. A famous theorem of Cantor says that, even though both kinds are infinite, there are strictly more irrationals than rationals. Geometrically this means the rationals, dense as they are, still leave gaps that the irrationals fill.

Why 2\sqrt{2} is irrational. Suppose 2=pq\sqrt{2} = \dfrac{p}{q} in lowest terms. Squaring gives 2q2=p22q^2 = p^2, so p2p^2 is even, hence pp is even, say p=2kp = 2k. Then 2q2=4k22q^2 = 4k^2, so q2=2k2q^2 = 2k^2, hence qq is also even. But then pq\dfrac{p}{q} wasn't in lowest terms , contradiction. So 2\sqrt{2} is not rational. The same argument, with "even" replaced by "divisible by pp", proves p\sqrt{p} is irrational for every prime pp. (We will revisit this proof in Chapter X.)

A practical way to spot irrationals. Numbers like 4=2\sqrt{4} = 2 or 49=7\sqrt{49} = 7 are rational because the square root is an integer. The number n\sqrt{n} is irrational precisely when nn is a positive integer that is not a perfect square. Thus 2,3,5,6,7,8,10,\sqrt{2}, \sqrt{3}, \sqrt{5}, \sqrt{6}, \sqrt{7}, \sqrt{8}, \sqrt{10}, \ldots are all irrational.

A famous non-surd irrational: π\pi. The number π\pi is the ratio of a circle's circumference to its diameter. It is irrational (and, more strongly, transcendental), although the proof is much harder than the one for 2\sqrt{2}. Be careful: 227\dfrac{22}{7} is just an approximation to π\pi, not equal to it.

Constructing irrationals between two rationals. Suppose you want an irrational between 12\dfrac{1}{2} and 34\dfrac{3}{4}. Pick the rational mid-point 58\dfrac{5}{8} and add a tiny known irrational, say 2100\dfrac{\sqrt{2}}{100}. Since (rational) ++ (small irrational) is irrational and we kept the change small, the result still lies between 12\dfrac{1}{2} and 34\dfrac{3}{4}.

Worked examples

Example 1. Find three rationals between 13\dfrac{1}{3} and 12\dfrac{1}{2}.

Take averages repeatedly. Mid-point: 12 ⁣(13+12)=512\dfrac{1}{2}\!\left(\dfrac{1}{3} + \dfrac{1}{2}\right) = \dfrac{5}{12}. Between 13\dfrac{1}{3} and 512\dfrac{5}{12}: 12 ⁣(13+512)=38\dfrac{1}{2}\!\left(\dfrac{1}{3} + \dfrac{5}{12}\right) = \dfrac{3}{8}. Between 512\dfrac{5}{12} and 12\dfrac{1}{2}: 1124\dfrac{11}{24}. So 38,512,1124\dfrac{3}{8}, \dfrac{5}{12}, \dfrac{11}{24} work.

Example 2. Find a rational and an irrational between 0.10.1 and 0.110.11.

Rational: 0.1+0.112=0.105\dfrac{0.1 + 0.11}{2} = 0.105. Irrational: 0.101001000100010.10100100010001\ldots , non-terminating, non-repeating, and clearly between 0.10.1 and 0.110.11.

Example 3. Is 45\sqrt{45} rational or irrational? Why?

45=95=35\sqrt{45} = \sqrt{9 \cdot 5} = 3\sqrt{5}. Since 55 is not a perfect square, 5\sqrt{5} is irrational, and a non-zero rational times an irrational is irrational. So 45\sqrt{45} is irrational.

Example 4. Show that 3+223 + 2\sqrt{2} is irrational, given 2\sqrt{2} is irrational.

If 3+22=r3 + 2\sqrt{2} = r were rational, then 2=r32\sqrt{2} = \dfrac{r-3}{2} would also be rational (difference and quotient of rationals are rational). That contradicts the irrationality of 2\sqrt{2}.

Example 5. Find one rational and one irrational between 2\sqrt{2} and 3\sqrt{3}.

Use decimals: 21.414\sqrt{2} \approx 1.414, 31.732\sqrt{3} \approx 1.732. Rational 1.5=321.5 = \dfrac{3}{2} lies between them. Irrational: 1.50500500051.5050050005\ldots also lies between them.

Try it yourself

  1. Insert five rationals between 35\dfrac{3}{5} and 45\dfrac{4}{5}.
  2. Are the following rational or irrational? 36,40,273,π2,0.3\sqrt{36}, \sqrt{40}, \sqrt[3]{27}, \pi - 2, 0.\overline{3}.
  3. Give two examples of irrationals whose sum is rational.
  4. Give two examples of irrationals whose product is rational.
  5. Find an irrational between 27\dfrac{2}{7} and 37\dfrac{3}{7}.
  6. Show that 535 - \sqrt{3} is irrational.
  7. Is 123\dfrac{\sqrt{12}}{\sqrt{3}} rational or irrational? Justify.
  8. Insert three rationals and three irrationals between 0.10.\overline{1} and 0.20.\overline{2}.
  9. State whether true or false: "The product of two irrationals is always irrational." Give a reason.
  10. If 2+3\sqrt{2} + \sqrt{3} were rational, derive a contradiction.

Pitfalls / Insight

  • "Rational" does not mean "with a nice decimal". 13=0.3\dfrac{1}{3} = 0.\overline{3} never terminates but is rational.
  • Irrational ++ irrational need not be irrational. (2)+(32)=3(\sqrt{2}) + (3 - \sqrt{2}) = 3.
  • Be precise about π\pi. π227\pi \ne \dfrac{22}{7}; the latter is a handy approximation only.

Insight. Think of rationals as "fractions you can write" and irrationals as "fractions you cannot , only approximate". The number line is so full that almost every point you randomly pick is irrational; the rationals are only the labelled points.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Rational and irrational numbers
6 questions · pick the best answer
Q1

Which is irrational?

Q2

Which statement is true?

Q3

A rational number strictly between 13\dfrac{1}{3} and 12\dfrac{1}{2} is:

Q4

Which of these is the same number as 18\sqrt{18}?

Q5

If rr is rational and ii is irrational, then rir \cdot i (with r0r \ne 0) is:

Q6

Which is rational?