Classifaction of equilibrium points for a Hamiltonian System

1. May 19, 2016

rmiller70015

1. The problem statement, all variables and given/known data
For the system:
$$\frac{dx}{dt}=x\cos{xy} \: \: \frac{dy}{dt}=-y\cos{xy}$$
(a) is Hamiltonian with the function:
$$H(x,y)=\sin{xy}$$
(b) Sketch the level sets of H, and
(c) sketch the phase portrait of the system. Include a description of all equilibrium points and any saddle connections.
2. Relevant equations

3. The attempt at a solution
$$\frac{\partial H}{\partial y}=y\cos{xy}=-g \\ \frac{\partial H}{\partial x}=x\cos{xy}=f$$
So the function is Hamiltonian. I see that the equilibrium points are (0,0) and (±√π/2,±√π/2) by inspection. The problem I have is that the second set of equilibria have complex roots, but I don't see any of that behavior when I graph the phase portrait with pplane.

2. May 19, 2016

Staff: Mentor

The equation $\cos(xy) = 0$ has many solutions of the form $xy = (2k + 1)\frac{\pi}2$, with k an integer. The point you show is just one equilibrium point.
How are you getting this (the complex roots)?

3. May 19, 2016

rmiller70015

I didn't approximate so I may have made a mistake typing it into my calculator. I'll approximate and see if I get something else. Maybe that's the problem.

4. May 20, 2016

Staff: Mentor

I used plain old algebra, so I don't see how using approximations would be helpful.

5. May 20, 2016

rmiller70015

I get a Jacobian matrix of:
$$\begin{bmatrix} \cos{xy}-y\sin{xy} & -x^2\sin{xy} \\ xy\sin{xy} & xy\sin{xy}-\cos{xy} \end{bmatrix}$$
So then my matrix for that second point becomes:
$$\begin{bmatrix} -\sqrt{\frac{\pi}{2}} & -\frac{\pi}{2} \\ \frac{\pi}{2} & \frac{\pi}{2} \end{bmatrix}$$
Then using the trace and determinant I get:
$$\lambda^2-\Bigg(\frac{\pi}{2}-\sqrt{\frac{\pi}{2}}\Bigg)\lambda-\Bigg(\Big(\frac{\pi}{2}\Big)^\frac{3}{2}-\Big(\frac{\pi}{2}\Big)^2\Bigg)$$
$$\frac{\Bigg(\frac{\pi}{2}-\sqrt{\frac{\pi}{2}}\Bigg)\pm\sqrt{\Bigg(\frac{\pi}{2}-\sqrt{\frac{\pi}{2}}\Bigg)^2+4\Bigg(\big(\frac{\pi}{2}\big)^\frac{3}{2}-\big(\frac{\pi}{2}\big)^2\Bigg)}}{2}$$