Just as a point in the plane is pinned down by two numbers (x, y), a point in space is located by three numbers (x, y, z).
Adding just one more number for height, z, is like lifting a point off the floor and up into the air.
The distance between two points and the equation of a sphere both come straight from their flat, 2D versions: you simply add one more layer of z.
Drag the x, y, and z sliders to see where the point sits in space and the shadow (projection) it casts onto the coordinate plane, and use the radius r slider to watch the sphere grow and shrink.
3D Coordinate System
seegongsik.com
Point P(x,y,z) in space and projections onto axes
3
4
2
👀 Points in Space
①Point P(x,y,z) is determined by three coordinates
②Dashed lines are projections onto each axis and coordinate plane
③Shadow on xy-plane: (x,y,0)
④Shadow on z-axis: (0,0,z)
Distance Between Two Points
seegongsik.com
Distance and component decomposition between two points A, B in space
Distance Between Two Points in Space
d = √((x2−x1)² + (y2−y1)² + (z2−z1)²)
Pythagorean theorem extended to 3D
📐 Intuition for the Distance Formula
①2D distance formula: √(Δx² + Δy²)
②For 3D just add one Δz²
③Trace the right-angle path drawn with dashed lines
④Apply right triangle twice in order Δx → Δy → Δz
Equation of a Sphere
seegongsik.com
Sphere with center C(a,b,c) and radius r
3
Equation of a Sphere
(x−a)² + (y−b)² + (z−c)² = r²
Center C(a,b,c), radius r
🌐 What is a Sphere?
①Set of points equidistant (radius) from a fixed point (center)
②3D extension of the circle equation
③Expanded form: x² + y² + z² + Dx + Ey + Fz + G = 0
④Complete the square in the general form to find center and radius
Internal Division and Centroid
Internal Division (3D)
P = (nx1+mx2m+n, ny1+my2m+n, nz1+mz2m+n)
Point dividing segment AB in ratio m:n
Centroid of a Triangle
G = (x1+x2+x33, y1+y2+y33, z1+z2+z33)
Average of the three vertex coordinates
💡 Mnemonic for Division Point
①Same structure as the 2D division formula
②Just add one z-coordinate
③Midpoint is the special case m=n=1: average of coordinates
④Centroid: average of all three coordinates
Work It Out
Example 1
Find the distance between the two points A(1, 2, 3) and B(4, 6, 3).
1
Square the difference of each coordinate and add them.
AB = √((4−1)² + (6−2)² + (3−3)²)
2
Compute the sum of squares and take the square root.
AB = √(9 + 16 + 0) = √25 = 5
▸ 5
When the z-coordinates match, Δz=0 and it reduces to the 2D distance formula.
Example 2
Find the center and radius of the sphere x²+y²+z²−2x+4y−6z+5=0.