6
$\begingroup$

Problem

Let $n$ be a positive integer and not a perfect square. Prove that $\sqrt{n}$ is irrational.

Proof

Consider proving by contradiction. If $\sqrt{n}$ is rational, then there exist two coprime integers $p,q$ such that $$\sqrt{n}=\frac{p}{q},$$ which implies $$p^2=nq^2.$$ Moreover, since $p, q$ are coprime, by Bézout's theorem, there exist two integers $a,b$ such that $$ap+bq=1.$$ Thus $$p=ap^2+bpq=anq^2+bpq=(anq+bp)q,$$ which implies $$\sqrt{n}=\frac{p}{q}=anq+bp \in \mathbb{N^+},$$ which contradicts.

$\endgroup$
4
  • $\begingroup$ The conclusion needs some work. You don't specify why this is a contradiction and you don't mention the case where it isn't a contradiction which is when $n$ is a perfect square. $\endgroup$
    – Winther
    Apr 19, 2019 at 14:04
  • 1
    $\begingroup$ Why not simply count prime factors? If $n$ isn't perfect square there must be a prime factor $r$ of $n$ which occurs in an odd power. Hence -- using the above notation -- $p^2=n\cdot q^2$. Occurrence on the lhs of $r$ is even whereas on the rhs it's odd. $\endgroup$ Apr 19, 2019 at 14:22
  • $\begingroup$ Please see my "Problem"... $\endgroup$ Apr 19, 2019 at 14:36
  • 1
    $\begingroup$ @mengdie1982 The point is that you don't mention it in the actual proof so it's not explicit that you are considering the case that $n$ is not a perfect square. This is a detail, but it's always a good idea to be very clear about what you are assuming. $\endgroup$
    – Winther
    Apr 19, 2019 at 17:07

3 Answers 3

9
$\begingroup$

It is fine.

I would perhaps just note that the equality $p=(anq+bp)q$ goes against the hypothesis that $p$ and $q$ are coprime, unless $q=1$, in which case $\sqrt n=p\in\mathbb Z$. But that is just a matter of taste.

$\endgroup$
3
  • 1
    $\begingroup$ I don't agree it's a matter of taste. If one is to give a proof of such a basic statement, for which an important lesson is to for the student to learn how to present a rigorous proof, then it should be done properly. IMO what you mention here should be included in the proof otherwise it's incomplete. As written OPs proof seem to indicate that it would be a contradiction even when $n$ is a perfect square as this special case is not mentioned at all. $\endgroup$
    – Winther
    Apr 19, 2019 at 14:09
  • 2
    $\begingroup$ @Winther In my opinion, the OP just forgot to add the words “the hypothesis that $n$ is not a perfect square” at the end of the proof. $\endgroup$ Apr 19, 2019 at 14:12
  • $\begingroup$ Please see my "Problem"... $\endgroup$ Apr 19, 2019 at 14:36
2
$\begingroup$

At this level, one should be more explicit about how the contradiction is obtained, i.e. the final equation contradicts the hypothesis that $n$ is a perfect square. That done the proof is correct.

The proof essentially repeats inline the below Bezout-based proof of Euclid's Lemma (for $\,k = p)$. Generally it is better to invoke the Lemma by name (Euclid's Lemma) rather than repeat its proof inline, i.e. in your proof you could write $\,\gcd(\color{#0a0}{q,p})=1,\ \color{#0a0}{q\mid p}\cdot\color{#c00}p \,\Rightarrow\, q\mid\color{#c00} p\,$ by Euclid's Lemma.

Euclid's Lemma $\ \gcd(p,q) = 1,\,\ q\mid p k\,\Rightarrow\, q\mid k$

Proof $\,\ q\mid pk,qk\, \Rightarrow\, q\mid (ap\!+\!bq)k = k,\,$ where $\,ap\!+\!bq = 1\,$ by Bezout.

Remark $ $ See here for a simple Bezout based proof that generalizes to higher-degree roots and arbitrary algebraic integers {i.e. monic case [lead coeff $=1]$ of Rational Root Test). It uses Bezout to reduce the degree of the monic polynomial of which the number is a root, so we eventually reach a linear monic $\,x - n,\,$ so $\,x = n\,$ is an integer.

$\endgroup$
1
  • $\begingroup$ Complement for future readers: see here for several proofs of this (generalized) Euclid's lemma (aka Gauss lemma), in particular the more general proof using "gcd distributive law" instead of Bézout's identity. $\endgroup$ Sep 22 at 17:55
1
$\begingroup$

Proof by contradiction is not needed. It suffices to "take the contrapositive". This is when you switch the antecedent and the conclusion of an implication and negate them. Formally, it looks like this:

$$ P \implies Q \text{ has the contrapositive } \neg Q \implies \neg P$$

It applies to the proof in the following way. Your argument shows that if $\sqrt{n}$ is rational, then it must be an integer. But if $\sqrt{n}$ is an integer, then $n$ must be a perfect square.

This means that if $n$ is not a perfect square, then $\sqrt{n}$ is not an integer, so $\sqrt{n}$ is not rational. Q.E.D.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .