Let the moving point be P(x,y). We first write the square of its distance from each of the four given points.
Distance-square from (0,0) is x2+y2.
Distance-square from (1,0) is (x−1)2+y2.
Distance-square from (0,1) is x2+(y−1)2.
Distance-square from (1,1) is (x−1)2+(y−1)2.
The question states that the sum of these four expressions equals 18. Hence we have
x2+y2+(x−1)2+y2+x2+(y−1)2+(x−1)2+(y−1)2=18.
Now we expand every bracket carefully:
x2+y2+x2−2x+1+y2+x2+y2−2y+1+x2−2x+1+y2−2y+1=18.
Next we collect like terms.
• For x2: there are four of them, so 4x2.
• For y2: again four of them, so 4y2.
• For x: the coefficients are −2x−2x=−4x.
• For y: the coefficients are −2y−2y=−4y.
• Constant terms: 1+1+1+1=4.
Therefore the equation becomes
4x2+4y2−4x−4y+4=18.
We divide the whole equation by 4 to simplify:
x2+y2−x−y+1=418=4.5.
So
x2−x+y2−y=4.5−1=3.5.
To recognise the locus, we complete the square in both x and y.
We recall the algebraic identity a2−2ab+b2=(a−b)2.
For completing the square in an expression of the form u2−u, we add and subtract (21)2=0.25.
We add 0.25 for the x-terms and another 0.25 for the y-terms on both sides:
x2−x+0.25+y2−y+0.25=3.5+0.25+0.25.
Simplifying each side gives
(x−0.5)2+(y−0.5)2=4.
This is the standard form of the equation of a circle: (x−h)2+(y−k)2=r2, where (h,k) is the centre and r the radius. Comparing, we have centre (0.5,0.5) and radius r=2 because r^{2}=4.$</p>
<p>The diameterdofthecircleistwicetheradius:</p><p>d=2r=2\times2=4.</p><p>Finally,thesquareofthediameteris</p><p>d^{2}=4^{2}=16.</p><p>So,theansweris16$$.