hanegreefs.com/Math II
Chapter 3 · unit 3 of 12

Linear maps: homomorphisms, kernel and range

Homomorphisms and isomorphisms, the null space and range space, rank, nullity and the rank-nullity theorem, and the matrix that represents a linear map with respect to chosen bases.

Course notes: Syllabus ch. 4 (Maps Between Spaces), first half · Exercise sessions: Sheets 5 and 6, second bonus test · About 60 minutes

Homomorphisms (linear maps)Important

A map h : V → W between vector spaces is a homomorphism (a linear map) when it preserves the two operations: h(u + v) = h(u) + h(v) and h(r v) = r h(v) for all vectors and scalars. Both conditions together say that h preserves linear combinations:

Formula
h(c1v1 + c2v2) = c1h(v1) + c2h(v2)

A quick necessary test: a linear map sends 0 to 0. So (x, y) ↦ (x + 1, y) is not linear. Products of variables, squares, absolute values and constants added to a component all break linearity: (x, y) ↦ (xy, x) fails because h(2(1, 1)) = (4, 2) while 2h(1, 1) = (2, 2).

A linear map is completely fixed by what it does to a basis: if v = c1b1 + ... + cnbn, then h(v) = c1h(b1) + ... + cnh(bn). This is the key to many short exam questions.

Worked example

Image of a vector from the images of a basis

h : ℝ3 → ℝ2 is linear with h(e1) = (2, −1), h(e2) = (0, 3), h(e3) = (1, 1). Find h(3, 1, −2).

1

Write the vector in the basis

(3, 1, −2) = 3e1 + e2 − 2e3
2

Use linearity

h(3, 1, −2) = 3(2, −1) + (0, 3) − 2(1, 1)
3

Compute

= (6 + 0 − 2, −3 + 3 − 2) = (4, −2)
Answer

h(3, 1, −2) = (4, −2). If the given basis is not the standard one, first find the coordinates of the vector in that basis.

What a linear map does to pictures: the origin stays put, straight lines go to straight lines (or collapse to a point), parallel lines stay parallel and a grid of parallelograms goes to a grid of parallelograms. To draw the image of a vector, just compute it: the shear g(x, y) = (x + 2y, y) sends (1, 1) to (3, 1) and (0, 1) to (2, 1).

IsomorphismsNeutral

An isomorphism is a linear map that is also a bijection: one-to-one (different inputs give different outputs) and onto (every element of W is reached). Isomorphic spaces are the same space with different labels. The central theorem: two finite-dimensional spaces are isomorphic exactly when they have the same dimension. In particular every n-dimensional space is isomorphic to ℝn, via v ↦ RepB(v).

Worked example

Polynomials as vectors

P2 and ℝ3.

1

The map

f(a0 + a1x + a2x2) = (a0, a1, a2)
2

Linear

adding polynomials or scaling them adds or scales the coefficient vectors
3

Bijective

every coefficient vector comes from exactly one polynomial
Answer

P2 ≅ ℝ3, both of dimension 3. An isomorphism sends any basis to a basis.

For a square matrix the quickest isomorphism test is the determinant (chapter 6): the map x ↦ A x is an isomorphism exactly when det A ≠ 0.

Kernel, range and the rank-nullity theoremImportant

The null space or kernel N(h) = {v ∈ V | h(v) = 0} is a subspace of the domain; its dimension is the nullity. The range space R(h) = {h(v) | v ∈ V} is a subspace of the codomain; its dimension is the rank. The two are tied together:

Formula
rank(h) + nullity(h) = dim V   (rank-nullity, or dimension theorem)
PropertyEquivalent condition
h is one-to-one (injective)N(h) = {0}, nullity 0
h is onto (surjective)R(h) = W, rank = dim W
h is an isomorphismboth; this needs dim V = dim W

Method with a matrix H: row reduce H. The kernel is the solution set of H x = 0 (free variables give its basis). The range is spanned by the columns of H; the pivot columns of the original H form a basis of it.

Worked example

A map from ℝ4 to ℝ3

h(x) = H x with H = 1201011−11310.

1

Row reduce

R3 → R3 − R1 − R2 gives a zero row, and R1 → R1 − 2R2 gives 10−23011−10000
2

Kernel

z = s and w = t are free; y = −s + t and x = 2s − 3t
3

Basis of the kernel

(2, −1, 1, 0) and (−3, 1, 0, 1); nullity 2
4

Range

pivots in columns 1 and 2, so R(h) = span{(1, 0, 1), (2, 1, 3)}; rank 2
5

Check

rank + nullity = 2 + 2 = 4 = dim ℝ4
Answer

h is not one-to-one (nullity 2) and not onto (rank 2 < 3). Check a kernel vector by multiplying: H (2, −1, 1, 0) = (0, 0, 0).

Worked example

A map on polynomials

h : P2 → ℝ2, h(a + bx + cx2) = (a + b + c, b).

1

Kernel

b = 0 and a + c = 0, so the kernel is {a(1 − x2)}: basis 1 − x2, nullity 1
2

Rank by the theorem

rank = 3 − 1 = 2 = dim ℝ2
Answer

h is onto but not one-to-one. Note that the kernel contains polynomials, not columns.

Common trapTake the basis of the range from the columns of the original matrix, not from the reduced one: row operations change the column space.

The matrix of a linear mapImportant

Choose a basis B = ⟨b1, ..., bn⟩ of V and a basis D of W. The matrix RepB,D(h) has as its i-th column RepD(h(bi)). It turns coordinates into coordinates:

Formula
RepD(h(v)) = RepB,D(h) · RepB(v)

A map from an n-dimensional space to an m-dimensional space has an m × n matrix (rows = dimension of the codomain). With the standard bases the columns are simply h(e1), ..., h(en).

Worked example

Standard matrix from values on another basis

h : ℝ2 → ℝ2 is linear with h(1, 1) = (3, 1) and h(1, −1) = (1, −1). Find the standard matrix H.

1

Write e1 and e2 in the basis

e1 = ½(1, 1) + ½(1, −1) and e2 = ½(1, 1) − ½(1, −1)
2

Images

h(e1) = ½(3, 1) + ½(1, −1) = (2, 0) and h(e2) = ½(3, 1) − ½(1, −1) = (1, 1)
3

Matrix

H = 2101
4

Check

H (1, 1) = (3, 1) and H (1, −1) = (1, −1)
Answer

In matrix form H = [h(b1) h(b2)] B−1, where B has the basis vectors as columns.

Composition of maps corresponds to the product of their matrices (chapter 4), and the matrix of the identity map with respect to two different bases is a change of basis matrix (chapter 7).

Key takeaways

  • Linear: h(c1v1 + c2v2) = c1h(v1) + c2h(v2); a linear map sends 0 to 0.
  • A linear map is fixed by the images of a basis.
  • Kernel in the domain, range in the codomain; rank + nullity = dim domain.
  • One-to-one means kernel {0}; onto means rank = dim codomain.
  • Spaces are isomorphic exactly when their dimensions agree.
  • Column i of RepB,D(h) is RepD(h(bi)); size m × n for V of dimension n and W of dimension m.

Loading cards
Question
Click, tap or press space to flip
Answer

True or false (5)

Statement 1 · Chapter 3 · true or false

The map (x, y) ↦ (2x − y, 0, x) is linear.

Why: Each component is a linear expression without constant.
Statement 2 · Chapter 3 · true or false

The map (x, y) ↦ (x2, y) is linear.

Why: h(2, 0) = (4, 0) but 2h(1, 0) = (2, 0).
Statement 3 · Chapter 3 · true or false

A linear map h : ℝ3 → ℝ3 with nullity 0 is an isomorphism.

Why: Rank 3 = dim of the codomain, so it is also onto.
Statement 4 · Chapter 3 · true or false

P3 is isomorphic to ℝ3.

Why: dim P3 = 4.
Statement 5 · Chapter 3 · true or false

If h : ℝ4 → ℝ4 has rank 4, its kernel is {0}.

Why: Nullity = 4 − 4 = 0.

Multiple choice (7)

Question 1 · Chapter 3

A linear h : ℝ6 → ℝ4 has rank 3. Its nullity is...

Why: 6 − 3 = 3.
Question 2 · Chapter 3

h(e1) = (1, 2) and h(e2) = (0, −1). Then h(2, 3) equals...

Why: 2(1, 2) + 3(0, −1) = (2, 1).
Question 3 · Chapter 3

Which map is linear?

Why: Only the first is a combination of the variables without constant.
Question 4 · Chapter 3

The kernel of (x, y, z) ↦ (x + y, y + z) is spanned by...

Why: x = −y and z = −y; take y = −1.
Question 5 · Chapter 3

The matrix of h : P2 → P1, p ↦ p′, in the standard bases has size...

Why: Rows = dim P1 = 2, columns = dim P2 = 3.
Question 6 · Chapter 3

A linear map h : ℝ3 → ℝ3 with h(1, 0, 0) = h(0, 1, 0) is...

Why: h(1, −1, 0) = 0, so the kernel is not {0}.
Question 7 · Chapter 3

Rank of the 3 × 3 matrix whose rows are (1, 2, 3), (2, 4, 6), (1, 0, 1)?

Why: The second row is twice the first; the third is independent.

Exam-style open questions (3)

Open question · Chapter 3

Kernel and range with rank-nullity

h : ℝ3 → ℝ3, h(x, y, z) = (x + 2y − z, 2x + 4y + z, 3x + 6y). Find a basis of the null space and of the range space and check the dimension theorem.

Show a model answer outline
  • Matrix rows (1, 2, −1), (2, 4, 1), (3, 6, 0); R2 − 2R1 = (0, 0, 3), R3 − 3R1 = (0, 0, 3), then R3 − R2 = 0.
  • Pivots in columns 1 and 3; y = t free, z = 0, x = −2t: kernel span{(−2, 1, 0)}, nullity 1.
  • Range: columns 1 and 3 of the original matrix, span{(1, 2, 3), (−1, 1, 0)}, rank 2.
  • 2 + 1 = 3 = dim ℝ3. Not an isomorphism.
Open question · Chapter 3

A map known on a non-standard basis

h : ℝ2 → ℝ3 is linear with h(1, 2) = (1, 0, 4) and h(0, 1) = (2, 1, 1). Find h(3, 4) and the standard matrix.

Show a model answer outline
  • (3, 4) = 3(1, 2) − 2(0, 1), so h(3, 4) = 3(1, 0, 4) − 2(2, 1, 1) = (−1, −2, 10).
  • e2 = (0, 1): h(e2) = (2, 1, 1). e1 = (1, 2) − 2(0, 1): h(e1) = (1, 0, 4) − 2(2, 1, 1) = (−3, −2, 2).
  • Standard matrix with columns (−3, −2, 2) and (2, 1, 1); check: it sends (3, 4) to (−9 + 8, −6 + 4, 6 + 4) = (−1, −2, 10).
Open question · Chapter 3

Design a map

Write down a linear map t : ℝ3 → ℝ3 with nullity exactly 1, and give a basis of its range.

Show a model answer outline
  • Many answers. For example t(x, y, z) = (x, y, 0): the kernel is the z-axis, nullity 1.
  • Range = {(a, b, 0)}, basis (1, 0, 0), (0, 1, 0), rank 2.
  • Check 2 + 1 = 3. Its standard matrix has determinant 0, as it must for a map that is not an isomorphism.

LabKernel, range and rank-nullity lab

The default is the worked example; try a 3 × 3 matrix with determinant 0.

LabMatrix of a map from values on a basis

Start with the worked example in ℝ2.

LabLinear or not?

Test h(0) = 0 first, then look for products, powers and constants.