
Bradford T. answered 11/23/22
Retired Engineer / Upper level math instructor
Let y = (5-x) be the distance from the refinery to point P. Let x = the distance from P to the Storage Tank.
Let c = 3000000 be the overland cost/km and 2c=6000000 be the under water cost/km.
Cost = C(x) = z(5-x) + 2z√(x2+1) where √(x2+1) is the distance under water
C'(x) = -cx +2cx/√(x2+1)
Setting C'(x) to zero and solving for x
2x = √(x2+1) The c value cancels out.
4x2=x2+1
3x2=1
x = √3/3
y = 5-√3/3 ≈ 4.23 Km, the distance from the refinery to point P.