proof of Lagrange's four-square theorem

Primary tabs

Major Section:
Reference
Type of Math Object:
Proof

Mathematics Subject Classification

?

I do not understand how if
2m=x^2+y^2,
then
m=((x-y)/2)^2+((x+y)/2)^2.
Does anyone want to explain?

Re: ?

Well, just calculate it:

((x-y)/2)^2+((x+y)/2)^2=(x^2-2xy+y^2)/4+(x^2+2xy+y^2)/4
=(2x^2+2y^2)/4=(x^2+y^2)/2=2m/2=m

Hope this helps you.

--
"Do not meddle in the affairs of wizards for they are subtle and quick to anger."

Re: ?

If you expand the lower expression you get

(x^2 -2xy +y^2 +x^2 +2xy +y^2) / 4

= (2x^2 +2y^2) / 4

= (x^2 + y^2) / 2 (dividing by 2)

= 2m / 2 (see upper expression)

= m

as required

yours professor pineapple

Re: ?

2m = x^2 + y^2
m = (x^2 + y^2) / 2
m = (x^2 + 2xy + y^2 + x^2 - 2xy + y^2) / 4
m = (x^2 + 2xy + y^2) / 4 + (x^2 - 2xy + y^2) / 4
m = ((x + y)^2) / 2^2 + ((x - y)^2) / 2^2
m = ((x + y) / 2)^2 + ((x - y) / 2)^2