If $x+y=2$ and $x^2+y^2=2$, what is the value of $xy$?
Interesting problem that I have no idea how to solve.
I know you're supposed to show working but considering it's only:
$x = 2-y$ and subbing that into the second equation, I doubt it's relevant...
$\endgroup$ 35 Answers
$\begingroup$Note that $(x+y)^2 = x^2+y^2+2xy$. This means that: $$xy = \frac{(x+y)^2-(x^2+y^2)}{2}$$ So, it follows that: $$xy = \frac{2^2-2}{2} = 1$$
$\endgroup$ $\begingroup$Using the second equation
$x^2+y^2=x^2+y^2+2xy-2xy=(x+y)^2-2xy=2$
Using the first equation $$2^2-2xy=2$$
therefore $$xy=1$$
$\endgroup$ $\begingroup$The laziest way is to notice that you're given $\color{red}{x^2+y^2=2},\ \color{blue}{x+y=2}$ and that $(x+y)^2=x^2+y^2+2xy$.
So squaring $({x+y})^2$, we get$$\begin{align*} & (\color{blue}{x+y})^2=\color{red}{x^2+y^2}+2xy\\ & \implies 4=2+2xy\\ & \implies xy=1\end{align*}\tag1$$
$\endgroup$ $\begingroup$To continue your own method $$(2-y)^2+y^2=2$$ $$4-4y+2y^2=2$$ $$2-4y+2y^2=0$$ $$y^2-2y+1=0$$ $$(y-1)^2=0$$
Normally a quadratic would have two distinct solutions, but here $x$ and $y$ are forced to be equal. If there were two solutions the symmetry in the original equation would allow the values of $x$ and $y$ to be exchanged (here that changes nothing). But the symmetry does suggest that there will be ways of computing $xy$ without solving explicitly for $x$ and $y$ - in more complex situations (including problems with three or more variables) an explicit solution for the individual variables may be unwise, or even impossible.
$\endgroup$ $\begingroup$Let $A=xy$. Let's try your substitution approach: \begin{aligned} A&=xy=x(2-x)=2x-x^2;\\ A&=xy=(2-y)y=2y-y^2. \end{aligned} Thus, $$ 2A=2(x+y)-(x^2+y^2)=2\times2-2=2. $$ So $A=\ldots$?
$\endgroup$