You enteredsphere with diameter from (0,0,0) to (2,0,0)
(x−1)2+y2+z2=1 Centre and radius
Centre (1,0,0), radius 1 General form
x2+y2+z2−2x=0 Show the work
- 1
Midpoint of the diameter
The centre of a sphere is the midpoint of any diameter. Average the matching coordinates of the two end points.
Using C=(2x1+x2, 2y1+y2, 2z1+z2)
C=21((0,0,0)+(2,0,0))=(1,0,0) - 2
Radius from the diameter
The radius is half the length of the diameter, so the squared radius is a quarter of the squared distance between the end points.
r2=4∣P2−P1∣2=422+02+02=44=1 - 3
Equation of a sphere
Put the centre and the squared radius into the standard form.
Using (x−a)2+(y−b)2+(z−c)2=r2
(x−1)2+y2+z2=1 - 4
Result
So the sphere is (x−1)2+y2+z2=1.