Bradford T. answered 11/16/23
Retired Engineer / Upper level math instructor
Let w=85000
Let u=50000
Cost, c(x) = w√(x2+16) + u(4-x)
c'(x) = wx/√(x2+16) - u
Set c'(x) to 0 and solve for x
wx =u√(x2+16)
x2+16 = (wx/u)2
(w/u)2 = 2.89
x2(1-2.89) = -16
x = 2.91
Underground: (4-2.91) = 1.09 miles
Under water: √(2.912+16) = 4.9 miles
C(2.91) = $474954.54