Let P(x,y,z) be any point of the set. The given points are A(4,0,0) and B(−4,0,0).
By the distance formula,
PA=(x−4)2+y2+z2
PB=(x+4)2+y2+z2
The given condition is PA+PB=10, so
(x−4)2+y2+z2+(x+4)2+y2+z2=10
Keep one square root on the left and move the other to the right side.
(x−4)2+y2+z2=10−(x+4)2+y2+z2
Squaring both sides (on the right, use (a−b)2=a2−2ab+b2),
(x−4)2+y2+z2=100−20(x+4)2+y2+z2+(x+4)2+y2+z2
Expanding the squares outside the root,
x2−8x+16+y2+z2=100−20(x+4)2+y2+z2+x2+8x+16+y2+z2
The terms x2, y2, z2 and 16 cancel from both sides.
−8x=100−20(x+4)2+y2+z2+8x
Now keep the remaining square root alone on one side.
20(x+4)2+y2+z2=16x+100
Dividing both sides by 4,
5(x+4)2+y2+z2=4x+25
Squaring both sides again,
25((x+4)2+y2+z2)=(4x+25)2
25(x2+8x+16+y2+z2)=16x2+200x+625
25x2+200x+400+25y2+25z2=16x2+200x+625
The term 200x cancels from both sides. Bringing all the terms to the left side,
25x2−16x2+25y2+25z2+400−625=0
9x2+25y2+25z2−225=0
Hence, the required equation of the set of points P is 9x2+25y2+25z2−225=0.