Qm
Core

Proving a Number Is Irrational

The classic proof-by-contradiction template used to show a number can't be written as a fraction of integers, the same skeleton behind the textbook proof that the square root of 2 is irrational.

"Prove 2\sqrt{2} is irrational" is a staple interview question, not because the result is useful day-to-day, but because it tests whether a candidate can execute a clean proof by contradiction under pressure, a reasoning pattern that recurs constantly in quantitative work.

The template: assume the opposite of what you want to prove, then show that assumption leads to something impossible. Suppose 2\sqrt{2} were rational, writable as p/qp/q in lowest terms, where pp and qq share no common factor. Squaring both sides gives 2=p2/q22 = p^2/q^2, so p2=2q2p^2 = 2q^2. This means p2p^2 is even, and since only an even number squared can be even, pp itself must be even, write p=2kp = 2k. Substituting back: (2k)2=2q2(2k)^2 = 2q^2, so 4k2=2q24k^2 = 2q^2, giving q2=2k2q^2 = 2k^2, meaning q2q^2 is even too, so qq is also even. But that contradicts the starting assumption that pp and qq share no common factor, since both are now even (sharing a factor of 2). The assumption breaks, so 2\sqrt{2} cannot be written as p/qp/q at all, it is irrational.

The same skeleton, assume rationality as a fraction in lowest terms, derive a shared-factor contradiction, extends directly to proving n\sqrt{n} is irrational for any nn that isn't a perfect square, and interviewers sometimes push candidates to generalize the argument on the spot rather than just reciting the 2\sqrt{2} case, which is really the point of asking it.

The standard irrationality proof assumes a number equals a fraction p/qp/q in lowest terms, derives that both pp and qq must share a common factor, and uses that contradiction to conclude no such fraction exists, a proof-by-contradiction skeleton worth internalizing rather than memorizing case by case.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. Ask and answer about this concept. Off-topic gets removed.
  2. No homework dumps. Show what you tried first.
  3. Corrections are welcome. Cite a source when you claim an error.

Loading discussion…

Related concepts

Practice in interviews

Further reading

  • Standard quant interview puzzle collections
ShareTwitterLinkedIn