I'm working through the following question:
Show that if $A(x_{1}, y_{1})$ and $B(x_{2}, y_{2})$ are at opposite ends of a diameter of a circle then the equation of the circle is:
$$(x − x_{1})(x − x_{2}) + (y − y_{1})(y − y_{2}) = 0$$
Source: http://www.personal.soton.ac.uk/jav/soton/HELM/workbooks/workbook_2/2_6_circle.pdf
I was thinking that for the points to be at opposite ends of the diameter of a circle, the following must be true:
$$(x - x_{1})^{2} + (y - y_{1})^{2} = R^{2} = (x - x_{2})^{2} + (y - y_{2})^{2}$$
However, my expression above expands to:
$$\begin{equation*}- 2 x x_{1} + 2 x x_{2} + x_{1}^{2} - x_{2}^{2} - 2 y y_{1} + 2 y y_{2} + y_{1}^{2} - y_{2}^{2}\end{equation*}$$
... and the expression in the question expands to:
$$\begin{equation*}x^{2} - x x_{1} - x x_{2} + x_{1} x_{2} + y^{2} - y y_{1} - y y_{2} + y_{1} y_{2}\end{equation*}$$
Where am I going wrong?
Simple answers will be preferred over complex ones.