Calculus 3 • Vectors & 3D Geometry

Vector Components & Magnitude

Decomposing directed quantities into algebraic components and computing their lengths in two and three dimensions.

Three-dimensional axes with spatial movement and a multivariable function.
Inside this lesson 10 sections 5 questions 10 figures

SECTION 1

Historical Context & Motivation

The mathematical treatment of quantities possessing both magnitude and direction has a surprisingly long pedigree, stretching from ancient geometric reasoning to the formal algebraic systems that underpin modern physics and engineering. For centuries, scholars grappled with forces, velocities, and displacements using purely geometric constructions—parallelograms of forces, triangles of velocities—without a unified algebraic language. The quest for such a language gave rise to the vector concept as we know it today, complete with component decomposition and a rigorous notion of length, or magnitude. Understanding this history illuminates why component-based representations became the dominant framework in multivariable calculus and linear algebra.

1687 • Newton's Parallelogram Rule

In the Principia, Isaac Newton formalized the geometric composition of forces via the parallelogram law, establishing that two forces acting on a body combine as adjacent sides of a parallelogram, with the resultant along the diagonal.

1799 • Wessel's Directed Line Segments

Caspar Wessel presented a geometric interpretation of complex numbers as directed line segments in the plane, anticipating the algebraic treatment of two-dimensional vectors and their components along perpendicular axes.

1843 • Hamilton's Quaternions

William Rowan Hamilton introduced quaternions—four-dimensional number systems containing a scalar and a three-dimensional 'vector' part—coining the term vector and catalyzing the formal study of directed quantities in three-dimensional space.

1881 • Gibbs & Heaviside's Modern Vectors

Josiah Willard Gibbs and Oliver Heaviside independently distilled quaternion algebra into the streamlined vector calculus used today—complete with dot product, cross product, and the familiar component notation i, j, k.

1900s • Vectors in Modern Mathematics

The formalization of abstract vector spaces by Peano, Banach, and others generalized component decomposition to arbitrary dimensions, making magnitude and component analysis foundational tools across physics, computer science, and data science.

The central question that drove all of this development remains the one we address in this lesson: given a directed quantity in space, how do we decompose it into independent, measurable components along coordinate axes, and how do we compute its overall size? The answers lie at the very foundation of Calculus 3 and pervade every subsequent topic from dot products to surface integrals.

SECTION 2

Core Principles & Definitions

Before diving into computation, it is essential to establish the conceptual scaffolding. A vector in ℝ² or ℝ³ encodes two pieces of information—direction and magnitude—and can be represented either geometrically as an arrow or algebraically as an ordered tuple of real numbers. The algebraic representation decomposes the vector into components, each measuring the vector's projection onto a coordinate axis. The magnitude (also called the norm or length) aggregates these components into a single non-negative scalar via the Pythagorean theorem generalized to n dimensions. These ideas form the bedrock of all vector operations you will encounter in this course.

1

Position & Displacement Vectors

A position vector points from the origin to a point P(x, y, z). A displacement vector connects two arbitrary points: if A = (a₁, a₂, a₃) and B = (b₁, b₂, b₃), then AB⃗ = ⟨b₁ − a₁, b₂ − a₂, b₃ − a₃⟩.
2

Component Decomposition

Every vector v⃗ = ⟨v₁, v₂, v₃⟩ is the unique linear combination v₁i⃗ + v₂j⃗ + v₃k⃗ of the standard basis vectors. The scalars v₁, v₂, v₃ are the components of v⃗ along the x-, y-, and z-axes respectively.
3

Magnitude via Pythagoras

The magnitude ‖v⃗‖ extends the Pythagorean theorem: ‖v⃗‖ = √(v₁² + v₂² + v₃²). In two dimensions, this reduces to the familiar distance formula √(v₁² + v₂²). Magnitude is always non-negative and equals zero only for the zero vector.
4

Unit Vectors

A unit vector has magnitude 1. Any nonzero vector v⃗ can be normalized: v̂ = v⃗ / ‖v⃗‖. Unit vectors isolate pure direction, stripping away magnitude—a critical operation in defining direction cosines and projections.
5

Direction Angles & Cosines

In ℝ³, a vector's orientation is fully described by three direction angles α, β, γ with the positive x-, y-, z-axes. The direction cosines satisfy cos²α + cos²β + cos²γ = 1, linking angular and component representations.
✦

KEY TAKEAWAY

Think of a vector's components like the itinerary of a taxi in a grid city: to travel from the origin to a destination, you must specify how many blocks east (x-component), how many blocks north (y-component), and how many floors up the elevator goes (z-component). The magnitude is the straight-line distance a helicopter would fly—the hypotenuse of nested right triangles formed by those perpendicular legs. Component form tells you how to get there step by step; magnitude tells you how far it actually is.

SECTION 3

Visual Explanation

A geometric picture is indispensable for building intuition about how components relate to the overall vector. The diagram below shows a vector v⃗ in the xy-plane, decomposed into its x- and y-components. The dashed lines indicate the orthogonal projections onto each axis, forming a right triangle whose hypotenuse is the vector itself. The angle θ measured from the positive x-axis determines the trigonometric relationship between the components and the magnitude.

xyθv₁ = ‖v⃗‖ cos θv₂ = ‖v⃗‖ sin θv⃗ = ⟨v₁, v₂⟩‖v⃗‖ = √(v₁² + v₂²)
A 2D vector v⃗ (cyan) decomposed into its x-component (purple, horizontal) and y-component (pink, vertical). The angle θ (amber) determines the trigonometric relationship between components and magnitude. The right-angle marker at the corner confirms the Pythagorean relationship.

Notice that the vector v⃗, its x-component v₁, and its y-component v₂ form the hypotenuse and legs of a right triangle. From elementary trigonometry, v₁ = ‖v⃗‖ cos θ and v₂ = ‖v⃗‖ sin θ. Conversely, given the components, the magnitude is recovered as ‖v⃗‖ = √(v₁² + v₂²) and the direction angle as θ = arctan(v₂ / v₁), with appropriate quadrant adjustments. This bidirectional relationship—going from angle and magnitude to components, or from components back to magnitude and angle—is the cornerstone of vector analysis and generalizes seamlessly to three dimensions.

SECTION 4

Mathematical Framework

We now formalize the definitions and formulas that govern vector components and magnitude in ℝ² and ℝ³. These equations will appear repeatedly throughout Calculus 3—in dot products, cross products, parametric curves, and gradient fields—so internalizing them here pays enormous dividends.

Displacement Vector from Two Points

DISPLACEMENT VECTOR

AB⃗=⟨b1−a1,b2−a2,b3−a3⟩AB⃗ = ⟨b₁ − a₁, b₂ − a₂, b₃ − a₃⟩

where A = (a₁, a₂, a₃) and B = (b₁, b₂, b₃) are the initial and terminal points. Each component is the signed difference of the corresponding coordinates: terminal minus initial.

Magnitude in ℝ² and ℝ³

MAGNITUDE (2D)

‖v⃗‖=√(v12+v22)‖v⃗‖ = √(v₁² + v₂²)

Direct application of the Pythagorean theorem on the right triangle formed by the component legs.

MAGNITUDE (3D)

‖v⃗‖=√(v12+v22+v32)‖v⃗‖ = √(v₁² + v₂² + v₃²)

Generalization to three dimensions: apply Pythagoras twice. First compute √(v₁² + v₂²) for the projection into the xy-plane, then treat that result and v₃ as legs of a second right triangle.

Unit Vector & Normalization

UNIT VECTOR

v^=v⃗/‖v⃗‖=⟨v1/‖v⃗‖,v2/‖v⃗‖,v3/‖v⃗‖⟩v̂ = v⃗ / ‖v⃗‖ = ⟨v₁/‖v⃗‖, v₂/‖v⃗‖, v₃/‖v⃗‖⟩

Dividing each component by the magnitude yields a vector of length 1 pointing in the same direction. This operation is valid for any nonzero vector and is called normalization.

Direction Cosines

DIRECTION COSINES

cosα=v1/‖v⃗‖,cosβ=v2/‖v⃗‖,cosγ=v3/‖v⃗‖cos α = v₁/‖v⃗‖, cos β = v₂/‖v⃗‖, cos γ = v₃/‖v⃗‖

The angles α, β, γ are measured from the positive x-, y-, z-axes to v⃗. The identity cos²α + cos²β + cos²γ = 1 follows immediately from ‖v̂‖ = 1. Observe that the direction cosines are precisely the components of the unit vector.

💡

Derivation Insight

The 3D magnitude formula is not an axiom—it is derived by nesting the 2D Pythagorean theorem. Let d_xy = √(v₁² + v₂²) be the length of v⃗'s projection onto the xy-plane. Then v⃗, its xy-projection, and its z-component form a right triangle with hypotenuse ‖v⃗‖ = √(d_xy² + v₃²) = √(v₁² + v₂² + v₃²). This nested construction generalizes to ℝⁿ without modification.

SECTION 5

Components & Magnitude in Three Dimensions

Extending from two dimensions to three dimensions is conceptually straightforward but visually more demanding. In ℝ³, a vector v⃗ = ⟨v₁, v₂, v₃⟩ is represented as an arrow from the origin to the point (v₁, v₂, v₃). Its three components correspond to signed lengths of projections onto the x-, y-, and z-axes, and the magnitude is the spatial diagonal of the rectangular box (parallelepiped) whose edges have those lengths. The diagram below illustrates this construction, showing how the vector relates to the three coordinate planes.

yxzOv⃗v₁ (x)v₂ (y)v₃ (z)(0,0,v₃)(v₁,0,0)(v₁,v₂,0)The magnitude ‖v⃗‖ is the space diagonal of the box with edge lengths |v₁|, |v₂|, |v₃|.
A 3D vector v⃗ (cyan) in a right-handed coordinate system, with its x-component (purple), y-component (pink), and z-component (green). The dashed lines outline the rectangular parallelepiped whose space diagonal equals ‖v⃗‖.

The rectangular box in the diagram makes the nested Pythagorean structure visually concrete. The bottom face diagonal connects the origin to (v₁, v₂, 0) with length √(v₁² + v₂²). This diagonal and the vertical edge v₃ then form a second right triangle whose hypotenuse is the full vector, yielding ‖v⃗‖ = √(v₁² + v₂² + v₃²). This geometric reasoning is worth internalizing because it resurfaces in the distance formula between arbitrary points, in the definition of the Euclidean norm in ℝⁿ, and in the metric structure underlying vector-valued integrals.

Quantity2D Formula3D Formula
Components⟨v₁, v₂⟩ or v₁i⃗ + v₂j⃗⟨v₁, v₂, v₃⟩ or v₁i⃗ + v₂j⃗ + v₃k⃗
Magnitude√(v₁² + v₂²)√(v₁² + v₂² + v₃²)
Unit vector⟨v₁/‖v⃗‖, v₂/‖v⃗‖⟩⟨v₁/‖v⃗‖, v₂/‖v⃗‖, v₃/‖v⃗‖⟩
Direction anglesθ = arctan(v₂/v₁)α, β, γ via cos α = v₁/‖v⃗‖, etc.
Distance formula√((x₂−x₁)² + (y₂−y₁)²)√((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²)

Comparison of vector formulas in 2D and 3D

SECTION 6

Worked Example

Let us work through a complete problem that exercises displacement vectors, magnitude computation, and normalization in ℝ³. This example mirrors the type of problem you will encounter on exams and in applied settings such as physics and engineering.

Finding the Displacement, Magnitude, Unit Vector, and Direction Cosines

  1. 1

    Step 1 — State the Problem

    Given points A = (2, −1, 4) and B = (5, 3, −2), find: (a) the displacement vector AB⃗, (b) its magnitude ‖AB⃗‖, (c) the unit vector in the direction of AB⃗, and (d) the direction cosines cos α, cos β, cos γ.
  2. 2

    Step 2 — Compute the Displacement Vector

    Apply the displacement formula: AB⃗ = ⟨b₁ − a₁, b₂ − a₂, b₃ − a₃⟩ = ⟨5 − 2, 3 − (−1), −2 − 4⟩.
    AB⃗ = ⟨3, 4, −6⟩
  3. 3

    Step 3 — Compute the Magnitude

    ‖AB⃗‖ = √(3² + 4² + (−6)²) = √(9 + 16 + 36) = √61. Note that √61 is irrational; we leave it in exact form. Numerically, √61 ≈ 7.810.
    ‖AB⃗‖ = √61 ≈ 7.810
  4. 4

    Step 4 — Find the Unit Vector

    Normalize by dividing each component by ‖AB⃗‖: AB̂ = ⟨3/√61, 4/√61, −6/√61⟩. Rationalizing: AB̂ = ⟨3√61/61, 4√61/61, −6√61/61⟩. Verify: (3/√61)² + (4/√61)² + (−6/√61)² = (9 + 16 + 36)/61 = 61/61 = 1. ✓
    AB̂ = ⟨3/√61, 4/√61, −6/√61⟩
  5. 5

    Step 5 — Determine Direction Cosines

    The direction cosines are precisely the components of the unit vector: cos α = 3/√61 ≈ 0.384, cos β = 4/√61 ≈ 0.512, cos γ = −6/√61 ≈ −0.768. The corresponding direction angles are α ≈ 67.4°, β ≈ 59.2°, γ ≈ 140.2°. As a check: cos²α + cos²β + cos²γ = 9/61 + 16/61 + 36/61 = 1. ✓
    cos α ≈ 0.384, cos β ≈ 0.512, cos γ ≈ −0.768
⚠

Common Pitfall

When computing displacement vectors, always subtract in the order terminal minus initial. Reversing the order gives the opposite vector BA⃗ = −AB⃗, which has the same magnitude but points in the opposite direction. Also remember that squaring a negative component eliminates the sign, so (−6)² = 36, not −36—a frequent arithmetic error under exam pressure.

SECTION 7

Comparing Vector Representations

Vectors can be expressed in multiple equivalent forms, and choosing the right representation for a given problem is an important skill. The three most common representations—component form, magnitude-direction form, and unit vector form—each have distinct advantages depending on whether you are performing algebraic operations, analyzing geometry, or communicating physical intuition.

RepresentationFormBest Used WhenLimitation
Component (algebraic)v⃗ = ⟨v₁, v₂, v₃⟩Addition, subtraction, dot/cross products, computing magnitudeDirection not immediately apparent from numbers
Magnitude-direction‖v⃗‖ at angles α, β, γPhysics problems specifying speed and heading; navigationAlgebraic operations require conversion to components first
Unit vector expansionv⃗ = v₁i⃗ + v₂j⃗ + v₃k⃗Emphasizing basis decomposition; derivations in vector calculusMore verbose notation; same information as component form

Strengths and limitations of common vector representations

✦

KEY TAKEAWAY

The relationship between component and magnitude-direction forms is analogous to the relationship between Cartesian and polar coordinates for points. Just as you convert between (x, y) and (r, θ) depending on whether you need algebraic manipulation or geometric insight, you convert between ⟨v₁, v₂, v₃⟩ and (‖v⃗‖, α, β, γ) depending on the task at hand. Mastering both forms—and the ability to convert fluently between them—is a hallmark of vector fluency in multivariable calculus.

SECTION 8

Connection to Advanced Theory

Vector components and magnitude are not standalone topics—they form the substrate upon which nearly every advanced concept in Calculus 3 and beyond is constructed. The dot product is defined component-wise and relates to magnitude via v⃗ · w⃗ = ‖v⃗‖ ‖w⃗‖ cos θ. The cross product uses components in its determinant formula and produces a vector whose magnitude equals the area of the parallelogram spanned by the operands. Even the gradient, divergence, and curl operators are defined via partial derivatives of component functions.

This LessonAdvanced ExtensionHow They Connect
Magnitude ‖v⃗‖Euclidean norm in ℝⁿ, Lᵖ norms‖v⃗‖ is the L² norm; other norms generalize the concept of 'size' with different geometric interpretations
Unit vector v̂Normal, tangent, binormal vectors (TNB frame)The TNB frame at each point of a space curve consists of three mutually perpendicular unit vectors derived by normalization
Components ⟨v₁, v₂, v₃⟩Vector fields F⃗(x,y,z) = ⟨P, Q, R⟩A vector field assigns a component triple to every point; divergence, curl, and line integrals operate on these component functions
Direction cosinesDirectional derivativeThe directional derivative DuD_u f = ∇f · û requires a unit direction vector, whose components are direction cosines
Displacement vectorParametric curves r⃗(t)A parametric curve traces displacement vectors as a function of parameter t; its derivative r⃗′(t) gives velocity as a component vector

How foundational vector concepts feed into advanced Calculus 3 topics

Looking further ahead, the concept of decomposing a vector into components generalizes to any orthonormal basis—not just the standard i⃗, j⃗, k⃗. In linear algebra, the Gram–Schmidt process constructs custom orthonormal bases, and the components of a vector with respect to that basis are the coefficients in its unique linear combination. In differential geometry, the metric tensor generalizes the magnitude formula to curved coordinate systems. The simple equation ‖v⃗‖ = √(v₁² + v₂² + v₃²) is, in a deep sense, the special case of a flat Euclidean metric—a starting point for the rich geometry of general relativity and Riemannian manifolds.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain why two vectors can have the same magnitude but different components. Provide a geometric argument and give a specific example of two such vectors in ℝ³.
Show answer
Magnitude depends only on the sum of the squares of the components, not on the individual component values, so any rearrangement or sign change that preserves that sum yields a different direction but the same length. Geometrically, all vectors of a given magnitude ‖v⃗‖ = r have their tips on a sphere of radius r centered at the origin; different points on this sphere correspond to different component triples. For example, v⃗ = ⟨1, 2, 2⟩ and w⃗ = ⟨2, 1, −2⟩ both satisfy ‖v⃗‖ = ‖w⃗‖ = √(1 + 4 + 4) = 3, yet they point in entirely different directions.

Question 2: BASIC CALCULATION

Find the magnitude and unit vector for v⃗ = ⟨−4, 3, 12⟩.
Show answer
Compute the magnitude: ‖v⃗‖ = √((−4)² + 3² + 12²) = √(16 + 9 + 144) = √169 = 13. The unit vector is v̂ = v⃗/‖v⃗‖ = ⟨−4/13, 3/13, 12/13⟩. Verification: (−4/13)² + (3/13)² + (12/13)² = (16 + 9 + 144)/169 = 169/169 = 1. This is one of the relatively rare 3D vectors with a clean integer magnitude, making it a useful test case.

Question 3: INTERMEDIATE

Given A = (1, −3, 5), B = (4, 0, 2), and C = (−2, 1, 7), find the displacement vectors AB⃗ and AC⃗, then determine which displacement has the greater magnitude.
Show answer
AB⃗ = ⟨4 − 1, 0 − (−3), 2 − 5⟩ = ⟨3, 3, −3⟩, so ‖AB⃗‖ = √(9 + 9 + 9) = √27 = 3√3 ≈ 5.196. AC⃗ = ⟨−2 − 1, 1 − (−3), 7 − 5⟩ = ⟨−3, 4, 2⟩, so ‖AC⃗‖ = √(9 + 16 + 4) = √29 ≈ 5.385. Since √29 > √27, the displacement AC⃗ has the greater magnitude. Note that comparing the squared magnitudes (29 vs. 27) suffices and avoids computing square roots—a useful strategy in optimization and distance-comparison problems.

Question 4: APPLIED

A drone flies from position P₁ = (10, 25, 50) meters to P₂ = (70, −15, 110) meters in straight-line flight. (a) Find the displacement vector. (b) How far does the drone travel? (c) If the drone's maximum speed is 15 m/s, what is the minimum flight time?
Show answer
(a) Displacement: d⃗ = ⟨70 − 10, −15 − 25, 110 − 50⟩ = ⟨60, −40, 60⟩ meters. (b) Distance: ‖d⃗‖ = √(3600 + 1600 + 3600) = √8800 = 20√22 ≈ 93.81 m. (c) Minimum flight time = distance / speed = 93.81 / 15 ≈ 6.25 seconds. The negative y-component indicates the drone moves in the negative y-direction (e.g., southward), demonstrating how components carry directional information that the scalar distance does not.

Question 5: CRITICAL THINKING

Prove that for any vector v⃗ = ⟨v₁, v₂, v₃⟩ in ℝ³, each component satisfies |vᵢ| ≤ ‖v⃗‖ for i = 1, 2, 3. Then determine under what conditions equality holds and interpret the result geometrically.
Show answer
Since v₁² ≤ v₁² + v₂² + v₃² (because v₂² ≥ 0 and v₃² ≥ 0), taking square roots of both sides (valid since both sides are non-negative) gives |v₁| ≤ √(v₁² + v₂² + v₃²) = ‖v⃗‖. The same argument applies to v₂ and v₃ by symmetry. Equality |v₁| = ‖v⃗‖ holds if and only if v₂ = v₃ = 0, meaning the vector lies entirely along the x-axis (and analogously for the other components). Geometrically, this says that projecting a vector onto a coordinate axis can never make it longer—projection always shortens or preserves length, a fact that generalizes to arbitrary orthogonal projections via the Cauchy–Schwarz inequality.

SUMMARY

Lesson Summary

Summary

A vector in ℝ² or ℝ³ encodes both direction and magnitude. Its components are the signed projections onto the coordinate axes, expressed as an ordered tuple ⟨v₁, v₂, v₃⟩ or equivalently as the linear combination v₁i⃗ + v₂j⃗ + v₃k⃗. A displacement vector connecting points A and B is formed by subtracting coordinates: terminal minus initial. The magnitude ‖v⃗‖ = √(v₁² + v₂² + v₃²) is the generalized Pythagorean distance—the space diagonal of the rectangular box whose edges are the absolute component values.

Normalization divides a vector by its magnitude to produce a unit vector of length 1, isolating pure direction. The components of the unit vector are the direction cosines cos α, cos β, cos γ, which satisfy cos²α + cos²β + cos²γ = 1. These foundational operations—decomposition into components, magnitude computation, and normalization—underpin every subsequent topic in Calculus 3, from dot products and cross products to line integrals and the gradient.

Varsity Tutors • Calculus 3 • Vector Components & Magnitude