Answer:
Lay the cable so it touches the shore 1.5 km from A, and 5.5 km from B.
Explanation:
Your description is pretty murky, but if it is similar to other such problems, then you are off to a good start. (I think). I assume you meant something like this:
A is an island 2 km off shore, and B is 7 km away from the point on shore closest to A. Laying cable costs $5/km underwater, and $3/km underground. Find the minimum cost of connecting A to B by cable. Why did I switch the costs? Because if underwater is cheaper, then just lay the cable straight from A to B!
To find The distance x from A that minimizes the cost, you have
underwater distance:
underground distance: 7-x
So, the cost
c(x) = 5
+ 3(7-x)
To minimize the cost, you need to find where dc/dx = 0
dc/dx = 5x/
- 3
dc/dx=0 when
5x = 3
25x^2 = 9(4+x^2)
x = 3/2
c(3/2) = 29
So, the point 1.5 km from A makes the cost minimum.