PROBLEM:
Solve the equation in integers numbers $3x^2-2xy-7=y^2$.
WHAT I THOUGHT OF:
What if we pass $y^2$ to the other member of the equality.
$3x^2-2xy-7-y^2=0$
Forward it would be simple if we can write $3x^2-2xy-7-y^2$ as a product of 2 equations. I need help here, because i thought a lot about how can i rewrite it. Also, abbreviated calculation formulas might help. Hope one of you can help me!
Observe that by moving $y^2$ to the $LHS$, we can factorise as $(x - y)(3x + y) = 7$. I typically spot these kinds of factorisations by considering the case $y = 1$; alternatively, you can use the fact that it can be rewritten as $(x - y)^2 + 2(x^2 - y^2)$, from which the factorisation is more readily apparent.
Since $x$, $y$ are integers, it follows these brackets are integers. Hence, we must have either \begin{align*} x - y = -7&, 3x + y = -1 &&\implies (x, y) = (-2, 5)\\ x - y = -1&, 3x + y = -7 &&\implies (x, y) = (-2, -1)\\ x - y = 1&, 3x + y = 7 &&\implies (x, y) = (2, 1)\\ x - y = 7&, 3x + y = 1 &&\implies (x, y) = (2, -5) \end{align*} Hence, all solutions are $(-2, 5), (-2, -1), (2, 1), (2, -5)$.