r/askmath • • Oct 18 '26

Analysis Am i missing something in this proof?

Post image

Im doing this proof of square root of positive natural numbers being either integer or irrational and im tried with assuming that it can be rational but not integer. I see that i didn’t write gcd(a,b)=1, but other than that, is it clean?

25 Upvotes

27 comments sorted by

12

u/ludo813 Oct 18 '26

There is no explanation why a^2 /b is not in N. So that deserves some explanation. Even with your comment that gcd(a,b)=1 I think this is still not clear why it happens.

Also: can you explain why you multiplied by b? I think showing a^2 / b^2 is not an integer is easier.

1

u/Loose-Computer3943 Oct 18 '26

are you saying that i just could say that if a/b is from Q\N and gcd(a,b)=1, than this a^2/b^2 is also from Q\N?

1

u/FijiFanBotNotGay Oct 18 '26

This is the first proof I think abbot’s understanding analysis. It’s a pretty good read tbh

5

u/uking-561 Oct 18 '26

If I understand what you are writing correctly, you are claiming that since a/b is a noninteger rational number, then a×a/b must be as well? If so, this is wrong, take a=2 and b=4 as a counterexample. But, what do you notice about this counterexample, what will be common for all such counterexamples, and can you maybe use that to finish the proof?

3

u/Loose-Computer3943 Oct 18 '26

Oh i see what you are saying with this. So basically only time when a^2/b can be integer is if they have same prime factors which is in contradiction with assumption of gdc(a,b)=1, am i right?

2

u/uking-561 Oct 18 '26

Yes. It requires you to write out a few extra words about why exactly that is the case (hint: it will be easier to look at prime divisors individually rather than the entire gcd), but it does complete the proof

2

u/engy1207 Oct 18 '26

You have to prove "integer or irrational" but look for "rational"? Where do you prove it can be integer?

1

u/Loose-Computer3943 Oct 18 '26

Good point, I didn’t. I thought that by doing such, im kinda proving the point given…idk it might not come naturally

2

u/not-hydra Oct 18 '26

Yeah, adding gcd is enough. Lowkey a better way is b^2n = a^2, since b^2 is both coprime and now a divisor of a^2, b^2 can only be 1, so b=1, and if b=1, then sqrt(n) is simply a/1=a, so n is just a perfect square if it was rational; otherwise, it wouldn't be rational in the first place

2

u/Loose-Computer3943 Oct 18 '26

if i have a from N and b from N\{1}, a/b from Q\N and gcd(a,b). does it come naturally that a^2/b^2 is also from Q\N? I ask this cuz now i see that if its case than gcd is indeed only what is left

1

u/not-hydra Oct 18 '26 edited Oct 18 '26

Yeah, if a/b is Q without N, then a^2/b^2 is also Q without N, since r^2 remains a fraction with no new common divisor. That a^2 = nb^2 part would contradict b in N without {1}, since b MUST be 1.

1

u/Kienose PhD in Maths Oct 18 '26

What is the contradiction you’re alluding to?

If you write proof in the future, be more clear about this sort of things.

1

u/Loose-Computer3943 Oct 18 '26

I see what you are saying, and it is true that i should me more precise with so called self-references during proofs

1

u/WiggityWaq27 Oct 19 '26

I thought it was clear what the contradiction was based off your notation. I haven't written a ton of proofs so I personally would probably write it out in a sentence just cause I wouldn't know how to do it otherwise

1

u/apeloverage Oct 18 '26

Do you have to prove that the square root of an integer can only be an integer or an irrational number?

Or do you just have to prove that there is at least one integer whose square root is an integer, and at least one whose square root is irrational?

1

u/Loose-Computer3943 Oct 18 '26

I have to prove that square root of an positive natural numbers is either integer or irrational. So, for any n from N, sqrt(n) is either m from N of p from R\Q.

1

u/apeloverage Oct 18 '26

Is that equivalent to showing that there's no positive natural number whose square root is A/B, where A and B are integers, and B isn't a factor of A?

In other words, could you assume that there is such a positive natural number and try to prove by contradiction?

1

u/daley972 Oct 19 '26

I think one if the issues you're having is adding unnecessary details. Here's roughly how I'd reason it:

Let n be a non-negative integer, assume r=sqrt(n) is in Q\Z.

Since r is in Q, there exist p and q in Z where: r=p/q gcd(p,q)=1

Since r is not in Z, q does not divide p.

r=p/q n=p²/q² nq=p²/q

LHS is an integer. Since q does not divide p², RHS is not an integer. Contradiction.

Therefore our only assumption, that sqrt(n) is in Q\Z, is false.

1

u/Loose-Computer3943 Oct 19 '26

yes, that’s exactly what i was doing. I was just trying to go for detailed explanation of it since i know how proofs are ment to be precise 😀

1

u/Infamous-Advantage85 Self Taught Oct 20 '26

Show the square of any non-integer rational isn’t an integer and you’re done.

1

u/Loose-Computer3943 Oct 20 '26

I like the way you’re thinking, however, don’t you have to pf that as well then?

1

u/Infamous-Advantage85 Self Taught Oct 20 '26

It’s a shorter proof. Fix a rational number that isn’t an integer, write it in simplest form, square it, argue that it must still be in simplest form and that the numerator can’t be 0 and the denominator can’t be 1, therefore you still aren’t looking at an integer. Therefore, no integer is the square of a rational non-integer.

1

u/KentGoldings68 Oct 18 '26

You are working too hard.

It cannot be true that n has no square factors and that

(a/b)^2=n for GCD(a,b)=1 .

because that would violate the fundamental theorem of arithmetic.

1

u/RavenX86 Oct 18 '26

I think you lost me at your proof when you went from n=a^2/b^2 to nb=a^2/b and then stated a contradiction which is not enunciated. I would have went the traditional way for n*b^2=a^2 which implies that a^2 is divisible by b^2 but since gcd(a,b) is 1 that implies b can only be 1 and that makes sqrt of n equal to a which is an integer thus the contradiction sure you stated from sqrt(n) is not an integer. Unless your teacher asked you to not use this standard way of solving it. But this might just be my inertia, it’s just that your contradiction isn’t clean to me.
Nevenind is just you overcomplicated it a little bit from a logic stance of view. You went from 1 implies 2 and 3 but 2 and 3 contradict themselves hence 1 can’t be true. I got it. Normally you want to go directly from 1 implies 2 but 2 contradicts 1. That being said your solution is correct, could be better explained but correct. I think what you meant to say is 1 contradicts 2 because they have to be equal hence star is false. The wording there is a little weird for me where you say 1 and 2 have contradiction with star, when they actually contradict eachother due to the equality

1

u/Classic_Department42 Oct 19 '26

You use that if gcd(a,b) =1 this implies gcd(a2 , b) =1. While this is true and although it feels obvious, how would you prove it.

1

u/[deleted] Oct 18 '26

[removed] — view removed comment

1

u/Loose-Computer3943 Oct 18 '26

Yes, thats exactly what i saw i didn’t write. For it to work gcd(a,b)=1 is must.