Linear Algebra · Undergraduate
Vectors in n Dimensions
Quick answer
A vector in ℝⁿ is an ordered list of n real numbers. Addition and scalar multiplication work one component at a time, exactly as they do for arrows in the plane, and they obey the same rules. Length and the dot product also carry over: the length of a vector is the square root of the sum of the squares of its entries. Any vector is the sum of its entries times the standard basis vectors e₁ through eₙ, which is the pattern every later idea in linear algebra builds on.
What you'll learn
- Add and scale vectors in ℝⁿ
- Compute the length of a vector and the dot product in ℝⁿ
- Write a vector in terms of the standard basis
- Decide when two vectors in ℝⁿ are perpendicular
Lists of numbers
In the plane, a vector is an arrow given by two numbers. Nothing in the arithmetic of those numbers cares that there are two of them. A vector in ℝⁿ is an ordered list of real numbers, written as a column or, to save space, as a row:
The numbers are the components. A price list for five products, the daily rainfall for a week, and the position of a point in space are all vectors. The entries mean different things; the arithmetic is the same.
Two operations define everything that follows. Both work one component at a time:
Adding needs both vectors to have the same number of components. The zero vector has every component , and means .
Why the rules carry over
Componentwise addition inherits its rules from the arithmetic of real numbers, one component at a time:
Every rule for vectors in ℝⁿ is a rule about real numbers applied in each component at once. So nothing breaks when grows past and the picture runs out.
Length and the dot product
The dot product extends the same way, by multiplying matching components and adding:
Taking gives the sum of the squares, so the length, or norm, is
In ℝ² this is the Pythagorean theorem, and in ℝⁿ it is the definition. Two vectors are orthogonal, the word for perpendicular in any dimension, when their dot product is .
The standard basis
Let be the vector with a in position and zeros elsewhere. In ℝ³,
Every vector splits into its components along these:
Worked examples
Common mistakes
Practice problems
-
Find .
Answer
Full solution
Add matching components: , , .
-
Find .
Answer
Full solution
Multiply every component by .
-
Find .
Answer
Full solution
, component by component.
-
Find .
Answer
Full solution
.
-
Find .
Answer
Full solution
.
-
Are and orthogonal?
Answer
Yes
Full solution
.
-
Scale to a unit vector.
Answer
Full solution
The length is , so divide both components by .
-
Write in terms of the standard basis vectors.
Answer
Full solution
The second component is , so does not appear.
-
Find .
Answer
Full solution
Five components, each contributing to the sum.
-
A student computes and reports . What went wrong?
Hint
What kind of object is a dot product?
Answer
The dot product is a single number: .
Full solution
The student stopped after multiplying matching components. The dot product adds them, which is what makes the squared length and what lets the dot product measure an angle.
Frequently asked questions
What is a vector in ℝⁿ?
An ordered list of n real numbers, such as (2, −1, 4, 0) in ℝ⁴. The number n is the count of entries, called components.
How do you add vectors in ℝⁿ?
Add matching components: (a₁, …, aₙ) + (b₁, …, bₙ) = (a₁ + b₁, …, aₙ + bₙ). The two vectors must have the same number of components.
How do you find the length of a vector in ℝⁿ?
Take the square root of the sum of the squares of the components. For (1, 2, 2, 4) that is √25 = 5.
Can you picture ℝ⁴?
Not directly, but every rule is algebraic and matches what you see in ℝ² and ℝ³. Reasoning in two or three dimensions and computing in n is standard practice.
What are the standard basis vectors?
e₁, …, eₙ, where eᵢ has a 1 in position i and zeros elsewhere. Every vector is a sum of its components times these.