I have to find solutions $ \mathbf {(x,y)}$ where $ \mathbf x$ and $ \mathbf y$ are real numbers for the system of equations
$\mathbf {x^2-xy+y^2=21}$
$\mathbf {x^2+2xy-8y^2=0}$
what i initially did was to multiply first equation with 2 and added that to the second equation and that gave me $\mathbf {3x^2-6y^2 = 42}$ this equation for every real $ \mathbf y$ gives me a real $ \mathbf x$ , so i concluded there would be infinite solutions to the above system of equations.
However the answer is that only 4 real solutions exist and i have the solution with me , but i wanted to know why is my method of solving it wrong. Is simple algebraic addition/subtraction of functions to find their intersection not correct? or is it giving me wrong answers only in this specific case?
$x^2 + 2xy - 8 y^2 = 0$ is a pair of lines through the origin. The discriminant is $4 + 32 = 36$ which is a square, so that the form factors $$ x^2 + 2xy - 8 y^2 = (x+4y)(x-2y) $$ and the lines are $x=2y$ and $x=-4y$
$x^2 - xy + y^2 = 21$ is an ellipse. In fact, as $21 = 3 \cdot 7$ we know there are integer points on the ellipse, such as $(4,-1)$ and $(-4,1)$ which are on one of the lines. The other pair of poin ts need extra work and probably square root signs, when $x=2y$ and $x^2 - xy + y^2 = 21$ we are stuck with $4y^2 -2 y^2 + y^2 = 21$ or $3 y^2 = 21,$ or $y = \pm \sqrt 7.$ Thus $(2 \sqrt 7, \sqrt 7)$ and $(-2 \sqrt 7, -\sqrt 7)$