Vector Spaces, Bases, and Dimension

I. Breaking the Limits of the “Arrow”

So far we have treated a vector as an “arrow in space”. But that view has limits — the real power of linear algebra lies in the fact that a “vector” can be any object that obeys the rules of operation.

Think about it: from beginning to end we have used only two operations — addition and scalar multiplication. As soon as an object can be “added” and “multiplied by a number”, and satisfies those properties, it can be used as a “vector” with every tool of linear algebra!

II. Generalising the Vector: More Things That “Masquerade as Arrows”

1. Functions Are Vectors Too

Functions can be added and multiplied by a number:

(f+g)(x)=f(x)+g(x),(cf)(x)=c f(x)(f + g)(x) = f(x) + g(x), \quad (cf)(x) = c\,f(x)

So functions form a vector space! A “linear combination” of functions is c1f1+c2f2+⋯c_1f_1 + c_2f_2 + \cdots.

This brings about a startling fact: the derivative operator of calculus is a “linear transformation”!

ddx(f+g)=dfdx+dgdx,ddx(cf)=cdfdx\frac{d}{dx}(f + g) = \frac{df}{dx} + \frac{dg}{dx}, \quad \frac{d}{dx}(cf) = c\frac{df}{dx}

Differentiation satisfies the two properties of a linear transformation — so differentiation is a “linear transformation on a space of functions”, and its “eigenvectors” satisfy dfdx=λf\frac{df}{dx} = \lambda f, which solves to f(x)=Ceλxf(x) = Ce^{\lambda x}.

2. Other Vector Spaces

“Vector” objectAdditionScalar multiplicationExample
Ordered arrayAdd the componentsMultiply each component by c(x1,…,xn)(x_1, \dots, x_n)
MatrixAdd entry by entryMultiply every entry by cAll 2×22\times2 matrices
PolynomialAdd the coefficientsMultiply each coefficient by ca0+a1x+a2x2a_0 + a_1x + a_2x^2
Continuous functionAdd pointwiseMultiply pointwise by cf(x)f(x)

Key point: they all obey the same “addition + scalar multiplication + eight axioms” rule, so every tool of linear algebra (bases, linear transformations, eigenvalues…) applies to all of them.

III. The Axiomatic Definition of a Vector Space

A set VV is a vector space if it satisfies:

  1. Closure under addition: v+w∈V\mathbf{v} + \mathbf{w} \in V
  2. Closure under scalar multiplication: cv∈Vc\mathbf{v} \in V
  3. Associativity, commutativity, a zero element and an additive inverse for addition
  4. Associativity, distributivity and an identity element for scalar multiplication

Satisfying these is all it takes — whatever the “vectors” inside happen to look like.

IV. The Space of Polynomials and the Space of Matrices

The Space of Polynomials

All polynomials of degree ≤ 2 form a three-dimensional vector space, with basis

1,x,x21, \quad x, \quad x^2

Every quadratic polynomial is a linear combination of them:

a0+a1x+a2x2=a0⋅1+a1⋅x+a2⋅x2a_0 + a_1x + a_2x^2 = a_0\cdot 1 + a_1\cdot x + a_2\cdot x^2

Dimension = 3 (the number of coefficients).

The Space of Matrices

All 2×22\times2 matrices form a four-dimensional vector space, with basis

(1000),(0100),(0010),(0001)\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}, \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}, \begin{pmatrix} 0 & 0 \\ 1 & 0 \end{pmatrix}, \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}

Every 2×22\times2 matrix is a linear combination of them, so dimension = 4.

V. Why This Matters

  1. Unity: differential equations, Fourier series and machine learning can all be described in the language of linear algebra
  2. Reusable tools: a method learned in one vector space transfers to every vector space
  3. The power of abstraction: ignore the appearance and grasp the essence, which is the “linear structure”

The Fourier viewpoint: the Fourier transform = “changing the basis” of a function to the sine/cosine basis (the frequency basis) — this is exactly the change-of-basis idea. The sine functions are the eigenfunctions of the “translation operator”.

The final section of the course, Applications of Linear Algebra, surveys the application landscape of the whole discipline.

VI. One Vector, Different Coordinates

The vector (3,2)(3, 2) means "3ı^+2ȷ^3\hat{\imath} + 2\hat{\jmath}" in the standard basis {ı^,ȷ^}\{\hat{\imath}, \hat{\jmath}\}.

But if we change to another basis {b1,b2}\{\mathbf{b}_1, \mathbf{b}_2\} (say b1=(1,1)\mathbf{b}_1 = (1, 1) and b2=(1,−1)\mathbf{b}_2 = (1, -1)), the same vector has different coordinates — it is now expressed as a combination of b1,b2\mathbf{b}_1, \mathbf{b}_2.

The same point:
in the standard basis: v = (3, 2)
in the new basis:      v = 2.5·b₁ + 0.5·b₂   (because 2.5(1,1) + 0.5(1,-1) = (3, 2))

Coordinates are not an intrinsic property of a vector; they are a description “relative to some basis”.

VII. The Change-of-Basis Matrix

From New-Basis Coordinates to Standard-Basis Coordinates

Let the new basis be {b1,b2}\{\mathbf{b}_1, \mathbf{b}_2\} (written in standard-basis coordinates). If the coordinates of a vector in the new basis are [v]B=(x′,y′)T[\mathbf{v}]_\mathcal{B} = (x', y')^T, then its standard-basis coordinates are

v=x′b1+y′b2=(∣∣b1b2∣∣)⏟B(x′y′)\mathbf{v} = x'\mathbf{b}_1 + y'\mathbf{b}_2 = \underbrace{\begin{pmatrix} | & | \\ \mathbf{b}_1 & \mathbf{b}_2 \\ | & | \end{pmatrix}}_{B} \begin{pmatrix} x' \\ y' \end{pmatrix}

The columns of the change-of-basis matrix BB are the new basis vectors (in standard-basis coordinates).

From Standard-Basis Coordinates to New-Basis Coordinates

Conversely, use B−1B^{-1}:

[v]B=B−1v[\mathbf{v}]_\mathcal{B} = B^{-1}\mathbf{v}
Example: B = [[1, 1], [1, -1]] (b₁ = (1,1), b₂ = (1,-1))
B⁻¹ = (1/-2)[[-1, -1], [-1, 1]] = [[0.5, 0.5], [0.5, -0.5]]
Check: B⁻¹·(3, 2) = (0.5×3+0.5×2, 0.5×3−0.5×2) = (2.5, 0.5) ✓
(consistent with 2.5b₁ + 0.5b₂ above)

VIII. A Linear Transformation Under a Change of Coordinates: Similar Matrices

The Question

The same linear transformation TT is represented by a matrix AA in the standard basis and by a matrix A′A' in the new basis B\mathcal{B}. What is the relationship between A′A' and AA?

The Derivation

  1. First convert the vector from new-basis coordinates back to standard-basis coordinates: BB
  2. Apply the transformation: AA
  3. Convert back to new-basis coordinates: B−1B^{-1}
A′=B−1ABA' = B^{-1} A B

A′A' and AA are called similar.

IX. Why Change of Basis Matters

SituationSignificance
Choosing a “good” basisSome transformations become their simplest diagonal matrix in the eigenbasis
DiagonalisationIf a basis of eigenvectors is found, the matrix becomes diagonal (in the next section)
Signal processingThe Fourier transform = changing to the frequency basis
Data sciencePCA (principal component analysis) = changing to the directions of largest variance (the eigenvectors)

The benefit of diagonalisation: computations with a diagonal matrix are extremely simple (entry by entry), and powers are easy as well:

Ak=B(λ1k00λ2k)B−1A^k = B \begin{pmatrix} \lambda_1^k & 0 \\ 0 & \lambda_2^k \end{pmatrix} B^{-1}

X. An Intuitive Summary

ConceptExplanation
CoordinatesA description relative to some basis, not an intrinsic property
Change-of-basis matrix BBIts columns are the new basis vectors in standard-basis coordinates
Converting back to the standard basisv=B[v]B\mathbf{v} = B[\mathbf{v}]_\mathcal{B}
Converting to the new basis[v]B=B−1v[\mathbf{v}]_\mathcal{B} = B^{-1}\mathbf{v}
Similar matricesA′=B−1ABA' = B^{-1}AB (one transformation, two coordinate systems)
The purposeChoose a “good basis” to simplify the matrix, for instance by diagonalising it

Summary

Symbols Used in This Article

SymbolTypePronunciation / NoteMeaning in This Article
VVMathematical symbolthe space VA vector space, a set satisfying the axioms
v+w\mathbf{v} + \mathbf{w}Mathematical symbolv plus wClosure under addition: v+w∈V\mathbf{v}+\mathbf{w}\in V
cvc\mathbf{v}Mathematical symbolc times vClosure under scalar multiplication: cv∈Vc\mathbf{v}\in V
ddx\dfrac{d}{dx}Mathematical symbolderivative operatorThe derivative operator, a linear transformation on a space of functions
λ\lambdaGreek letterLambdaAn eigenvalue, satisfying dfdx=λf\dfrac{df}{dx}=\lambda f
eλxe^{\lambda x}Mathematical symbole to the lambda xAn eigenfunction of the derivative transformation, solving f(x)=Ceλxf(x)=Ce^{\lambda x}
1,x,x21, x, x^2Mathematical symbolone, x, x squaredA basis of the space of quadratic polynomials, of dimension 3
B\mathcal{B}Mathematical symbolcalligraphic BThe chosen basis, such as the new basis {b1,b2}\{\mathbf{b}_1,\mathbf{b}_2\}
b1,b2\mathbf{b}_1, \mathbf{b}_2Mathematical symbolb one, b twoThe new basis vectors, written in standard-basis coordinates
[v]B[\mathbf{v}]_\mathcal{B}Mathematical symbolv in basis BThe coordinates of the vector v\mathbf{v} in the basis B\mathcal{B}, such as (x′,y′)T(x',y')^T
BBMathematical symbolmatrix BThe change-of-basis matrix, whose columns are the new basis vectors
B−1B^{-1}Mathematical symbolB inverseThe inverse of the change-of-basis matrix, converting standard-basis coordinates back to the new basis
A′=B−1ABA' = B^{-1}ABMathematical symbolA prime equals B inverse A BThe matrix of the same linear transformation in the new basis; A′A' is similar to AA
λ1,λ2\lambda_1, \lambda_2Greek letterLambdaThe eigenvalues appearing in the standard form after diagonalisation

Found an issue with this content?

Tell us what could be improved.