LINEAR ALGEBRA • VECTOR SPACES & SUBSPACES

Vectors in R^n

Discover how ordered lists of numbers describe directions, forces, and data in any number of dimensions.

Historical Context & Motivation

People have always needed ways to describe direction and magnitude — whether aiming a catapult, charting a ship's course, or tracking a planet across the sky. For centuries, mathematicians handled these ideas with geometry and trigonometry, drawing arrows on paper. But as science grew more complex, a single arrow on a flat page was no longer enough. Scientists needed a language that could handle three, four, or even hundreds of directions at once.

The concept of a vector — an object with both size and direction — grew out of this need. Over several centuries, mathematicians refined the idea from simple arrows into powerful ordered lists of numbers that work in any number of dimensions. Let's trace that journey.

1637
Descartes Invents Coordinates
René Descartes introduced the coordinate plane, letting people describe points with pairs of numbers like (3, 5). This was the seed of representing direction with numbers.
1843
Hamilton Creates Quaternions
William Rowan Hamilton invented quaternions — number-like objects with four components — to handle rotations in 3D space. This pushed the idea of vectors beyond two dimensions.
1844
Grassmann's Extension Theory
Hermann Grassmann proposed a general algebra for objects in any number of dimensions, foreshadowing the modern idea of Rⁿ. His work was ahead of its time.
1888
Peano Defines Vector Spaces
Giuseppe Peano gave one of the first formal definitions of a vector space, establishing the rules that vectors must follow — rules we still use today.
1900s–Today
Vectors Power Modern Science
Vectors in Rⁿ became essential in physics, computer graphics, machine learning, and data science. Any time you use a search engine or play a 3D video game, vectors are at work behind the scenes.

The big question these thinkers were trying to answer: How can we use numbers to capture direction and size in a way that works in any number of dimensions? The answer is the concept of vectors in Rⁿ — and that is what this lesson is all about.

Core Principles & Definitions

Before we dive into calculations, let's nail down the key ideas. A vector in Rⁿ (read as "R-n") is simply an ordered list of n real numbers. The letter R stands for the real numbers (all the numbers you know from the number line), and the superscript n tells you how many entries the list has. When n = 2, you're working on a flat plane. When n = 3, you're in 3D space. When n = 100, you might be describing data about a hundred different measurements at once.

1

What Is a Vector?

A vector is an ordered list of numbers, written as (x₁, x₂, …, xₙ). Each number is called a component. The order matters — (3, 5) is different from (5, 3).
2

What Does Rⁿ Mean?

Rⁿ is the set of all vectors with exactly n real-number components. R² is all pairs, R³ is all triples, and R¹⁰⁰ is all lists of 100 numbers.
3

Vector Addition

To add two vectors, add their matching components. For example, (1, 4) + (3, 2) = (4, 6). Both vectors must live in the same Rⁿ.
4

Scalar Multiplication

Multiply every component by the same number (called a scalar). For example, 3 × (2, 5) = (6, 15). This stretches or shrinks the vector.
5

The Zero Vector

The zero vector has all components equal to 0, like (0, 0) in R² or (0, 0, 0) in R³. Adding it to any vector changes nothing.
KEY TAKEAWAY
Think of a vector like a recipe card. A recipe for a smoothie might list 2 cups of berries, 1 banana, and 3 ice cubes — that's like the vector (2, 1, 3). The order matters (you wouldn't swap the banana count with the ice cubes), and you can double the recipe by multiplying every ingredient by 2, giving (4, 2, 6). Vectors in Rⁿ work the same way, just with n different "ingredients."

Visual Explanation

Vectors become much easier to understand when you can see them. In R², each vector is an arrow on a flat grid. In R³, it's an arrow in 3D space. The diagram below shows vectors in R² — notice how each arrow starts at the origin (0, 0) and ends at the point given by its components.

Each colored arrow represents a vector starting at the origin (0, 0). The cyan arrow v = (4, 3) moves 4 units right and 3 units up. The violet arrow u = (2, 1) is shorter because its components are smaller. Notice that the pink arrow w = (6, 4) equals u + v — the result of adding the two vectors component by component.

In the diagram, each arrow's horizontal length matches its first component (the x-value), and its vertical length matches its second component (the y-value). This is the beauty of vectors: they package direction and size into one neat object. When you add two vectors, you add their components one by one — the x-values combine, and the y-values combine — producing a new arrow that represents the combined effect.

🚀 Beyond 2D
We can easily draw vectors in R² and R³, but what about R⁴ or R¹⁰⁰? We can't visualize those on paper, but the math works exactly the same way. Each vector is still a list of numbers, and we still add and scale component by component. The algebra doesn't care how many dimensions you have!

Mathematical Framework

Now let's write down the rules precisely. These formulas are the backbone of everything you do with vectors, so take time to understand each one.

VECTOR NOTATION
v = (v₁, v₂, …, vₙ) ∈ Rⁿ
A vector v in Rⁿ has n components: v₁ is the first entry, v₂ is the second, and so on up to vₙ. The symbol ∈ means "belongs to."
VECTOR ADDITION
u + v = (u₁ + v₁, u₂ + v₂, …, uₙ + vₙ)
Add two vectors by pairing up their components and adding each pair. Both vectors must be in the same Rⁿ — you can't add a vector in R² to one in R³.
SCALAR MULTIPLICATION
c × v = (c × v₁, c × v₂, …, c × vₙ)
Multiply a scalar (a single number) c by every component. If c = 2, the vector doubles in length. If c = −1, it flips direction.
MAGNITUDE (LENGTH)
‖v‖ = √(v₁² + v₂² + … + vₙ²)
The magnitude (or length) of a vector is found using the Pythagorean theorem extended to n dimensions. In R², this is just √(x² + y²).
📐 Why the Pythagorean Theorem?
You already know that in a right triangle, a² + b² = c². The magnitude formula does the same thing — it treats each component as a side of a right triangle and finds the hypotenuse. In higher dimensions, you just keep adding more sides under the square root.

Vectors Across Dimensions

One of the most powerful features of vectors in Rⁿ is that the same rules work regardless of how many dimensions you're in. Let's compare what vectors look like in different values of n.

Vectors in different dimensions and where you encounter them
SpaceExample VectorReal-World Use
(7)Temperature at one sensor
(3, 4)Position on a map (east, north)
(1, −2, 5)Location of a drone (x, y, altitude)
R⁴(r, g, b, a)Color of a pixel (red, green, blue, transparency)
Rⁿ (large n)(x₁, x₂, …, x₁₀₀₀)Describing a song by 1 000 audio features for a music app
This diagram shows vector addition (top) and scalar multiplication (bottom) for vectors in R³. Notice how each operation is done component by component, and the result stays in the same dimension.

The diagram makes an important point: no matter how many components a vector has, the operations always follow the same pattern. You line up matching components and do the arithmetic. This consistency is what makes Rⁿ so useful — learn the rules once, and they work forever.

Worked Example

Let's put everything together with a complete problem. We'll add vectors, scale them, and find a magnitude — all in R⁴.

Vector Operations in R⁴
1
Step 1 — State the Given VectorsWe are given two vectors in R⁴: u = (1, 3, −2, 4) and v = (2, 0, 5, −1). We want to find 2u + v and its magnitude.
2
Step 2 — Compute 2u (Scalar Multiplication)Multiply each component of u by 2: 2 × (1, 3, −2, 4) = (2 × 1, 2 × 3, 2 × (−2), 2 × 4).
2u = (2, 6, −4, 8)
3
Step 3 — Compute 2u + v (Vector Addition)Add matching components: (2, 6, −4, 8) + (2, 0, 5, −1) = (2 + 2, 6 + 0, −4 + 5, 8 + (−1)).
2u + v = (4, 6, 1, 7)
4
Step 4 — Find the MagnitudeUse the magnitude formula: ‖2u + v‖ = √(4² + 6² + 1² + 7²) = √(16 + 36 + 1 + 49) = √102.
‖2u + v‖ = √102 ≈ 10.10
5
Step 5 — Interpret the ResultThe vector 2u + v = (4, 6, 1, 7) is a new vector in R⁴. Even though we can't draw it as an arrow in four dimensions, its magnitude tells us it has a "length" of about 10.10 units. This gives us a sense of how far this vector is from the origin in 4D space.

Properties, Strengths & Limitations

Vectors in Rⁿ obey a set of important properties. These properties are what make Rⁿ a vector space — a structured mathematical environment where addition and scaling behave predictably. Understanding these properties also helps you see what vectors can and cannot do.

Key vector space properties of Rⁿ
PropertyWhat It MeansExample
Commutativityu + v = v + u — order doesn't matter(1, 2) + (3, 4) = (3, 4) + (1, 2) = (4, 6)
Associativity(u + v) + w = u + (v + w) — grouping doesn't matterAdd three vectors in any grouping; result is the same
Zero Vectorv + 0 = v — the zero vector acts like adding 0(5, −3) + (0, 0) = (5, −3)
Additive Inversev + (−v) = 0 — every vector has an opposite(2, 7) + (−2, −7) = (0, 0)
Distributivec × (u + v) = c × u + c × v2 × ((1,2) + (3,4)) = 2×(1,2) + 2×(3,4)
💡 WHY THIS MATTERS
These properties might look obvious, but they're actually what makes Rⁿ special. Not every mathematical system follows all these rules. Think of it like traffic rules — because everyone drives on the same side of the road and stops at red lights, traffic flows smoothly. Similarly, because vectors in Rⁿ obey these properties, mathematicians, engineers, and programmers can build complex systems (like 3D games or AI) knowing the math will always behave predictably.

Connection to Advanced Theory

Rⁿ is your first example of a vector space, but it's not the only one. In more advanced courses, you'll discover that the same rules apply to much stranger collections of objects — including functions, matrices, and even polynomials. The table below previews how Rⁿ connects to bigger ideas.

How Rⁿ ideas extend to advanced linear algebra
Concept in RⁿAdvanced Generalization
Vectors are lists of real numbersIn abstract vector spaces, "vectors" can be functions like f(x) = 3x + 1
Magnitude ‖v‖ measures lengthNorms generalize length to any vector space
Dimension n = number of componentsSome vector spaces have infinite dimension (function spaces)
Scalar multiplication stretches/shrinksLinear transformations generalize to rotations, reflections, and more
The zero vector is (0, 0, …, 0)Every vector space must have an identity element for addition

You'll also encounter subspaces — smaller vector spaces that live inside Rⁿ. For example, a flat plane through the origin inside R³ is a subspace. Lines through the origin are subspaces too. Learning about subspaces will help you solve systems of equations, analyze data, and understand transformations. Mastering Rⁿ now gives you the foundation for all of that.

Practice Problems

PROBLEM 1CONCEPTUAL
A classmate says that the vector (3, 7) and the vector (7, 3) are the same because they use the same numbers. Is your classmate correct? Explain why or why not.
PROBLEM 2BASIC CALCULATION
Let u = (4, −1, 6) and v = (−2, 3, 1). Compute u + v and 3v.
PROBLEM 3INTERMEDIATE
Given w = (1, 2, 2) in R³, find the magnitude ‖w‖. Then find a scalar c so that c × w has magnitude 1 (this is called a unit vector).
PROBLEM 4APPLIED
A drone starts at position (0, 0, 10) in R³ (in meters). It moves by velocity vector v₁ = (3, 4, −2) in the first second and then by v₂ = (−1, 2, 5) in the next second. What is the drone's final position? How far is it from where it started?
PROBLEM 5CRITICAL THINKING
Suppose you have a vector v in R³ such that v + v = 2v. Is this always true, or only for special vectors? Now consider: if u + v = u, what must v be? Use the vector space properties from Section 7 to justify your answers.

Lesson Summary

A vector in Rⁿ is an ordered list of n real numbers, written as (v₁, v₂, …, vₙ). Two fundamental operations define how vectors behave: vector addition (add matching components) and scalar multiplication (multiply every component by a single number). The magnitude of a vector, found using the extended Pythagorean theorem ‖v‖ = √(v₁² + … + vₙ²), tells you the vector's length.

Vectors in Rⁿ satisfy key properties like commutativity, associativity, the existence of a zero vector, and additive inverses — making Rⁿ the most important example of a vector space. These ideas work identically whether n is 2, 3, or 1 000, and they form the foundation for studying subspaces, linear transformations, and applications across science, engineering, and data science.

Varsity Tutors • Linear Algebra • Vectors in R^n