Multivariable Calculus • Vectors and Geometry in 3D

Vector Components & Magnitude

Learn how to break vectors into components and calculate their lengths in two and three dimensions.

Multivariable Calculus emblem with three-dimensional axes, a function, and an orbiting path.
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

Throughout history, people have needed to describe quantities that have both a size and a direction—forces pushing on a bridge, winds driving a ship, or the velocity of a projectile. Simple numbers (called scalars) can tell you how fast something moves, but they can't tell you where it's heading. That limitation drove mathematicians and physicists to develop the concept of a vector—a mathematical object that encodes both magnitude and direction in a single package.

~300 BC • Euclid's Elements

Euclid formalized geometry with directed line segments, laying the groundwork for thinking about magnitude and direction together.

1687 • Newton's Principia

Isaac Newton used directed quantities to describe forces and motion. His parallelogram rule for adding forces was an early form of vector addition.

1843 • Hamilton's Quaternions

William Rowan Hamilton introduced quaternions, an algebraic system that extended complex numbers and paved the way for three-dimensional vector analysis.

1881 • Gibbs & Heaviside

Josiah Willard Gibbs and Oliver Heaviside independently developed the modern vector notation—with components along î, ĵ, and k̂—that students still use today.

The central question that these thinkers were trying to answer is deceptively simple: How do you take a single arrow in space and describe it with numbers? The answer lies in vector components (the individual pieces along each axis) and magnitude (the overall length of that arrow). Mastering these ideas unlocks physics, engineering, computer graphics, and every branch of higher mathematics that follows.

SECTION 2

Core Principles & Definitions

Before diving into calculations, you need a solid grasp of the vocabulary and big ideas behind vectors. A vector is a quantity defined by both a direction and a magnitude (length). Unlike a scalar, which is just a number (like temperature or mass), a vector carries directional information. Vectors are typically written in boldface (v) or with an arrow on top (v⃗). The following cards summarize the foundational ideas you'll need.

1

Components

A vector's components are the projections of the vector onto each coordinate axis. In 3D, every vector has three components: one along x, one along y, and one along z.
2

Unit Vectors

The standard unit vectors î, ĵ, and k̂ point along the positive x-, y-, and z-axes respectively. Each has a magnitude of exactly 1, serving as building blocks for any vector.
3

Magnitude

The magnitude (or length) of a vector is a non-negative scalar found by applying the Pythagorean theorem across all dimensions. It is written as |v⃗| or ‖v⃗‖.
4

Position vs. Free Vectors

A position vector starts at the origin and points to a specific point. A free vector represents a direction and magnitude and can be placed anywhere in space.
✦

KEY TAKEAWAY

Think of a vector like driving directions. Saying "go 5 miles" (magnitude alone) isn't enough—you also need "go 5 miles northeast." Components are the step-by-step breakdown: "go 3.5 miles east, then 3.5 miles north." Together those two pieces fully describe the trip, and you can recover the total distance (magnitude) from them using the Pythagorean theorem.

SECTION 3

Visual Explanation — Vectors in 2D and 3D

The best way to understand vector components is to see them. The diagram below shows a 2D vector v⃗ drawn from the origin to the point (4, 3). The horizontal leg along the x-axis is the x-component and the vertical leg along the y-axis is the y-component. Notice that the vector and its two components form a right triangle—this is exactly why the Pythagorean theorem gives us the magnitude.

2D Vector: Components & Magnitude1234123xyvₓ = 4vᵧ = 3v⃗ = ⟨4, 3⟩|v⃗| = 590°(4, 3)
The vector v⃗ = ⟨4, 3⟩ is decomposed into its x-component (vₓ = 4) and y-component (vᵧ = 3). The cyan arrow is the vector itself, with magnitude |v⃗| = √(4² + 3²) = 5.

In the diagram above, the solid cyan arrow represents the full vector v⃗. The dashed violet arrow along the x-axis shows the x-component (vₓ = 4), and the dashed pink arrow along the y-axis shows the y-component (vᵧ = 3). Together they form a right triangle whose hypotenuse is the original vector. The magnitude is the length of that hypotenuse: √(4² + 3²) = √(16 + 9) = √25 = 5. This same logic extends naturally to three dimensions, where a third component along the z-axis adds one more term under the square root.

SECTION 4

Mathematical Framework

Now let's formalize these ideas with equations. A vector in three-dimensional space can be written in component form or in unit-vector notation. Both representations carry the same information, so you should be comfortable switching between them.

COMPONENT FORM

v⃗=⟨v1,v2,v3⟩v⃗ = ⟨v₁, v₂, v₃⟩

v₁, v₂, v₃ are the scalar components along the x-, y-, and z-axes respectively. In 2D, simply drop the third component: v⃗ = ⟨v₁, v₂⟩.

UNIT-VECTOR NOTATION

v⃗=v1ı^+v2ȷ^+v3k^v⃗ = v₁ î + v₂ ĵ + v₃ k̂

î = ⟨1, 0, 0⟩, ĵ = ⟨0, 1, 0⟩, k̂ = ⟨0, 0, 1⟩. Each unit vector has magnitude 1 and points along its respective axis.

Finding Components from Two Points

If you know the initial point A = (a₁, a₂, a₃) and the terminal point B = (b₁, b₂, b₃), the vector from A to B is found by subtracting coordinates.

VECTOR FROM POINT A TO POINT B

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

Subtract each coordinate of the initial point from the corresponding coordinate of the terminal point. The result gives the displacement from A to B.

Magnitude (Length) of a Vector

MAGNITUDE IN 3D

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

This is the 3D Pythagorean theorem. In 2D, drop v₃: |v⃗| = √(v₁² + v₂²). The magnitude is always non-negative and equals zero only for the zero vector ⟨0, 0, 0⟩.

💡

Unit Vectors from Any Vector

To create a unit vector (a vector with magnitude 1 pointing in the same direction), divide each component by the magnitude: û = v⃗ / |v⃗|. This process is called normalization and is used frequently in physics and computer graphics.

SECTION 5

Vectors in Three Dimensions — Detailed Breakdown

Moving from 2D to 3D is conceptually simple: you add a third axis (z) perpendicular to both x and y. Every vector now has three components, and the magnitude formula gains one additional squared term under the radical. The diagram below illustrates how a 3D vector decomposes into its three perpendicular components, forming a rectangular box whose space diagonal is the original vector.

3D Vector: v⃗ = ⟨3, 4, 2⟩xzyvₓ = 3vᵧ = 4v_z = 2v⃗(3, 4, 2)|v⃗| = √(3² + 4² + 2²) = √(9 + 16 + 4) = √29 ≈ 5.39
The 3D vector v⃗ = ⟨3, 4, 2⟩ shown with its three components: vₓ = 3 (along x), vᵧ = 4 (along y), and vzv_z = 2 (along z). The dashed lines outline the rectangular box whose space diagonal is the vector.

In the 3D diagram, the magnitude is calculated in two stages. First, the x- and y-components form a right triangle on the floor of the box, giving a diagonal of √(3² + 4²) = √25 = 5. Then that floor diagonal and the z-component form another right triangle, producing the full magnitude: √(5² + 2²) = √(25 + 4) = √29 ≈ 5.39. This two-step reasoning is why the 3D magnitude formula is simply the 2D formula with an extra squared term added under the radical.

Property2D Vector ⟨v₁, v₂⟩3D Vector ⟨v₁, v₂, v₃⟩
Number of components23
Unit vectors usedî, ĵî, ĵ, k̂
Magnitude formula√(v₁² + v₂²)√(v₁² + v₂² + v₃²)
Geometric pictureHypotenuse of a right triangleSpace diagonal of a rectangular box

Comparison of 2D and 3D vectors

SECTION 6

Worked Example

Let's walk through a complete problem: find the vector from point A = (1, −2, 5) to point B = (4, 3, −1), compute its magnitude, and then find the unit vector in the same direction.

Vector, Magnitude & Unit Vector from Two Points

  1. 1

    Step 1 — Identify the given information

    We are given two points in 3D space: A = (1, −2, 5) (initial point) and B = (4, 3, −1) (terminal point). We need to find the vector AB⃗.
  2. 2

    Step 2 — Find the components (subtract coordinates)

    Subtract each coordinate of A from the corresponding coordinate of B: AB⃗ = ⟨4 − 1, 3 − (−2), −1 − 5⟩ = ⟨3, 5, −6⟩. The x-component is 3, the y-component is 5, and the z-component is −6.
    AB⃗ = ⟨3, 5, −6⟩
  3. 3

    Step 3 — Calculate the magnitude

    Apply the magnitude formula: |AB⃗| = √(3² + 5² + (−6)²) = √(9 + 25 + 36) = √70. Using a calculator, √70 ≈ 8.37.
    |AB⃗| = √70 ≈ 8.37
  4. 4

    Step 4 — Find the unit vector

    Divide each component by the magnitude to normalize the vector: û = AB⃗ / |AB⃗| = ⟨3/√70, 5/√70, −6/√70⟩. Numerically this is approximately ⟨0.358, 0.598, −0.717⟩.
    û ≈ ⟨0.358, 0.598, −0.717⟩
  5. 5

    Step 5 — Verify the unit vector

    Check that the magnitude of û equals 1: |û| = √(0.358² + 0.598² + (−0.717)²) = √(0.128 + 0.358 + 0.514) = √1.000 = 1. ✓ The unit vector is correct.
    |û| = 1 ✓

SECTION 7

Comparing Vector Notations & Common Pitfalls

Different textbooks, teachers, and fields use slightly different notations for vectors. The table below compares the most common styles you'll encounter. Recognizing all of them will save you confusion when reading new sources.

Notation StyleExampleWhere You'll See It
Angle-bracket component formv⃗ = ⟨3, 5, −6⟩Calculus and multivariable math textbooks
Unit-vector notationv⃗ = 3î + 5ĵ − 6k̂Physics and engineering courses
Column matrix[3, 5, −6]ᵀ (column)Linear algebra and computer science
Boldface letterv = (3, 5, −6)Printed textbooks (since arrows are hard to print)

Common vector notation styles

Common Pitfalls to Avoid

  • Confusing points with vectors: The point (3, 5, −6) is a location in space, while ⟨3, 5, −6⟩ is a direction and magnitude. They look similar but mean different things.
  • Subtracting in the wrong order: The vector from A to B is B − A, not A − B. Reversing the order gives a vector pointing in the opposite direction.
  • Forgetting to square before adding: A common mistake is computing √(v₁ + v₂ + v₃) instead of √(v₁² + v₂² + v₃²). Always square each component first.
  • Negative components and magnitude: A component can be negative (indicating the opposite direction along that axis), but magnitude is always non-negative since you're squaring each component.
✦

KEY TAKEAWAY

All four notation styles describe exactly the same mathematical object. It's like describing the same location as "123 Main Street," "the corner of Main and 1st," or GPS coordinates—different labels, same place. Choose the notation your course expects, but be fluent enough to read any of them.

SECTION 8

Connection to Advanced Topics

Vector components and magnitude are the foundation for almost everything that follows in multivariable calculus and linear algebra. Once you're comfortable breaking vectors into components and computing lengths, you're ready to tackle operations like the dot product, the cross product, and vector-valued functions. The table below shows how today's lesson connects to these more advanced ideas.

This LessonWhere It Leads
Components ⟨v₁, v₂, v₃⟩Dot product (v⃗ · w⃗ = v₁w₁ + v₂w₂ + v₃w₃) measures how much two vectors align.
Magnitude |v⃗|Distance formula in 3D: d(A, B) = |AB⃗|. Also used in the formula |v⃗ · w⃗| = |v⃗||w⃗| cos θ to find angles.
Unit vectors ûDirection vectors for lines in 3D, normal vectors to planes, and gradient directions in calculus.
Component subtraction (B − A)Parametric equations of lines: r⃗(t) = A + t(B − A), a cornerstone of 3D geometry.

How this lesson connects to future topics

Beyond pure math, vector components and magnitude appear everywhere in science and technology. In physics, force, velocity, and acceleration are all vectors that must be resolved into components. In computer graphics, every pixel on screen is determined by vector calculations. In data science, data points are treated as high-dimensional vectors, and "magnitude" generalizes to a measure of how large or important a data point is. Building a strong foundation here pays dividends across many fields.

SECTION 9

Practice Problems

Test your understanding with these five problems, arranged from conceptual to challenging. Try each one before checking the answer.

Question 1: CONCEPTUAL

A vector has components ⟨−5, 0, 0⟩. Describe in words what direction this vector points and explain why two of its components are zero.
Show answer
This vector points entirely along the negative x-axis. Two components are zero because the vector has no displacement in the y- or z-directions. Its magnitude is |⟨−5, 0, 0⟩| = √(25 + 0 + 0) = 5. The negative sign on the x-component means it points in the opposite direction of the positive x-axis—leftward, if x points to the right.

Question 2: BASIC CALCULATION

Find the magnitude of the vector v⃗ = ⟨2, −3, 6⟩.
Show answer
Apply the formula: |v⃗| = √(2² + (−3)² + 6²) = √(4 + 9 + 36) = √49 = 7. Notice that even though the y-component is negative, squaring it makes it positive, so every component contributes positively to the magnitude. The result is exactly 7, which is a nice integer—this happens because 2, 3, and 6 form a Pythagorean quadruple with 7.

Question 3: INTERMEDIATE

Find the vector from A = (−1, 4, 2) to B = (3, 0, 7), then determine the unit vector in the direction of AB⃗.
Show answer
First, compute the components: AB⃗ = ⟨3 − (−1), 0 − 4, 7 − 2⟩ = ⟨4, −4, 5⟩. Next, find the magnitude: |AB⃗| = √(16 + 16 + 25) = √57 ≈ 7.55. Finally, divide each component by √57 to get the unit vector: û = ⟨4/√57, −4/√57, 5/√57⟩ ≈ ⟨0.530, −0.530, 0.662⟩. You can verify by checking that 0.530² + 0.530² + 0.662² ≈ 1.

Question 4: APPLIED

A drone flies from position P₁ = (10, 20, 5) to position P₂ = (40, 60, 25), where distances are in meters. Find the displacement vector from P₁ to P₂ and the total straight-line distance the drone traveled.
Show answer
The displacement vector is P₁P₂⃗ = ⟨40 − 10, 60 − 20, 25 − 5⟩ = ⟨30, 40, 20⟩ meters. The straight-line distance is the magnitude: |P₁P₂⃗| = √(30² + 40² + 20²) = √(900 + 1600 + 400) = √2900 = 10√29 ≈ 53.85 meters. This is the shortest possible path between the two points; any curved flight path would cover more distance. The displacement vector also tells us the drone moved 30 m east, 40 m north, and 20 m upward.

Question 5: CRITICAL THINKING

Two vectors have the same magnitude: |u⃗| = |w⃗| = 10. Vector u⃗ = ⟨6, 8, 0⟩. Can w⃗ = ⟨a, 0, a⟩ for some value of a? If so, find a. Then explain what this result tells you about the relationship between magnitude and components.
Show answer
First, verify |u⃗| = √(36 + 64 + 0) = √100 = 10. ✓ Now set |w⃗| = 10: √(a² + 0 + a²) = 10, so √(2a²) = 10, which gives a√2 = 10, hence a = 10/√2 = 5√2 ≈ 7.07. So w⃗ = ⟨5√2, 0, 5√2⟩. This demonstrates that magnitude alone does not determine components—infinitely many vectors can share the same magnitude while pointing in completely different directions. Vectors u⃗ and w⃗ have the same length but different component distributions and different directions.

SUMMARY

Summary

Summary

A vector encodes both direction and size. Every vector can be expressed in component form ⟨v₁, v₂, v₃⟩ or in unit-vector notation v₁î + v₂ĵ + v₃k̂. To find the vector from point A to point B, subtract coordinates: AB⃗ = ⟨b₁ − a₁, b₂ − a₂, b₃ − a₃⟩. The magnitude (length) of a 3D vector is |v⃗| = √(v₁² + v₂² + v₃²), a direct extension of the Pythagorean theorem.

To create a unit vector (magnitude = 1) in the same direction, divide each component by the magnitude: û = v⃗ / |v⃗|. This process, called normalization, is essential in physics and computer graphics. Remember that magnitude is always non-negative, that many different vectors can share the same magnitude, and that the sign of a component indicates direction along its axis. These skills are the foundation for the dot product, cross product, and all of 3D geometry that follows.

Varsity Tutors • Multivariable Calculus • Vector Components & Magnitude