Do dogs know calculus? A mathematician stands on a beach with his dog at point A. He throws a tennis ball so that it hits the water at point B. The dog, wanting to get to the tennis ball as quickly as possible, runs along the straight beach line to point D and then swims from point D to point B to retrieve his ball. Assume C is the point on the edge of the beach closest to the tennis ball (see figure). <IMAGE>
a. Assume the dog runs at speed r and swims at speed s, where r > s and both are measured in meters per second. Also assume the lengths of BC, CD, and AC are x, y, and z, respectively. Find a function T(y) representing the total time it takes for the dog to get to the ball.