bondgirl007 said:
The correct answer according my textbook is different though. :S
Sorry, I was thinking it would be possible to be spared having to take derivatives of the square roots, but it looks like that's unavoidable...
OK, so you want to take the square roots to get AS and BS and then minimize the function AS + BS. The algebra looks awful: you will have two terms with square roots in the denominators. But, since we want to know where this derivative is zero, we can add the two fractions and just look at when the numerator is zero.
You can put each term then on one side of the equation and square both sides to get rid of the radicals. While it now looks like you have polynomials of
fourth degree, you will also find that a bunch of terms cancel out, so you really only end up with a quadratic polynomial to solve for zero. One of the solutions will be negative, so we can toss it out.
The other solution is 5/2 . Since that was the distance from C to S, the distance from D to S will be 6 - (5/2) = 7/2 km. , which matches the 21/6 you mentioned.