I am solving a problem where I have to find $\frac{dy}{dx}$ and $\frac{d^2y}{dx^2}$ given these parametric equations:
$ x = \cos t $
$ y = 3 \sin t $
I got $-3\operatorname{cot}t\;$ for the first derivative by finding $\frac{dy}{dt} / \frac{dx}{dt}$.
For the second derivative, I simply took the derivative of $-3\operatorname{cot}t$ to get $3\operatorname{csc}^2t$.
However, my teacher did this differently. He wrote that $\frac{d^2y}{dx^2} = \frac{-3(-\operatorname{csc}^2t)}{-\sin t} = -3\operatorname{csc}^3t$
I'd really appreciate it if someone could explain where I went wrong in my own solution.
Thanks $:)$
You took the derivative with respect to $t$. Your teacher took the derivative with respect to $x$. $$\frac{dy}{dx} = -3\cot t$$ $$\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right) = \frac{\frac{d}{dt}\left(\frac{dy}{dx}\right)}{\frac{dx}{dt}} = \frac{\frac{d}{dt}(-3\cot t)}{-\sin t} = \frac{3\csc^2 t}{-\sin t}$$