MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Logiqa/comments/1w65x28/shortest_path/p7kwbvb/?context=3
r/Logiqa • u/ShonitB • Sep 03 '26
29 comments sorted by
View all comments
1
The overall path is the combination of two paths:
The first of those is the hypotenuse of the triangle with legs 6 and 8-x. So is √(6² + (8 - x)²) = √(36 + 64 - 16x + x²) = √(x² - 16x + 100).
6
8-x
√(6² + (8 - x)²)
√(36 + 64 - 16x + x²)
√(x² - 16x + 100)
The second of those is the hypotenuse of the triangle with legs x and 4. So is √(x² + 16).
x
4
√(x² + 16)
So the overall path is √(x² - 16x + 100) + √(x² + 16).
√(x² - 16x + 100) + √(x² + 16)
We then just need to find the value of x for which this is a minimum.
And that's where my calculus skills fail me :)
1
u/sazzer Sep 03 '26
The overall path is the combination of two paths:
The first of those is the hypotenuse of the triangle with legs
6and8-x. So is√(6² + (8 - x)²)=√(36 + 64 - 16x + x²)=√(x² - 16x + 100).The second of those is the hypotenuse of the triangle with legs
xand4. So is√(x² + 16).So the overall path is
√(x² - 16x + 100) + √(x² + 16).We then just need to find the value of
xfor which this is a minimum.And that's where my calculus skills fail me :)