Range of quadratic function using discriminant 
Let $x^2-2xy-3y^2=4$. Then find the range of $2x^2-2xy+y^2$.

Let $2x^2-2xy+y^2=a$.
Then $ax^2-2axy-3ay^2=4a=8x^2-8xy+4y^2\implies (a-8)x^2-(2a-8)xy-(3a+4)y^2=0$.
We divide both side by $y^2$ and let $t=\frac{x}{y}$.
Then it implies $(a-8)t^2-(2a-8)t-(3a+4)=0$.
Since its discriminant is not negative, $\frac{\Delta}{4}\ge 0\implies a^2-7a-4\ge 0$. It gives us $a$ can have negative values like $-1$. But if clearly contracts $a-4=x^2+4y^2\ge 0\implies a\ge 4$. Where did I mistake?

Consider the curves $x^2-2xy-3y^2=4 \ (C)$ and $2x^2-2xy+y^2=k^2+4 \ (E)$ At the points where they intersect, we can substitute the value of $-2xy$ from the first into the second to get $$x^2+4y^2=k^2 \ (E)$$ This represents an ellipse centered at the origin. Now, either with a bit of graph sketching, or by considering $(C)$ as a quadratic in $x^2$, deduce that $y$ can range anywhere in the real numbers, and that $(C)$ is a hyperbola. Increasing $k$ in $(E)$ just enlarges the ellipse, and it’s not hard to see that there is no upper bound on $k$ for $(E)$ and $(C)$ to intersect. For obtaining a lower bound, we need to find $k$ such that the two curves touch. Note that if $(x,y)$ lies on the two curves, then so does $(-x,-y)$. So we’re looking for exactly two intersections. Then substituting $x=\pm\sqrt{k^2-4y^2}$ in $(C)$ gives a quadratic in $y^2$: $$65y^4-y^2(18k^2-56)+(k^2-4)^2 = 0 $$ Setting the discriminant equal to zero will give $k^2=\frac{\sqrt{65}-1}{2}$ and hence we have the desired range: $$\frac{\sqrt{65}+7}{2} \le 2x^2-2xy+y^2 =k^2+4\lt \infty $$
What was wrong in your approach? What you stated was a necessary condition on $a$, but that doesn’t mean that $a$ could really equal anything in that range.
