Class 12 Maths, Worked in Full Past papersGet updates
Chapter 3 · Matrices

Exercise 3.2 · Q16: Prove A3−6A2+7A+2I=OA^3-6A^2+7A+2I=O

Exercise 3.2Multiplication of matrices · Section 3.4
The question

If

A=[102021203],A = \begin{bmatrix} 1 & 0 & 2 \\ 0 & 2 & 1 \\ 2 & 0 & 3 \end{bmatrix},

prove that A3−6A2+7A+2I=0A^3 - 6A^2 + 7A + 2I = 0⁠.

(The book writes the right-hand side as 0; it means the 3×33\times3 zero matrix OO⁠.)

Exam answer A2=AA=[102021203][102021203]\begin{aligned} &A^2 = AA \\ &= \begin{bmatrix} 1 & 0 & 2 \\ 0 & 2 & 1 \\ 2 & 0 & 3 \end{bmatrix}\begin{bmatrix} 1 & 0 & 2 \\ 0 & 2 & 1 \\ 2 & 0 & 3 \end{bmatrix} \end{aligned}

Multiplying row by column, the entries cijc_{ij} of A2A^2 are

c11=1⋅1+0⋅0+2⋅2=5c12=1⋅0+0⋅2+2⋅0=0c13=1⋅2+0⋅1+2⋅3=8c21=0⋅1+2⋅0+1⋅2=2c22=0⋅0+2⋅2+1⋅0=4c23=0⋅2+2⋅1+1⋅3=5c31=2⋅1+0⋅0+3⋅2=8c32=2⋅0+0⋅2+3⋅0=0c33=2⋅2+0⋅1+3⋅3=13\begin{aligned} c_{11} &= 1\cdot1 + 0\cdot0 + 2\cdot2 = 5 \\ c_{12} &= 1\cdot0 + 0\cdot2 + 2\cdot0 = 0 \\ c_{13} &= 1\cdot2 + 0\cdot1 + 2\cdot3 = 8 \\ c_{21} &= 0\cdot1 + 2\cdot0 + 1\cdot2 = 2 \\ c_{22} &= 0\cdot0 + 2\cdot2 + 1\cdot0 = 4 \\ c_{23} &= 0\cdot2 + 2\cdot1 + 1\cdot3 = 5 \\ c_{31} &= 2\cdot1 + 0\cdot0 + 3\cdot2 = 8 \\ c_{32} &= 2\cdot0 + 0\cdot2 + 3\cdot0 = 0 \\ c_{33} &= 2\cdot2 + 0\cdot1 + 3\cdot3 = 13 \end{aligned} ∴ A2=[5082458013]\therefore\ A^2 = \begin{bmatrix} 5 & 0 & 8 \\ 2 & 4 & 5 \\ 8 & 0 & 13 \end{bmatrix} A3=A2A=[5082458013][102021203]\begin{aligned} &A^3 = A^2A \\ &= \begin{bmatrix} 5 & 0 & 8 \\ 2 & 4 & 5 \\ 8 & 0 & 13 \end{bmatrix}\begin{bmatrix} 1 & 0 & 2 \\ 0 & 2 & 1 \\ 2 & 0 & 3 \end{bmatrix} \end{aligned}

Multiplying row by column, the entries dijd_{ij} of A3A^3 are

d11=5⋅1+0⋅0+8⋅2=21d12=5⋅0+0⋅2+8⋅0=0d13=5⋅2+0⋅1+8⋅3=34d21=2⋅1+4⋅0+5⋅2=12d22=2⋅0+4⋅2+5⋅0=8d23=2⋅2+4⋅1+5⋅3=23d31=8⋅1+0⋅0+13⋅2=34d32=8⋅0+0⋅2+13⋅0=0d33=8⋅2+0⋅1+13⋅3=55\begin{aligned} d_{11} &= 5\cdot1 + 0\cdot0 + 8\cdot2 = 21 \\ d_{12} &= 5\cdot0 + 0\cdot2 + 8\cdot0 = 0 \\ d_{13} &= 5\cdot2 + 0\cdot1 + 8\cdot3 = 34 \\ d_{21} &= 2\cdot1 + 4\cdot0 + 5\cdot2 = 12 \\ d_{22} &= 2\cdot0 + 4\cdot2 + 5\cdot0 = 8 \\ d_{23} &= 2\cdot2 + 4\cdot1 + 5\cdot3 = 23 \\ d_{31} &= 8\cdot1 + 0\cdot0 + 13\cdot2 = 34 \\ d_{32} &= 8\cdot0 + 0\cdot2 + 13\cdot0 = 0 \\ d_{33} &= 8\cdot2 + 0\cdot1 + 13\cdot3 = 55 \end{aligned} ∴ A3=[210341282334055]\therefore\ A^3 = \begin{bmatrix} 21 & 0 & 34 \\ 12 & 8 & 23 \\ 34 & 0 & 55 \end{bmatrix} A3−6A2+7A+2I=[210341282334055]−[3004812243048078]+[7014014714021]+[200020002]=[000000000]\begin{aligned} &A^3 - 6A^2 + 7A + 2I \\ &= \begin{bmatrix} 21 & 0 & 34 \\ 12 & 8 & 23 \\ 34 & 0 & 55 \end{bmatrix} \\ &\quad - \begin{bmatrix} 30 & 0 & 48 \\ 12 & 24 & 30 \\ 48 & 0 & 78 \end{bmatrix} \\ &\quad + \begin{bmatrix} 7 & 0 & 14 \\ 0 & 14 & 7 \\ 14 & 0 & 21 \end{bmatrix} \\ &\quad + \begin{bmatrix} 2 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 2 \end{bmatrix} \\ &= \begin{bmatrix} 0 & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix} \end{aligned}

∴ A3−6A2+7A+2I=O\therefore\ A^3 - 6A^2 + 7A + 2I = O⁠. Hence proved.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

A matrix polynomial is evaluated exactly like a number polynomial, except that every power is a matrix product: A2=AAA^2 = AA and A3=A2AA^3 = A^2A⁠, and the constant term 22 becomes 2I2I so that it has the same order as everything else. So we compute A2A^2 and A3A^3 entry by entry, form the combination entry by entry, and see that all nine entries are 00⁠.

Given, to find, and the plan
Given
The 3×33\times3 matrix AA above, and II⁠, the identity matrix of order 3.
To show
A3−6A2+7A+2I=OA^3 - 6A^2 + 7A + 2I = O⁠, the 3×33\times3 zero matrix.
Plan
(1) Check that every term is defined and is 3×33\times3⁠. (2) Compute A2=AAA^2 = AA⁠, every entry. (3) Compute A3=A2AA^3 = A^2A⁠, every entry. (4) Write −6A2-6A^2⁠, 7A7A⁠, 2I2I⁠. (5) Add the four matrices entry by entry and get OO⁠.

Basics you need

1Row times column

If PP is m×nm\times n and QQ is n×pn\times p⁠, then PQPQ is m×pm\times p⁠, and its (i,k)(i,k) entry is row ii of PP times column kk of QQ⁠: multiply matching entries and add. Basics: pair up, multiply, add

2Powers of a square matrix

A2=AAA^2 = AA needs the columns of AA to equal its rows, so only a square matrix has powers. A3=A2AA^3 = A^2A⁠; by the associative law (AA)A=A(AA)(AA)A = A(AA)⁠, so it does not matter which way we group. Lesson: properties of multiplication

3Adding and scaling matrices

Matrices of the same order are added entry by entry, and kAkA multiplies every entry of AA by kk⁠. Basics: adding only like with like

4Identity and zero matrices

II has 1 on the leading diagonal and 0 elsewhere; OO has every entry 0. So 2I2I has 2 on the diagonal and 0 elsewhere. Basics: identity and undo

Solution

  1. Check the orders

    AA is 3×33\times3⁠. For AAAA⁠, the columns of the first factor (3) equal the rows of the second (3), so A2A^2 is defined and is 3×33\times3⁠. Then A2AA^2A is again 3×33\times3 times 3×33\times3⁠, so A3A^3 is defined and is 3×33\times3⁠. Scalar multiples keep the order, and II is chosen of order 3. So all four terms A3A^3⁠, −6A2-6A^2⁠, 7A7A⁠, 2I2I are 3×33\times3⁠, the sum is defined, and the result is a 3×33\times3 matrix. That is why the right-hand side must be the 3×33\times3 zero matrix OO⁠, not the number 0.

    A sum of matrices is only defined when all the terms have the same order. Checking this first tells us the identity we are proving makes sense, and tells us the size of OO⁠.
    Product (m×n)(n×p)=m×p(m\times n)(n\times p) = m\times p⁠. Lesson: matrix multiplication
  2. Compute A2=AAA^2 = AA

    A2=[102021203][102021203]A^2 = \begin{bmatrix} 1 & 0 & 2 \\ 0 & 2 & 1 \\ 2 & 0 & 3 \end{bmatrix}\begin{bmatrix} 1 & 0 & 2 \\ 0 & 2 & 1 \\ 2 & 0 & 3 \end{bmatrix}

    Row 1 of AA is (1,0,2)(1, 0, 2)⁠; the columns of AA are (1,0,2)(1,0,2)⁠, (0,2,0)(0,2,0)⁠, (2,1,3)(2,1,3) read downwards.

    c11=1⋅1+0⋅0+2⋅2=5c12=1⋅0+0⋅2+2⋅0=0c13=1⋅2+0⋅1+2⋅3=8\begin{aligned} c_{11} &= 1\cdot1 + 0\cdot0 + 2\cdot2 = 5\\ c_{12} &= 1\cdot0 + 0\cdot2 + 2\cdot0 = 0\\ c_{13} &= 1\cdot2 + 0\cdot1 + 2\cdot3 = 8 \end{aligned}

    Row 2 of AA is (0,2,1)(0, 2, 1)⁠:

    c21=0⋅1+2⋅0+1⋅2=2c22=0⋅0+2⋅2+1⋅0=4c23=0⋅2+2⋅1+1⋅3=5\begin{aligned} c_{21} &= 0\cdot1 + 2\cdot0 + 1\cdot2 = 2\\ c_{22} &= 0\cdot0 + 2\cdot2 + 1\cdot0 = 4\\ c_{23} &= 0\cdot2 + 2\cdot1 + 1\cdot3 = 5 \end{aligned}

    Row 3 of AA is (2,0,3)(2, 0, 3)⁠:

    c31=2⋅1+0⋅0+3⋅2=8c32=2⋅0+0⋅2+3⋅0=0c33=2⋅2+0⋅1+3⋅3=13\begin{aligned} c_{31} &= 2\cdot1 + 0\cdot0 + 3\cdot2 = 8\\ c_{32} &= 2\cdot0 + 0\cdot2 + 3\cdot0 = 0\\ c_{33} &= 2\cdot2 + 0\cdot1 + 3\cdot3 = 13 \end{aligned}

    Assembling the nine entries:

    A2=[5082458013]A^2 = \begin{bmatrix} 5 & 0 & 8 \\ 2 & 4 & 5 \\ 8 & 0 & 13 \end{bmatrix}
    A2A^2 is not found by squaring each entry. Squaring entries would give a first row (1,0,4)(1, 0, 4)⁠, but the true first row is (5,0,8)(5, 0, 8)⁠. Each entry of a product mixes a whole row with a whole column.
    Entry (i,k)(i,k) of a product: row ii of the first factor times column kk of the second. Basics: pair up, multiply, add
  3. Compute A3=A2AA^3 = A^2A

    A3=[5082458013][102021203]A^3 = \begin{bmatrix} 5 & 0 & 8 \\ 2 & 4 & 5 \\ 8 & 0 & 13 \end{bmatrix}\begin{bmatrix} 1 & 0 & 2 \\ 0 & 2 & 1 \\ 2 & 0 & 3 \end{bmatrix}

    Row 1 of A2A^2 is (5,0,8)(5, 0, 8)⁠; the columns of AA are still (1,0,2)(1,0,2)⁠, (0,2,0)(0,2,0)⁠, (2,1,3)(2,1,3)⁠.

    d11=5⋅1+0⋅0+8⋅2=21d12=5⋅0+0⋅2+8⋅0=0d13=5⋅2+0⋅1+8⋅3=34\begin{aligned} d_{11} &= 5\cdot1 + 0\cdot0 + 8\cdot2 = 21\\ d_{12} &= 5\cdot0 + 0\cdot2 + 8\cdot0 = 0\\ d_{13} &= 5\cdot2 + 0\cdot1 + 8\cdot3 = 34 \end{aligned}

    Row 2 of A2A^2 is (2,4,5)(2, 4, 5)⁠:

    d21=2⋅1+4⋅0+5⋅2=12d22=2⋅0+4⋅2+5⋅0=8d23=2⋅2+4⋅1+5⋅3=23\begin{aligned} d_{21} &= 2\cdot1 + 4\cdot0 + 5\cdot2 = 12\\ d_{22} &= 2\cdot0 + 4\cdot2 + 5\cdot0 = 8\\ d_{23} &= 2\cdot2 + 4\cdot1 + 5\cdot3 = 23 \end{aligned}

    Row 3 of A2A^2 is (8,0,13)(8, 0, 13)⁠:

    d31=8⋅1+0⋅0+13⋅2=34d32=8⋅0+0⋅2+13⋅0=0d33=8⋅2+0⋅1+13⋅3=55\begin{aligned} d_{31} &= 8\cdot1 + 0\cdot0 + 13\cdot2 = 34\\ d_{32} &= 8\cdot0 + 0\cdot2 + 13\cdot0 = 0\\ d_{33} &= 8\cdot2 + 0\cdot1 + 13\cdot3 = 55 \end{aligned} A3=[210341282334055]A^3 = \begin{bmatrix} 21 & 0 & 34 \\ 12 & 8 & 23 \\ 34 & 0 & 55 \end{bmatrix}
    We reuse A2A^2 from Step 2 instead of multiplying three matrices from scratch. Computing AA2AA^2 instead would give the same matrix, because (AA)A=A(AA)(AA)A = A(AA) by the associative law. Notice the middle column: every product in Steps 2 and 3 has 0 in positions (1,2)(1,2) and (3,2)(3,2)⁠, because column 2 of AA is (0,2,0)(0, 2, 0)⁠, which only picks out the middle entry of each row.
    Associative law (AB)C=A(BC)(AB)C = A(BC)⁠, Section 3.4.6. Lesson: properties of the operations
  4. Write the other three terms

    Multiply every entry of A2A^2 by −6-6⁠, every entry of AA by 77⁠, and every entry of II by 22⁠:

    −6A2=[−300−48−12−24−30−480−78]-6A^2 = \begin{bmatrix} -30 & 0 & -48 \\ -12 & -24 & -30 \\ -48 & 0 & -78 \end{bmatrix} 7A=[7014014714021]7A = \begin{bmatrix} 7 & 0 & 14 \\ 0 & 14 & 7 \\ 14 & 0 & 21 \end{bmatrix} 2I=[200020002]2I = \begin{bmatrix} 2 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 2 \end{bmatrix}
    Writing A3−6A2A^3 - 6A^2 as A3+(−6)A2A^3 + (-6)A^2 means everything in the next step is a plain sum, so there is only one sign to track per entry. The constant 2 in the polynomial becomes 2I2I⁠: a number cannot be added to a matrix, but 2I2I is the 3×33\times3 matrix that plays the role of "2".
    Scalar multiple: kA=[k aij]kA = [k\,a_{ij}]⁠. Lesson: addition and scalar multiplication
  5. Add the four matrices entry by entry

    Each entry of the result is (entry of A3A^3⁠) + (entry of −6A2-6A^2⁠) + (entry of 7A7A⁠) + (entry of 2I2I⁠):

    (1,1):21−30+7+2=0(1,2):0+0+0+0=0(1,3):34−48+14+0=0(2,1):12−12+0+0=0(2,2):8−24+14+2=0(2,3):23−30+7+0=0(3,1):34−48+14+0=0(3,2):0+0+0+0=0(3,3):55−78+21+2=0\begin{aligned} (1,1)&: 21 - 30 + 7 + 2 = 0\\ (1,2)&: 0 + 0 + 0 + 0 = 0\\ (1,3)&: 34 - 48 + 14 + 0 = 0\\ (2,1)&: 12 - 12 + 0 + 0 = 0\\ (2,2)&: 8 - 24 + 14 + 2 = 0\\ (2,3)&: 23 - 30 + 7 + 0 = 0\\ (3,1)&: 34 - 48 + 14 + 0 = 0\\ (3,2)&: 0 + 0 + 0 + 0 = 0\\ (3,3)&: 55 - 78 + 21 + 2 = 0 \end{aligned}

    So

    A3−6A2+7A+2I=[000000000]=O.A^3 - 6A^2 + 7A + 2I = \begin{bmatrix} 0 & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix} = O.
    Two matrices are equal only when every pair of corresponding entries is equal. So to prove the sum is OO we must show all nine entries are 0; it is not enough to check a few. The 2I2I term only affects the three diagonal entries, which is why the 2 appears only in positions (1,1)(1,1)⁠, (2,2)(2,2)⁠, (3,3)(3,3)⁠.
    Equality of matrices: same order and every corresponding entry equal (Definition 2). Lesson: equality of matrices
Result

With A2A^2 having rows (5,0,8)(5,0,8)⁠, (2,4,5)(2,4,5)⁠, (8,0,13)(8,0,13) and A3A^3 having rows (21,0,34)(21,0,34)⁠, (12,8,23)(12,8,23)⁠, (34,0,55)(34,0,55)⁠, every entry of A3−6A2+7A+2IA^3 - 6A^2 + 7A + 2I is 0, so A3−6A2+7A+2I=OA^3 - 6A^2 + 7A + 2I = O, as required. (The textbook gives no answer for this "prove that" question.)

Check it with numbers

Test the result on a column vector. Take vv with entries 1,1,11, 1, 1⁠. Then AvAv is the row sums of AA⁠: 3,3,53, 3, 5⁠. Applying AA again: A(Av)A(Av) has entries 1⋅3+0⋅3+2⋅5=131\cdot3 + 0\cdot3 + 2\cdot5 = 13⁠, 0⋅3+2⋅3+1⋅5=110\cdot3 + 2\cdot3 + 1\cdot5 = 11⁠, 2⋅3+0⋅3+3⋅5=212\cdot3 + 0\cdot3 + 3\cdot5 = 21⁠; these are the row sums of A2A^2 (5+0+85+0+8⁠, 2+4+52+4+5⁠, 8+0+138+0+13⁠) ✓. Once more: A(A2v)A(A^2v) has entries 13+42=5513 + 42 = 55⁠, 22+21=4322 + 21 = 43⁠, 26+63=8926 + 63 = 89⁠, the row sums of A3A^3 ✓. Now the first entry of A3v−6A2v+7Av+2vA^3v - 6A^2v + 7Av + 2v is 55−78+21+2=055 - 78 + 21 + 2 = 0⁠, the second is 43−66+21+2=043 - 66 + 21 + 2 = 0⁠, the third is 89−126+35+2=089 - 126 + 35 + 2 = 0 ✓.

Common mistakes
  1. Squaring or cubing each entry. A2A^2 is AAAA⁠, a row-times-column product; its (1,1)(1,1) entry is 5, not 12=11^2 = 1⁠.
  2. Writing +2+2 instead of +2I+2I⁠. A number cannot be added to a matrix. Adding 2 to every entry would also be wrong: 2I2I changes only the diagonal.
  3. Sign slips in the long sums. Write −6A2-6A^2 out as its own matrix first, then add; do not try to subtract and add in one go.
  4. Checking only the diagonal. All nine entries must be shown to be 0.
What to take away
  1. To evaluate a polynomial in a square matrix, build the powers by repeated multiplication (reuse each power for the next) and replace the constant cc by cIcI⁠.
  2. Always check orders first: powers need a square matrix, and the result of a sum has the common order of its terms.
  3. An equation A3−6A2+7A+2I=OA^3 - 6A^2 + 7A + 2I = O is a strong fact about AA⁠: it lets you rewrite A3A^3 as 6A2−7A−2I6A^2 - 7A - 2I⁠, so any higher power reduces to a combination of A2A^2⁠, AA and II⁠.

Every fact used, and where it comes from

FactUsed inSource
PQPQ is defined when columns of PP = rows of QQ⁠; (m×n)(n×p)(m\times n)(n\times p) gives m×pm\times pStep 1Section 3.4.5 (Lesson: multiplication)
Entry cikc_{ik} is row ii times column kkSteps 2, 3Section 3.4.5
Associative law (AB)C=A(BC)(AB)C = A(BC)Step 3Section 3.4.6, property 1
Scalar multiple kA=[k aij]kA = [k\,a_{ij}]⁠; sums of same-order matrices entry by entrySteps 4, 5Sections 3.4.1 and 3.4.2
Identity matrix II and zero matrix OOSteps 4, 5Section 3.3 (vi) and (vii)
Equality of matricesStep 5Definition 2, Section 3.3.1
The same style of proof for another matrixWhole pageExample 18 (A3−23A−40I=OA^3 - 23A - 40I = O⁠)
All products and sumsSteps 2–5, CheckRecomputed in the site's verification script
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →