Problem with finding Maximum value

My problem states: Show that y: $$y = e^{-t}sin(2t)$$ is a maximum when $$t = \frac{1}{2}\tan^{-1}(2)$$ and determine this maximum value.

So basically i have to calculate first and second derivatives of function f(t) = y and find some relation with what i must prove. Well, i've almost done it i think. But not quite. Can someone help me by checking out my answer a bit and tell me where i'm wrong, what i should improve, anything that could help me really?

So first i calculate first derivative: $$\frac{dy}{dt} = -e^{-t}\sin(2t) + 2e^{-t}\cos(2t)$$ and i convert the result to a more simplified form $$\sqrt{5}e^{-t}\cos(2t-0.464)$$ which i equate to 0 to find t(which i can't find it here). And then i calculate the second derivative: $$\frac{d^{2}y}{dt^{2}} = -\sqrt{5}e^{-t}\cos(2t-0.464)-2\sqrt{5}e^{-t}\sin(2t-0.464)$$ which "simplifies" to: $$5e^{-t}\cos(2(t-\frac{tan^{-1}(2)}{2})-0.4636)$$ I doubt i'm right so far but if i am then i'm close. However i don't see exactly how i can prove what is needed from here. If someone could help me a bit i would be most grateful. Thank you in advance.

You would have been better off trying to solve for critical points directly in: $$\frac{dy}{dt} = -e^{-t}\sin(2t) + 2e^{-t}\cos(2t)$$ instead of first simplifying. $$0 = -e^{-t}\sin(2t) + 2e^{-t}\cos(2t) \implies e^{-t}\sin(2t) = 2e^{-t}\cos(2t)$$ and that gives $$\tan(2t) = 2$$
• Yes with a caveat, $e^{-t}$ for each t is just a number, so as long as it isn't zero, you can divide both sides by it. If it is zero, you need to consider that case separately. However, $e^{-t}$ is always positive. – muaddib Aug 3 '15 at 21:31