Maths WorkshopMaths problems with full solutions
Exercise 138Linear algebra › Linear mapsL1Added 3 Nov 2026

Composition of linear maps

#composition#matrix product#linear maps

Statement

Let f:R2→R3f:\mathbb{R}^2\to\mathbb{R}^3 have matrix
A=(120110),A=\begin{pmatrix} 1 & 2 \\ 0 & 1 \\ 1 & 0 \end{pmatrix},
and g:R3→R2g:\mathbb{R}^3\to\mathbb{R}^2 have matrix
B=(101210).B=\begin{pmatrix} 1 & 0 & 1 \\ 2 & 1 & 0 \end{pmatrix}.
Compute the matrix of g∘fg\circ f.

Hint

The matrix of g∘fg\circ f is BABA.

Show solutionHide solution

Solution

Product.
BA=(101210)(120110)=(1+0+12+0+02+0+04+1+0)=(2225).BA = \begin{pmatrix} 1 & 0 & 1 \\ 2 & 1 & 0 \end{pmatrix}\begin{pmatrix} 1 & 2 \\ 0 & 1 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} 1+0+1 & 2+0+0 \\ 2+0+0 & 4+1+0 \end{pmatrix} = \begin{pmatrix} 2 & 2 \\ 2 & 5 \end{pmatrix}.

Check on the basis. f(1,0)=(1,0,1)f(1,0)=(1,0,1) and g(1,0,1)=(1+1, 2)=(2,2)g(1,0,1)=(1+1,\ 2)=(2,2): first column. f(0,1)=(2,1,0)f(0,1)=(2,1,0) and g(2,1,0)=(2, 4+1)=(2,5)g(2,1,0)=(2,\ 4+1)=(2,5): second column.

Conclusion. The matrix of g∘fg\circ f is (2225)\begin{pmatrix} 2 & 2 \\ 2 & 5 \end{pmatrix}.