5 Vector Spaces

Mathematics II · Unit 5 · 5 hrs

Vector Spaces

Exam-focused notes for Vector Spaces (Mathematics II, MTH168): what the TU syllabus asks and how it has actually been tested, with 10 solved past questions from this unit.

Vector Spaces in short

This chapter lifts the whole theory, span, linear independence, subspaces, off $\mathbb{R}^n$ and onto any set with the right algebraic structure, a vector space, and introduces the null space and column space of a matrix as the two subspaces that decide when $A\mathbf{x}=\mathbf{b}$ can be solved.

Vector Spaces: notes

Vector spaces and subspaces

A vector space is a non-empty set $V$ of objects, called vectors, together with two operations, addition and scalar multiplication, satisfying ten axioms: closure under addition, commutativity ($\mathbf{u}+\mathbf{v}=\mathbf{v}+\mathbf{u}$), associativity of addition, existence of a zero vector, existence of an additive inverse for each vector (so $V$ is an abelian group under addition), closure under scalar multiplication, and four axioms distributing scalars over vector and scalar addition, together with $1\cdot\mathbf{u}=\mathbf{u}$. The set $\mathbb{R}^n$, the set of all polynomials, and the set of all $m\times n$ matrices are all vector spaces under their natural operations.

A non-empty subset $H$ of a vector space $V$ is a subspace if it contains the zero vector of $V$ and is closed under addition and scalar multiplication, i.e. for all $\mathbf{u},\mathbf{v}\in H$ and scalars $a,b$, $a\mathbf{u}+b\mathbf{v}\in H$. Since $\operatorname{Span}{\mathbf{v}_1,\ldots,\mathbf{v}_p}$ is always closed under these operations and contains $\mathbf{0}$ (taking all weights zero), the span of any set of vectors in $V$ is a subspace of $V$.

Worked example. Show that $H = {(a-3b,\ b-a,\ a,\ b) : a, b \in \mathbb{R}}$ is a subspace of $\mathbb{R}^4$. Writing the general element as a linear combination in $a$ and $b$, $$(a-3b,\ b-a,\ a,\ b) = a(1,-1,1,0) + b(-3,1,0,1) = a\mathbf{v}_1 + b\mathbf{v}_2,$$ so $H = \operatorname{Span}{\mathbf{v}_1, \mathbf{v}_2}$ with $\mathbf{v}_1 = (1,-1,1,0)$, $\mathbf{v}_2 = (-3,1,0,1)$. Since every span is a subspace, $H$ is a subspace of $\mathbb{R}^4$.

What this unit covers

  • Vector spaces and subspaces
  • Null spaces, Column spaces, and Linear transformations
  • Linearly independent sets: Bases
  • Coordinate systems

Null spaces, Column spaces, and Linear transformations

2080 · 5 marks

Define null space of a matrix A. Let then show that v belongs to the null space matrix A. $A = \begin{bmatrix} 1 & -3 & 2 \ -5 & 9 & -1 \end{bmatrix}$, $v = \begin{bmatrix} 5 \ 3 \ 2 \end{bmatrix}$ [5]

Matrix A (2×3): $$A = \begin{bmatrix} 1 & -3 & 2 \ -5 & 9 & -1 \end{bmatrix}$$ Vector v (3×1): $$v = \begin{bmatrix} 5 \ 3 \ 2 \end{bmatrix}$$ All required data is present. --- For an $m \times n$ matrix $A$, the null space of $A$, denoted $N(A)$ or $\text{Null}(A)$, is the set of all vectors ...

Open this answer on its own page →

2079 · 5 marks

Define null space of a matrix $A$. Show that $v$ is in the null space of $A$, where

$$A = \begin{bmatrix} 1 & -3 & -2 \ -5 & 9 & 1 \end{bmatrix}, \qquad v = \begin{bmatrix} 5 \ 3 \ -2 \end{bmatrix}$$

Show solved answer

Null Space of a Matrix

The null space of an $m \times n$ matrix $A$, written $N(A)$ or $\text{Null}(A)$, is the set of all vectors $\mathbf{x}$ in $\mathbb{R}^n$ that satisfy the homogeneous equation $A\mathbf{x} = \mathbf{0}$:

$$N(A) = {, \mathbf{x} \in \mathbb{R}^n \mid A\mathbf{x} = \mathbf{0} ,}$$

so the null space is exactly the solution set of $A\mathbf{x} = \mathbf{0}$. Its vectors carry as many components as $A$ has columns, while the zero vector on the right carries as many components as $A$ has rows.

The null space is always a subspace of $\mathbb{R}^n$. It contains the zero vector because $A\mathbf{0} = \mathbf{0}$, it is closed under addition because $A\mathbf{u} = \mathbf{0}$ and $A\mathbf{v} = \mathbf{0}$ give

$$A(\mathbf{u} + \mathbf{v}) = A\mathbf{u} + A\mathbf{v} = \mathbf{0}$$

and it is closed under scalar multiplication because $A\mathbf{u} = \mathbf{0}$ gives

$$A(c\mathbf{u}) = c(A\mathbf{u}) = \mathbf{0}$$

Its dimension is called the nullity of $A$, and by the rank-nullity theorem the rank and the nullity add up to $n$, the number of columns.

Showing that $v$ lies in $\text{Null}(A)$

We are given

$$A = \begin{bmatrix} 1 & -3 & -2 \ -5 & 9 & 1 \end{bmatrix}, \qquad v = \begin{bmatrix} 5 \ 3 \ -2 \end{bmatrix}$$

Here $A$ has three columns, so the vectors of its null space live in $\mathbb{R}^3$, and $v$ has three components, which makes the test meaningful. Membership needs no row reduction at all, because it is settled by the single defining condition $Av = \mathbf{0}$. Forming the product row by row,

$$Av = \begin{bmatrix} 1 & -3 & -2 \ -5 & 9 & 1 \end{bmatrix} \begin{bmatrix} 5 \ 3 \ -2 \end{bmatrix}$$

The first row gives

$$(1)(5) + (-3)(3) + (-2)(-2) = 5 - 9 + 4 = 0$$

and the second row gives

$$(-5)(5) + (9)(3) + (1)(-2) = -25 + 27 - 2 = 0$$

so that

$$Av = \begin{bmatrix} 0 \ 0 \end{bmatrix} = \mathbf{0}$$

Since $Av = \mathbf{0}$, the vector $v$ satisfies the defining condition of the null space. Therefore $v \in \text{Null}(A)$, which is what the question asked us to show.

Open this answer on its own page →

2078

Define null space of a matrix $A$. Let

$$A = \begin{bmatrix} 1 & -3 & -2 \ -5 & 9 & 1 \end{bmatrix}, \qquad v = \begin{bmatrix} 5 \ 3 \ -2 \end{bmatrix}$$

Then show that $v$ is in the null space of $A$.

Show solved answer

Null Space of a Matrix

The null space of an $m \times n$ matrix $A$, written $N(A)$ or $\text{Null}(A)$, is the set of all vectors $\mathbf{x}$ in $\mathbb{R}^n$ that satisfy the homogeneous equation $A\mathbf{x} = \mathbf{0}$:

$$N(A) = {, \mathbf{x} \in \mathbb{R}^n \mid A\mathbf{x} = \mathbf{0} ,}$$

so the null space is exactly the solution set of $A\mathbf{x} = \mathbf{0}$. Its vectors carry as many components as $A$ has columns, while the zero vector on the right carries as many components as $A$ has rows.

The null space is always a subspace of $\mathbb{R}^n$. It contains the zero vector because $A\mathbf{0} = \mathbf{0}$, it is closed under addition because $A\mathbf{u} = \mathbf{0}$ and $A\mathbf{v} = \mathbf{0}$ give

$$A(\mathbf{u} + \mathbf{v}) = A\mathbf{u} + A\mathbf{v} = \mathbf{0}$$

and it is closed under scalar multiplication because $A\mathbf{u} = \mathbf{0}$ gives

$$A(c\mathbf{u}) = c(A\mathbf{u}) = \mathbf{0}$$

Its dimension is called the nullity of $A$, and by the rank-nullity theorem the rank and the nullity add up to $n$, the number of columns.

Showing that $v$ lies in $\text{Null}(A)$

We are given

$$A = \begin{bmatrix} 1 & -3 & -2 \ -5 & 9 & 1 \end{bmatrix}, \qquad v = \begin{bmatrix} 5 \ 3 \ -2 \end{bmatrix}$$

Here $A$ has three columns, so the vectors of its null space live in $\mathbb{R}^3$, and $v$ has three components, which makes the test meaningful. Membership needs no row reduction at all, because it is settled by the single defining condition $Av = \mathbf{0}$. Forming the product row by row,

$$Av = \begin{bmatrix} 1 & -3 & -2 \ -5 & 9 & 1 \end{bmatrix} \begin{bmatrix} 5 \ 3 \ -2 \end{bmatrix}$$

The first row gives

$$(1)(5) + (-3)(3) + (-2)(-2) = 5 - 9 + 4 = 0$$

and the second row gives

$$(-5)(5) + (9)(3) + (1)(-2) = -25 + 27 - 2 = 0$$

so that

$$Av = \begin{bmatrix} 0 \ 0 \end{bmatrix} = \mathbf{0}$$

Since $Av = \mathbf{0}$, the vector $v$ satisfies the defining condition of the null space. Therefore $v \in \text{Null}(A)$, which is what the question asked us to show.

Open this answer on its own page →

2076 · 5 marks

Define null space. Find their basis for the null space of the matrix $A = \begin{bmatrix} 1 & 2 & 3 \ 2 & 3 & 4 \end{bmatrix}$ [5]

  • Matrix $A = \begin{bmatrix} 1 & 2 & 3 \ 2 & 3 & 4 \end{bmatrix}$ (size $2 \times 3$) For an $m \times n$ matrix $A$, the null space (denoted $N(A)$ or $\text{Null}(A)$) is the set of all vectors $\mathbf{x} \in \mathbb{R}^n$ satisfying $A\mathbf{x} = \mathbf{0}$: $$N(A) = { \mathbf{x} \in \ma...
Open this answer on its own page →

2075 · 5 marks

Find the dimension of the null space and column space of $A = \begin{bmatrix} -3 & 6 & -1 & 1 & -7 \ 1 & -2 & 2 & 3 & -1 \ 2 & -4 & 5 & 8 & -4 \end{bmatrix}$ [5]

Show solved answer

Dimensions of Null Space and Column Space of A

Given

$$A = \begin{bmatrix} -3 & 6 & -1 & 1 & -7 \ 1 & -2 & 2 & 3 & -1 \ 2 & -4 & 5 & 8 & -4 \end{bmatrix}, \quad 3 \times 5 \text{ matrix}$$

Number of columns $n = 5$.

Step 2 - Row reduce to echelon form

Swap $R_1 \leftrightarrow R_2$:

$$\begin{bmatrix} 1 & -2 & 2 & 3 & -1 \ -3 & 6 & -1 & 1 & -7 \ 2 & -4 & 5 & 8 & -4 \end{bmatrix}$$

$R_2 \to R_2 + 3R_1$: $(-3+3, 6-6, -1+6, 1+9, -7-3) = (0,0,5,10,-10)$

$R_3 \to R_3 - 2R_1$: $(2-2, -4+4, 5-4, 8-6, -4+2) = (0,0,1,2,-2)$

$$\begin{bmatrix} 1 & -2 & 2 & 3 & -1 \ 0 & 0 & 5 & 10 & -10 \ 0 & 0 & 1 & 2 & -2 \end{bmatrix}$$

$R_2 \to \tfrac{1}{5}R_2$: gives $(0,0,1,2,-2)$

$R_3 \to R_3 - R_2$: gives $(0,0,0,0,0)$

$$\begin{bmatrix} 1 & -2 & 2 & 3 & -1 \ 0 & 0 & 1 & 2 & -2 \ 0 & 0 & 0 & 0 & 0 \end{bmatrix}$$

Step 3 - Pivots and free variables

Pivots appear in columns 1 and 3.

  • Rank $= 2$
  • Free variables: $x_2, x_4, x_5$ (3 free variables)

Step 4 - Dimension of column space

$$\dim(\text{Col } A) = \text{rank}(A) = 2$$

mth168-rank-nullity-five-columns

Basis (pivot columns of original $A$):

$$\left{ \begin{bmatrix} -3 \ 1 \ 2 \end{bmatrix},\ \begin{bmatrix} -1 \ 2 \ 5 \end{bmatrix} \right}$$

Step 5 - Dimension of null space (Rank-Nullity)

$$\dim(\text{Nul } A) = n - \text{rank}(A) = 5 - 2 = 3$$

Final Answer

SpaceDimension
Column Space (rank)$2$
Null Space (nullity)$3$

Check: $2 + 3 = 5 = n$ ✓

Open this answer on its own page →

2080.1 · 5 marks

Find the basis and dimension of Null A where $A = \begin{bmatrix} 1 & 2 & 3 & 4 \ 2 & 4 & 7 & 8 \end{bmatrix}$ [5]

$$A = \begin{bmatrix} 1 & 2 & 3 & 4 \ 2 & 4 & 7 & 8 \end{bmatrix}$$ Matrix has 2 rows, 4 columns ($n = 4$ variables). We solve $A\mathbf{x} = \mathbf{0}$. $$\begin{bmatrix} 1 & 2 & 3 & 4 \ 2 & 4 & 7 & 8 \end{bmatrix}$$ $R2 \leftarrow R2 - 2R1$: $$\begin{bmatrix} 1 & 2 & 3 & 4 \ 0 & 0 & 1 & 0 ...

Open this answer on its own page →

Coordinate systems

2076 · 5 marks

Find the vector $\mathbf{x}$ determined by the coordinate vector $[\mathbf{x}]_\beta = \begin{bmatrix} -4 \ 8 \ 7 \end{bmatrix}$ where $\beta = \left{ \begin{bmatrix} -1 \ 2 \ 0 \end{bmatrix}, \begin{bmatrix} 3 \ -5 \ 2 \end{bmatrix}, \begin{bmatrix} 4 \ -7 \ 3 \end{bmatrix} \right}$. [5]

Basis: $$\mathbf{b}1 = \begin{bmatrix} -1 \ 2 \ 0 \end{bmatrix}, \quad \mathbf{b}2 = \begin{bmatrix} 3 \ -5 \ 2 \end{bmatrix}, \quad \mathbf{b}3 = \begin{bmatrix} 4 \ -7 \ 3 \end{bmatrix}$$ Coordinate vector: $$[\mathbf{x}]\beta = \begin{bmatrix} -4 \ 8 \ 7 \end{bmatrix} \Rightarrow c1 = ...

Open this answer on its own page →

Linearly independent sets

2075 · 10 marks

Define linearly independent set of vectors with an example. Show that the vectors (1,4,3), (0,3,1) and (3,-5,4) are linearly independent. Do they form a basis? Justify.[10]

A set of vectors ${\mathbf{v1}, \mathbf{v2}, \ldots, \mathbf{vn}}$ in a vector space $V$ is linearly independent if the only solution to $$x1\mathbf{v1} + x2\mathbf{v2} + \cdots + xn\mathbf{vn} = \mathbf{0}$$ is the trivial solution $x1 = x2 = \cdots = xn = 0$. If some nontrivial solution exist...

Open this answer on its own page →

Vector spaces and subspaces

2075 · 5 marks

Define subspace of a vector space. Let $H = \left{\begin{bmatrix} s \ t \ 0 \end{bmatrix} : s, t \in \mathbb{R}\right}$, show that $H$ is a subspace of $\mathbb{R}^3$. [5]

A non-empty subset H of a vector space V over a field k is said to be a subspace of V if it satisfies the following conditions: 1. Zero vector: The zero vector 0 belongs to H. 2. Closure under addition: For all u, v in H, u + v is in H. 3. Closure under scalar multiplication: For all u in H and s...

Open this answer on its own page →

2080.1 · 5 marks

Show that $H = {(a-3b, b-a, a, b) : a, b \in \mathbb{R}}$ is a subspace of $\mathbb{R}^4$. [5]

Given: $$H = {(a-3b,\ b-a,\ a,\ b) : a, b \in \mathbb{R}}$$ We rewrite a general element of H by separating the parameters $a$ and $b$: $$\begin{pmatrix} a-3b \ b-a \ a \ b \end{pmatrix} = a\begin{pmatrix} 1 \ -1 \ 1 \ 0 \end{pmatrix} + b\begin{pmatrix} -3 \ 1 \ 0 \ 1 \end{pmatrix}$$ D...

Open this answer on its own page →