The Pythagorean theorem is a celebrity: if an equation can make it into the Simpsons, I'd say it's well-known.

But most of us think the formula only applies to triangles and geometry. Think again. The Pythagorean Theorem can be used with **any shape** and for **any formula that squares a number**.

Read on to see how this 2500-year-old idea can help us understand computer science, physics, even the value of Web 2.0 social networks.

Contents

## Understanding How Area Works

I love seeing old topics in a new light and discovering the depth there. For example, I realize I didn't have a **deep grasp** of area until writing this article. Yes, we can rattle off equations, but do we really *understand* the nature of area? This fact may surprise you:

The area of **any shape** can be computed from **any line segment squared**. In a square, our "line segment" is usually a side, and the area is that side squared (side 5, area 25). In a circle, the line segment is often the radius, and the area is pi * r^2 (radius 5, area 25 pi). Easy enough.

**We can pick any line segment** and figure out area from it: every line segment has an "area factor" in this universal equation:

Shape |
Line Segment |
Area |
Area Factor |
---|---|---|---|

Square |
Side [s] | s^{2} |
1 |

Square |
Perimeter [p] | 1/16 p^{2} |
1/16 |

Square |
Diagonal [d] | 1/2 d^{2} |
1/2 |

Circle |
Radius [r] | pi r^{2} |
pi (3.14159...) |

For example, look at the diagonal of a square ("d"). A regular side is d/sqrt(2), so the area becomes 1/2 d^{2}. Our "area constant" is 1/2 in this case, if we want to use the diagonal as our line segment to be squared.

Now, use the **entire perimeter ("p")** as the line segment. A side is p/4, so the area is p^{2}/16. The area factor is 1/16 if we want to use p^{2}.

## Can we pick any line segment?

You bet. There is always **some** relationship between the "traditional" line segment (the side of a square), and the one you pick (the perimeter, which happens to be 4 times a side). Since we can convert between the "traditional" and "new" segment, it doesn't matter which one we use -- there'll just be a different area factor when we multiply it out.

## Can we pick any shape?

Sort of. A given area formula works for all **similar** shapes, where "similar" means "zoomed versions of each other". For example:

- All squares are similar (area always s
^{2}) - All circles are similar, too (area always pi r
^{2}) - Triangles are
**not similar**: Some are fat and others skinny -- every "type" of triangle has its own area factor based on the line segment you are using. Change the shape of the triangle and the equation changes.

Yes, every triangle follows the rule "area = 1/2 base * height". But the relationship between base and height depends on the type of triangle (base = 2 * height, base = 3 * height, etc.), so even then the area factor will be different.

Why do we need similar shapes to keep the same area equation? Intuitively, when you zoom (scale) a shape, you're changing the absolute size but not the relative ratios within the shape. A square, no matter how zoomed, has a perimeter = 4 * side.

Because the "area factor" is based on ratios inside the shape, any shapes with the same "ratios" will follow the same formula. It's a bit like saying everyone's armspan is about equal to their height. No matter if you're a NBA basketball player or child, the equation holds because it's all relative. (This intuitive argument may not satisfy a mathematical mind -- in that case, take up your concerns with Euclid).

I hope these high-level concepts make sense:

- Area can be be found from
**any line segment squared**, not just the "side" or "radius" - Each line segment has a different "area factor"
- The same area equation works for similar shapes

## Intuitive Look at The Pythagorean Theorem

We can all agree the Pythagorean Theorem is true (here's 75 proofs). But most proofs offer a mechanical understanding: re-arrange the shapes, and voila, the equation holds. But is it really clear, intuitively, that it **must** be a^{2} + b^{2} = c^{2} and not 2a^{2} + b^{2} = c^{2}? No? Well, let's build some intuition.

There's one killer concept we need: **Any right triangle can be split into two similar right triangles.**

Cool, huh? Drawing a perpendicular line through the point splits a right triangle into two smaller ones. Geometry lovers, try the proof yourself: use angle-angle-angle similarity.

This diagram also makes something very clear:

- Area (Big) = Area (Medium) + Area (Small)

Makes sense, right? The smaller triangles were cut from the big one, so the areas must add up. And the kicker: because the **triangles are similar, they have the same area equation.**

Let's call the long side c (5), the middle side b (4), and the small side a (3). Our area equation for these triangles is:

where F is some area factor (6/25 or .24 in this case; the exact number doesn't matter). Now let's play with the equation:

Divide by F on both sides and you get:

Which is our famous theorem! You knew it was true, but now you **know why**:

- A triangle can be split into two smaller, similar ones
- Since the areas must add up, the squared hypotenuses (which determine area) must add up as well.

This takes a bit of time to see, but I hope the result is clear. How could the small triangles **not** add to the larger one?

Actually, it turns out the Pythagorean Theorem depends on the assumptions of Euclidean geometry and doesn't work on spheres or globes, for example. But we'll save that discussion for another time.

## Useful Application: Try Any Shape

We used triangles in our diagram, the simplest 2-D shape. But the line segment can belong to **any** shape. Take circles, for example:

Now what happens when we add them together?

You guessed it: Circle of radius 5 = Circle of radius 4 + Circle of radius 3.

Pretty wild, eh? We can multiply the Pythagorean Theorem by our area factor (pi, in this case) and come up with a relationship for any shape.

Remember, the line segment can be **any portion of the shape**. We could have picked the circle's radius, diameter, or circumference -- there would be a different area factor, but the 3-4-5 relationship would still hold.

So, whether you're adding up pizzas or Richard Nixon masks, the Pythagorean theorem helps you relate the areas of any similar shapes. Now that's something they didn't teach you in grade school.

## Useful Application: Conservation of Squares

The Pythagorean Theorem applies to **any** equation that has a square. The triangle-splitting means you can split any amount (c^{2}) into two smaller amounts (a^{2} + b^{2}) based on the sides of a right triangle. In reality, the "length" of a side can be distance, energy, work, time, or even people in a social network:

**Social Networks.**

Metcalfe's Law (if you believe it) says the value of a network is about n^{2} (the number of relationships). In terms of value,

- Network of 50M = Network of 40M + Network of 30M.

Pretty amazing -- the 2nd and 3rd networks have 70M people total, but they aren't a coherent whole. The network with 50 million people is as valuable as the others combined.

**Computer Science**

Some programs with n inputs take n^{2} time to run (bubble sort, for example). In terms of processing time:

- 50 inputs = 40 inputs + 30 inputs

Pretty interesting. 70 elements spread among two groups can be sorted as fast as 50 items in one group. (Yeah, there may be constant overhead/start up time, just work with me here).

Given this relationship, it makes sense to partition elements into separate groups and then sort the subgroups. Indeed, that's the approach used in quicksort, one of the best general-purpose sorting methods. The Pythagorean theorem helps show how sorting 50 combined elements can be as slow as sorting 30 and 40 separate ones.

**Surface Area**

The surface area of a sphere is 4 pi r^{2}. So, in terms of surface area of spheres:

- Area of radius 50 = area of radius 40 + area of radius 30

We don't often have spheres lying around, but boat hulls may have the same relationship (they're like deformed spheres, right?). Assuming the boats are similarly shaped, the paint needed to coat one 50 foot yacht could instead paint a 40 and 30-footer. Yowza.

**Physics**

If you remember your old physics classes, the kinetic energy of an object with mass m and velocity v is **1/2 m v ^{2}**. In terms of energy,

- Energy at 500 mph = Energy at 400 mph + Energy at 300 mph

With the energy used to accelerate one bullet to 500 mph, we could accelerate two others to 400 and 300 mph.

## Try Any Number

You can use any set of numbers that make a right triangle. For example, enter a total amount (50) and one subportion (30), and the remainder will appear below:

Suppose you want to see if a large pizza (16 inches) is bigger than two mediums (12 inches). Plug in 16 for C, and 12 for A. It looks like the large pizza can be split into a 12-inch and 10.5-inch pizza, so two-mediums are in fact bigger.

## Enjoy Your New Insight

Throughout our school life we think the Pythagorean Theorem is about triangles and geometry. **It's not.**

When you see a right triangle, realize the sides can represent the lengths of any portion of a shape, and the sides can represent variables in **any equation** that has a square. Maybe it's just me, but I find this pretty surprising.

There's much, much more to this beautiful theorem, such as measuring any distance. Enjoy.

## Leave a Reply

163 Comments on "Surprising Uses of the Pythagorean Theorem"

[…] Turns out Pythagorean theorem isn’t only useful for triangle calculation only. This article explains it in details.read more | digg story […]

Wow, thats really cool.

So if I’m getting this right, when a car is traveling at 100 mph, the energy that is required to take it to 110 mph (or the difference in its speed vector) is the same as that of two other cars travelling at 100 and 45,8 mph.

So, if they travel for 1 hour, they would have covered 100 miles (car A) and 110 miles (car C) respectively, but car A would have enough fuel to go for another 45 miles.

Makes you think about fuel economy/efficiency.. :)

Einstein found this method of proof for Pythagorean Theorem when he was 12 or so; though he probably wasn’t the first (or last) to have done so.

@Spyros: I think that’s right from a pure energy point of view: the energy needed to go from 100-110mph equals the energy to go from 0-45.8 mph.

I’m not sure how well the pure energy analogy works (drag, efficiency of engine, etc.), but there is an ideal speed for fuel efficiency cars, and it’s not around 110mph :).

@Kaizyn: Thanks for the info. Yep, I like this particular proof compared to others because it focuses on the larger concepts, not just re-arrangement of area.

[…] Surprising Uses of the Pythagorean Theorem | BetterExplained […]

Spyros,

Thats the energy required to accelerate the vehicle to that speed, not the energy required to maintain the speed, nearly all of which is required to overcome wind resistance at high speeds.

The coolest thing I’ve ever discovered about Pythagorean’s Theorem is an alternate way to calculate it. If you write a program that uses the distance form c = sqrt(a^2 + b^2) you will suffer from the lose of half of your available precision because the square root operation is last. A more accurate calculation is c = a * sqrt(1 + b^2 / a^2). If a is less than b, you should swap them and of course handle the special case of a = 0.

[…] Surprising Uses of the Pythagorean Theorem | BetterExplained. Whoa. This just completely blew my mind. […]

Hi Mccoyn, thanks for the great info! The note about precision is especially useful, I hadn’t thought about the impact of order-of-operations on the calculation. I’m sure that comes in useful in graphics programming, etc.

Wow nice article. That puts the ‘ol Pythagorean theorem into a whole new perspective.

What program do you use to draw pictures in your articles?

Thanks, glad you liked the article. Yep, I’ve discovered that there are many gems to be found when we revisit concepts we “know” :).

I used PowerPoint 2007 to make the diagrams.

“The Pythagorean theorem is a celebrity: if an equation can make it into the Simpsons, I’d say its well-known.”

Stopped reading right there.

Ah, that’s too bad — you may have found it interesting! [Both the article and the Simpsons episode :) ]

Your site is triggering a virus warning. Some java class it’s loading has a worm.

http://s3.amazonaws.com/instacalc/release/build516/javascripts/library-internal.js.packed

Hi, thanks for the info. Avast appears to be have a false positive (many AV companies mis-detect javascript as Feebs, see more here: http://isc.sans.org/diary.html?storyid=2319&rss).

I split my files into smaller chunks and it should be ok now. Appreciate the tip.

Usos sorprendentes del teorema de pitágoras…Haciendo esto

resulta que…

[…] We’ve underestimated the Pythagorean theorem all along. It’s not about triangles; it can apply to any shape. It’s not about a, b and c; it applies to any formula with a squared term. […]

[…] The Pythagorean Theorem is not just about triangles. It is about the relationship between similar shapes, the distance between any set of numbers, and much more. […]

Your proof of the Pythagorean theorem is very appealing. However, to be complete, you’d need to prove your supposition about similar triangle areas: concretely, the special case that the area of a right triangle can be computed as constant * hypotenuse^2. I tried a few different approaches, but they all end up having to apply Pythagoras in the end, which makes the whole exercise circular and thus ultimately pointless. If you try to establish the result by concrete computation it seems you are bound to run into this same difficulty–how do you get around it?

Ignore that; I’m an idiot. If you treat it abstractly, it’s almost blindingly obvious.

You just have to prove that L^2 / A is constant within a similarity class. Take two members of the same similarity class, of areas A and A’ and lengths L and L’. Let F be the factor of the dilation that maps the first figure onto the other. Then A = F^2 * A’ and L = F * L. Squaring the length equation gives L^2 = F^2 * L’^2. Dividing the area equation by this, the F^2 factors cancel, yielding A / L^2 = A’ / L’^2. So the area to squared length ratio is indeed constant.

Hi Per, glad you wrote it out :). No, you’ve saved me a bit of trouble as I wanted to discuss that aspect too!

If a “proof” of the Pythagorean Theorem does not bring in the Euclidean nature of the space under consideration, in what sense can it be considered a proof at all?

According to this wikipedia article, the “Euclidean metric” — which could also be called the “Pythagorean metric” — is actually one of the axioms of a properly-specified Euclidean geometry.

More interesting (to me, at least) would be a discussion of how the Pythagorean Metric leads to our concept of geometric area.

Sorry, I just can’t see how doing it the other way around makes sense.

Hi Ralph, I think discussions of other geometries would be pretty interesting and a good follow-up (I need to read up on them). This wasn’t meant to be a rigorous proof from first principles, more a new intuition onto an old result.

Hi

i m school kid

and dis seems to be terrific

[…] از ریاضی خوشتان میآید؟ دوست دارید یادی از درس و مدرسه و ریاضی بکنید (میدانم که احتمالاً بیشتر خوانندههای اینجا هنوز درگیر درس و مدرسه هستند، اما خوب میدانید که؟! : کافر (؟!) همه را به کیش خود پندارد!). چند وقتی است که من مشترک این وبلاگ شدهام. حقیقتش نه برای این که بخوانم! فقط به خاطر این که ببینم! آخر میدانید طرف -صاحب سایت، که تا آنجا که در ذهن دارم هندی است- آدمی است که پشتکار عجیبی در نوشتن مطلب و همینطور تهیه تصاویر و گرافهای مرتبط با آن دارد. در انتخاب رنگ هم خوشسلیقه است. مثلاً این مطلبش را ببینید که در آن توضیح داده چطور میشود با کمک قضیهی فیثاغورث هر فاصلهای را اندازه گرفت. یا این مطلب را که باز در مورد قضیهی فیثاغورث است و یا این را که در مورد اعداد موهومی است. البته مطالب غیرریاضی هم دارد، توی نوشتهها هم غلطهای علمی دارد که معمولاً در نظرات به آن اشاره شده و آنها را تصحیح کرده، اما خوب به نظر من که جالب است. گفتم شاید برای شما هم جالب باشد. راستی اسم جالبی هم برای دامنهی سایتش انتخاب کرده: betterexplained! […]