Yes, sorry, I wasn't really looking at this properly the first time, and just glanced at Schrödinger's Dog's attempt and it looked right; however it is not. What he was doing was taking [tex]\frac{d^2y/dt^2}{d^2x/dt^2}[/tex], however this is of course not correct, since this does not equal d2y/dx2. You should follow your textbook. The correct way to approach the second derivative is to use the chain rule; letting y'=dy/dx: [tex]\frac{dy'}{dt}=\frac{dy'}{dx}\frac{dx}{dt}[/tex] which then gives the formula for the second derivative of y wrt x:[tex]\frac{d^2y}{dx^2}=\frac{dy'/dt}{dx/dt}[/tex].
Sorry for advising incorrectly!