The square under the hypotenuse method 2:
I found a few methods however, in my opinion, the graph method was the easiest. Using the height and the base of the triangle, I could easily figure out the x and y-intercepts. (0,b) and (a,0). Then it took me a few minutes to figure out the line that connected them which would be the hypotenuse of the triangle. I knew it was possible as I remember learning that when given any 2 points from a straight line, it is possible to find out the straight line. Using this fact I found out that y= -bx/a + b. From this, I then attempted to find the point where y=x. In other words, the point which intersects both the line y=-bx/a+b and y=x. To solve this problem I noticed that x = y = -bx/a+b. For this reason, I put x = -bx/a+b. At first, I found solving this a little bit hard but after messing around with the numbers, changing their sides and factorizing, I achieved to get to x/b + x/a = 1 which seemed good for me. I tried with a few triangles and it worked.
The Square under the hypotenuse method 1:
Then, using the graph method, I found the answer to the 3,4,5 triangle. I decided to use that answer to work out the proof for method 1. I noticed a very strange pattern. I saw that the side length of the square was 12/7. Then, I subtracted 12/7 from one of the sides, 3 and I got 9/7. I did this because I cared more about the two inside triangles which according to method 1 were similar. Then I subtracted 12/7 from 4 and I got to 16/7. Immediately after, I thought that the numbers 9 and 16 were especially weird and noticed that 4² is 16 and 3² is 9. From this, I assumed that the numerator was always going to be the side squared. Then, I went desperate trying to find a pattern in the denominator until I saw that 3+4 = 7 which was the denominator. From there I concluded that the triangle next to the square had one side being equal to the side squared divided by the sum of the sides. I then subtracted the side of the big triangle from the number I just calculated. That is the side length of the square. As a formula it would be a-a²/(a+b). Which is the same as b-b²/(a+b).
The Square under the hypotenuse method 3:
I noticed that the same shapes were in both rectangles which meant that they had the same area or else it wouldn’t be made up the same amount and the exact same shapes inside them. I worked out the area of the first rectangle which was just b*a. The area of the second rectangle was db + da being d the side length of the square. I factorized it to have d(b+a) and then I divided both sides by b+a giving be ba/b+a which is the answer. I split sides b and c as d, e and f being d the side length of the square and e and f being the sides of the smaller triangles. This got me to a formula which I deemed useless which was d = (ef)¹/² which was not very useful as the side lengths of the small triangles were very hard if not impossible to calculate which would just make this problem harder which wasn’t my intention. That is why I came up with using the sides of the big triangle and not those of the small triangle.