Let’s assume on the contrary that √p is a rational number. Then, there exist positive integers a and b such that
√p = \(\frac{a}{b}\) where, a and b, are co-primes
⇒ (√p)2 = (\(\frac{a}{b}\))2
⇒ p = \(\frac{a^2}{b^2}\)
⇒ pb2 = a2
⇒ p | a2 [∵ p|pb2 and pb2 = a2]
⇒ p | a ………… (ii)
⇒ a = pc for some integer c.
Now, b2p = a2
⇒ b2p = p2c2
⇒ b2 = pc2
⇒ p | b2 [∵ p|pc2 and pc2 = b2]
⇒ p | b ……… (i)
From (i) and (ii), we can infer that p is a common factor of a and b. But, this contradicts the fact that a and b are co-primes. So, our assumption is incorrect.
Hence, √p is an irrational number.