# Thread: what is the cheapest way to lay the pipe?

1. ## what is the cheapest way to lay the pipe?

Hi guys!

I attached a digram explaining the equation and I'd really like to know how to get the cheapest rout
This question has been pondering in my mind for a long lime and I've never known how to work it out
what is the cheapest way of laying the pipe?
also what is the distance between B & X to get the cheapest price?

Edit: Please keep the distance B to X rounded to 3 decimals as that is the closest meter

4. ## Re: what is the cheapest way to lay the pipe?

Since you posted in the algebra forum, I assume this is not homework, but you are just curious how it is to be solved. You are very close with your trial and error estimate, by the way, although your computed cost is wrong, but your value for x is very close.

This is a problem typically given to Calc I students.

5. ## Re: what is the cheapest way to lay the pipe?

Cheers! The cost I typed in was just a typo and not actually what I intended :P. The work set by my teacher was only to calculate 10 different lengths but i was too curious and wanted to know how it was done. Thank you very much, well appreciated!
ps: I'm only in year 9 at highschool and there is no way in hell that my teacher could expect me to work out the cheapest rout :P

6. ## Re: what is the cheapest way to lay the pipe?

I'm glad someone responded with a solution using algebra - I got horribly confused around the differentiation (I need to go back over my old notes methinks!) and solved it instead using a Monte Carlo. It felt a bit like using a sledgehammer to open a peanut but it came close to the calculated value, although i'm not sure why the estimated value is more around 3.80 as opposed to 3.17

AK