The difference of two squares is easily factored: We have,
Since
and
are both odd,
and
are integers.
Note that
hence we can always choose
and
Then
and
Since
If
,
, then
for some positive integers
and
,
. Therefore
Example:
Therefore
Example:
. So
Therefore
The only positive integers that can not be written as the
difference of two positive integer squares are exactly
, and
those integers
such that
divides
(that is,
).
![]() |
||
![]() |
||
![]() |
||
![]() |
||
![]() |
||
![]() |
Example:
![]() |
||
![]() |
Example: Solving the equation
in relatively prime positive integers.
Solution: We know that if
and
are
relatively prime and
then one of
and
is odd.
Without loss of generality let
be an odd positive integer.
Then there exists relative prime odd positive integers
and
,
, such that
Set
and
Thus, from equation (45),
From whence
where
From equation (45) we have the inequality,
Compare equation (45) to the Fibonacci identity (
another special case of Brahmagupta's identity. Set
in equation (46) and note that
),
Similarly Fibonacci's identity can easily be derived
straightforwardly. Set
That is, we will factor each sum
of two squares into Gaussian numbers. Hence
![]() |
||
![]() |
||
![]() |
||
![]() |
||
![]() |
||
![]() |
This identity implies Cauchy's inequality for reals in two dimensions,
In the Fibonacci identity, set
Similarly, the Diophantus identity (45), set