Density of Q in R

#hsc-maths#proofs#hard

The density of the rational numbers in the real numbers—the fact that between any two distinct reals we can always find a rational—is a fundamental result in real analysis. In the HSC Mathematics Extension 2 course, this proof illustrates a classic technique: magnifying the gap by a large integer so that it exceeds 1, then trapping an integer inside the scaled interval. Mastering this existence argument will strengthen your ability to reason about the real numbers using the Archimedean property.

Problem Statement

Prove that for any real numbers xx and yy with x<yx < y, there exists a rational number qq such that

x<q<y.x < q < y.

Hints

Attempt the proof independently first. Focus on the key theorem, algebraic transformation, or contradiction setup that links the hypothesis to the target conclusion.


Solutions

Existence Proof

The plan: find integers n>0n>0 and mm such that nx<m<nynx < m < ny. Because then dividing by nn gives a rational q=m/nq=m/n between xx and yy. For an integer mm to lie strictly between nxnx and nyny, the length of that interval must be greater than 11.

Since yx>0y-x>0, we can choose a positive integer nn such that

n(yx)>1.n(y-x)>1.

Equivalently,

nynx>1.ny-nx>1.

Now the scaled interval (nx,ny)(nx,ny) has length exceeding 11, so it must contain at least one integer. To pick one explicitly, let mm be the smallest integer greater than nxnx (think of mm as the ‘ceiling’ of nxnx). Then

m1nx<m.m-1 \le nx < m.

So in particular,

nx<mnx+1.nx < m \le nx+1.

But nynx>1ny-nx>1 gives

nx+1<ny.nx+1<ny.

Hence

nx<mnx+1<ny,nx<m\le nx+1<ny,

so

nx<m<ny.nx<m<ny.

Dividing through by n>0n>0,

x<mn<y.x<\frac{m}{n}<y.

Therefore, with q=mnq=\frac{m}{n}, we have found a rational number satisfying x<q<yx<q<y.


Takeaways

  • Magnification Idea: Multiply the interval by a large integer so its length becomes greater than 11
  • Key Step: Once the gap exceeds 11, an integer can be placed between the endpoints
  • Density of Q\mathbb{Q}: Rational numbers occur between every two distinct real numbers
  • Big Picture: This is an existence proof rather than a constructive formula for a specific rational
  • For any real numbers xx and yy with x<yx < y, there exists infinitely many rational numbers qq such that x<q<yx < q < y.

Further Readings

If you found this proof interesting, be sure to check out these relevant HSC booklets to sharpen your reasoning skills: HSC Proofs, HSC Polynomials, HSC Differential Equations

Written by Vu Hung Nguyen

Mathematics Educator · LinkedIn · About