Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

2.4E: Matrix Multiplication Exercises

( \newcommand{\kernel}{\mathrm{null}\,}\)

Exercises for 1

solutions

2

Compute the following matrix products.

[1302][2101] [112204][231197102] [507159][311] [133][302106] [100010001][325797] [113][218] [217][113] [3152][2153] [231574][a000b000c] [a000b000c][a000b000c]

  1. [1620610]
  2. [315]
  3. [23]
  4. [1001]
  5. [aa000bb000cc]

In each of the following cases, find all possible products A2, AB, AC, and so on.

  1. A=[123100], B=[12123],
    C=[102503]

  2. A=[124011], B=[1610],
    C=[201112]

  1. BA=[1410124], B2=[7616], CB=[2122616]
    AC=[41021], CA=[248115142]

Find a, b, a1, and b1 if:

  1. [aba1b1][3512]=[1120]
  2. [2112][aba1b1]=[7214]
  1. (a,b,a1,b1)=(3,0,1,2)

Verify that A2A6I=0 if:

[3102] [2221]

  1. A2A6I=[8225][2221][6006]=[0000]

[ex:ex2_3_5]

Given A=[1101], B=[102310],
C=[102158], and D=[312105], verify the following facts from Theorem [thm:003469].

A(BD)=ABAD A(BC)=(AB)C (CD)T=DTCT

  1. A(BC)=[1101][91651]=[141751]=[212310][102158]=(AB)C

Let A be a 2×2 matrix.

  1. If A commutes with [0100], show that
    A=[ab0a] for some a and b.

  2. If A commutes with [0010], show that
    A=[a0ca] for some a and c.

  3. Show that A commutes with every 2×2 matrix if and only if A=[a00a] for some a.
  1. If A=[abcd] and E=[0010], compare entries an AE and EA.
  1. If A2 can be formed, what can be said about the size of A?
  2. If AB and BA can both be formed, describe the sizes of A and B.
  3. If ABC can be formed, A is 3×3, and C is 5×5, what size is B?
  1. m×n and n×m for some m and n
  1. Find two 2×2 matrices A such that A2=0.
  2. Find three 2×2 matrices A such that (i) A2=I; (ii) A2=A.
  3. Find 2×2 matrices A and B such that AB=0 but BA0.
    1. [1001], [1001], [1101]
    2. [1000], [1001], [1100]

Write P=[100001010], and let A be 3×n and B be m×3.

  1. Describe PA in terms of the rows of A.
  2. Describe BP in terms of the columns of B.

Let A, B, and C be as in Exercise [ex:ex2_3_5]. Find the (3,1)-entry of CAB using exactly six numerical multiplications.

Compute AB, using the indicated block partitioning.

A=[2131101200100001]B=[120100051110]

In each case give formulas for all powers A,A2,A3, of A using the block decomposition indicated.

  1. A=[100111111]
  2. A=[1121010000110001]
  1. A2k=[12k00010000100001] for k=0,1,2,,
    A2k+1=A2kA=[1(2k+1)21010000110001] for k=0,1,2,

Compute the following using block multiplication (all blocks are k×k).

[IXYI][I0YI] [IX0I][IX0I] [IX][IX]T [IXT][XI]T [IX0I]n any n1 [0XI0]n any n1

  1. [I00I]=I2k
  2. 0k
  3. [Xm00Xm] if n=2m; [0Xm+1Xm0] if n=2m+1

Let A denote an m×n matrix.

  1. If AX=0 for every n×1 matrix X, show that A=0.
  2. If YA=0 for every 1×m matrix Y, show that A=0.
  1. If Y is row i of the identity matrix I, then YA is row i of IA=A.
  1. If U=[1201], and AU=0, show that A=0.
  2. Let U be such that AU=0 implies that A=0. If PU=QU, show that P=Q.

Simplify the following expressions where A, B, and C represent matrices.

  1. A(3BC)+(A2B)C+2B(C+2A)
  2. A(B+CD)+B(CA+D)(A+B)C+(AB)D
  3. AB(BCCB)+(CAAB)BC+CA(AB)C
  4. (AB)(CA)+(CB)(AC)+(CA)2
  1. ABBA
  2. 0

If A=[abcd] where a0, show that A factors in the form A=[10x1][yz0w].

If A and B commute with C, show that the same is true of:

A+B kA, k any scalar

  1. (kA)C=k(AC)=k(CA)=C(kA)

If A is any matrix, show that both AAT and ATA are symmetric.

If A and B are symmetric, show that AB is symmetric if and only if AB=BA.

We have AT=A and BT=B, so (AB)T=BTAT=BA. Hence AB is symmetric if and only if AB=BA.

If A is a 2×2 matrix, show that ATA=AAT if and only if A is symmetric or A=[abba] for some a and b.

  1. Find all symmetric 2×2 matrices A such that A2=0.
  2. Repeat (a) if A is 3×3.
  3. Repeat (a) if A is n×n.
  1. A=0

Show that there exist no 2×2 matrices A and B such that ABBA=I. [Hint: Examine the (1,1)- and (2,2)-entries.]

Let B be an n×n matrix. Suppose AB=0 for some nonzero m×n matrix A. Show that no n×n matrix C exists such that BC=I.

If BC=I, then AB=0 gives 0=0C=(AB)C=A(BC)=AI=A, contrary to the assumption that A0.

An autoparts manufacturer makes fenders, doors, and hoods. Each requires assembly and packaging carried out at factories: Plant 1, Plant 2, and Plant 3. Matrix A below gives the number of hours for assembly and packaging, and matrix B gives the hourly rates at the three plants. Explain the meaning of the (3,2)-entry in the matrix AB. Which plant is the most economical to operate? Give reasons.

lccll & Assembly & Packaging & &
FendersDoorsHoods & & = & A

For the directed graph below, find the adjacency matrix A, compute A3, and determine the number of paths of length 3 from v1 to v4 and from v2 to v3.

3 paths v1v4, 0 paths v2v3

In each case either show the statement is true, or give an example showing that it is false.

  1. If A2=I, then A=I.
  2. If AJ=A, then J=I.
  3. If A is square, then (AT)3=(A3)T.
  4. If A is symmetric, then I+A is symmetric.
  5. If AB=AC and A0, then B=C.
  6. If A0, then A20.
  7. If A has a row of zeros, so also does BA for all B.
  8. If A commutes with A+B, then A commutes with B.
  9. If B has a column of zeros, so also does AB.
  10. If AB has a column of zeros, so also does B.
  11. If A has a row of zeros, so also does AB.
  12. If AB has a row of zeros, so also does A.
  1. False. If A=[1000]=J, then AJ=A but JI.
  2. True. Since AT=A, we have (I+AT=IT+AT=I+A.
  3. False. If A=[0100], then A0 but A2=0.
  4. True. We have A(A+B)=(A+B)A; that is, A2+AB=A2+BA. Subtracting A2 gives AB=BA.
  5. False. A=[1224], B=[2412]
  6. False. See (j).
  1. If A and B are 2×2 matrices whose rows sum to 1, show that the rows of AB also sum to 1.
  2. Repeat part (a) for the case where A and B are n×n.
  1. If A=[aij] and B=[bij] and jaij=1=jbij, then the (i,j)-entry of AB is cij=kaikbkj, whence jcij=jkaikbkj=kaik(jbkj)=kaik=1. Alternatively: If e=(1,1,,1), then the rows of A sum to 1 if and only if Ae=e. If also Be=e then (AB)e=A(Be)=Ae=e.

Let A and B be n×n matrices for which the systems of equations Ax=0 and Bx=0 each have only the trivial solution x=0. Show that the system (AB)x=0 has only the trivial solution.

The trace of a square matrix A, denoted trA, is the sum of the elements on the main diagonal of A. Show that, if A and B are n×n matrices:

\functr(A+B)=trA+trB. \functr(kA)=k\functr(A) for any number k. \functr(AT)=\functr(A). \functr(AB)=\functr(BA). \functr(AAT) is the sum of the squares of all entries of A.

  1. If A=[aij], then \functr(kA)=\functr[kaij]=ni=1kaii=kni=1aii=k\functr(A).
  2. Write AT=[aij], where aij=aji. Then AAT=(nk=1aikakj), so \functr(AAT)=ni=1[nk=1aikaki]=ni=1nk=1a2ik.

Show that ABBA=I is impossible.

[Hint: See the preceding exercise.]

A square matrix P is called an idempotent if P2=P. Show that:

  1. 0 and I are idempotents.
  2. [1100], [1010], and 12[1111], are idempotents.
  3. If P is an idempotent, so is IP. Show further that P(IP)=0.
  4. If P is an idempotent, so is PT.
  5. If P is an idempotent, so is Q=P+APPAP for any square matrix A (of the same size as P).
  6. If A is n×m and B is m×n, and if AB=In, then BA is an idempotent.
  1. Observe that PQ=P2+PAPP2AP=P, so Q2=PQ+APQPAPQ=P+APPAP=Q.

Let A and B be n×n diagonal matrices (all entries off the main diagonal are zero).

  1. Show that AB is diagonal and AB=BA.
  2. Formulate a rule for calculating XA if X is m×n.
  3. Formulate a rule for calculating AY if Y is n×k.

If A and B are n×n matrices, show that:

  1. AB=BA if and only if

    (A+B)2=A2+2AB+B2

  2. AB=BA if and only if

    (A+B)(AB)=(AB)(A+B)

  1. (A+B)(AB)=A2AB+BAB2, and (AB)(A+B)=A2+ABBAB2. These are equal if and only if AB+BA=ABBA; that is, 2BA=2AB; that is, BA=AB.

In Theorem [thm:003584], prove

part 3; part 5.

  1. (A+B)(AB)=A2AB+BAB2 and (AB)(A+B)=A2BA+ABB2. These are equal if and only if AB+BA=BA+AB, that is 2AB=2BA, that is AB=BA.

2.4E: Matrix Multiplication Exercises is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

  • Was this article helpful?

Support Center

How can we help?