The centre of the sphere is the midpoint of the diameter
xC=2xA+xB=21−7=−3
yC=2yA+yB=24+1=2.5
zC=2zA+zB=2−2+2=0The center of the sphere is C=(−3,2.5,0).
The length of the diameter is
d=2r=(−7−1)2+(1−4)2+(2−(−2))2
=89So the radius of the sphere is 89/2.
The equation of the sphere is
(x+3)2+(y−2.5)2+z2=22.25
Comments