In this question , the given points are
[tex] P(-2,3,4), Q(8,-1,5) [/tex]
Center is at the midpoint of PQ . And to find the midpoint, we will use the following formula
[tex] ( \frac{x_{1}+x_{2}}{2}, \frac{y_{1} +y_{2}}{2} , \frac{z_{1}+z_{2}}{2} ) [/tex]
Substituting the points in the formula, we will get
[tex] (\frac{-2+8}{2}, \frac{3-1}{2}, \frac{4+5}{2} )= (3,1,4.5) [/tex]
And PQ gives the diameter, and to find the length of diameter, we will use the following formula
[tex] d = \sqrt{ (x_{2} -x_{1})^2 + (y_{2} -y_{1})^2 + (z_{2} - z_{1})^2} [/tex]
Substituting the given values, we will get
[tex] d = \sqrt{ (8+2)^2 + (-1-3)^2 + (5-4)^2} = \sqrt{100 + 16+1} = \sqrt{117} = 3 \sqrt{13} [/tex]
Radius is half of diameter, that is
[tex] r = \frac{3 \sqrt{13}}{2} [/tex]
Now we use the equation of sphere, which is
[tex] (x-x_{0})^2 + (y-y_{0})^2 + (z-z_{0})^2 = r^2 [/tex]
[tex] (x-3)^2 + (y-1)^2 + (z-4.5)^2 = ( \frac{3 \sqrt{13}}{2} )^2 \\ (x-3)^2 + (y-1)^2 + (z-4.5)^2 = \frac{117}{4} [/tex]