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

Example 18: Show A3−23A−40I=OA^3-23A-40I=O

ExamplesPowers of a square matrix and matrix polynomials · Section 3.4.6
The question

If

A=[1233−21421],A = \begin{bmatrix} 1 & 2 & 3 \\ 3 & -2 & 1 \\ 4 & 2 & 1 \end{bmatrix},

then show that A3−23A−40I=OA^3 - 23A - 40I = O⁠.

Exam answer

Let A2=AA=[uij]A^2 = AA = [u_{ij}]⁠.

u11=1⋅1+2⋅3+3⋅4=19u12=1⋅2+2⋅(−2)+3⋅2=4u13=1⋅3+2⋅1+3⋅1=8u21=3⋅1+(−2)⋅3+1⋅4=1u22=3⋅2+(−2)⋅(−2)+1⋅2=12u23=3⋅3+(−2)⋅1+1⋅1=8u31=4⋅1+2⋅3+1⋅4=14u32=4⋅2+2⋅(−2)+1⋅2=6u33=4⋅3+2⋅1+1⋅1=15\begin{aligned} u_{11} &= 1{\cdot} 1 + 2{\cdot} 3 + 3{\cdot} 4 = 19 \\ u_{12} &= 1{\cdot} 2 + 2{\cdot} (-2) + 3{\cdot} 2 = 4 \\ u_{13} &= 1{\cdot} 3 + 2{\cdot} 1 + 3{\cdot} 1 = 8 \\ u_{21} &= 3{\cdot} 1 + (-2){\cdot} 3 + 1{\cdot} 4 = 1 \\ u_{22} &= 3{\cdot} 2 + (-2){\cdot} (-2) + 1{\cdot} 2 \\ &= 12 \\ u_{23} &= 3{\cdot} 3 + (-2){\cdot} 1 + 1{\cdot} 1 = 8 \\ u_{31} &= 4{\cdot} 1 + 2{\cdot} 3 + 1{\cdot} 4 = 14 \\ u_{32} &= 4{\cdot} 2 + 2{\cdot} (-2) + 1{\cdot} 2 = 6 \\ u_{33} &= 4{\cdot} 3 + 2{\cdot} 1 + 1{\cdot} 1 = 15 \end{aligned} ∴ A2=[1948112814615]\therefore\ A^2 = \begin{bmatrix} 19 & 4 & 8 \\ 1 & 12 & 8 \\ 14 & 6 & 15 \end{bmatrix}

Let A3=A⋅A2=[vij]A^3 = A{\cdot} A^2 = [v_{ij}]⁠.

v11=1⋅19+2⋅1+3⋅14=63v12=1⋅4+2⋅12+3⋅6=46v13=1⋅8+2⋅8+3⋅15=69v21=3⋅19+(−2)⋅1+1⋅14=69v22=3⋅4+(−2)⋅12+1⋅6=−6v23=3⋅8+(−2)⋅8+1⋅15=23v31=4⋅19+2⋅1+1⋅14=92v32=4⋅4+2⋅12+1⋅6=46v33=4⋅8+2⋅8+1⋅15=63\begin{aligned} v_{11} &= 1{\cdot} 19 + 2{\cdot} 1 + 3{\cdot} 14 = 63 \\ v_{12} &= 1{\cdot} 4 + 2{\cdot} 12 + 3{\cdot} 6 = 46 \\ v_{13} &= 1{\cdot} 8 + 2{\cdot} 8 + 3{\cdot} 15 = 69 \\ v_{21} &= 3{\cdot} 19 + (-2){\cdot} 1 + 1{\cdot} 14 \\ &= 69 \\ v_{22} &= 3{\cdot} 4 + (-2){\cdot} 12 + 1{\cdot} 6 \\ &= -6 \\ v_{23} &= 3{\cdot} 8 + (-2){\cdot} 8 + 1{\cdot} 15 \\ &= 23 \\ v_{31} &= 4{\cdot} 19 + 2{\cdot} 1 + 1{\cdot} 14 = 92 \\ v_{32} &= 4{\cdot} 4 + 2{\cdot} 12 + 1{\cdot} 6 = 46 \\ v_{33} &= 4{\cdot} 8 + 2{\cdot} 8 + 1{\cdot} 15 = 63 \end{aligned} ∴ A3=[63466969−623924663]\therefore\ A^3 = \begin{bmatrix} 63 & 46 & 69 \\ 69 & -6 & 23 \\ 92 & 46 & 63 \end{bmatrix} A3−23A−40I=[63466969−623924663]−[23466969−4623924623]−[400004000040]=[000000000]\begin{aligned} &A^3 - 23A - 40I \\ &= \begin{bmatrix} 63 & 46 & 69 \\ 69 & -6 & 23 \\ 92 & 46 & 63 \end{bmatrix} \\ &\quad - \begin{bmatrix} 23 & 46 & 69 \\ 69 & -46 & 23 \\ 92 & 46 & 23 \end{bmatrix} \\ &\quad - \begin{bmatrix} 40 & 0 & 0 \\ 0 & 40 & 0 \\ 0 & 0 & 40 \end{bmatrix} \\ &= \begin{bmatrix} 0 & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix} \end{aligned}

∴ A3−23A−40I=O\therefore\ A^3 - 23A - 40I = O⁠. Hence proved.

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

The one idea this problem is built on

Powers of a square matrix are repeated products: A2=AAA^2=AA and A3=AA2A^3=AA^2⁠. Once A3A^3 is known, the expression A3−23A−40IA^3-23A-40I is just a combination of three 3×33\times3 matrices, worked out entry by entry like any sum of scalar multiples. Showing it "=O=O" means showing every one of its nine entries is 0.

Given, to show, and the plan
Given
The 3×33\times3 matrix AA⁠; II is the 3×33\times3 identity matrix and OO the 3×33\times3 zero matrix.
To show
A3−23A−40I=OA^3-23A-40I=O⁠.
Plan
Compute A2A^2⁠, then A3=A⋅A2A^3=A\cdot A^2⁠, all entries shown. Form −23A-23A and −40I-40I⁠. Add the three matrices entry by entry and check each entry is 0.

Basics you need

1Row times column

Entry (i,k)(i,k) of a product is row ii of the first factor times column kk of the second. Basics: pair up, multiply, add

2Identity and zero matrices

II has 1 on the main diagonal and 0 elsewhere; OO has every entry 0. So 40I40I has 40 on the diagonal and 0 elsewhere. Basics: identity and undo

3Scalar multiples and sums

kA=[k aij]kA=[k\,a_{ij}]⁠, and matrices of the same order add entry by entry. X−YX-Y means X+(−1)YX+(-1)Y⁠. Basics: adding only like with like

4Powers of a matrix

For a square matrix, A2=AAA^2=AA and A3=AAAA^3=AAA⁠. By the associative law, A3=A(AA)=(AA)AA^3=A(AA)=(AA)A⁠, so A⋅A2=A2⋅AA\cdot A^2=A^2\cdot A⁠. Lesson: properties of the operations

Solution

  1. Check that every term makes sense

    AA is square of order 3. So AAAA is (3×3)(3×3)(3\times3)(3\times3)⁠, defined and 3×33\times3⁠, and likewise A3=A⋅A2A^3=A\cdot A^2 is 3×33\times3⁠. The matrices 23A23A and 40I40I are 3×33\times3 too, so the sum A3−23A−40IA^3-23A-40I is defined and is 3×33\times3⁠. Here I=I3I=I_3 and OO is the 3×33\times3 zero matrix.

    Only square matrices have powers: for AAAA we need columns of AA = rows of AA⁠. The orders of II and OO are not written, so we read them from the context: they must match the other terms.
    Identity matrix and zero matrix, Section 3.3 (vi) and (vii). Lesson: types of matrices
  2. Compute A2=AAA^2=AA

    Rows of AA⁠: [1  2  3][1\ \ 2\ \ 3]⁠, [3  −2  1][3\ \ {-2}\ \ 1]⁠, [4  2  1][4\ \ 2\ \ 1]⁠. Columns of AA⁠: (1,3,4)(1,3,4)⁠, (2,−2,2)(2,-2,2)⁠, (3,1,1)(3,1,1)⁠. Write A2=[uik]A^2=[u_{ik}]⁠:

    u11=1⋅1+2⋅3+3⋅4=1+6+12=19u12=1⋅2+2⋅(−2)+3⋅2=2−4+6=4u13=1⋅3+2⋅1+3⋅1=3+2+3=8u21=3⋅1+(−2)⋅3+1⋅4=3−6+4=1u22=3⋅2+(−2)⋅(−2)+1⋅2=6+4+2=12u23=3⋅3+(−2)⋅1+1⋅1=9−2+1=8u31=4⋅1+2⋅3+1⋅4=4+6+4=14u32=4⋅2+2⋅(−2)+1⋅2=8−4+2=6u33=4⋅3+2⋅1+1⋅1=12+2+1=15\begin{aligned} u_{11} &= 1\cdot 1 + 2\cdot 3 + 3\cdot 4\\ &= 1 + 6 + 12 = 19\\ u_{12} &= 1\cdot 2 + 2\cdot(-2) + 3\cdot 2\\ &= 2 - 4 + 6 = 4\\ u_{13} &= 1\cdot 3 + 2\cdot 1 + 3\cdot 1\\ &= 3 + 2 + 3 = 8\\ u_{21} &= 3\cdot 1 + (-2)\cdot 3 + 1\cdot 4\\ &= 3 - 6 + 4 = 1\\ u_{22} &= 3\cdot 2 + (-2)\cdot(-2) + 1\cdot 2\\ &= 6 + 4 + 2 = 12\\ u_{23} &= 3\cdot 3 + (-2)\cdot 1 + 1\cdot 1\\ &= 9 - 2 + 1 = 8\\ u_{31} &= 4\cdot 1 + 2\cdot 3 + 1\cdot 4\\ &= 4 + 6 + 4 = 14\\ u_{32} &= 4\cdot 2 + 2\cdot(-2) + 1\cdot 2\\ &= 8 - 4 + 2 = 6\\ u_{33} &= 4\cdot 3 + 2\cdot 1 + 1\cdot 1\\ &= 12 + 2 + 1 = 15 \end{aligned} A2=[1948112814615]A^2 = \begin{bmatrix} 19 & 4 & 8 \\ 1 & 12 & 8 \\ 14 & 6 & 15 \end{bmatrix}
    A2A^2 is not the matrix of squared entries: its (1,1)(1,1) entry is 19, not 12=11^2=1⁠. Each entry is a full row-times-column sum.
    Definition of the product, Section 3.4.5. Basics: pair up, multiply, add
  3. Compute A3=A⋅A2A^3=A\cdot A^2

    Rows of AA as before. Columns of A2A^2⁠: (19,1,14)(19,1,14)⁠, (4,12,6)(4,12,6)⁠, (8,8,15)(8,8,15)⁠. Write A3=[vik]A^3=[v_{ik}]⁠:

    v11=1⋅19+2⋅1+3⋅14=19+2+42=63v12=1⋅4+2⋅12+3⋅6=4+24+18=46v13=1⋅8+2⋅8+3⋅15=8+16+45=69v21=3⋅19+(−2)⋅1+1⋅14=57−2+14=69v22=3⋅4+(−2)⋅12+1⋅6=12−24+6=−6v23=3⋅8+(−2)⋅8+1⋅15=24−16+15=23v31=4⋅19+2⋅1+1⋅14=76+2+14=92v32=4⋅4+2⋅12+1⋅6=16+24+6=46v33=4⋅8+2⋅8+1⋅15=32+16+15=63\begin{aligned} v_{11} &= 1\cdot 19 + 2\cdot 1 + 3\cdot 14\\ &= 19 + 2 + 42 = 63\\ v_{12} &= 1\cdot 4 + 2\cdot 12 + 3\cdot 6\\ &= 4 + 24 + 18 = 46\\ v_{13} &= 1\cdot 8 + 2\cdot 8 + 3\cdot 15\\ &= 8 + 16 + 45 = 69\\ v_{21} &= 3\cdot 19 + (-2)\cdot 1 + 1\cdot 14\\ &= 57 - 2 + 14 = 69\\ v_{22} &= 3\cdot 4 + (-2)\cdot 12 + 1\cdot 6\\ &= 12 - 24 + 6 = -6\\ v_{23} &= 3\cdot 8 + (-2)\cdot 8 + 1\cdot 15\\ &= 24 - 16 + 15 = 23\\ v_{31} &= 4\cdot 19 + 2\cdot 1 + 1\cdot 14\\ &= 76 + 2 + 14 = 92\\ v_{32} &= 4\cdot 4 + 2\cdot 12 + 1\cdot 6\\ &= 16 + 24 + 6 = 46\\ v_{33} &= 4\cdot 8 + 2\cdot 8 + 1\cdot 15\\ &= 32 + 16 + 15 = 63 \end{aligned} A3=[63466969−623924663]A^3 = \begin{bmatrix} 63 & 46 & 69 \\ 69 & -6 & 23 \\ 92 & 46 & 63 \end{bmatrix}
    We reuse A2A^2 rather than multiplying three matrices from scratch. Multiplying AA on the left of A2A^2 or on the right gives the same A3A^3⁠, by the associative law (Basic 4); the textbook uses A⋅A2A\cdot A^2⁠, and the check box below uses the other order.
  4. Form −23A-23A and −40I-40I

    Multiply every entry of AA by −23-23⁠, and every entry of II by −40-40⁠:

    −23A=[−23−46−69−6946−23−92−46−23]-23A = \begin{bmatrix} -23 & -46 & -69 \\ -69 & 46 & -23 \\ -92 & -46 & -23 \end{bmatrix} −40I=[−40000−40000−40]-40I = \begin{bmatrix} -40 & 0 & 0 \\ 0 & -40 & 0 \\ 0 & 0 & -40 \end{bmatrix}
    Writing the subtraction as addition of negatives, A3+(−23A)+(−40I)A^3+(-23A)+(-40I)⁠, lets us add three matrices entry by entry without sign confusion. Note −23⋅(−2)=+46-23\cdot(-2)=+46 in the middle of −23A-23A⁠. Since II is zero off the diagonal, −40I-40I only affects the three diagonal entries.
    Scalar multiple kA=[k aij]kA=[k\,a_{ij}] and the difference X−Y=X+(−1)YX-Y=X+(-1)Y⁠, Section 3.4.2. Lesson: addition and scalar multiplication
  5. Add the three matrices entry by entry

    Write A3−23A−40I=[wij]A^3-23A-40I=[w_{ij}]⁠, with wij=vij−23aij−40 δijw_{ij}=v_{ij}-23a_{ij}-40\,\delta_{ij}⁠, where δij\delta_{ij} is 1 on the diagonal and 0 off it (the entries of II⁠):

    w11=63−23−40=0w12=46−46+0=0w13=69−69+0=0w21=69−69+0=0w22=−6+46−40=0w23=23−23+0=0w31=92−92+0=0w32=46−46+0=0w33=63−23−40=0\begin{aligned} w_{11} &= 63 - 23 - 40 = 0\\ w_{12} &= 46 - 46 + 0 = 0\\ w_{13} &= 69 - 69 + 0 = 0\\ w_{21} &= 69 - 69 + 0 = 0\\ w_{22} &= -6 + 46 - 40 = 0\\ w_{23} &= 23 - 23 + 0 = 0\\ w_{31} &= 92 - 92 + 0 = 0\\ w_{32} &= 46 - 46 + 0 = 0\\ w_{33} &= 63 - 23 - 40 = 0 \end{aligned} A3−23A−40I=[000000000]=OA^3 - 23A - 40I = \begin{bmatrix} 0 & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix} = O
    Every one of the nine entries is 0, which is exactly what "=O=O" means. Off the diagonal, each entry of A3A^3 is exactly 23 times the matching entry of AA (for example 46=23⋅246=23\cdot2 and 92=23⋅492=23\cdot4⁠), so −23A-23A cancels it. On the diagonal, vii−23aiiv_{ii}-23a_{ii} is 40 each time (63−2363-23⁠, −6+46-6+46⁠, 63−2363-23⁠), and −40I-40I cancels that.
    Equality with the zero matrix: every entry must be 0. Lesson: equality of matrices
  6. What the identity tells us: an inverse for AA (beyond the textbook)

    This step is not part of the textbook's solution and is not needed for the answer. Rearranging, A3−23A=40IA^3-23A=40I⁠. The left side factors as A(A2−23I)A(A^2-23I)⁠, because A⋅A2=A3A\cdot A^2=A^3 and A⋅(23I)=23AA\cdot(23I)=23A⁠. So

    A⋅140(A2−23I)=I.A\cdot\tfrac{1}{40}\big(A^2-23I\big) = I.

    Using the A2A^2 from Step 2, A2−23IA^2-23I subtracts 23 from each diagonal entry:

    A2−23I=[−4481−118146−8]A^2 - 23I = \begin{bmatrix} -4 & 4 & 8 \\ 1 & -11 & 8 \\ 14 & 6 & -8 \end{bmatrix}

    So the inverse of AA is this matrix divided by 40. (The same factoring on the other side, (A2−23I)A=A3−23A(A^2-23I)A=A^3-23A⁠, gives the product in the other order too.)

    This shows why such identities matter: a polynomial equation satisfied by AA with a non-zero constant term lets us write down A−1A^{-1} without any other method. For instance row 1 of AA times column 1 of A2−23IA^2-23I is 1⋅(−4)+2⋅1+3⋅14=401\cdot(-4)+2\cdot1+3\cdot14=40⁠, which divided by 40 gives the 1 of II⁠.
    Inverse of a square matrix, Section 3.7. Lesson: invertible matrices
Result A2=[1948112814615]A^2 = \begin{bmatrix} 19 & 4 & 8 \\ 1 & 12 & 8 \\ 14 & 6 & 15 \end{bmatrix} A3=[63466969−623924663]A^3 = \begin{bmatrix} 63 & 46 & 69 \\ 69 & -6 & 23 \\ 92 & 46 & 63 \end{bmatrix}

and every entry of A3−23A−40IA^3-23A-40I is 0, so A3−23A−40I=OA^3-23A-40I=O⁠, as the textbook shows.

Check it with numbers

Other order for A3A^3⁠. A2⋅AA^2\cdot A should equal A⋅A2A\cdot A^2⁠. Entry (2,2)(2,2)⁠: row 2 of A2A^2⁠, [1  12  8][1\ \ 12\ \ 8]⁠, times column 2 of AA⁠, (2,−2,2)(2,-2,2)⁠, is 2−24+16=−62-24+16=-6⁠. Entry (3,1)(3,1)⁠: [14  6  15][14\ \ 6\ \ 15] times (1,3,4)(1,3,4) is 14+18+60=9214+18+60=92⁠. Both agree with Step 3.

Apply everything to a column. Let x=(1,1,1)x=(1,1,1)⁠. Then Ax=(6,2,7)Ax=(6,2,7) (the row sums of AA⁠), A2x=A(6,2,7)=(31,21,35)A^2x=A(6,2,7)=(31,21,35) and A3x=A(31,21,35)=(178,86,201)A^3x=A(31,21,35)=(178,86,201)⁠. Now A3x−23Ax−40xA^3x-23Ax-40x has entries 178−138−40=0178-138-40=0⁠, 86−46−40=086-46-40=0 and 201−161−40=0201-161-40=0⁠, as it must if A3−23A−40I=OA^3-23A-40I=O⁠.

Common mistakes
  1. Squaring the entries. A2≠[aij2]A^2\ne[a_{ij}^2]⁠; it is AAAA computed by rows and columns.
  2. Writing 4040 instead of 40I40I⁠. A number cannot be subtracted from a matrix; 40I40I is the matrix with 40 down the diagonal.
  3. Putting 40 in every entry. 40I40I is zero off the diagonal, so only w11w_{11}⁠, w22w_{22}⁠, w33w_{33} involve −40-40⁠.
  4. Sign slips in −23A-23A⁠. The (2,2)(2,2) entry is −23⋅(−2)=+46-23\cdot(-2)=+46⁠.
What to take away
  1. To evaluate a matrix polynomial, compute the powers by repeated multiplication, then combine entry by entry, with the constant term becoming a multiple of II⁠.
  2. "=O=O" means every entry is 0; check all of them.
  3. An identity such as A3−23A−40I=OA^3-23A-40I=O can be rearranged to A⋅140(A2−23I)=IA\cdot\frac{1}{40}(A^2-23I)=I⁠, giving A−1A^{-1}⁠. (That every square matrix satisfies such an equation is the Cayley–Hamilton theorem, beyond this course.)

Every fact used, and where it comes from

FactUsed inSource
Identity II and zero matrix OOSteps 1, 4 and 5Section 3.3 (vi) and (vii) (Lesson: types of matrices)
cik=∑jaijbjkc_{ik}=\sum_j a_{ij}b_{jk}Steps 2 and 3Section 3.4.5 (Lesson: matrix multiplication)
A⋅A2=A2⋅AA\cdot A^2=A^2\cdot AStep 3, check boxAssociative law, Section 3.4.6 (Lesson: properties)
kA=[k aij]kA=[k\,a_{ij}]⁠; X−Y=X+(−1)YX-Y=X+(-1)YSteps 4 and 5Section 3.4.2 (Lesson: addition)
A(X+Y)=AX+AYA(X+Y)=AX+AY⁠; A(kI)=kAA(kI)=kAStep 6Distributive law and identity, Section 3.4.6
Inverse of a matrixStep 6 (beyond the textbook's solution)Definition 6, Section 3.7 (Lesson: invertible matrices)
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 →