So, solving for in the matrix equation , we find that
Let . Then where , and . Furthermore,
where and . Therefore, if is a primitive Pythagorean triple then so is . Thus, if , then gives the primitive Pythagorean triple such that .
We have, using matrix
, if
is a primitive
Pythagorean triple then
where and are pairwise relatively prime, , and
Also, , and are positive integers, since . Hence is a primitive Pythagorean triple.
Similarly, if is a primitive Pythagorean triple then
where is a primitive Pythagorean triple such that .
Let
Joe Roberts2 has shown that is a Primitive Pythagorean triple if and only if
where is a finite product of the matrices , and .