Solution 1
Starting with the given relationship between x x x and y y y and manipulating algebraically, we obtain successively 1 x + y = 1 x − 1 y x y = ( x + y ) y − ( x + y ) x (multiplying by x y ( x + y ) ) x y = x y + y 2 − x 2 − x y x 2 + x y − y 2 = 0 x 2 y 2 + x y − 1 = 0 (dividing by y 2 which is non-zero) t 2 + t − 1 = 0 \begin{align*}
\dfrac{1}{x+y} & = \dfrac{1}{x} - \dfrac{1}{y} \\
xy & = (x+y)y - (x+y)x \qquad \text{(multiplying by $xy(x+y)$)}\\
xy & = xy + y^2 - x^2 - xy \\
x^2 + xy - y^2 & = 0 \\
\dfrac{x^2}{y^2} + \dfrac{x}{y} - 1 & = 0 \qquad\text{(dividing by
$y^2$ which is non-zero)}\\
t^2 + t - 1 & = 0\end{align*} x + y 1 x y x y x 2 + x y − y 2 y 2 x 2 + y x − 1 t 2 + t − 1 = x 1 − y 1 = ( x + y ) y − ( x + y ) x (multiplying by x y ( x + y ) ) = x y + y 2 − x 2 − x y = 0 = 0 (dividing by y 2 which is non-zero) = 0 where t = x y t = \dfrac{x}{y} t = y x .
Since x > 0 x>0 x > 0 and y > 0 y>0 y > 0 , then t > 0 t > 0 t > 0 . Using the quadratic formulat = − 1 ± 1 2 − 4 ( 1 ) ( − 1 ) 2 = − 1 ± 5 2 t = \dfrac{-1 \pm \sqrt{1^2 - 4(1)(-1)}}{2}
= \dfrac{-1 \pm \sqrt{5}}{2} t = 2 − 1 ± 1 2 − 4 ( 1 ) ( − 1 ) = 2 − 1 ± 5 Since t > 0 t>0 t > 0 , then $ x y \$\dfrac{x}{y} $ y x = t = 5 \text{5} 5 - 1}{2}$.
Therefore, ( x y + y x ) 2 = ( 5 − 1 2 + 2 5 − 1 ) 2 = ( 5 − 1 2 + 2 ( 5 + 1 ) ( 5 − 1 ) ( 5 + 1 ) ) 2 = ( 5 − 1 2 + 2 ( 5 + 1 ) 4 ) 2 = ( 5 − 1 2 + 5 + 1 2 ) 2 = ( 5 ) 2 = 5 \begin{align*}
\left(\dfrac{x}{y} + \dfrac{y}{x}\right)^2
& = \left( \dfrac{\sqrt{5} - 1}{2} + \dfrac{2}{\sqrt{5} - 1}
\right)^2 \\
& = \left( \dfrac{\sqrt{5} - 1}{2} + \dfrac{2(\sqrt{5}+1)}{(\sqrt{5}
- 1)(\sqrt{5}+1)} \right)^2 \\
& = \left( \dfrac{\sqrt{5} - 1}{2} + \dfrac{2(\sqrt{5}+1)}{4}
\right)^2 \\
& = \left( \dfrac{\sqrt{5} - 1}{2} + \dfrac{\sqrt{5}+1}{2} \right)^2
\\
& = (\sqrt{5})^2 \\
& = 5\end{align*} ( y x + x y ) 2 = ( 2 5 − 1 + 5 − 1 2 ) 2 = ( 2 5 − 1 + ( 5 − 1 ) ( 5 + 1 ) 2 ( 5 + 1 ) ) 2 = ( 2 5 − 1 + 4 2 ( 5 + 1 ) ) 2 = ( 2 5 − 1 + 2 5 + 1 ) 2 = ( 5 ) 2 = 5
Solution 2
Since x , y > 0 x,y > 0 x , y > 0 , the following equations are equivalent: 1 x + y = 1 x − 1 y 1 = x + y x − x + y y 1 = x x + y x − x y − y y 1 = 1 + y x − x y − 1 1 = y x − x y − 1 = x y − y x \begin{align*}
\dfrac{1}{x+y} & = \dfrac{1}{x} - \dfrac{1}{y} \\
1 & = \dfrac{x+y}{x} - \dfrac{x+y}{y} \\
1 & = \dfrac{x}{x} + \dfrac{y}{x} - \dfrac{x}{y} - \dfrac{y}{y} \\
1 & = 1 + \dfrac{y}{x} - \dfrac{x}{y} - 1 \\
1 & = \dfrac{y}{x} - \dfrac{x}{y} \\
-1 & = \dfrac{x}{y} - \dfrac{y}{x}\end{align*} x + y 1 1 1 1 1 − 1 = x 1 − y 1 = x x + y − y x + y = x x + x y − y x − y y = 1 + x y − y x − 1 = x y − y x = y x − x y Therefore,( x y + y x ) 2 = x 2 y 2 + 2 ⋅ x y ⋅ y x + y 2 x 2 = x 2 y 2 + 2 + y 2 x 2 = x 2 y 2 − 2 + y 2 x 2 + 4 = x 2 y 2 − 2 ⋅ x y ⋅ y x + y 2 x 2 + 4 = ( x y − y x ) 2 + 4 = ( − 1 ) 2 + 4 = 5 \begin{align*}
\left(\dfrac{x}{y} + \dfrac{y}{x}\right)^2
& = \dfrac{x^2}{y^2} + 2\cdot\dfrac{x}{y} \cdot\dfrac{y}{x} +
\dfrac{y^2}{x^2} \\
& = \dfrac{x^2}{y^2} + 2 + \dfrac{y^2}{x^2} \\
& = \dfrac{x^2}{y^2} - 2 + \dfrac{y^2}{x^2} + 4 \\
& = \dfrac{x^2}{y^2} - 2\cdot\dfrac{x}{y} \cdot\dfrac{y}{x} +
\dfrac{y^2}{x^2} + 4 \\
& = \left(\dfrac{x}{y} - \dfrac{y}{x}\right)^2 + 4\\
& = (-1)^2 + 4 \\
& = 5\end{align*} ( y x + x y ) 2 = y 2 x 2 + 2 ⋅ y x ⋅ x y + x 2 y 2 = y 2 x 2 + 2 + x 2 y 2 = y 2 x 2 − 2 + x 2 y 2 + 4 = y 2 x 2 − 2 ⋅ y x ⋅ x y + x 2 y 2 + 4 = ( y x − x y ) 2 + 4 = ( − 1 ) 2 + 4 = 5