The problem :
A spy climbs out of a submarine into a rubber boat 2 miles east of point P on a straight north-south shoreline. He wants to get to a house on the shore 6 miles north of P. He can row 3mi/h and walk 5 mi/h. He intends to row directly to a point north of P and then walk the rest of the way. How far north of P should he land in order to get to the house in the shortest possible time.
And I am trying to optimize $ f(x) = 6 - x + \sqrt{x^2 + 4} $, but when i get to the derivative, its discriminant is negative and I can't continue. I am not looking for a solution, but just tips on where I got the exercise wrong. Thank you!
