application of derivative a right triangle whose