Spheres
Around the ship is a shield, a bubble that reaches 3 thousand kilometres out in every direction. That is a sphere: all the points at one distance, the radius, from one point, the centre.
The equation
With the centre S(1, −2, 0) and the radius 3, a point (x, y, z) is on the sphere when its distance to S is 3, as in The length of a vector. Square both sides to get rid of the root:
The centre can be read off with the signs turned round, and the radius is the root of the right side.
Finding the centre
Often the brackets are multiplied out:
To find the centre, complete the square for each letter, as in Completing the square. x squared minus 2 x is the quantity x minus 1, squared minus 1, and y squared plus 4 y is the quantity y plus 2, squared minus 4. Putting those in, the numbers on their own add up to minus 9, and moved across, that gives back the quantity x minus 1, squared plus the quantity y plus 2, squared plus z squared equals 9: the centre S(1, −2, 0) and the radius 3.
Touching a plane
The shield just touches the sail when the distance from its centre to the sail's plane is exactly its radius. Further away, they miss each other; closer, the plane cuts through the shield.
With a letter in the equation, that gives an equation to solve. For which k does
touch the plane 2 x minus 5 y plus 4 z plus 4 equals 0? The centre is S(0, 9, −1), and the right side is the radius squared. By The distance from a point to a plane, the distance from S is 45 over the square root of 45, which is the square root of 45, and its square is 45. So 82 minus k equals 45, and k equals 37.
A sphere with centre (a, b, c) and radius r is (x − a)² + (y − b)² + (z − c)² = r². Complete the squares to find them. It touches a plane when the distance from its centre is r.