Distance of the pipeline down the shoreline should be = 3.34 miles
In the question,
Distance of the Resort, R, from the point, P = 5 miles
Distance of the Fresh Source of water, X, from P = 10 miles
Also, if,
Cost of laying pipeline on land = 1
then,
Cost of laying pipeline in water = 1.8
So,
Using Pythagoras theorem in triangle PRX, we get,
Length of pipe in water, LR is,
[tex]LR^{2}=PL^{2}+PR^{2}\\LR^{2}=x^{2}+25\\LR=\sqrt{x^{2}+25}[/tex]
So,
Total cost, C, of laying the pipeline is,
[tex]C=1.(10-x)+1.8(\sqrt{x^{2}+25})[/tex]
On differentiating it w.r.t x, we get,
[tex]\frac{dC}{dx}=-1+\frac{1.8x}{\sqrt{x^{2}+25}}\\0 = -1+\frac{1.8x}{\sqrt{x^{2}+25}}\\1=\frac{1.8x}{\sqrt{x^{2}+25}}\\x^{2}+25=3.24x^{2}\\2.24x^{2}=25\\x^{2}=11.16\\x=3.34\,miles[/tex]
Therefore, the distance of the pipeline down the shoreline should be,
x = 3.34 miles to minimize the construction cost.