Vector form of equation of a sphere
Image

Let 'O' be the origin and OC = c.

Let P be any point on the sphere and OP = r

CP = a

| CP | = a

|r – c|2 = a2

r2 – 2r.c + c2 = a2