Back to Linear Algebra

Matrix Multiplication

Composing two maps yields a product defined by dot products of rows with columns, obeying every algebra rule except commutativity.

Linear Algebra, Matrix Multiplication

Status
FlagsLoading your progress…

23 exercises

Exercise 1

Compute, or state “not defined”.

  • (a)  (31−42)(0500.5)\begin{pmatrix}3&1\\ -4&2\end{pmatrix}\begin{pmatrix}0&5\\ 0&0.5\end{pmatrix}     (b)  (11−1403)(2−1−1311311)\begin{pmatrix}1&1&-1\\ 4&0&3\end{pmatrix}\begin{pmatrix}2&-1&-1\\ 3&1&1\\ 3&1&1\end{pmatrix}     (c)  (2−774)(105−111384)\begin{pmatrix}2&-7\\ 7&4\end{pmatrix}\begin{pmatrix}1&0&5\\ -1&1&1\\ 3&8&4\end{pmatrix}     (d)  (5231)(−123−5)\begin{pmatrix}5&2\\ 3&1\end{pmatrix}\begin{pmatrix}-1&2\\ 3&-5\end{pmatrix}

3.0

Exercise 2

Where

compute or state “not defined.”

  • (a)  ABAB     (b)  (AB)C(AB)C     (c)  BCBC     (d)  A(BC)A(BC)

3.0

Exercise 3

Which products are defined?

  • (a)  3 ⁣× ⁣23\!\times\!2 times 2 ⁣× ⁣32\!\times\!3     (b)  2 ⁣× ⁣32\!\times\!3 times 3 ⁣× ⁣23\!\times\!2     (c)  2 ⁣× ⁣22\!\times\!2 times 3 ⁣× ⁣33\!\times\!3     (d)  3 ⁣× ⁣33\!\times\!3 times 2 ⁣× ⁣22\!\times\!2

3.0

Exercise 4

Give the size of the product or state “not defined”.

  • a 2 ⁣× ⁣32\!\times\!3 matrix times a 3 ⁣× ⁣13\!\times\!1 matrix

  • a 1 ⁣× ⁣121\!\times\!12 matrix times a 12 ⁣× ⁣112\!\times\!1 matrix

  • a 2 ⁣× ⁣32\!\times\!3 matrix times a 2 ⁣× ⁣12\!\times\!1 matrix

  • a 2 ⁣× ⁣22\!\times\!2 matrix times a 2 ⁣× ⁣22\!\times\!2 matrix

3.0

Exercise 5

Find the system of equations resulting from starting with

and making this change of variable (i.e., substitution).

3.0

Exercise 6

Consider the two linear functions h ⁣:R3→P2h\colon\mathbb{R}^{3}\to\mathcal{P}_{2} and g ⁣:P2→M2 ⁣× ⁣2g\colon\mathcal{P}_{2}\to\mathcal{M}_{2\!\times\!2} given as here.

Use these bases for the spaces.

  • Give the formula for the composition map g∘h ⁣:R3→M2 ⁣× ⁣2g\mathbin{\circ}h\colon\mathbb{R}^{3}\to\mathcal{M}_{2\!\times\!2} derived directly from the above definition.

  • Represent hh and gg with respect to the appropriate bases.

  • Represent the map g∘hg\mathbin{\circ}h computed in the first part with respect to the appropriate bases.

  • Check that the product of the two matrices from the second part is the…

3.0

Exercise 7

As Definition 2.3 points out, the matrix product operation generalizes the dot product. Is the dot product of a 1 ⁣× ⁣n1\!\times\!n row vector and a n ⁣× ⁣1n\!\times\!1 column vector the same as their matrix-multiplicative product?

3.0

Exercise 8

Represent the derivative map on Pn\mathcal{P}_{n} with respect to B,BB,B where BB is the natural basis ⟨1,x,…,xn⟩\langle 1,x,\ldots,x^{n}\rangle. Show that the product of this matrix with itself is defined; what map does it represent?

3.0

Exercise 9

Match each type of matrix with all these descriptions that could fit, say ‘None’ if it applies: (i) can be multiplied by its transpose to make a 1 ⁣× ⁣11\!\times\!1 matrix, (ii) can represent a linear map from R3\mathbb{R}^{3} to R2\mathbb{R}^{2} that is not onto, (iii) can represent an isomorphism from R3\mathbb{R}^{3} to P2\mathcal{P}^{2}.

  • a 2 ⁣× ⁣32\!\times\!3 matrix whose rank is 11

  • a 3 ⁣× ⁣33\!\times\!3 matrix that is nonsingular

  • a 2 ⁣× ⁣22\!\times\!2 matrix that is singular

  • an n ⁣× ⁣1n\!\times\!1 column vector

3.0

Exercise 10

Show that composition of linear transformations on R1\mathbb{R}^{1} is commutative. Is this true for any one-dimensional space?

3.0

Exercise 11

Why is matrix multiplication not defined as entry-wise multiplication? That would be easier, and commutative too.

3.0

Exercise 12

  • Prove that HpHq=Hp+qH^{p}H^{q}=H^{p+q} and (Hp)q=Hpq(H^{p})^{q}=H^{pq} for positive integers p,qp,q.

  • Prove that (rH)p=rp⋅Hp(rH)^{p}=r^{p}\cdot H^{p} for any positive integer pp and scalar r∈Rr\in\mathbb{R}.

3.0

Exercise 13

  • How does matrix multiplication interact with scalar multiplication: is r(GH)=(rG)Hr(GH)=(rG)H? Is G(rH)=r(GH)G(rH)=r(GH)?

  • How does matrix multiplication interact with linear combinations: is F(rG+sH)=r(FG)+s(FH)F(rG+sH)=r(FG)+s(FH)? Is (rF+sG)H=rFH+sGH(rF+sG)H=rFH+sGH?

3.0

Exercise 14

We can ask how the matrix product operation interacts with the transpose operation.

  • Show that (GH)T=HTGT{{(GH)}^{\mathsf{T}}}={{H}^{\mathsf{T}}}{{G}^{\mathsf{T}}}.

  • A square matrix is symmetric if each i,ji,j entry equals the j,ij,i entry, that is, if the matrix equals its own transpose. Show that the matrices HHTH{{H}^{\mathsf{T}}} and HTH{{H}^{\mathsf{T}}}H are symmetric.

3.0

Exercise 16

In the proof of Theorem 2.12 we used some maps. What are the domains and codomains?

3.0

Exercise 17

How does matrix rank interact with matrix multiplication?

  • Can the product of rank nn matrices have rank less than nn? Greater?

  • Show that the rank of the product of two matrices is less than or equal to the minimum of the rank of each factor.

3.0

Exercise 18

Is ‘commutes with’ an equivalence relation among n ⁣× ⁣nn\!\times\!n matrices?

3.0

Exercise 19

(We will use this exercise in the Matrix Inverses exercises.) Here is another property of matrix multiplication that might be puzzling at first sight.

  • Prove that the composition of the projections πx,πy ⁣:R3→R3\pi_{x},\pi_{y}\colon\mathbb{R}^{3}\to\mathbb{R}^{3} onto the xx and yy axes is the zero map despite that neither one is itself the zero map.

  • Prove that the composition of the derivatives d2/dx2, d3/dx3 ⁣:P4→P4d^{2}/dx^{2},\,d^{3}/dx^{3}\colon\mathcal{P}_{4}\to\mathcal{P}_{4} is the zero map despite that neither is the zero map.

  • Give a…

3.0

Exercise 20

Show that, for square matrices, (S+T)(S−T)(S+T)(S-T) need not equal S2−T2S^{2}-T^{2}.

3.0

Exercise 21

Represent the identity transformation id⁡ ⁣:V→V\operatorname{id}\colon V\to V with respect to B,BB,B for any basis BB. This is the identity matrix II. Show that this matrix plays the role in matrix multiplication that the number 11 plays in real number multiplication: HI=IH=HHI=IH=H (for all matrices HH for which the product is defined).

3.0

Exercise 22

  • Prove that for any 2 ⁣× ⁣22\!\times\!2 matrix TT there are scalars c0,…,c4c_{0},\dots,c_{4} that are not all 00 such that the combination c4T4+c3T3+c2T2+c1T+c0Ic_{4}T^{4}+c_{3}T^{3}+c_{2}T^{2}+c_{1}T+c_{0}I is the zero matrix (where II is the 2 ⁣× ⁣22\!\times\!2 identity matrix, with 11’s in its 1,11,1 and 2,22,2 entries and zeroes elsewhere; see Exercise 21).

  • Let p(x)p(x) be a polynomial p(x)=cnxn+⋯+c1x+c0p(x)=c_{n}x^{n}+\dots+c_{1}x+c_{0}. If TT is a square matrix we define p(T)p(T) to be the matrix cnTn+⋯+c1T+c0Ic_{n}T^{n}+\dots+c_{1}T+c_{0}I (where II is the appropriately-sized identity matrix). Prove that for any square matrix there…

3.0

Exercise 23

The infinite-dimensional space P\mathcal{P} of all finite-degree polynomials gives a memorable example of the non-commutativity of linear maps. Let d/dx ⁣:P→Pd/dx\colon\mathcal{P}\to\mathcal{P} be the usual derivative and let s ⁣:P→Ps\colon\mathcal{P}\to\mathcal{P} be the shift map.

Show that the two maps don’t commute d/dx∘s≠s∘d/dxd/dx\mathbin{\circ}s\neq s\mathbin{\circ}d/dx; in fact, not only is (d/dx∘s)−(s∘d/dx)(d/dx\mathbin{\circ}s)-(s\mathbin{\circ}d/dx) not the zero map, it is the identity map.

3.0

Exercise 24

Recall the notation for the sum of the sequence of numbers a1,a2,…,ana_{1},a_{2},\dots,a_{n}.

In this notation, the i,ji,j entry of the product of GG and HH is this.

Using this notation,

  • reprove that matrix multiplication is associative;

  • reprove Theorem 2.7.

3.0

Adapted from Linear Algebra © 2016 Jim Hefferon. Licensed under CC BY-SA 3.0 US. Source: Linear Algebra. Imported at revision df2262e.