Making Pythagorean Triples with Matrix Magic

3-4-5 TriangleI learned this method of generating Pythagorean triples in a graduate class at MIT taught by Victor Kac. I’m blogging about it now because I just discussed generating Pythagorean triples with a student (using the method of parametrizing rational points on the unit circle centered at the origin by the slope of a line passing through (-1, 0)) and because it is a really nifty approach accessible to students who have learned about matrix multiplication.

Take the following ten 3 by 3 matrices:

Matrices for generating Pythagorean triples.

(There are 10 matrices because the middle one represents all 8 possible sign choices.)

Start with the vector

The vector (1, 1, 0).

and apply the 10 matrices to get more and more vectors. For example, if you apply the tenth matrix to the above vector, you will get

The vector (5, 3, 4).

And if you apply the same matrix again, you will get

The vector (29, 21, 20).

If you keep on going applying the matrices in various ways, you will eventually get all the primitive Pythagorean triples. Can you prove it?

Stop reading if you don’t want any hints.

Hint 1. Show that any vector (c, a, b) that arises will satisfy

  • that a, b, and c are all integers with no common factor greater than 1.
  • the Pythagorean identity c^2 = a^2 + b^2.

Hint 2. Suppose c^2 = a^2 + b^2, with c > 1. Show that it is possible to apply some of the matrices above to (c, b, a) to obtain a vector (c', b', a') with 0 < c' < c.

About these ads

About girlsangle

We're a math club for girls.
This entry was posted in math and tagged , , . Bookmark the permalink.

5 Responses to Making Pythagorean Triples with Matrix Magic

  1. Pingback: Folding Pythagorean Triples with Origami | Girls' Angle

  2. Pingback: Mathblogging.org Weekly Picks « Mathblogging.org — the Blog

  3. Pingback: Getting Pythagorean Triples with Hyperbolic Functions | Girls' Angle

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s