1st derivative in the "fireman's problem" 1. The problem statement, all variables and given/known data A fence q feet high is p feet from a high building. Find the length of the shortest ladder that will reach from the ground across the top of the fence to the building. I know how to solve this problem, but I'm getting stuck trying to simplify the 1st derivative of the hypotenuse (L) of the right triangle (i.e., the length of the ladder). EDIT: I added some additional information below. 2. Relevant equations Similar triangle ratios; Pythagorean's Theorem 3. The attempt at a solution First, I determined that the base of the right triangle that is formed from the ladder reaching from the ground over the fence to the building has a base of p + a and a height of q + pq/a. Second, I plugged the base and the height into Pythagorean's Theorem to get L^2 = (q + pq/a)^2 + (p + a)^2. Next, I attempted to find the minimum of L^2 by computing its first derivative, setting it equal to 0, and solving for a. The first derivative of L^2 with respect to a = 2(q + pq/a)(-pq/a^2) + 2(p + a). I get lost in the algebra when I try to solve for a. Please show me the way.