I am trying to solve the set of differential equations
$$\dot{x} = \cos y\,,\quad\dot{y} = -\tanh x\sin y$$
for $x(t)$ and $y(t)$. One method I've encountered to decouple the equations involves turning this into a second-order differential equation via differentiation and substitution. But I've also tried dividing the equations to get a relation between $x$ and $y$ like this:
$$\frac{\dot{x}}{\dot{y}} = \frac{dx}{dt}\frac{dt}{dy} = \frac{dx}{dy} = -\frac{\cot y}{\tanh x}$$
since neither depends explicitly on $t$, which gives me a new relation:
$$A\cosh x = \sin y$$
where $A$ is a constant of integration. I then get
$$\ddot{x} \sim \sinh x\cosh x\,,\quad\ddot{y}\sim\sin y\cos y$$
where I've dropped leading constants. Is this a valid method? If I decouple in the normal way, where I take the derivative of $\dot{x}$ and substitute $\dot{y}$ into the first equation, I instead get the equation
$$\ddot{x} \sim \tanh x(1-\dot{x}^2)$$
Where am I going wrong? Will both methods give me the correct solution?
