An easy geometry problem that looks impossible
Subtitle: Applications of similar triangles and the Pythagorean Theorem
The previous post The Prediction Machine, Part I - Protocols and OpenBB was supposed to have been followed by a post on a machine learning method called Long Short-Term Memory (LSTM), but it’s taking longer than I thought, so I’m putting this up instead and will get back to predictions later. I see a great future for having the ability to predict things!
# The problem
I saw this problem recently and was intrigued by how it seemed at first to be nearly impossible to solve, and yet was easy to understand. The problem is to calculate the area of a square where the only information given is the length of two apparently unrelated line segments. Here’s the setup:
You’re supposed to calculate the area of the beige square, but all you have are some lines drawn through it, and only two lengths. The length of the long line at the bottom of the square, extending out to the left, is 6. We’re also given the length for the line segment in the upper left corner of the square. One more bit of information given is that the segment intersects the long segment going from lower left to upper right at right angles.
It turns out the solution is pretty easy once you see the trick of using similar triangles.
# Similar triangles
First I’ll add some labels to the figure. The three triangles are 1,2, and 3, and the short side and hypotenuse of triangle 1 are and .
Next, we’ll show that these three triangles are similar. The definition of similar triangles is that their angles must be the same, and the lengths of their sides must be in proportion. There are several ways to show that two triangles are similar, but one easy way is to show that two of the three angles are the same. Since the sum of the angles of any triangle is , showing two angles gives the third for free.
The problem says that the angle between the two shorter sides of triangle 1 is a right angle (). The adjacent angle in triangle 2 must be a right angle too since they’re joined by a straight line. Triangle 3 also has a right angle in the lower right corner since it’s part of the square. So each of the three triangles has a right angle, and we only need to show that one other angle matches in all three to prove similarity.
Labeling the unknown angles in each triangle helps to identify them. I’ll call the first angle in triangle 1, and similarly for the others.
Since the sum of the angles is , then for each of the three triangles. But, because they form a corner of the square, which means and therefore , so is similar to . Using the same reasoning, is similar to , so all three are similar triangles. The lengths of the sides aren’t the same, but the ratios hold, and that will give the solution.
# The area of the square
The hypotenuse in is one side of the square, which we can call . Then the ratio of the sides and in is the same as the ratio of to in , or
giving
Comparing the sides of and , the ratio of to is the same as to , so
meaning
Solving for from this gives . We can substitute back into the first equation to get
Using the Pythagorean theorem in ,
and since then so
Rearranging,
or .
From the quadratic formula,
This means that either or . Since the length of a side must be positive, then , and meaning . Substituting for we get
Then, the area of the square is .
So, with the insight of using similar triangles and an application of the Pythagorean Theorem, we can solve for the area of the square even though it seems at first that we don’t have enough information for a solution.