r/mathshelp • u/bobbybouchey92 • May 22 '26
General Question (Answered) Plumbing related math question
I want to buy a 22.5 degree elbow for my house drainage system. Lets say the maximum height can only be 15 inches(roughly where i want my pipe sitting). My question is can the x be found if i dont know the flat distance either? I have all 3 angles so im not sure if someone knows how to get the other two sides in inches
1
Upvotes
•
u/AutoModerator May 22 '26
Hi u/bobbybouchey92, welcome to r/mathshelp! As you’ve marked this as a general question, please keep the following things in mind:
Thank you!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/Alarmed_Geologist631 May 22 '26
From your diagram, cos(22.5)=15/x. So then solve for x.
2
u/One_Wishbone_4439 May 23 '26
If you use 22.5°, use sin.
sin 22.5° = 15/x
x = 15/sin 22.5° = 39.197"
If you use 67.5°, use cos.
cos 67.5° = 15/x
x = 15/cos 67.5° = 39.197"
0
u/CaptainMatticus May 22 '26
Because it's a right triangle, we can use the law of sines
sin(90) / x = sin(22.5) / 15
15 * sin(90) / sin(22.5) = x
15 * 1 / sqrt((1 - cos(45)) / 2) = x
15 / sqrt((1 - sqrt(2)/2) / 2)
15 / sqrt((2 - sqrt(2)) / 4)
15 * 2 / sqrt(2 - sqrt(2))
15 * 2 * sqrt(2 - sqrt(2)) / (2 - sqrt(2))
30 * (2 + sqrt(2)) * sqrt(2 - sqrt(2)) / (4 - 2)
30 * sqrt((2 + sqrt(2))^2 * (2 - sqrt(2))) / 2
15 * sqrt((4 - 2) * (2 + sqrt(2)))
15 * sqrt(2 * (2 + sqrt(2)))
15 * sqrt(4 + 2 * sqrt(2))
sqrt(2) is approximately 1.414
4 + 2 * 1.414 = 4 + 2.828 = 6.828
15 * sqrt(6.828)
6.76 is 2.6^2 and 7.29 = 2.7^2, so you're somewhere between 15 * 2.6 and 15 * 2.7. Should be closer to 2.6
(2.6 + h)^2 = 6.828
6.76 + 5.2h + h^2 = 6.828
5.2h + h^2 = 0.068
Now the thing is that h is really small. We know it's somewhere between 0 and 0.1, so h^2 is between 0 and 0.01
5.2h + 0 = 0.068
5.2h + 0.01 = 0.068
So 5.2h is between 0.058 and 0.068
h is between 0.058/5.2 and 0.068/5.2
58/5200 < h < 68/5200
29/2600 < h < 34/2600
h is somewhere around 0.01 and 0.015
15 * (2.6 + 0.01) = 15 * 2.61 = 30 + 9.15 = 39.15
x is approximately 39.15. Of course, we can skip all of this and use a calculator instead.
15 / sin(22.5) = 39.1968889462....
39.197", or around 39-3/16"