Consider the triangle as shown in the diagram. Use similar triangles to show that if then .
To find integer solutions of this equation, consider the factors of , and that and have no common factors, so and must be perfect squares. This will lead to a parametric representation of , and in terms of two parameters and you can use this to generate the triples.