Solid Geometry

Learning Objectives

  • Understand the three-dimensional coordinate system and octants.
  • Calculate distance and midpoints in 3D space.
  • Define and apply direction cosines and direction numbers.
  • Formulate the equations of lines and planes in space.
  • Calculate the perpendicular distance from a point to a plane.
  • Explore cylindrical and spherical coordinate systems.

Solid analytic geometry gracefully extends the established 2D principles of planar geometry out into the actual, physical three-dimensional space that we inhabit. By mathematically adding a third perpendicular axis (the zz-axis) to the standard xyxy-plane, we gain the powerful ability to rigorously describe the exact position of any point, trace the trajectory of any line, or define the curvature of complex surfaces mathematically in full 3D space using robust algebraic equations. This forms the absolute mathematical backbone of modern structural engineering software, 3D CAD modeling, and spatial vector analysis.

The 3D Coordinate System

The three-dimensional Cartesian coordinate system consists of three mutually perpendicular axes: the xx-axis, yy-axis, and zz-axis, which intersect at the origin O(0,0,0)O(0, 0, 0).

Interactive Simulation

Use the interactive simulation below to rotate, pan, and explore a point's coordinates and projections in the three-dimensional Cartesian space.

3D Rectangular Coordinates

Visualize coordinates $(x, y, z)$ and distance to the origin in three-dimensional space

3.0
4.0
5.0
d=x2+y2+z2=(3.0)2+(4.0)2+(5.0)2=7.07d = \sqrt{x^2 + y^2 + z^2} = \sqrt{(3.0)^2 + (4.0)^2 + (5.0)^2} = 7.07
Interactive Insights
Coordinates (x, y, z):(3.0, 4.0, 5.0)
Dist. to Origin (d):7.07 units
Octant Location:Octant I (All +)
Drag to rotate • Scroll to zoom

Coordinate Planes and Octants

  • Coordinate Planes: The three axes determine three mutually perpendicular planes: the xyxy-plane (where z=0z = 0), the xzxz-plane (where y=0y = 0), and the yzyz-plane (where x=0x = 0).
  • Octants: These three planes divide space into eight discrete geometric regions called octants. The "first octant" is the region where all three coordinates (x,y,zx, y, z) are strictly positive.
  • Coordinates: Any point PP in 3D space is formally represented by an ordered triple (x,y,z)(x, y, z), indicating its directed perpendicular distances from the yzyz, xzxz, and xyxy planes, respectively.

Distance and Midpoint in Space

The fundamental formulas for distance and midpoint in 3D are straightforward algebraic extensions of their 2D counterparts, derived directly by applying the Pythagorean theorem twice in perpendicular planes.

3D Distance Formula

Calculates the absolute straight-line distance between two points in space.

d=(x2x1)2+(y2y1)2+(z2z1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}

Variables

SymbolDescriptionUnit
dd3D Euclidean distance-
(x1,y1,z1)(x_1, y_1, z_1)Coordinates of the first point-
(x2,y2,z2)(x_2, y_2, z_2)Coordinates of the second point-

3D Midpoint Formula

Finds the exact geometric center of a 3D line segment.

M=(x1+x22,y1+y22,z1+z22)M = \left( \frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}, \frac{z_1 + z_2}{2} \right)

Variables

SymbolDescriptionUnit
MMCoordinates of the midpoint-
(x1,y1,z1)(x_1, y_1, z_1)First endpoint coordinates-
(x2,y2,z2)(x_2, y_2, z_2)Second endpoint coordinates-

Direction Cosines and Numbers

In 2D geometry, the "slope" (mm) is sufficient to define the direction of a line. In 3D space, a single slope is mathematically inadequate because a line can tilt in multiple planes simultaneously. Instead, the absolute direction of a line in space is rigorously defined by the three angles it makes with the three positive coordinate axes.

Direction Angles

Let a directed line segment from the origin make angles α,β,γ\alpha, \beta, \gamma with the positive xx, yy, and zz axes, respectively. These are the direction angles.

Direction Cosines

The trigonometric cosines of the three direction angles connecting the variables to 3D distance.

cosα=xd,cosβ=yd,cosγ=zd\cos \alpha = \frac{x}{d}, \quad \cos \beta = \frac{y}{d}, \quad \cos \gamma = \frac{z}{d}

Variables

SymbolDescriptionUnit
α,β,γ\alpha, \beta, \gammaDirection angles with the x, y, and z axes-
x,y,zx, y, zCoordinates of the point-
ddDistance from the origin-

Direction Cosines Identity

A fundamental geometric identity connecting the three values is that the sum of their squares is always exactly 1.

cos2α+cos2β+cos2γ=1\cos^2 \alpha + \cos^2 \beta + \cos^2 \gamma = 1

Variables

SymbolDescriptionUnit
α,β,γ\alpha, \beta, \gammaDirection angles with the x, y, and z axes-

Direction Numbers

Any set of three scalar numbers [A,B,C][A, B, C] that are strictly proportional to the line's true direction cosines. If P1(x1,y1,z1)P_1(x_1, y_1, z_1) and P2(x2,y2,z2)P_2(x_2, y_2, z_2) are two points on a line, a simple valid set of direction numbers is obtained by taking the coordinate differences: A=x2x1A = x_2 - x_1, B=y2y1B = y_2 - y_1, and C=z2z1C = z_2 - z_1. These numbers act as a directional vector.

Equations of a Plane

A flat plane in 3D space is mathematically determined by specifying a single point that lies on the plane and a directional vector that is perfectly perpendicular (called normal) to the entire surface of the plane.

Point-Normal Form of a Plane

Defines a plane using a point and a perpendicular normal vector.

A(xx1)+B(yy1)+C(zz1)=0A(x - x_1) + B(y - y_1) + C(z - z_1) = 0

Variables

SymbolDescriptionUnit
A,B,CA, B, CDirection numbers of the normal vector-
(x1,y1,z1)(x_1, y_1, z_1)A known point on the plane-
x,y,zx, y, zAny point on the plane-

Expanding the Point-Normal Form

Expanding the point-normal form algebraically yields the general equation of a plane. Notice it is simply a linear equation with three variables.

General Equation of a Plane

The standard expanded algebraic form.

Ax+By+Cz+D=0Ax + By + Cz + D = 0

Variables

SymbolDescriptionUnit
A,B,CA, B, CComponents of the normal vector-
DDA scalar constant-

Linear Equations in 3D

Linear Equations in 3D

In 3D solid geometry, any single, standalone linear equation involving x,y,x, y, and zz (such as 2x3y+z=52x - 3y + z = 5) ALWAYS graphically represents an infinite flat plane, NEVER a 1D line.

Interactive Simulation: 3D Plane Explorer

Use the 3D plane explorer below to see how any three non-collinear points uniquely define a flat plane. You can drag the three points in 3D to see how the normal vector and the equation Ax+By+Cz+D=0Ax + By + Cz + D = 0 are calculated dynamically.

Plane Defined by Three Points

x₁2.0
y₁1.0
z₁3.0
x₂-1.0
y₂3.0
z₂1.0
x₃1.0
y₃-2.0
z₃-1.0
Drag to rotate view • Scroll to zoom
1. Direction Vectors
v=P1P2=3.0,2.0,2.0\vec{v} = \overrightarrow{P_1P_2} = \langle -3.0, 2.0, -2.0 \ranglew=P1P3=1.0,3.0,4.0\vec{w} = \overrightarrow{P_1P_3} = \langle -1.0, -3.0, -4.0 \rangle
2. Normal Vector
n=v×w=A,B,C\vec{n} = \vec{v} \times \vec{w} = \langle A, B, C \ranglen=14.0,10.0,11.0\vec{n} = \langle -14.0, -10.0, 11.0 \rangle
3. Plane Equation
A(xx1)+B(yy1)+C(zz1)=0A(x - x_1) + B(y - y_1) + C(z - z_1) = 0
gives:
(14.0)x+(10.0)y+(11.0)z+(5.0)=0(-14.0)x + (-10.0)y + (11.0)z + (5.0) = 0

Equations of a Line in Space

A common conceptual pitfall when transitioning to solid geometry is attempting to define a line with a single algebraic equation. Because a true 1D line fundamentally represents the spatial intersection of two flat 2D planes, defining a line mathematically in 3D space requires a constrained system of multiple equations. We achieve this either by using a set of three independent parametric equations driven by a parameter tt, or by establishing an unbroken chain of symmetric algebraic ratios. Let a straight line pass through the known point P1(x1,y1,z1)P_1(x_1, y_1, z_1) and possess the direction numbers [A,B,C][A, B, C].

Parametric Equations of a Line

The coordinates are defined independently based on a parameter t.

x=x1+At,y=y1+Bt,z=z1+Ctx = x_1 + At, \quad y = y_1 + Bt, \quad z = z_1 + Ct

Variables

SymbolDescriptionUnit
x,y,zx, y, zCoordinates of any point on the line-
x1,y1,z1x_1, y_1, z_1A known point on the line-
A,B,CA, B, CDirection numbers of the line-
ttAn independent parameter-

Symmetric Equations of a Line

By algebraically solving each of the parametric equations for t and equating the results, we create a continuous chain of proportions.

xx1A=yy1B=zz1C\frac{x - x_1}{A} = \frac{y - y_1}{B} = \frac{z - z_1}{C}

Variables

SymbolDescriptionUnit
x,y,zx, y, zCoordinates of any point on the line-
x1,y1,z1x_1, y_1, z_1A known point on the line-
A,B,CA, B, CDirection numbers of the line-

Distance from a Point to a Plane

The geometrically perpendicular (and mathematically shortest absolute) scalar distance dd measured exactly from any external unattached spatial coordinate point specifically defined precisely as P(x1,y1,z1)P(x_1, y_1, z_1) strictly to the infinitely spanning mathematical surface completely defining a solid geometric plane, structured identically by the expanded linear 3D equation Ax+By+Cz+D=0Ax + By + Cz + D = 0, can be calculated rigorously by explicitly extending the standard 2D point-to-line projection absolute value formula completely into three dimensions using the plane's true defining directional normal vector.

Point-to-Plane Perpendicular Distance Formula

Accurately finds the shortest geometric distance separating a single external point directly from a completely flat 3D plane.

d=Ax1+By1+Cz1+DA2+B2+C2d = \frac{|Ax_1 + By_1 + Cz_1 + D|}{\sqrt{A^2 + B^2 + C^2}}

Variables

SymbolDescriptionUnit
ddTrue shortest perpendicular distance scalar value-
(x1,y1,z1)(x_1, y_1, z_1)Explicit 3D coordinate point existing completely outside the defined plane-
A,B,C,DA, B, C, DNumerical linear coefficients forming the general plane's surface equation-

Interactive Simulation: Line and Plane Intersection

Use the 3D visualizer below to see how a line and a plane intersect in 3D, and explore how the normal vector changes with coefficients.

Plane: Ax + By + Cz + D = 0

Line Parameter t

Intersection Point
I = (7.00, 5.00, -5.00)
(1.0)x+(1.0)y+(2.0)z+(2.0)=0(1.0)x + (1.0)y + (2.0)z + (-2.0) = 0Line: r(t)=2.0,1.0,4.0+t1.5,1.0,1.5\text{Line: } \vec{r}(t) = \langle -2.0, -1.0, 4.0 \rangle + t \langle 1.5, 1.0, -1.5 \rangle

Cylindrical and Spherical Coordinates

While the Cartesian (x,y,z)(x, y, z) system is standard, 3D space can also be represented using cylindrical and spherical coordinates, which are particularly advantageous for surfaces with specific symmetries.

Cylindrical Coordinates

Essentially polar coordinates extended vertically into 3D space.

x=rcosθ,y=rsinθ,z=zx = r \cos \theta, \quad y = r \sin \theta, \quad z = z

Variables

SymbolDescriptionUnit
x,y,zx, y, zCartesian coordinates-
rrRadial distance in the xy-plane-
θ\thetaAngle in the xy-plane-

Spherical Coordinates

Represents a point by distance from origin, azimuth, and zenith.

x=ρsinϕcosθ,y=ρsinϕsinθ,z=ρcosϕx = \rho \sin \phi \cos \theta, \quad y = \rho \sin \phi \sin \theta, \quad z = \rho \cos \phi

Variables

SymbolDescriptionUnit
x,y,zx, y, zCartesian coordinates-
ρ\rhoDistance from the origin-
θ\thetaAngle in the xy-plane (azimuth)-
ϕ\phiAngle from the positive z-axis (zenith)-

Interactive Simulation: 3D Coordinate Converter

Use the 3D converter below to see how Cartesian, Cylindrical, and Spherical coordinates correspond to one another dynamically in 3D.

Conversions
Cartesian (x,y,z):(3.0, 3.0, 3.0)
Cylindrical (r,θ,z):(4.2, 45°, 3.0)
Spherical (ρ,θ,φ):(5.2, 45°, 55°)
r=x2+y2=4.24,ρ=x2+y2+z2=5.20r = \sqrt{x^2+y^2} = 4.24, \quad \rho = \sqrt{x^2+y^2+z^2} = 5.20
Key Takeaways
  • 3D Coordinate System: Employs three perpendicular axes defining eight octants.
  • 3D Distance: Calculated via d=(Δx)2+(Δy)2+(Δz)2d = \sqrt{(\Delta x)^2 + (\Delta y)^2 + (\Delta z)^2}.
  • Direction Cosines: Define a line's orientation. The sum of their squares always strictly equals 1 (cos2α+cos2β+cos2γ=1\cos^2\alpha + \cos^2\beta + \cos^2\gamma = 1).
  • Planes: Represented mathematically by a single linear equation Ax+By+Cz+D=0Ax + By + Cz + D = 0, where the coefficients [A,B,C][A, B, C] directly form the perpendicular normal vector.
  • Lines: Cannot be represented by a single equation. Must be represented by a coordinated system of parametric or symmetric equations, requiring a passing point and a direction vector.