Answer:
5.103 miles
Explanation:
Let x represent the distance from P down the shoreline. Then the relative construction cost is ...
c = 1.4×(distance to shore) + 1.0×(10 -x)
where ...
distance to shore = √(x² +5²)
The derivative of the cost is zero at the minimum, so we have ...
c = 1.4√(x²+25) +10 -x
dc/dx = 0 = 1.4x/√(x²+25) -1
1.4x = √(x² +25) . . . . add 1, multiply by the denominator
(1.4x)² = x² +25 . . . . . square
0.96x² = 25 . . . . . . . .subtract x²
x = 5/√0.96 ≈ 5.103104
The pipeline from the island should reach 5.103 miles down the shoreline from P.
_____
Comment on this solution
If you consider this solution carefully, you may realize that the general solution to this sort of problem is ...
distance from P = (island-to-P distance)/√(k² -1)
where k is the cost factor for water relative to shoreline, 1.4 in this problem.
You may also realize that the minimum value of k that makes a difference in where the pipe comes ashore is √(1+((island-to-P)/(P to terminal))²). In this problem, that value is √1.25 ≈ 1.11803. For values of k below that, the cheapest route is direct from the island to the terminal (water source).