lesson

Several Variables · Intermediate Undergraduate

Vectors and Geometry in Space

Use vectors, dot products, cross products, lines, planes, and vector functions to describe three-dimensional geometry.

Three-dimensional geometry becomes systematic when positions, displacements, directions, and orientations are represented by vectors. Coordinates describe where a point is, while vectors describe directed changes that can be translated without changing their components. Dot products measure alignment, and cross products construct perpendicular directions and oriented areas. Parametric equations describe lines and curves, while normal equations describe planes. This lesson joins algebraic calculations with geometric meaning so each formula can be reconstructed rather than merely recalled.

Distinguish points, position vectors, and free vectors

A point P(x,y,z)P(x,y,z) identifies a location in a chosen Cartesian coordinate system. Its coordinates are ordered, so changing their order generally changes the location. A position vector p=x,y,z\mathbf p=\langle x,y,z\rangle points from the origin to PP. Bold lowercase notation indicates a vector, while an uppercase letter commonly names a point. The identification between a point and its position vector is convenient but should not erase their conceptual difference.

A free vector represents magnitude and direction without requiring one fixed starting point. The vector v=v1,v2,v3\mathbf v=\langle v_1,v_2,v_3\rangle can be drawn from many locations. Translating the arrow without rotating or stretching it preserves the same vector. Its components tell how far to move along the coordinate axes. Unlike a point, a free vector naturally represents velocity, force, displacement, or a direction.

The standard basis vectors are i=1,0,0\mathbf i=\langle1,0,0\rangle, j=0,1,0\mathbf j=\langle0,1,0\rangle, and k=0,0,1\mathbf k=\langle0,0,1\rangle. Any vector can be written v=v1i+v2j+v3k\mathbf v=v_1\mathbf i+v_2\mathbf j+v_3\mathbf k. Each scalar coefficient specifies the contribution in one coordinate direction. This basis expansion and the angle-bracket form contain the same information. Moving between them prepares the reader for componentwise calculations.

Form displacement and calculate length

The displacement from point PP to point QQ is PQ=qp\overrightarrow{PQ}=\mathbf q-\mathbf p. The order matters because the arrow begins at PP and ends at QQ. Reversing the endpoints gives QP=PQ\overrightarrow{QP}=-\overrightarrow{PQ}. Subtraction occurs component by component. A quick check is that p+PQ=q\mathbf p+\overrightarrow{PQ}=\mathbf q.

For P(1,2,3)P(1,-2,3) and Q(5,1,1)Q(5,1,-1), the displacement is 51,1(2),13=4,3,4\langle5-1,1-(-2),-1-3\rangle=\langle4,3,-4\rangle. The first component records four units of positive xx movement. The second records three units of positive yy movement. The third records four units in the negative zz direction. Keeping subtraction parentheses around negative coordinates prevents sign errors.

The magnitude of v\mathbf v is v=v12+v22+v32\|\mathbf v\|=\sqrt{v_1^2+v_2^2+v_3^2}. Double bars denote vector length rather than absolute value of a scalar. For the displacement above, the distance is 42+32+(4)2=41\sqrt{4^2+3^2+(-4)^2}=\sqrt{41} coordinate units. Squaring makes every component contribute nonnegatively. The formula is the three-dimensional Pythagorean theorem.

Points P and Q are connected by a displacement vector whose components form a three-dimensional right-angle construction.

Normalize a vector to preserve direction

A unit vector has magnitude one. For nonzero v\mathbf v, its normalized form is v^=vv\widehat{\mathbf v}=\dfrac{\mathbf v}{\|\mathbf v\|}. The hat marks a unit direction. Dividing every component by the same positive length preserves direction. Normalization removes magnitude while retaining orientation.

For v=4,3,4\mathbf v=\langle4,3,-4\rangle, the unit vector is 441,341,441\left\langle\dfrac{4}{\sqrt{41}},\dfrac{3}{\sqrt{41}},\dfrac{-4}{\sqrt{41}}\right\rangle. Its squared magnitude is 16+9+1641=1\dfrac{16+9+16}{41}=1. That calculation verifies normalization. The negative sign belongs to the third component and indicates orientation. A zero vector cannot be normalized because its length is zero.

Unit vectors separate a direction from a chosen scale. A velocity can be written as speed multiplied by a unit direction. A line can use any nonzero scalar multiple of its direction vector without changing the set of points. Directional derivatives require a unit vector so the result is a rate per unit distance. Asking whether normalization is needed depends on how the vector will be used.

Use the dot product to measure alignment

The component definition of the dot product is uv=u1v1+u2v2+u3v3\mathbf u\cdot\mathbf v=u_1v_1+u_2v_2+u_3v_3. The centered dot denotes multiplication-and-summation rather than an ordinary product of vector objects. The result is a scalar. Matching components are multiplied, and their products are added. This construction makes the dot product symmetric, so uv=vu\mathbf u\cdot\mathbf v=\mathbf v\cdot\mathbf u.

Geometrically, uv=uvcosθ\mathbf u\cdot\mathbf v=\|\mathbf u\|\|\mathbf v\|\cos\theta, where θ\theta is the smaller angle between nonzero vectors. A positive dot product corresponds to an acute angle. A negative value corresponds to an obtuse angle. A zero value corresponds to perpendicular vectors. The formula converts between components and angular geometry.

For u=1,0,1\mathbf u=\langle1,0,1\rangle and v=1,1,0\mathbf v=\langle1,1,0\rangle, the dot product is 11. Both magnitudes equal 2\sqrt2. Thus cosθ=122=12\cos\theta=\dfrac{1}{\sqrt2\sqrt2}=\dfrac12, so θ=π3\theta=\dfrac{\pi}{3} radians. The angle is 6060 degrees, which agrees with a positive dot product. Substitution into both definitions confirms the same geometric relationship.

Construct scalar and vector projections

The scalar component of v\mathbf v along nonzero u\mathbf u is compuv=vuu\operatorname{comp}_{\mathbf u}\mathbf v=\dfrac{\mathbf v\cdot\mathbf u}{\|\mathbf u\|}. It measures signed length in the u\mathbf u direction. A negative result means the component points opposite u\mathbf u. A zero result means the vectors are perpendicular. This quantity is scalar and therefore contains no complete direction vector.

The vector projection is projuv=vuuuu\operatorname{proj}_{\mathbf u}\mathbf v=\dfrac{\mathbf v\cdot\mathbf u}{\mathbf u\cdot\mathbf u}\mathbf u. The fraction supplies the scaling applied to u\mathbf u. Since uu=u2\mathbf u\cdot\mathbf u=\|\mathbf u\|^2, the formula automatically accounts for a nonunit direction. The projected vector is parallel to u\mathbf u. Subtracting it from v\mathbf v leaves a component perpendicular to u\mathbf u.

Projection supports geometric decomposition. Write v=v+v\mathbf v=\mathbf v_{\parallel}+\mathbf v_{\perp}, where v=projuv\mathbf v_{\parallel}=\operatorname{proj}_{\mathbf u}\mathbf v. Then v=vv\mathbf v_{\perp}=\mathbf v-\mathbf v_{\parallel}. Checking vu=0\mathbf v_{\perp}\cdot\mathbf u=0 verifies the decomposition. Work, force components, least squares, and distance calculations all reuse this same idea.

A vector is decomposed into a projection parallel to another vector and a perpendicular residual.

Build perpendicular directions with the cross product

For vectors in R3\mathbb R^3, the cross product u×v\mathbf u\times\mathbf v is perpendicular to both inputs. Its magnitude is u×v=uvsinθ\|\mathbf u\times\mathbf v\|=\|\mathbf u\|\|\mathbf v\|\sin\theta. Unlike the dot product, its result is a vector. Reversing order reverses direction, so v×u=(u×v)\mathbf v\times\mathbf u=-(\mathbf u\times\mathbf v). The right-hand rule selects the orientation.

In components, u×v=u2v3u3v2,u3v1u1v3,u1v2u2v1\mathbf u\times\mathbf v=\langle u_2v_3-u_3v_2,u_3v_1-u_1v_3,u_1v_2-u_2v_1\rangle. The alternating signs encode orientation. A determinant mnemonic can organize the calculation, but the component result should still be checked. Dotting the answer with each input must give zero. These orthogonality checks catch many sign mistakes.

The magnitude equals the area of the parallelogram spanned by the two vectors. Half that magnitude gives the area of the corresponding triangle. Parallel vectors have sine zero and therefore a zero cross product. Perpendicular vectors maximize the area for fixed lengths. The cross product thus combines a normal direction with an oriented area scale.

Parameterize a line in space

A line through position r0\mathbf r_0 with nonzero direction v\mathbf v is r(t)=r0+tv\mathbf r(t)=\mathbf r_0+t\mathbf v. The parameter tt ranges over real numbers. At t=0t=0, the expression gives the base point. Increasing tt moves in the direction of v\mathbf v. Negative values move in the opposite direction along the same line.

Through P(2,1,3)P(2,-1,3) parallel to v=4,0,2\mathbf v=\langle4,0,-2\rangle, the line is r(t)=2,1,3+t4,0,2\mathbf r(t)=\langle2,-1,3\rangle+t\langle4,0,-2\rangle. Component equations are x=2+4tx=2+4t, y=1y=-1, and z=32tz=3-2t. These equations describe the same set of points. The constant yy coordinate reflects the zero second component of the direction vector. Setting t=0t=0 verifies that the parameterization contains the required point.

Many parameterizations represent the same line. Changing the base point to another point on the line preserves the geometric set. Multiplying the direction by any nonzero scalar also preserves it while changing parameter speed or orientation. Two lines are parallel when their direction vectors are scalar multiples. Equality of formulas is less important than equality of represented point sets.

Describe a plane with a normal vector

A plane through r0\mathbf r_0 with nonzero normal n\mathbf n satisfies n(rr0)=0\mathbf n\cdot(\mathbf r-\mathbf r_0)=0. The difference rr0\mathbf r-\mathbf r_0 is a displacement lying within the plane. Its dot product with the normal is zero because they are perpendicular. This equation encodes infinitely many in-plane displacement vectors at once. A direction vector alone cannot define a unique plane.

For point P(1,0,2)P(1,0,2) and normal n=2,1,3\mathbf n=\langle2,-1,3\rangle, the equation is 2(x1)y+3(z2)=02(x-1)-y+3(z-2)=0. Expanding gives 2xy+3z=82x-y+3z=8. The coefficients of xx, yy, and zz are the normal components. Substituting the known point gives 20+6=82-0+6=8, verifying incidence. Multiplying the entire equation by a nonzero constant describes the same plane.

A plane can also be constructed from two nonparallel in-plane directions u\mathbf u and v\mathbf v. Their cross product provides a normal n=u×v\mathbf n=\mathbf u\times\mathbf v. If the cross product is zero, the directions are parallel and do not determine a unique plane. Once a normal and a point are known, the normal equation completes the construction. This workflow makes the role of every vector explicit.

A plane contains two direction vectors while their cross product forms a normal perpendicular to the plane.

Measure distances to lines and planes

Distance is the length of the shortest connecting displacement. From point PP to a plane nr=d\mathbf n\cdot\mathbf r=d, project the point’s signed displacement onto the normal. The distance is D=npdnD=\dfrac{|\mathbf n\cdot\mathbf p-d|}{\|\mathbf n\|}. Absolute value removes orientation because geometric distance is nonnegative. Dividing by normal length makes the result independent of how the plane equation was scaled.

For plane 2xy+3z=82x-y+3z=8 and point Q(0,1,0)Q(0,1,0), the numerator is 2(0)1+3(0)8=9|2(0)-1+3(0)-8|=9. The normal length is 22+(1)2+32=14\sqrt{2^2+(-1)^2+3^2}=\sqrt{14}. Therefore the distance is 9/149/\sqrt{14} coordinate units. Substitution keeps every sign visible. A result with units squared would reveal a missing square root or normalization.

Distance from a point to a line can be found through a perpendicular component. If the line passes through P0P_0 with direction v\mathbf v, form displacement w=P0Q\mathbf w=\overrightarrow{P_0Q}. Remove its projection along v\mathbf v. The residual wprojvw\mathbf w-\operatorname{proj}_{\mathbf v}\mathbf w is perpendicular to the line. Its magnitude is the shortest distance.

Find intersections and diagnose relative position

To intersect a line with a plane, substitute the line parameterization into the plane equation. The resulting scalar equation determines the parameter value. One solution gives one intersection point. No solution indicates that the line is parallel and separate. An identity indicates that the entire line lies in the plane.

Two planes with nonparallel normals intersect in a line. A direction for that line is the cross product of their normals. One point on the line can be found by solving both plane equations together with a convenient coordinate choice. Parallel normals indicate parallel or coincident planes. Comparing their constants after consistent scaling distinguishes those cases.

Two lines in three-dimensional space may intersect, be parallel, or be skew. Skew lines are neither parallel nor intersecting. Solving their three component equations with two parameters tests consistency. Agreement in only two coordinates is insufficient. Three-dimensional visualization becomes reliable when supported by this algebraic test.

Represent curves with vector-valued functions

A vector-valued function r(t)=x(t),y(t),z(t)\mathbf r(t)=\langle x(t),y(t),z(t)\rangle traces a curve as tt changes. The parameter may represent time, but it can represent any ordered progression. Differentiation occurs componentwise. Thus r(t)=x(t),y(t),z(t)\mathbf r'(t)=\langle x'(t),y'(t),z'(t)\rangle. When tt is time, this derivative is velocity.

Speed is the magnitude r(t)\|\mathbf r'(t)\|. Velocity retains direction, while speed is a nonnegative scalar. Acceleration is r(t)\mathbf r''(t). A particle can maintain constant speed while its velocity changes direction. Uniform circular motion provides the standard example because its acceleration points inward.

The arc length from t=at=a to t=bt=b is L=abr(t)dtL=\int_a^b\|\mathbf r'(t)\|\,dt. The integrand is speed with respect to the parameter. Multiplying it by a small parameter interval estimates a small traveled distance. Integration accumulates those distances along the curve. The magnitude prevents opposite component changes from canceling traveled length.

Analyze a helix as a complete example

Consider r(t)=Rcost,Rsint,ct\mathbf r(t)=\langle R\cos t,R\sin t,ct\rangle, where RR and cc are positive constants. The first two coordinates trace a circle of radius RR. The third coordinate rises linearly. Together they form a helix around the zz-axis. The parameter tt is dimensionless when used as an angle in radians.

Velocity is r(t)=Rsint,Rcost,c\mathbf r'(t)=\langle-R\sin t,R\cos t,c\rangle. Speed is R2sin2t+R2cos2t+c2=R2+c2\sqrt{R^2\sin^2t+R^2\cos^2t+c^2}=\sqrt{R^2+c^2}. The identity sin2t+cos2t=1\sin^2t+\cos^2t=1 makes the speed constant. Constant speed does not imply constant velocity because the first two components rotate. Acceleration is Rcost,Rsint,0\langle-R\cos t,-R\sin t,0\rangle.

Over 0t2π0\leq t\leq2\pi, the arc length is 2πR2+c22\pi\sqrt{R^2+c^2}. One revolution travels both around the cylinder and upward. When c=0c=0, the result reduces to the circumference 2πR2\pi R. That limiting case checks the formula. Geometric interpretation and algebra therefore reinforce one another.

Diagnose common vector-geometry errors

One error is subtracting endpoints in the wrong order. Another is confusing a line direction with a plane normal. A third is forgetting that cross-product order controls orientation. A fourth is calling velocity magnitude “velocity” rather than speed. Naming the role of each vector before calculating prevents these substitutions.

Formula checks should be geometric as well as algebraic. A proposed cross product should dot to zero with both input vectors. A proposed plane should contain its stated point. A proposed unit vector should have magnitude one. A distance must be nonnegative and unchanged when a plane equation is rescaled.

Notation can also cause errors. Parentheses commonly denote point coordinates, while angle brackets denote vectors. Double bars denote magnitude, and a dot or cross specifies a different product. A parameter is a scalar even when it generates a vector-valued curve. Reading every symbol aloud exposes many category mistakes before they reach arithmetic.

Practice deliberately and connect forward

First find the angle between 1,0,1\langle1,0,1\rangle and 1,1,0\langle1,1,0\rangle. Compute the dot product and both magnitudes before solving for the angle. Next project 2,3,1\langle2,3,1\rangle onto 1,0,1\langle1,0,1\rangle. Verify that the residual is perpendicular to the projection direction. Explain the difference between the scalar component and vector projection.

Then parameterize the line through (2,1,3)(2,-1,3) parallel to 4,0,2\langle4,0,-2\rangle. Find its intersection with the plane 2xy+3z=82x-y+3z=8. Substitute the resulting parameter into every component. Check the point in the plane equation. If no consistent parameter exists, describe the geometric alternative rather than forcing a point.

These tools support the next stages of multivariable calculus. Partial derivatives use coordinate directions and gradients normal to level surfaces. Multiple integrals describe regions with spatial coordinates and transformed bases. Flux integrals combine oriented area vectors with vector fields. A firm distinction among points, directions, tangents, and normals makes those later constructions intelligible.

Knowledge Map

Where this lesson fits

Prerequisites

Linear Systems and SpacesVectors and Linear CombinationsIntegrationThe Fundamental Theorem of Calculus

Next lessons

Several VariablesPartial DerivativesSeveral VariablesMultiple Integrals

Continue exploring

Connections

Related lessons

Several VariablesMultiple IntegralsSeveral VariablesPartial DerivativesVectorsVectors in Mechanics

Applications

  • 3D motion
  • surfaces
  • flux geometry