Vectors and Geometry of Space
Vectors describe magnitude and direction. In space, they provide the language for lines, planes, distances, projections, angles, areas, and volumes. Calculus in several variables depends on this geometry because gradients, vector fields, tangent planes, and surface integrals all use vector operations.
The main shift from two-dimensional coordinate geometry is that equations are often not unique. A line in space needs a point and a direction vector. A plane needs a point and a normal vector. Vector notation keeps those relationships organized.
Definitions
A vector in is
Its magnitude is
The dot product is
It also satisfies
The cross product is
It is perpendicular to both and , and its magnitude is
A line through point with direction is
A plane through point with normal vector is
Key results
The angle between nonzero vectors is determined by
Vectors are orthogonal exactly when their dot product is zero.
The projection of onto is
The scalar component of in the direction of is
The area of the parallelogram spanned by and is
The volume of the parallelepiped spanned by , , and is
The distance from point to the plane
is
This formula is projection of the point-plane displacement onto the unit normal.
Quadric surfaces extend conics into space. Ellipsoids, paraboloids, hyperboloids, cones, and cylinders are recognized by squared variables and signs. Cross-sections, traces, and symmetry help identify their shapes.
The dot product detects how much one vector points in another vector's direction. If , the angle is acute. If it is negative, the angle is obtuse. If it is zero, the vectors are perpendicular. This sign information is often enough for geometry problems before calculating the actual angle.
The cross product encodes orientation as well as area. Its direction is determined by the right-hand rule. Reversing the order reverses the direction:
This matters in torque, normal vectors, and surface orientation in vector calculus.
Lines in space may intersect, be parallel, or be skew. Skew lines are nonparallel lines that do not intersect; this cannot happen in the plane but is common in three dimensions. To test intersection, set the parametric coordinates equal and solve for the parameters. If no common parameters exist and direction vectors are not parallel, the lines are skew.
Planes can be parallel, identical, or intersect in a line. Two planes with normals and are parallel when the normals are scalar multiples. If the normals are not parallel, the direction of their line of intersection is
Distance formulas are projection formulas. The distance from a point to a line can be written
where is a point on the line and is a direction vector. The numerator is the area of a parallelogram; dividing by the base length gives the height, which is the perpendicular distance.
Coordinate surfaces provide quick orientation. Equations such as , , and are planes parallel to coordinate planes. Equations such as describe circular cylinders around the -axis because is unrestricted. Recognizing unrestricted variables helps identify cylinders and extruded surfaces.
Vector equations are often easier to translate after identifying what must be parallel or perpendicular. A line's direction vector is parallel to the line. A plane's normal vector is perpendicular to every direction lying in the plane. If two nonparallel vectors lie in a plane, their cross product gives a normal vector for the plane.
The scalar triple product has a sign as well as a magnitude. The sign indicates orientation of the ordered triple . If the scalar triple product is zero, the three vectors are coplanar, so the parallelepiped volume is zero. This provides a compact test for whether four points lie in the same plane: form three displacement vectors from one point and compute the scalar triple product.
Projections split a vector into parallel and perpendicular parts:
The first part lies along , and the second part is orthogonal to . This decomposition is the geometric heart of least squares, work as force along displacement, and distance formulas.
Spheres have equation
The center is and radius is . Completing squares in three variables reveals this form, just as in two-dimensional circles.
Coordinate choices can simplify computations. If a problem involves a plane with normal , using components parallel and perpendicular to often reduces the geometry to one projection. If a problem involves a line, decomposing a vector into parts parallel and perpendicular to the line usually reveals distances and closest points.
The algebra should always match the dimension. Two equations usually describe a curve in space, often the intersection of two surfaces. One equation usually describes a surface. Three independent equations usually identify isolated points. This differs from the plane, where one equation usually describes a curve.
Visual
| Operation | Formula | Geometric meaning |
|---|---|---|
| Magnitude | length | |
| Dot product | angle and projection | |
| Cross product | perpendicular vector and area | |
| Scalar triple product | signed volume | |
| Line | point plus direction | |
| Plane | point plus normal |
n
^
| plane: n dot (r-r0)=0
|
------*----------------
r0
line: r(t)=r0+t v moves from r0 in direction v
Worked example 1: equation of a plane
Problem. Find the plane through with normal vector
Then decide whether lies on the plane.
Method.
- Use the point-normal form:
- Let and :
- Compute the dot product:
- Expand:
- Simplify:
- Test :
Checked answer. The plane is . Since substituting gives , the point is not on the plane.
Worked example 2: projection and distance to a plane
Problem. Find the distance from to the plane
Method.
- Identify
- Substitute the point into the numerator:
- Compute the normal magnitude:
- Divide:
Checked answer. The point is units from the plane. The formula uses perpendicular distance because the shortest path to a plane is along its normal vector.
This distance is positive by definition. The signed numerator
also tells which side of the oriented plane the point lies on if the normal is chosen as positive. Signed distance is useful in geometry and numerical methods, but ordinary distance uses absolute value.
As another check, the denominator is the length of the normal vector, not the length of a point coordinate. Forgetting this division would measure displacement along a non-unit normal and overstate the actual perpendicular distance.
The closest point on the plane can be found by moving from in the normal direction by the signed distance measured in normal units. That construction is a projection problem, which is why the same dot product appears in both projection and distance formulas.
Because normals can be scaled without changing the plane, formulas must either use ratios or divide by the normal length. The plane has the same points as , and the distance formula gives the same answer only because numerator and denominator scale together.
Code
from math import sqrt
def dot(u, v):
return sum(a*b for a, b in zip(u, v))
def cross(u, v):
return (
u[1]*v[2] - u[2]*v[1],
u[2]*v[0] - u[0]*v[2],
u[0]*v[1] - u[1]*v[0],
)
def norm(v):
return sqrt(dot(v, v))
print(dot((3, -1, 4), (1, -1, 1)))
print(cross((1, 0, 0), (0, 1, 0)))
print(norm((2, -1, 2)))
Common pitfalls
- Confusing a direction vector for a line with a normal vector for a plane.
- Forgetting that the cross product is defined only in three dimensions in this elementary form.
- Reversing cross product order. .
- Using a non-unit normal in a distance formula without dividing by its magnitude.
- Treating skew lines in space as if they must intersect.
- Misclassifying quadric surfaces without checking traces in coordinate planes.
Connections
- Parametric Polar and Conic Curves: space curves extend parametric ideas.
- Vector Functions and Motion: derivatives of vector-valued functions describe motion.
- Partial Derivatives and the Gradient: gradients are normal vectors to level surfaces.
- Vector Calculus: dot and cross products support line, surface, flux, and circulation integrals.