The curve with equation $y = e^{-ax}(\tan x)$, where $a$ is a positive constant, has only one point in the interval $0 < x < \pi/2$ at which the tangent is parallel to the x-axis. Find the value of a and state the exact value of the $x$-coordinate at this point.
I have differentiated using the product rule $\tan^2 x - a\tan x + 1 = 0$. But I am not sure how to proceed. I've also got $y= \frac{2}{\sin 2x}$ but I'm also stuck at this step.
Please send help. SOS