Given a general conic:

If (that means it has a cross term).

Then the required angle is:

---

You problem is,

The required angle satisfies,

Thus,

---

When we rotate by we get the new coordinates:

---

In this case thus,

---

Substitute the new x and y coordinates:

Expand,

Combine,