Are there any nice/elegant ways to solve this system of equations?
$\left\{\begin{matrix} 2x^2+xy+y^2=28 & \\ x^2-xy+2y^2=32 & \end{matrix}\right.$
I can solve it by isolating one of the variables but it's too messy.
Thanks!
Are there any nice/elegant ways to solve this system of equations?
$\left\{\begin{matrix} 2x^2+xy+y^2=28 & \\ x^2-xy+2y^2=32 & \end{matrix}\right.$
I can solve it by isolating one of the variables but it's too messy.
Thanks!
There is a general way to solve such homogeneous equations.
First note that $x=0$ doesn't provide a solution. Now choose $m=\dfrac{y}x$, so that $y=mx$. Your two equations then become,
$x^2(2+m+m^2)=28 \\ x^2(1-m+2m^2)=32$
Dividing the two, we obtain:
\begin{align} &\dfrac{2+m+m^2}{1 -m+2m^2}=\dfrac78\\ &\iff 2m^2-5m-3=0\\ &\iff (2m+1)(m-3)=0. \end{align}
For $m=-\dfrac12$, $x^2=16$ while for $m=3$, we get $x^2=2$.
Thus, $(x,y) \in\{\,(4,-2),\,(-4,2),\,(\sqrt2,3\sqrt2),\,(-\sqrt2,-3\sqrt2)\,\}$.
Try adding one equation to the other: eqn. 1 + eqn.2 \begin{align*} (2x^2 + xy + y^2) + (x^2 - xy + 2y^2) &= 28 + 32\\ 3x^2+3y^2 &= 60\\ x^2 + y^2 &=20\tag{*} \end{align*}
And from linear algebra we now, that points $[x,y] \in \mathbb{R}^2$ which satisfy (*) are located on a circle with center in $[0,0]$ and radius $\sqrt{20}$.
Because general equation for a circle in plane is $$ (x-x_0)^2 + (y-y_0)^2 = r^2. $$
Where $[x_0,y_0] \in \mathbb{R}^2$ is the center of the circle and $r$ is radius.