Solution:
Let us assume, to the contrary, that 5 is rational.
So, we can find coprime integers a and b (b=0) such that
5=ba
∴a=5b
Squaring both sides, a2=5b2 ….(1)
∴5 divides a2.
∴5 divides a (since 5 is prime, by the Fundamental Theorem of Arithmetic).
So, we can write a=5c for some integer c.
Substituting in (1): (5c)2=5b2⇒25c2=5b2⇒b2=5c2
∴5 divides b2, and so 5 divides b.
Thus, a and b have at least 5 as a common factor.
But this contradicts the fact that a and b are coprime.
This contradiction has arisen because of our incorrect assumption that 5 is rational.
∴5 is irrational.(proved)