B^2 = a with a is an integer and b rational => b is an integer

In summary: I don't know if I'm completely comfortable with your proof. You see, you can distil it down to this proof by contradiction: Negate the original proposition and suppose we can have b rational (condition 1) but nonintegral (condition 2), b^2 = a and a integral. Now, since you're given that a is an integer, a is either a perfect square (which by definition is a square of an integer) or not a perfect square. If a is a perfect square, its square root is an integer, implying b is an integer which contradicts condition 2. If a is not a perfect square, then its square root is irrational, which contradicts condition 1. You've arrived at a contradiction, the
  • #1
Elwin.Martin
207
0

Homework Statement


b^2 = a
b is a rational number
a is an integer
prove that b is an integer.

This is self assigned, but I think this is the appropriate place to put my question.

Homework Equations


see above


The Attempt at a Solution


Is this legitimate...?

Since b is a rational number, there exists two integers m and n with n=! 0 s.t. b=(m/n) and gcd(m,n)=1, thus we have
b^2 = a ; (m/n)^2 = a ; m^2/n^2 = a ; m^2 = a*n^2 ; m = n√a.
If a is not a perfect square, then √a is irrational and thus n is irrational since m is an integer...a contradiction. Suppose then that a is a perfect square, then we have that m =nc where c=√a. Since c is an integer, implies that n|m, but since gcd(m,n) = 1 we must have that n = 1 thus b = m and b is an integer.

The first part seems a little sketchy to me, I know it to be true...but I'm not sure I can use it how I did. Any advice on how to clean this up?

I feel kind of dumb working on my properties of real numbers, but I'm hoping it will help my foundations. Sorry to be asking so many questions, I asked something yesterday as well...maybe I should ask elsewhere in the internet? Though I suppose it is up to the viewer to deem it worthy of response, so I guess it doesn't matter too much as long as I'm not spamming.

Thanks in advanced for any help!
 
Physics news on Phys.org
  • #2
I suppose you could clean it up or simplify it a bit but your basic concept is correct.
 
  • #3
Elwin.Martin said:

Homework Statement


b^2 = a
b is a rational number
a is an integer
prove that b is an integer.

This is self assigned, but I think this is the appropriate place to put my question.

Homework Equations


see above

The Attempt at a Solution


Is this legitimate...?

Since b is a rational number, there exists two integers m and n with n=! 0 s.t. b=(m/n) and gcd(m,n)=1, thus we have
b^2 = a ; (m/n)^2 = a ; m^2/n^2 = a ; m^2 = a*n^2 ; m = n√a.
If a is not a perfect square, then √a is irrational and thus n is irrational since m is an integer...a contradiction. Suppose then that a is a perfect square, then we have that m =nc where c=√a. Since c is an integer, implies that n|m, but since gcd(m,n) = 1 we must have that n = 1 thus b = m and b is an integer.

The first part seems a little sketchy to me, I know it to be true...but I'm not sure I can use it how I did. Any advice on how to clean this up?

I feel kind of dumb working on my properties of real numbers, but I'm hoping it will help my foundations. Sorry to be asking so many questions, I asked something yesterday as well...maybe I should ask elsewhere in the internet? Though I suppose it is up to the viewer to deem it worthy of response, so I guess it doesn't matter too much as long as I'm not spamming.

Thanks in advanced for any help!

I don't know if I'm completely comfortable with your proof. You see, you can distil it down to this proof by contradiction: Negate the original proposition and suppose we can have b rational (condition 1) but nonintegral (condition 2), b^2 = a and a integral. Now, since you're given that a is an integer, a is either a perfect square (which by definition is a square of an integer) or not a perfect square. If a is a perfect square, its square root is an integer, implying b is an integer which contradicts condition 2. If a is not a perfect square, then its square root is irrational, which contradicts condition 1. You've arrived at a contradiction, the supposition is false and therefore the original proposition is true.

That's essentially your proof, reduced to the basics. It's actually a completely correct proof. The only issue I have with it is that you're assuming the part in bold. Of course, this is true, but whether you can assume it for the purpose of this proof depends on whether you've proven that as an earlier result and how much leeway you're given.

Maybe I could suggest another tack: Start with the same supposition. Let [itex]b = \frac{p}{q}[/itex], where [itex](p,q)=1[/itex] Since b is non-integral, [itex]q \neq 1[/itex]. Now [itex]a = b^2 = \frac{p^2}{q^2} \Rightarrow p^2 = aq^2[/itex]. Clearly [itex]q | q^2 [/itex] (and hence the RHS), so q has to divide the LHS too, and therefore [itex]q|p^2[/itex]. But [itex](p,q)=1[/itex] by definition and [itex]q \neq 1[/itex], so this is a contradiction. QED.

EDIT: I removed the inference: [itex]q|p^2 \Rightarrow q|p[/itex] because it's not true in general, and unnecessary here. Please note the edit carefully.
 
Last edited:
  • #4
Curious3141 said:
The only issue I have with it is that you're assuming the part in bold. Of course, this is true, but whether you can assume it for the purpose of this proof depends on whether you've proven that as an earlier result and how much leeway you're given.

Yeah, that was what I was worried about. ^^; Since I'm using someone else's syllabus, I suppose I should be extra careful and do things a little more fundamentally.


Curious3141 said:
Maybe I could suggest another tack: Start with the same supposition. Let [itex]b = \frac{p}{q}[/itex], where [itex](p,q)=1[/itex] Since b is non-integral, [itex]q \neq 1[/itex]. Now [itex]a = b^2 = \frac{p^2}{q^2} \Rightarrow p^2 = aq^2[/itex]. Clearly [itex]q | q^2 [/itex] (and hence the RHS), and a is an integer, so q has to divide the LHS too, and therefore [itex]q|p^2 \Rightarrow q|p[/itex]. But [itex](p,q)=1[/itex] by definition and [itex]q \neq 1[/itex], so this is a contradiction. QED.

I thought I was forgetting something easier and this is it. I saw this problem in my abstract algebra class right after we covered the division algorithm (so at the very beginning), but I'd forgotten how it was done nicely.

Thank you for the help!
 
  • #5
Elwin.Martin said:
Yeah, that was what I was worried about. ^^; Since I'm using someone else's syllabus, I suppose I should be extra careful and do things a little more fundamentally.

I thought I was forgetting something easier and this is it. I saw this problem in my abstract algebra class right after we covered the division algorithm (so at the very beginning), but I'd forgotten how it was done nicely.

Thank you for the help!

You're welcome. But I noticed an unsupportable inference in my proof, and I've amended it.

Specifically, this line: [itex]q|p^2 \Rightarrow q|p[/itex] is not true in general.

For example, [itex]4 \mid 36[/itex] but [itex]4 \nmid 6[/itex].

It can actually be justified here since p and q are coprime, but it makes the proof less focussed and is unnecessary anyway, so I removed it.

I also removed the "a is an integer" part in that line since it's redundant (The LHS [itex]p^2[/itex] is an integer by definition anyway).
 
Last edited:

Related to B^2 = a with a is an integer and b rational => b is an integer

1. What does the equation B^2 = a with a is an integer and b rational imply?

The equation B^2 = a with a is an integer and b rational implies that if the square of a number B is equal to an integer a, then the number B and the number a must both be rational numbers.

2. Why must b also be an integer in this equation?

B must also be an integer in this equation because if a is an integer and b is a rational number, then the square root of a (which is B) must also be an integer. This is because the square root of an integer is either a whole number or an irrational number, and b is specified to be a rational number.

3. Can b be any rational number, or are there restrictions?

B can be any rational number as long as the equation B^2 = a with a is an integer holds true. This means that b can be a positive or negative rational number, as long as it satisfies the equation.

4. How does this equation relate to Pythagorean triples?

This equation is closely related to Pythagorean triples, as it is a special case of the Pythagorean theorem. In a Pythagorean triple, the squares of two smaller numbers add up to the square of the largest number. This can be represented by the equation B^2 + C^2 = A^2, where A, B, and C are all integers. In this case, B^2 = a with a is an integer and b rational is a specific form of the Pythagorean theorem.

5. Is it possible for a and b to be irrational numbers in this equation?

No, it is not possible for a and b to be irrational numbers in this equation. As stated earlier, if a is an integer, then b must also be an integer. This means that both a and b must be rational numbers in order for the equation to hold true.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
1
Views
794
  • Precalculus Mathematics Homework Help
Replies
5
Views
1K
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
6
Views
1K
  • Precalculus Mathematics Homework Help
Replies
3
Views
1K
  • Precalculus Mathematics Homework Help
Replies
15
Views
880
  • Precalculus Mathematics Homework Help
Replies
9
Views
1K
  • Precalculus Mathematics Homework Help
Replies
5
Views
910
  • Precalculus Mathematics Homework Help
Replies
7
Views
1K
  • Precalculus Mathematics Homework Help
Replies
9
Views
1K
Back
Top