Doug C. answered 10/23/17
Tutor
5.0
(1,563)
Math Tutor with Reputation to make difficult concepts understandable
Hi Andrew,
Here are some hints (assuming you have not already figured it out). Use some coordinate geometry, assigning coordinates to the vertices of the triangle, write some equations for the sides of the outside triangle and this "inside" triangle. The difficult part is finding the equation of the hypotenuse of the inside triangle.
Points for the outside triangle are (0,0), (0,22), (44,0). The coordinates of the right angle for the inside triangle will be (1,1). Finding the other two vertices of the inside triangle is the key. Then you can use the distance formula. Here is a graph and some equations for you to look over.
https://www.desmos.com/calculator/xmsnnghojx
There are probably different ways to do this. Consider any point on the hypotenuse of the outside triangle, e.9. (6,19). After finding the equation of the outside hypotenuse you can write the equation for a perpendicular to that line passing through your random point on the hypotenuse. If you then think of a circle with radius one centered at (6,19), one of the points where it intersects the perpendicular will be a point that a line parallel to the outside hypotenuse also contains. Therefore you can write the equation of the inside hypotenuse. From there you can find the other two vertices of the inside triangle, then use the distance formula to find the lengths of the 3 sides (or use similar triangle ratios).
Good luck writing that in JavaScript.
Andrew W.
Thanks Doug!
Report
10/24/17
Andrew W.
I found it by first determining the radius of an inscribed circle within the right triangle using the info from this site:
http://map.mathshell.org/lessons.php?unit=9330&collection=8
If a circle is inscribed within a right triangle then the radius can be determined if the length of all sides are known.
After getting the radius, I subtracted the frame thickness from the radius.
Then I use the ratio between the original radius and the new radius to determine the ratio multiplier that I could use to calculate the inner lengths of the right triangle.
Radius = (width * height)/(width + height + hypotenuse)
In this case,
Radius = 44 * 22 / 44 * 22 * 49.1935
Radius is 8.403
From here I can subtract the 1" from the radius to get the new radius of 7.403
I can then use a ratio multiplier to determine the lengths of all the sides of the smaller right triangle since all sides are proportional.
In this case, the ratio of 7.403 and 8.403 is 0.880998455
I then multiply the lengths to each side by the ratio to get the lengths of each side
Inner Length = 44 * 0.880998455 = 38.7639
Inner Height = 22 * 0.880998455 = 19.3820
Inner Hypotenuse = 49.1935 * 0.880998455 = 43.3394
10/23/17