Proof by induction of the sum of 2 squares

In summary, the problem asks to prove by induction that any integer r= a1,a2,a3...an, where all the a's are sums of 2 squares, is itself a sum of two squares. This is demonstrated by showing that the product of two integers that are both sums of two squares is also a sum of two squares. The proof is done by first showing the base case for n=2, and then assuming it is true for n=k and proving it for n=k+1. The problem also asks to check this by using specific values for r and demonstrating different ways to express them as sums of two squares.
  • #1
aporter1
32
0

Homework Statement



(a^2+b^2)(c^2+d^2)=(ac-bd)^2 +(ad+bc)^2 prove by induction that r=a1,a2,a3...an where the a's represent the sums of 2 squares. it itself is a sum of two squares. Check it with: 2=1^2+1^2, 5=1^2+2^2, 8=2^2+2^2, for r=160, r=1600, r=1300, r=625

Homework Equations





The Attempt at a Solution


i know i have to start with the base case where n=1 and then move to n=K and show true for n=k+1
but i am not sure how to set this up with the given equations
 
Physics news on Phys.org
  • #2
the r=a1,a2,a3..an is confusing. can you clarify?
 
  • #3
the problem says, prove by induction that any integer r= a1,a2,a3...an, where all the a's are the sums of 2 squares, is itself a sum of two squares.

the a1,a2,a3...an looks like the one is set below the a along with the others
 
  • #4
aporter1 said:
the problem says, prove by induction that any integer r= a1,a2,a3...an, where all the a's are the sums of 2 squares, is itself a sum of two squares.

the a1,a2,a3...an looks like the one is set below the a along with the others
Hello aporter1. Welcome to PF !

So, does a1,a2,a3...an refer to a string of integers?
 
  • #5
yes i believe so
 
  • #6
Then what does "any integer r= a1,a2,a3...an" mean? A string of integers is not equal to an integer.
 
  • #7
i attached the problem. Its a Jpeg file and it's questionn number 8. Maybe that will help everyone out.
 

Attachments

  • question.jpg
    question.jpg
    24.3 KB · Views: 485
  • #8
The problem reads as follows. Note that there are no commas between the a's, so r is the product of these numbers (a's) each of which is the sum of two squares.
(8) From the algebraic formula [itex](a^2+b^2)(c^2+d^2)=(ac-bd)^2+(ad+bc)^2\,,[/itex] prove by induction that any integer [itex]r=a_1a_2\dots a_n\,,[/itex] where all the a's are sums of two squares, is itself a sum of two squares. Check it with: 2=12+12, 5=12+22, 8=22+22, for r=160, r=1600, r=1300, r=625. If possible, give several different representations of these numbers as sums of two squares.​

So, it looks like you need to first prove it for n=2, then assuming it's true for n = k, show that it's true for n = k+1 .
 
  • #9
I know i have to show true for that but I am unsure how to set up the problem. Once I know how to set it up I'm sure I can do it.
 
  • #10
aporter1 said:
I know i have to show true for that but I am unsure how to set up the problem. Once I know how to set it up I'm sure I can do it.
Well, for n=2 it's pretty straight forward. Simply use the given algebraic identity.

Then, suppose it's true for n=k, where k ≥ 2.
Define each of [itex]a_1,a_2,\dots a_{k+1}[/itex] appropriately. So you assume that the product [itex]a_1a_2\dots a_k[/itex] is also the sum of two squares.

What does that tell you about [itex]\left(a_1a_2\dots a_k\right)a_{k+1}\ ?[/itex]
 
  • #11
so i start by setting up the problem as:
r=a1a2...an+a(n+1)=(ac-bd)^2+(ad+bc)^2
now,
what? I'm stuck.
 
  • #12
aporter1 said:
so i start by setting up the problem as:
r=a1a2...an+a(n+1)=(ac-bd)^2+(ad+bc)^2
now,
what? I'm stuck.
To make a subscript, use the "Go Avanced" button at the bottom of the message box, then use the X2 icon you see at the top of the new message box.

For exponents, use the X2 icon.

*****************************************

There should be no addition sign in a1a2...an+an+1. It should be a1a2...anan+1, where all the ak's are multiplied together.

If you assume your conjecture holds for n, what can you say about the number a1a2...an ?
 
  • #13
so i start with

r=a1a2...an= (ac−bd)2+(ad+bc)2

now we show true for n≥2, a1a2...2= what do i put on this side?

Then I show true for n=k
 
  • #14
aporter1 said:
i attached the problem. Its a Jpeg file and it's questionn number 8. Maybe that will help everyone out.

This is what I understand from the problem:

If x is a sum of squares and y = x, then prove that y is also a sum of squares.

I don't even see why you need to prove that.
 
  • #15
dimension10 said:
This is what I understand from the problem:

If x is a sum of squares and y = x, then prove that y is also a sum of squares.

I don't even see why you need to prove that.
No, that's not what's to be proved.

If x is the sum of two squares, and y is the sum of two squares, then the product xy is also the sum of two squares.

That's the case for n=2. This follows directly from the algebraic identity [itex](a^2+b^2)(c^2+d^2)=(ac-bd)^2+(ad+bc)^2\ .[/itex]
 
  • #16
SammyS said:
No, that's not what's to be proved.

If x is the sum of two squares, and y is the sum of two squares, then the product xy is also the sum of two squares.

That's the case for n=2. This follows directly from the algebraic identity [itex](a^2+b^2)(c^2+d^2)=(ac-bd)^2+(ad+bc)^2\ .[/itex]

Oh..
 
  • #17
so am i on the right track?

r=a1a2...an= (ac−bd)2+(ad+bc)2
 
  • #18
aporter1 said:
so i start with

r=a1a2...an= (ac−bd)2+(ad+bc)2

now we show true for n≥2, a1a2...2= what do i put on this side?

Then I show true for n=k
To start, you should state what it is that you are proving.

In your proof, you need to define all the quantities to which you refer.

To begin with, you should prove the case, n=2. How are a, b, c, and d related to a1 and a2 ?

After you do the proof for n=2:
Assume that the statement is true for n = k, where k ≥ 2. From that, show that the statement is true for n = k+1 .

COMMENT: It may help to do the "Checking" first.
Check it with: 2=12+12, 5=12+22, 8=22+22, for r=160 .

How many ways can you express 160 as the sum of two squares?​
 
  • #19
i'm not sure how they are related, that's what I'm confused on. I'm not sure how they are supposed to be set up together.
 
  • #20
aporter1 said:
i'm not sure how they are related, that's what I'm confused on. I'm not sure how they are supposed to be set up together.
Well, it's hard to do a proof, when you don't understand what it says, or understand the background it rests upon.

Below is my post *8. The inset portion is your problem copied verbatim from the JPEG image you posted.
SammyS said:
The problem reads as follows. Note that there are no commas between the a's, so r is the product of these numbers (a's) each of which is the sum of two squares.
(8) From the algebraic formula [itex](a^2+b^2)(c^2+d^2)=(ac-bd)^2+(ad+bc)^2\,,[/itex] prove by induction that any integer [itex]r=a_1a_2\dots a_n\,,[/itex] where all the a's are sums of two squares, is itself a sum of two squares. Check it with: 2=12+12, 5=12+22, 8=22+22, for r=160, r=1600, r=1300, r=625. If possible, give several different representations of these numbers as sums of two squares.​

So, it looks like you need to first prove it for n=2, then assuming it's true for n = k, show that it's true for n = k+1 .
O.K. Now, what does this mean? (Don't be insulted. It's not my intention to be talking down to you.)

The problem statement starts with an "algebraic formula". It's actually an identity.
[itex](a^2+b^2)(c^2+d^2)=(ac-bd)^2+(ad+bc)^2\,.[/itex]​
Have you verified for yourself that this is truly an identity?

What this identity says is: Multiply two quantities together. (a2+b2), which is the sum of two squares, a2 and b2; times (c2+d2), which is the sum of two other squares, c2 and d2. The identity says that the resulting product is equal to (ac-bd)2+(ad+bc)2, which is the sum of two squares, (ac-bd)2 and (ad+bc)2.
(I really wish they hadn't used the variable name, a, in two different ways; here as a, later as ai in a different context.)​
Now, let's look at what's to be proved:

Prove (by induction):
Any integer, r, which may be expressed in the form, [itex]r=a_1a_2\dots a_n\,,[/itex] where each of the a's is the sum of two squares, is also the sum of two squares.

In other words, if an integer r can be expressed as the product of two or more integers, each of which is the sum of two squares, then r itself can also be expressed as the sum of two squares.​

To do this by induction, start with n = 2.

Then a1 is the sum of two squares, call them a2 and b2, and a2 is the sum of two squares, call them c2 and d2. That's how a1 & a2 are related to a, b, c, and d .

Well, that's a start.

I've got to go now. I'll check back a bit later.

GOOD LUCK !
 
  • #21
okay so I'm starting to prove by induction,

let a1 be related to (a2+b2) and a2 be related to (c2+d2)

so we have :

r=(a2+b2)(c2+d2)...n(n+1)= (ac-bd)2+(ad+bc)2
 
  • #22
aporter1 said:
okay so I'm starting to prove by induction,

let a1 be related to (a2+b2) and a2 be related to (c2+d2)

so we have :

r=(a2+b2)(c2+d2)...n(n+1)= (ac-bd)2+(ad+bc)2
Actually, let a1 = (a2+b2) and let a2 = (c2+d2)

What does the "...n(n+1)" mean?

Have you done the "base step" of n=2 ?
 
  • #23
no because where do i substitute the 2 into?
i needed a n term in there to be able to put the 2 in
 
  • #24
If n=2, then [itex]r=a_1\cdot a_2\ .[/itex] Of course, a1 and a2 is each the sum of two squares.

What is your experience with writing proofs?

By the way: What level of mathematics is the course which this problem is from ?
 
  • #25
I've taken history of math discrete math, but its been a while. Its a 400 level course, its an independent study class. I've gone to my teacher for help but I don't understand
 
  • #26
aporter1 said:
I've taken history of math discrete math, but its been a while. Its a 400 level course, its an independent study class. I've gone to my teacher for help but I don't understand

Start by defining a set S of all integers that can be expressed (not necessarily uniquely) as the sum of the squares of two integers.

Small letter "a"s refer to some elements of S, while big letter "A"s refer to the product of those elements.

The inductive hypothesis (the part you assume as true to start your proof) is that for some k, the product Ak = a1a2...ak [itex]\in[/itex] S

which means that Ak can be written as (m2 + n2), for some integers m and n.

You now have to prove, using that assumption and with the help of the identity given, that the product of Ak with another integer (call it ak+1) that's the sum of two squares (call that (p2 + q2), for some integers p and q), will again be expressible as a sum of two squares.

Formally, you need to establish that Ak+1 = Ak.ak+1 [itex]\in[/itex] S, where ak+1 [itex]\in[/itex] S.

This part is just simple algebra. Can you manage it?

The last step (or first step, if you prefer) of proving that A1 [itex]\in[/itex] S is trivial since A1 is simply equal to a1, where the latter is already defined as the sum of two squares.
 
Last edited:
  • #27
okay but what I'm confused with is how do I end up substituting n in?
 
  • #28
so I'm thinking this is how i start,

r= (a2+b2)(c2+d2)...n=(ac-bd)2+(ad+bc)2

am i on the right track?
 
  • #29
aporter1 said:
so I'm thinking this is how i start,

r= (a2+b2)(c2+d2)...n=(ac-bd)2+(ad+bc)2

am i on the right track?
No. It appears that you don't fully understand the notation here.

If n=2,
then r = a1∙a2

If n=3,
then r = a1∙a2∙a3

If n=4,
then r = a1∙a2∙a3∙a4

If n=5,
then r = a1∙a2∙a3∙a4∙a5

If n=6,
then r = a1∙a2∙a3∙a4∙a5∙a6

Get the picture?

***********************************************************

Now for a concrete example. I suggested that you do the ones in the text, a few posts ago.

Suppose n=3 and
a1=25

a2=5

a3=61​

Then r = 25∙5∙61 = 7625 .

How can we write 7625 as the sum of two squares?

One way:
Look at 25∙5 as 125 , so r = 125∙61 .

125 = 102 + 52

61 = 52 + 62

The algebraic identity says (102 + 52)(52 + 62) = (10∙5 - 5∙6)2 + (10∙6 + 5∙5)2 = 202 + 852 = 400 + 7225 = 7625​

Another way:
Look at 5∙61 as 305 , so r = 25∙305 .

25 = 32 + 42

3052 = 172 + 42   (If we needed to, we could use the algebraic identity figure this out. Actually, that's how I did it!)

The algebraic identity says that (32 + 42)(172 + 42) = (3∙17 - 4∙4)2 + (3∙4 + 4∙17)2 = 352 + 802 = 1225 +6400 = 7625 . ​
 
  • #30
aporter1 said:
so I'm thinking this is how i start,

r= (a2+b2)(c2+d2)...n=(ac-bd)2+(ad+bc)2

am i on the right track?

No. "n" in the way you used it *usually* refers to the n-th positive integer (i.e, the number "n" when you're counting 1,2,3,4,...n).

In a mathematical induction proof, the inductive step always involves this "IF it's (assumed) true for some n, THEN it can be proven true for (n+1)" step. You might be confused into thinking this means you're proving a property for some integer (n+1) - but this is not so. "n" is just an index of a general term [itex]a_n[/itex], and the exact meaning of the terms can vary depending on the problem. So if you're proving something about all positive integers, then [itex]a_n = n[/itex]. If you're proving something about positive even integers, then [itex]a_n = 2n[/itex]. And if you're proving something about prime numbers, then [itex]a_n[/itex] is the nth prime number. And so forth.

In this problem, you're proving something about numbers that are sums of squares, so [itex]a_n[/itex] simply refers to the n-th number on a list that's made up of numbers that are all sums of squares. The slightly confusing thing about this problem is that it may not be possible to order [itex]a_1, a_2, a_3,...,a_n[/itex] consecutively, but it really doesn't matter. The subscripts are only used to distinguish the terms in the sequence.

[So here, n is being used in the context of a subscript (like a counting index) in the product of numbers, each of which is called "a" (just like SammyS used it). In my post, I used "k" as the subscript (and "n" to mean something else entirely), but here, I'll stick to SammyS's meaning of "n".]

What you want to write down is a product of certain numbers (called "a" with various subscripts) that are all individually sums of squares. Note that [itex]a_1, a_2, a_3,...,a_n[/itex] are not necessarily consecutive integers, and they may not even be increasing in one direction. It doesn't matter. But the way you express that product (I'm calling the product big "A") is:

[tex]A_n = a_1a_2a_3...a_n[/tex].

In mathematical induction, you start with an assumption. Here the assumption is that [itex]A_n[/itex] can be written as the sum of two squares. Let's call those squares [itex]p^2[/itex] and [itex]q^2[/itex], where p and q are integers. So you assume this to be true:

[tex]A_n = p^2 + q^2[/tex]

What you now *need to prove* is that if you take any other integer (call it [itex]a_{n+1}[/itex]) that's *also* the sum of two squares and multiply it by [itex]A_n[/itex], you can express that product as the sum of two squares also.

Because [itex]a_{n+1}[/itex] can be written as [itex]s^2 + t^2[/itex], where s and t are integers, the product:

[tex]A_na_{n+1} = (p^2 + q^2)(s^2 + t^2)[/tex]

Can you now use the identity given to express the RHS (right hand side) of that equation as the sum of two squares? Remember that "a" in the identity refers to something else - just another variable (it's unfortunate that they used the same symbol, but what can you do?).

Once you've done this, you've proved that assuming [itex]A_n[/itex] can be written as the sum of two squares, the product [itex]A_{n+1}[/itex] which is [itex]A_na_{n+1}[/itex], is also so expressible. That completes the inductive step.

The base step just involves a verification that the proposition (what you're trying to prove) holds for n = 1. And as I mentioned, this part is trivial, because the product here is just [itex]a_1[/itex], which is already defined to be the sum of two squares.

SammyS suggested a base step of n = 2, which involves a little algebra to prove that [itex]a_1a_2[/itex] is expressible as the sum of two squares. Frankly, I think this is unnecessary, but you can do it this way if you wish.
 
  • #31
so I've gone along with

assume: rk=(a2+b2)
if, rk+1=(a2+b2)(c2+d2)=(ac-bd)2)+(ad+bc)2
 
  • #32
aporter1 said:
so I've gone along with

assume: rk=(a2+b2)
if, rk+1=(a2+b2)(c2+d2)

Then rk+1=(ac-bd)2)+(ad+bc)2
Is more like it.
 
  • #33
so I'm on the right track for the right side then?
 
  • #34
aporter1 said:
so I'm on the right track for the right side then?
What do you mean by "the right side" ?
 
  • #35
(ac−bd)2+(ad+bc)2
 

Similar threads

  • Precalculus Mathematics Homework Help
Replies
13
Views
1K
  • Precalculus Mathematics Homework Help
Replies
9
Views
2K
  • Precalculus Mathematics Homework Help
Replies
17
Views
2K
  • Precalculus Mathematics Homework Help
Replies
3
Views
2K
  • Precalculus Mathematics Homework Help
Replies
6
Views
1K
  • Precalculus Mathematics Homework Help
Replies
4
Views
2K
  • Precalculus Mathematics Homework Help
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
15
Views
1K
  • Calculus and Beyond Homework Help
Replies
7
Views
409
  • Precalculus Mathematics Homework Help
Replies
5
Views
2K
Back
Top