Solution 1
Starting with the given relationship between x x x and y y y and manipulating algebraically, we obtain successively 1 x + y a m p ; = 1 x − 1 y x y a m p ; = ( x + y ) y − ( x + y ) x (multiplying by x y ( x + y ) ) x y a m p ; = x y + y 2 − x 2 − x y x 2 + x y − y 2 a m p ; = 0 x 2 y 2 + x y − 1 a m p ; = 0 (dividing by y 2 which is non-zero) t 2 + t − 1 a m p ; = 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 am p ; = x 1 − y 1 am p ; = ( x + y ) y − ( x + y ) x (multiplying by x y ( x + y ) ) am p ; = x y + y 2 − x 2 − x y am p ; = 0 am p ; = 0 (dividing by y 2 which is non-zero) am p ; = 0 where t = x y t = \dfrac{x}{y} t = y x .
Since x gt;0 \text{x gt;0} x gt;0 and y gt;0 \text{y gt;0} y gt;0 , then t gt; 0 \text{t gt; 0} t gt; 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 gt;0 \text{t gt;0} t gt;0 , then x y = t = 5 − 1 2 \dfrac{x}{y} = t = \dfrac{\sqrt{5} - 1}{2} y x = t = 2 5 − 1 .
Therefore, ( x y + y x ) 2 a m p ; = ( 5 − 1 2 + 2 5 − 1 ) 2 a m p ; = ( 5 − 1 2 + 2 ( 5 + 1 ) ( 5 − 1 ) ( 5 + 1 ) ) 2 a m p ; = ( 5 − 1 2 + 2 ( 5 + 1 ) 4 ) 2 a m p ; = ( 5 − 1 2 + 5 + 1 2 ) 2 a m p ; = ( 5 ) 2 a m p ; = 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 am p ; = ( 2 5 − 1 + 5 − 1 2 ) 2 am p ; = ( 2 5 − 1 + ( 5 − 1 ) ( 5 + 1 ) 2 ( 5 + 1 ) ) 2 am p ; = ( 2 5 − 1 + 4 2 ( 5 + 1 ) ) 2 am p ; = ( 2 5 − 1 + 2 5 + 1 ) 2 am p ; = ( 5 ) 2 am p ; = 5
Solution 2
Since x,y gt; 0 \text{x,y gt; 0} x,y gt; 0 , the following equations are equivalent: 1 x + y a m p ; = 1 x − 1 y 1 a m p ; = x + y x − x + y y 1 a m p ; = x x + y x − x y − y y 1 a m p ; = 1 + y x − x y − 1 1 a m p ; = y x − x y − 1 a m p ; = 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 am p ; = x 1 − y 1 am p ; = x x + y − y x + y am p ; = x x + x y − y x − y y am p ; = 1 + x y − y x − 1 am p ; = x y − y x am p ; = 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