Vector spaces · Definition

Vector in ℝⁿ

linear algebravector spaces

Before discussing abstract spaces it pays to master the concrete case: lists of numbers that can be added and scaled.

Definition

A vector in \(\mathbb{R}^n\) is an ordered list of \(n\) real numbers, which geometrically looks like an arrow from the origin.

\[x=(x_1,\dots,x_n),\quad cx=(cx_1,\dots,cx_n)\]

The idea of a vector comes from two sources: physics, where a force or a velocity has magnitude and direction, and data, where a list of measurements is treated as a single object. In both cases what matters is that objects can be combined: added and stretched. Textbooks such as Strang's start in the plane \(\mathbb{R}^2\) and move on to \(\mathbb{R}^3\) and \(\mathbb{R}^n\).

Vectors are defined by components: \((1,2,3)+(4,-1,0)=(5,1,3)\) and \(3(2,-1,4)=(6,-3,12)\). These two operations are all linear algebra needs; the other notions (length, dot product) are extras that depend on geometry. A useful guiding example: the vector \((3,4)\) is the arrow ending at the point \((3,4)\), and \(2(3,4)=(6,8)\) is the same arrow stretched to twice its size.

Typical mistakes: adding vectors of different sizes (\((1,2)+(1,2,3)\) does not exist), confusing the scalar \(0\) with the zero vector \((0,\dots,0)\), and scaling only one component. The norm \(\|x\|=\sqrt{x_1^2+\cdots+x_n^2}\) and the dot product also appear here; they measure lengths and angles.

This concept connects with the earlier ones: a matrix with \(n\) rows and one column is a vector, and a linear system asks to write a vector as a combination of columns. The next step, the vector space, keeps only the properties of addition and scaling and forgets that the objects are lists. Remember that vectors are added componentwise, \(x+y=(x_i+y_i)\), and multiplied by a scalar \(c\) by scaling each component, \(cx=(cx_i)\).

Think about it

Why is \((1,2)+(1,2,3)\) not defined?

Because addition is componentwise and the vectors have different numbers of components: they live in different spaces, \(\mathbb{R}^2\) and \(\mathbb{R}^3\).

Are the number \(0\) and the vector \((0,0)\) the same thing?

No. The first is a scalar and the second is the zero vector of \(\mathbb{R}^2\); although \(0\cdot x=(0,0)\), they are objects of different kinds.

Exercises 10

References

  • Gilbert Strang, Introduction to Linear Algebra, 6th edition, Wellesley-Cambridge Press, 2023. §1.1
  • Sheldon Axler, Linear Algebra Done Right, 4th edition, Springer, 2024. §1.A