I need help with the relationship between the variables and the derivatives
In the below question, I thought it would be something like $\tan(\theta)=\frac{y}{x}$ where $y=40t$ and $x=25-30t$. And then, at the maximum, there would be no change in the angle so it would be zero. But when I differentiate, I get $0=\frac{40(25-30x)+30(40x)}{(25-30x)^2}$
If my intuition is correct, I'd want to say that the distance is closest when it's an isosceles triangle - that is, when $x=y$ and so I could find some other values.
A navy vessel is located at $25$ km from the enemy shoreline where an enemy helicopter base is located. The vessel is moving toward the base at a constant speed of $v_p = 30$ km/h. At this time (referred to as $t = 0$ for convenience), its early warning radar detected that an enemy helicopter is located on the ground in the base and is taking off vertically with a constant speed $v_h = 40$ km/h (see figure). To determine the optimal time to fire a laser beam to shoot down the helicopter, the following information must be provided to the commander.
(a) At what time will the distance between the vessel and the helicopter be shortest? What is this distance? Assume that the speeds and directions of both the vessel and helicopter are constant.
(b) The laser is kept pointing directly at the helicopter at all times. At the time found in (a), what is the rate of change of the angle theta at which the laser is aimed (see figure)?
