Class 12 Maths, Worked in Full Past papersGet updates
Chapter 4 · Determinants

Miscellaneous · Q8 (MCQ): Inverse of a diagonal matrix

Miscellaneous ExerciseInverse of a matrix · Section 4.5
The question

If x,y,zx, y, z are nonzero real numbers, then the inverse of matrix

A=[x000y000z]A = \begin{bmatrix} x & 0 & 0 \\ 0 & y & 0 \\ 0 & 0 & z \end{bmatrix}

is

(A)

[x−1000y−1000z−1]\begin{bmatrix} x^{-1} & 0 & 0 \\ 0 & y^{-1} & 0 \\ 0 & 0 & z^{-1} \end{bmatrix}

(B)

xyz[x−1000y−1000z−1]xyz\begin{bmatrix} x^{-1} & 0 & 0 \\ 0 & y^{-1} & 0 \\ 0 & 0 & z^{-1} \end{bmatrix}

(C)

1xyz[x000y000z]\frac{1}{xyz}\begin{bmatrix} x & 0 & 0 \\ 0 & y & 0 \\ 0 & 0 & z \end{bmatrix}

(D)

1xyz[100010001]\frac{1}{xyz}\begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}

(The book introduces Questions 8 and 9 with "Choose the correct answer in Exercise 17 to 19." The numbers are left over from an older edition; the line applies to Questions 8 and 9.)

Exam answer

Expanding along R1R_1⁠:

∣A∣=x∣y00z∣−0+0=xyz≠0|A| = x\begin{vmatrix} y & 0 \\ 0 & z \end{vmatrix} - 0 + 0 = xyz \ne 0

The cofactors are A11=yzA_{11} = yz⁠, A22=xzA_{22} = xz⁠, A33=xyA_{33} = xy⁠, and all others are 0. So

A−1=1∣A∣adj⁡A=1xyz[yz000xz000xy]=[x−1000y−1000z−1]\begin{aligned} A^{-1} &= \frac{1}{|A|}\operatorname{adj}A \\ &= \frac{1}{xyz}\begin{bmatrix} yz & 0 & 0 \\ 0 & xz & 0 \\ 0 & 0 & xy \end{bmatrix} \\ &= \begin{bmatrix} x^{-1} & 0 & 0 \\ 0 & y^{-1} & 0 \\ 0 & 0 & z^{-1} \end{bmatrix} \end{aligned}

Answer: (A) [x−1000y−1000z−1]\begin{bmatrix} x^{-1} & 0 & 0 \\ 0 & y^{-1} & 0 \\ 0 & 0 & z^{-1} \end{bmatrix}

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

The one idea this problem is built on

A diagonal matrix only stretches each coordinate separately: xx times the first, yy times the second, zz times the third. To undo it, divide each coordinate by the same number, so the inverse is the diagonal matrix with entries 1x\frac1x⁠, 1y\frac1y⁠, 1z\frac1z⁠. The adjoint method confirms this: ∣A∣=xyz|A| = xyz and adj⁡A\operatorname{adj}A has diagonal yz,xz,xyyz, xz, xy⁠, and dividing gives 1x,1y,1z\frac1x, \frac1y, \frac1z⁠.

Given, to find, and the plan
Given
The 3×33\times3 diagonal matrix A with diagonal x,y,zx, y, z⁠, all non-zero.
To find
A−1A^{-1}⁠, and the matching option.
Plan
(1) ∣A∣|A|⁠. (2) All nine cofactors and adj A. (3) A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}A⁠. (4) Check AA−1=IAA^{-1} = I⁠. (5) Examine every option.

Basics you need

1Determinant of a matrix with many zeros

Expand along a row with zeros: only the non-zero entries contribute. Lesson: expanding a 3 × 3 determinant

2Cofactors and adjoint

Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij}⁠; adj A is the transpose of the cofactor matrix. Basics: the + − + sign pattern

3Inverse

If ∣A∣≠0|A| \ne 0⁠, A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}A⁠, and it is the only matrix with AA−1=A−1A=IAA^{-1} = A^{-1}A = I⁠. Basics: why the inverse divides by |A|

4Negative powers

x−1x^{-1} means 1x\frac1x⁠, defined because x≠0x \ne 0⁠. Basics: algebra the chapter leans on

Solution

  1. The determinant of A

    Expand along R1=(x,0,0)R_1 = (x, 0, 0)⁠: only the first entry contributes.

    ∣A∣=x∣y00z∣−0+0=x(yz−0)=xyz.|A| = x\begin{vmatrix} y & 0 \\ 0 & z \end{vmatrix} - 0 + 0 = x(yz - 0) = xyz.

    Since xx⁠, yy⁠, zz are all non-zero, ∣A∣=xyz≠0|A| = xyz \ne 0⁠, so A is invertible.

    The two zeros in R1R_1 remove two terms (Remark (i) of Section 4.2.3). A product of non-zero real numbers is non-zero, which is why the question insists that xx⁠, yy⁠, zz are nonzero: if any were 0, ∣A∣=0|A| = 0 and A would have no inverse.
    Section 4.5, Theorem 4: invertible ⇔ non-singular. Lesson: inverse of a matrix
  2. All nine cofactors, and adj A

    A11=+∣y00z∣=yzA12=−∣000z∣=0A13=+∣0y00∣=0A21=−∣000z∣=0A22=+∣x00z∣=xzA23=−∣x000∣=0A31=+∣00y0∣=0A32=−∣x000∣=0A33=+∣x00y∣=xy\begin{aligned} A_{11} &= +\begin{vmatrix} y & 0 \\ 0 & z \end{vmatrix} = yz \\ A_{12} &= -\begin{vmatrix} 0 & 0 \\ 0 & z \end{vmatrix} = 0 \\ A_{13} &= +\begin{vmatrix} 0 & y \\ 0 & 0 \end{vmatrix} = 0 \\ A_{21} &= -\begin{vmatrix} 0 & 0 \\ 0 & z \end{vmatrix} = 0 \\ A_{22} &= +\begin{vmatrix} x & 0 \\ 0 & z \end{vmatrix} = xz \\ A_{23} &= -\begin{vmatrix} x & 0 \\ 0 & 0 \end{vmatrix} = 0 \\ A_{31} &= +\begin{vmatrix} 0 & 0 \\ y & 0 \end{vmatrix} = 0 \\ A_{32} &= -\begin{vmatrix} x & 0 \\ 0 & 0 \end{vmatrix} = 0 \\ A_{33} &= +\begin{vmatrix} x & 0 \\ 0 & y \end{vmatrix} = xy \end{aligned}

    The cofactor matrix is diagonal, so it equals its transpose:

    adj⁡A=[yz000xz000xy].\operatorname{adj}A = \begin{bmatrix} yz & 0 & 0 \\ 0 & xz & 0 \\ 0 & 0 & xy \end{bmatrix}.
    Each off-diagonal minor contains a whole row or column of zeros (for example M12M_{12} has first column (0,0)(0, 0)⁠), so it is 0 and the sign does not matter. Each diagonal minor is the product of the other two diagonal entries: M11=yzM_{11} = yz⁠, M22=xzM_{22} = xz⁠, M33=xyM_{33} = xy⁠.
    Section 4.4, Definitions 1, 2; Section 4.5.1, Definition 3. Lesson: the adjoint
  3. A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}A

    A−1=1xyz[yz000xz000xy]=[1x0001y0001z].A^{-1} = \frac{1}{xyz}\begin{bmatrix} yz & 0 & 0 \\ 0 & xz & 0 \\ 0 & 0 & xy \end{bmatrix} = \begin{bmatrix} \frac1x & 0 & 0 \\ 0 & \frac1y & 0 \\ 0 & 0 & \frac1z \end{bmatrix}.

    In the notation of the options, this is the matrix with diagonal x−1,y−1,z−1x^{-1}, y^{-1}, z^{-1}⁠.

    Each diagonal entry simplifies: yzxyz=1x\frac{yz}{xyz} = \frac1x⁠, xzxyz=1y\frac{xz}{xyz} = \frac1y⁠, xyxyz=1z\frac{xy}{xyz} = \frac1z⁠. The cancellations are allowed because x,y,z≠0x, y, z \ne 0⁠.
  4. Check AA−1=IAA^{-1} = I

    Rows of A: (x,0,0)(x, 0, 0)⁠, (0,y,0)(0, y, 0)⁠, (0,0,z)(0, 0, z)⁠. Columns of A−1A^{-1}⁠: (1x,0,0)(\frac1x, 0, 0)⁠, (0,1y,0)(0, \frac1y, 0)⁠, (0,0,1z)(0, 0, \frac1z)⁠. Each diagonal entry is x⋅1x=1x\cdot\frac1x = 1⁠, y⋅1y=1y\cdot\frac1y = 1⁠, z⋅1z=1z\cdot\frac1z = 1⁠; each off-diagonal entry is a sum of three products each containing a 0, so it is 0. Hence AA−1=IAA^{-1} = I ✓, and in the same way A−1A=IA^{-1}A = I⁠.

    The definition of the inverse requires both products to be I. For diagonal matrices the product is again diagonal, with the diagonal entries multiplied in pairs, so this check is immediate.
  5. Examine every option

    Multiply A by each option and see whether the product is I. Take x=1x = 1⁠, y=2y = 2⁠, z=3z = 3 (so xyz=6xyz = 6⁠) as a test case.

    OptionA times the optionVerdict
    (A)Diagonal x⋅x−1,y⋅y−1,z⋅z−1x\cdot x^{-1}, y\cdot y^{-1}, z\cdot z^{-1}⁠, that is 1,1,11, 1, 1⁠: the product is ICorrect for all non-zero x,y,zx, y, z (Steps 3, 4).
    (B)(B) is xyz A−1=adj⁡Axyz\,A^{-1} = \operatorname{adj}A⁠, so the product is xyz Ixyz\,I⁠; for the test case, 6I6IWrong: it is I only when xyz=1xyz = 1⁠. (B) is adj A, not A−1A^{-1}⁠.
    (C)1xyzA2\frac{1}{xyz}A^2⁠, diagonal x2xyz,y2xyz,z2xyz\frac{x^2}{xyz}, \frac{y^2}{xyz}, \frac{z^2}{xyz}⁠; for the test case 16,46,96\frac16, \frac46, \frac96Wrong: not I in general.
    (D)1xyzA\frac{1}{xyz}A⁠, diagonal 1yz,1xz,1xy\frac{1}{yz}, \frac{1}{xz}, \frac{1}{xy}⁠; for the test case 16,13,12\frac16, \frac13, \frac12Wrong: not I in general.
    Since the inverse is unique, at most one option can equal A−1A^{-1} for every choice of x,y,zx, y, z⁠, and (A) does. A single test case is enough to rule out (B), (C) and (D) as general answers. Note that with x=y=z=1x = y = z = 1⁠, A is I and all four options reduce to I, which is why that choice would not separate them.
    Uniqueness of the inverse (Chapter 3, Section 3.7, Theorem 3). Lesson: inverse of a matrix
Result

The correct answer is (A): ∣A∣=xyz|A| = xyz⁠, adj⁡A\operatorname{adj}A has diagonal yz,xz,xyyz, xz, xy⁠, and so A−1A^{-1} is the diagonal matrix with entries x−1,y−1,z−1x^{-1}, y^{-1}, z^{-1}⁠. (Textbook answer: A.)

Check it with numbers

For x=1x = 1⁠, y=2y = 2⁠, z=3z = 3⁠: A has diagonal 1,2,31, 2, 3 and option (A) has diagonal 1,12,131, \frac12, \frac13⁠. The product has diagonal 1⋅1=11\cdot1 = 1⁠, 2⋅12=12\cdot\frac12 = 1⁠, 3⋅13=13\cdot\frac13 = 1⁠: it is I ✓. With negative entries, x=−2x = -2⁠, y=5y = 5⁠, z=−12z = -\frac12⁠: option (A) has diagonal −12,15,−2-\frac12, \frac15, -2⁠, and (−2)(−12)=1(-2)(-\frac12) = 1⁠, 5⋅15=15\cdot\frac15 = 1⁠, (−12)(−2)=1(-\frac12)(-2) = 1 ✓.

Common mistakes
  1. Choosing (B) because it contains xyzxyz⁠: (B) is the adjoint, which still has to be divided by ∣A∣=xyz|A| = xyz⁠.
  2. Inverting the whole matrix entry by entry, including the zeros. Only the diagonal entries are inverted, and that works only because A is diagonal; for a general matrix, A−1A^{-1} is not the matrix of reciprocals.
  3. Testing with x=y=z=1x = y = z = 1, which makes every option look right.
What to take away
  1. The inverse of a diagonal matrix with non-zero diagonal entries is the diagonal matrix of their reciprocals.
  2. For a diagonal matrix, ∣A∣|A| is the product of the diagonal entries, and adj A is diagonal with "the product of the other entries" in each place.
  3. To check an MCQ about an inverse, multiply A by each option and look for I, using test values that are not all equal to 1.

Every fact used, and where it comes from

FactUsed inSource
Expansion along a row with zerosStep 1Section 4.2.3, Remark (i) (Lesson: expanding a 3 × 3 determinant)
Minors, cofactors, adjointStep 2Section 4.4, Definitions 1, 2; Section 4.5.1, Definition 3 (Lesson: the adjoint)
Invertible ⇔ non-singular; A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}ASteps 1, 3Section 4.5, Theorem 4 (Lesson: inverse of a matrix)
The inverse is uniqueStep 5Chapter 3, Section 3.7, Theorem 3
Every option's product with A, symbolically and for the test valuesSteps 3–5, CheckRecomputed with sympy 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 →