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

Exercise 4.4 · Q11: Inverse of a matrix with cos⁡α\cos\alpha and sin⁡α\sin\alpha

Exercise 4.4Adjoint and inverse of a matrix · Section 4.5
The question

Find the inverse of the matrix (if it exists):

[1000cos⁡αsin⁡α0sin⁡α−cos⁡α]\begin{bmatrix} 1 & 0 & 0 \\ 0 & \cos\alpha & \sin\alpha \\ 0 & \sin\alpha & -\cos\alpha \end{bmatrix}
Exam answer

Let AA be the given matrix.

Expanding along R1R_1⁠:

∣A∣=1∣cos⁡αsin⁡αsin⁡α−cos⁡α∣−0+0=−cos⁡2α−sin⁡2α=−(cos⁡2α+sin⁡2α)=−1\begin{aligned} |A| &= 1\begin{vmatrix} \cos\alpha & \sin\alpha \\ \sin\alpha & -\cos\alpha \end{vmatrix} - 0 + 0 \\ &= -\cos^2\alpha - \sin^2\alpha \\ &= -(\cos^2\alpha + \sin^2\alpha) = -1 \end{aligned}

Since ∣A∣≠0|A| \ne 0⁠, A−1A^{-1} exists.

Cofactors, Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij}⁠:

A11=∣cos⁡αsin⁡αsin⁡α−cos⁡α∣=−1A12=−∣0sin⁡α0−cos⁡α∣=0A13=∣0cos⁡α0sin⁡α∣=0\begin{aligned} A_{11} &= \begin{vmatrix} \cos\alpha & \sin\alpha \\ \sin\alpha & -\cos\alpha \end{vmatrix} = -1 \\ A_{12} &= -\begin{vmatrix} 0 & \sin\alpha \\ 0 & -\cos\alpha \end{vmatrix} = 0 \\ A_{13} &= \begin{vmatrix} 0 & \cos\alpha \\ 0 & \sin\alpha \end{vmatrix} = 0 \end{aligned} A21=−∣00sin⁡α−cos⁡α∣=0A22=∣100−cos⁡α∣=−cos⁡αA23=−∣100sin⁡α∣=−sin⁡α\begin{aligned} A_{21} &= -\begin{vmatrix} 0 & 0 \\ \sin\alpha & -\cos\alpha \end{vmatrix} = 0 \\ A_{22} &= \begin{vmatrix} 1 & 0 \\ 0 & -\cos\alpha \end{vmatrix} = -\cos\alpha \\ A_{23} &= -\begin{vmatrix} 1 & 0 \\ 0 & \sin\alpha \end{vmatrix} = -\sin\alpha \end{aligned} A31=∣00cos⁡αsin⁡α∣=0A32=−∣100sin⁡α∣=−sin⁡αA33=∣100cos⁡α∣=cos⁡α\begin{aligned} A_{31} &= \begin{vmatrix} 0 & 0 \\ \cos\alpha & \sin\alpha \end{vmatrix} = 0 \\ A_{32} &= -\begin{vmatrix} 1 & 0 \\ 0 & \sin\alpha \end{vmatrix} = -\sin\alpha \\ A_{33} &= \begin{vmatrix} 1 & 0 \\ 0 & \cos\alpha \end{vmatrix} = \cos\alpha \end{aligned} adj⁡A=[−1000−cos⁡α−sin⁡α0−sin⁡αcos⁡α]\begin{aligned} &\operatorname{adj}A \\ &= \begin{bmatrix} -1 & 0 & 0 \\ 0 & -\cos\alpha & -\sin\alpha \\ 0 & -\sin\alpha & \cos\alpha \end{bmatrix} \end{aligned} A−1=1∣A∣adj⁡A=−adj⁡A=[1000cos⁡αsin⁡α0sin⁡α−cos⁡α]\begin{aligned} A^{-1} &= \frac{1}{|A|}\operatorname{adj}A = -\operatorname{adj}A \\ &= \begin{bmatrix} 1 & 0 & 0 \\ 0 & \cos\alpha & \sin\alpha \\ 0 & \sin\alpha & -\cos\alpha \end{bmatrix} \end{aligned}

∴ A−1=A\therefore\ A^{-1} = A⁠, the given matrix.

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

The one idea this problem is built on

Use A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}A⁠. The identity cos⁡2α+sin⁡2α=1\cos^2\alpha + \sin^2\alpha = 1 makes ∣A∣=−1|A| = -1 for every angle α\alpha⁠, so the inverse always exists. Working out the adjoint shows adj⁡A=−A\operatorname{adj}A = -A⁠, so A−1=AA^{-1} = A⁠: this matrix undoes itself.

Given, to find, and the plan
Given
AA above, with a11=1a_{11} = 1⁠, a22=cos⁡αa_{22} = \cos\alpha⁠, a23=a32=sin⁡αa_{23} = a_{32} = \sin\alpha⁠, a33=−cos⁡αa_{33} = -\cos\alpha⁠, and zeros elsewhere in row 1 and column 1. α\alpha is any real angle.
To find
A−1A^{-1}⁠, if it exists.
Plan
(1) Compute ∣A∣|A| using cos⁡2α+sin⁡2α=1\cos^2\alpha+\sin^2\alpha=1⁠. (2)–(4) All nine minors and cofactors. (5) Matrix of cofactors and its transpose adj⁡A\operatorname{adj}A⁠. (6) Divide by ∣A∣|A|⁠. (7) Check AA−1=IAA^{-1} = I⁠.

Basics you need

1cos⁡2α+sin⁡2α=1\cos^2\alpha + \sin^2\alpha = 1

For every real α\alpha⁠: the point (cos⁡α,sin⁡α)(\cos\alpha, \sin\alpha) lies on the unit circle, so by Pythagoras its coordinates satisfy x2+y2=1x^2 + y^2 = 1⁠. Basics: algebra the chapter leans on

2Expanding along a row with zeros

Row 1 is 1,0,01, 0, 0⁠: two of its three terms vanish, so expanding along it leaves a single 2×22\times2 determinant (Section 4.2.3, Remarks). Lesson: expanding a 3 × 3 determinant

3Minor, cofactor, sign pattern

MijM_{ij} deletes row ii and column jj⁠; Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij}⁠, with signs +−++ - + / −+−- + - / +−++ - +⁠. Basics: the + − + sign pattern

4Adjoint and inverse

adj⁡A\operatorname{adj}A is the transpose of [Aij][A_{ij}]⁠; if ∣A∣≠0|A|\neq 0⁠, A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}A (Definition 3, Theorem 4). Basics: why the inverse divides by |A|

Solution

  1. Compute ∣A∣|A|

    Row 1 is 1,0,01, 0, 0⁠, the row with the most zeros. Expand along it; its signs are +,−,++, -, +⁠:

    ∣A∣=1⋅M11−0⋅M12+0⋅M13=M11\begin{aligned} |A| &= 1\cdot M_{11} - 0\cdot M_{12} + 0\cdot M_{13}\\ &= M_{11} \end{aligned} M11=∣cos⁡αsin⁡αsin⁡α−cos⁡α∣=cos⁡α(−cos⁡α)−sin⁡αsin⁡α=−cos⁡2α−sin⁡2α=−(cos⁡2α+sin⁡2α)=−1\begin{aligned} M_{11} &= \begin{vmatrix} \cos\alpha & \sin\alpha \\ \sin\alpha & -\cos\alpha \end{vmatrix}\\ &= \cos\alpha(-\cos\alpha) - \sin\alpha\sin\alpha\\ &= -\cos^2\alpha - \sin^2\alpha\\ &= -(\cos^2\alpha + \sin^2\alpha) = -1 \end{aligned}

    So ∣A∣=−1|A| = -1⁠. This is non-zero for every α\alpha⁠, so A−1A^{-1} always exists.

    The entries depend on α\alpha⁠, so a priori ∣A∣|A| might vanish for some angles and the answer would be "exists only when …". The identity cos⁡2α+sin⁡2α=1\cos^2\alpha+\sin^2\alpha = 1 removes α\alpha completely, so no case analysis is needed. The minus sign in front of cos⁡α\cos\alpha in position (3,3)(3,3) is what turns the product of the diagonal into −cos⁡2α-\cos^2\alpha⁠.
  2. Cofactors of row 1

    M11=−1(Step 1)A11=(−1)1+1M11=−1M12=∣0sin⁡α0−cos⁡α∣=0A12=(−1)1+2M12=0M13=∣0cos⁡α0sin⁡α∣=0A13=(−1)1+3M13=0\begin{aligned} M_{11} &= -1 \quad (\text{Step 1})\\ A_{11} &= (-1)^{1+1}M_{11} = -1\\[2mm] M_{12} &= \begin{vmatrix} 0 & \sin\alpha \\ 0 & -\cos\alpha \end{vmatrix} = 0\\ A_{12} &= (-1)^{1+2}M_{12} = 0\\[2mm] M_{13} &= \begin{vmatrix} 0 & \cos\alpha \\ 0 & \sin\alpha \end{vmatrix} = 0\\ A_{13} &= (-1)^{1+3}M_{13} = 0 \end{aligned}
    Deleting column 2 or column 3 leaves part of column 1, whose lower entries are both 00⁠. A 2×22\times2 determinant with a whole column of zeros is 0⋅d−b⋅0=00\cdot d - b\cdot 0 = 0⁠. In detail, M12=0(−cos⁡α)−(sin⁡α)(0)=0M_{12} = 0(-\cos\alpha) - (\sin\alpha)(0) = 0 and M13=0(sin⁡α)−(cos⁡α)(0)=0M_{13} = 0(\sin\alpha) - (\cos\alpha)(0) = 0⁠.
  3. Cofactors of row 2

    M21=∣00sin⁡α−cos⁡α∣=0A21=(−1)2+1M21=0M22=∣100−cos⁡α∣=−cos⁡αA22=(−1)2+2M22=−cos⁡αM23=∣100sin⁡α∣=sin⁡αA23=(−1)2+3M23=−sin⁡α\begin{aligned} M_{21} &= \begin{vmatrix} 0 & 0 \\ \sin\alpha & -\cos\alpha \end{vmatrix} = 0\\ A_{21} &= (-1)^{2+1}M_{21} = 0\\[2mm] M_{22} &= \begin{vmatrix} 1 & 0 \\ 0 & -\cos\alpha \end{vmatrix} = -\cos\alpha\\ A_{22} &= (-1)^{2+2}M_{22} = -\cos\alpha\\[2mm] M_{23} &= \begin{vmatrix} 1 & 0 \\ 0 & \sin\alpha \end{vmatrix} = \sin\alpha\\ A_{23} &= (-1)^{2+3}M_{23} = -\sin\alpha \end{aligned}
    M21M_{21} has a row of zeros (what is left of row 1), so it is 00⁠. M22M_{22} deletes row 2 and column 2, leaving rows 1, 3 and columns 1, 3: 1⋅(−cos⁡α)−0⋅01\cdot(-\cos\alpha) - 0\cdot0⁠. M23M_{23} deletes row 2 and column 3, leaving rows 1, 3 and columns 1, 2: 1⋅sin⁡α−0⋅01\cdot\sin\alpha - 0\cdot0⁠. Position (2,3)(2,3) has 2+3=52+3=5⁠, odd, so its sign is −-⁠.
  4. Cofactors of row 3

    M31=∣00cos⁡αsin⁡α∣=0A31=(−1)3+1M31=0M32=∣100sin⁡α∣=sin⁡αA32=(−1)3+2M32=−sin⁡αM33=∣100cos⁡α∣=cos⁡αA33=(−1)3+3M33=cos⁡α\begin{aligned} M_{31} &= \begin{vmatrix} 0 & 0 \\ \cos\alpha & \sin\alpha \end{vmatrix} = 0\\ A_{31} &= (-1)^{3+1}M_{31} = 0\\[2mm] M_{32} &= \begin{vmatrix} 1 & 0 \\ 0 & \sin\alpha \end{vmatrix} = \sin\alpha\\ A_{32} &= (-1)^{3+2}M_{32} = -\sin\alpha\\[2mm] M_{33} &= \begin{vmatrix} 1 & 0 \\ 0 & \cos\alpha \end{vmatrix} = \cos\alpha\\ A_{33} &= (-1)^{3+3}M_{33} = \cos\alpha \end{aligned}
    M32M_{32} deletes row 3 and column 2, leaving rows 1, 2 and columns 1, 3, that is 1,01, 0 over 0,sin⁡α0, \sin\alpha⁠. M33M_{33} keeps the top-left 2×22\times2 block. Test: row 2 of AA times its own cofactors is 0⋅0+cos⁡α(−cos⁡α)+sin⁡α(−sin⁡α)0\cdot0 + \cos\alpha(-\cos\alpha) + \sin\alpha(-\sin\alpha)⁠, which is −(cos⁡2α+sin⁡2α)=−1=∣A∣-(\cos^2\alpha+\sin^2\alpha) = -1 = |A|⁠, as it must be.
    Row times its own cofactors gives ∣A∣|A| (Remark, Section 4.4). Lesson: minors and cofactors
  5. Matrix of cofactors and adj⁡A\operatorname{adj}A

    [Aij]=[−1000−cos⁡α−sin⁡α0−sin⁡αcos⁡α][A_{ij}] = \begin{bmatrix} -1 & 0 & 0 \\ 0 & -\cos\alpha & -\sin\alpha \\ 0 & -\sin\alpha & \cos\alpha \end{bmatrix}

    Transposing swaps entry (i,j)(i,j) with entry (j,i)(j,i)⁠. Here the only off-diagonal pair that is not zero is A23=A32=−sin⁡αA_{23} = A_{32} = -\sin\alpha⁠, so the matrix is symmetric and the transpose changes nothing:

    adj⁡A=[−1000−cos⁡α−sin⁡α0−sin⁡αcos⁡α]\operatorname{adj}A = \begin{bmatrix} -1 & 0 & 0 \\ 0 & -\cos\alpha & -\sin\alpha \\ 0 & -\sin\alpha & \cos\alpha \end{bmatrix}
    Even when the transpose turns out to change nothing, it must be checked: it is part of the definition of adj⁡A\operatorname{adj}A⁠. Compare with AA⁠: every entry of adj⁡A\operatorname{adj}A is the negative of the matching entry of AA⁠, so adj⁡A=−A\operatorname{adj}A = -A⁠.
    A matrix equal to its own transpose is symmetric. Basics: transpose and identity · Lesson: the adjoint
  6. Divide by ∣A∣=−1|A| = -1

    A−1=1−1adj⁡A=[1000cos⁡αsin⁡α0sin⁡α−cos⁡α]A^{-1} = \frac{1}{-1}\operatorname{adj}A = \begin{bmatrix} 1 & 0 & 0 \\ 0 & \cos\alpha & \sin\alpha \\ 0 & \sin\alpha & -\cos\alpha \end{bmatrix}

    This is AA itself: A−1=AA^{-1} = A.

    Theorem 4 gives A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}A⁠. Since ∣A∣=−1|A| = -1 and adj⁡A=−A\operatorname{adj}A = -A⁠, the two minus signs cancel. A matrix that is its own inverse satisfies A⋅A=IA\cdot A = I⁠, which we check next.
  7. Check: A A−1=A⋅A=IA\,A^{-1} = A\cdot A = I

    Both factors are 3×33\times3⁠. Write cc for cos⁡α\cos\alpha and ss for sin⁡α\sin\alpha to keep the rows short. Row 1 of AA is 1,0,01, 0, 0⁠, so row 1 of the product is row 1 of the second factor, 1,0,01, 0, 0⁠. Likewise column 1 of the second factor is 1,0,01, 0, 0⁠, so c21=c31=0c_{21} = c_{31} = 0⁠. The remaining four entries:

    c22=0⋅0+c⋅c+s⋅s=1c23=0⋅0+c⋅s+s(−c)=0c32=0⋅0+s⋅c+(−c)s=0c33=0⋅0+s⋅s+(−c)(−c)=1\begin{aligned} c_{22} &= 0\cdot0 + c\cdot c + s\cdot s = 1\\ c_{23} &= 0\cdot0 + c\cdot s + s(-c) = 0\\ c_{32} &= 0\cdot0 + s\cdot c + (-c)s = 0\\ c_{33} &= 0\cdot0 + s\cdot s + (-c)(-c) = 1 \end{aligned}

    (using c2+s2=1c^2 + s^2 = 1 in c22c_{22} and c33c_{33}⁠). So

    A⋅A=[100010001]=IA\cdot A = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix} = I
    y z α (1, 0) (cos α, sin α) mirror line, angle α/2 The 2 × 2 block of A sends (1, 0) to (cos α, sin α): it is a reflection in the violet line. Reflecting twice puts every point back, so A · A = I.
    Drawn for α=70∘\alpha = 70^\circ⁠. The lower-right 2×22\times2 block of AA reflects the yzyz-plane in the line at angle α/2\alpha/2⁠, and row 1 keeps the first coordinate fixed. A reflection undone by itself is why A−1=AA^{-1} = A⁠.
    The product confirms the inverse for every α\alpha⁠, because it only uses c2+s2=1c^2+s^2 = 1 and cs=sccs = sc⁠, which hold for all angles. The figure gives the geometric reason: AA is a mirror reflection (in the last two coordinates), and doing a reflection twice returns every point to where it started. To see that the 2×22\times2 block really is a reflection, write h=α/2h = \alpha/2⁠, so α−h=h\alpha - h = h⁠. By the formulas for cos⁡(α−h)\cos(\alpha - h) and sin⁡(α−h)\sin(\alpha - h)⁠, the block sends (cos⁡h,sin⁡h)(\cos h, \sin h) to (cos⁡(α−h),sin⁡(α−h))(\cos(\alpha - h), \sin(\alpha - h))⁠, which is (cos⁡h,sin⁡h)(\cos h, \sin h) itself, and sends (−sin⁡h,cos⁡h)(-\sin h, \cos h) to (sin⁡h,−cos⁡h)(\sin h, -\cos h)⁠, its negative. So it fixes every point of the violet line and reverses the direction perpendicular to it, which is exactly what a reflection in that line does.
    Row times column, then the Pythagorean identity. Basics: matrix facts the chapter uses
Result

∣A∣=−1|A| = -1 for every α\alpha⁠, so the inverse always exists, and

A−1=[1000cos⁡αsin⁡α0sin⁡α−cos⁡α]=AA^{-1} = \begin{bmatrix} 1 & 0 & 0 \\ 0 & \cos\alpha & \sin\alpha \\ 0 & \sin\alpha & -\cos\alpha \end{bmatrix} = A

(Textbook answer: the same matrix.)

Check it with numbers

Take α=70∘\alpha = 70^\circ⁠, as in the figure: cos⁡α≈0.342020\cos\alpha \approx 0.342020⁠, sin⁡α≈0.939693\sin\alpha \approx 0.939693⁠. Then cos⁡2α≈0.116978\cos^2\alpha \approx 0.116978 and sin⁡2α≈0.883022\sin^2\alpha \approx 0.883022⁠, so ∣A∣|A| is about −(0.116978+0.883022)-(0.116978 + 0.883022)⁠, that is −1.000000-1.000000 ✓. Apply AA to the column (0,1,0)(0, 1, 0)⁠: the result is column 2 of AA⁠, that is (0, 0.342020, 0.939693)(0,\ 0.342020,\ 0.939693)⁠. Apply AA again: the middle entry is cos⁡2α+sin⁡2α\cos^2\alpha + \sin^2\alpha⁠, about 0.116978+0.8830220.116978 + 0.883022⁠, which is 1.0000001.000000⁠, and the last is 0.939693(0.342020)0.939693(0.342020) minus 0.342020(0.939693)0.342020(0.939693)⁠, which is 00⁠. We are back at (0,1,0)(0, 1, 0) ✓. At α=0\alpha = 0 the matrix is diagonal with 1,1,−11, 1, -1⁠, and its square is diagonal with 12,12,(−1)21^2, 1^2, (-1)^2⁠, all equal to 1, so it is II ✓.

Common mistakes
  1. Getting ∣A∣=cos⁡2α−sin⁡2α|A| = \cos^2\alpha - \sin^2\alpha⁠. The (3,3)(3,3) entry is −cos⁡α-\cos\alpha⁠, so the diagonal product is −cos⁡2α-\cos^2\alpha⁠, and then sin⁡2α\sin^2\alpha is subtracted: −cos⁡2α−sin⁡2α=−1-\cos^2\alpha - \sin^2\alpha = -1⁠.
  2. Dropping the sign of A23A_{23} or A32A_{32}⁠. Positions (2,3)(2,3) and (3,2)(3,2) are "minus" places, so both cofactors are −sin⁡α-\sin\alpha⁠.
  3. Saying the inverse exists "only for some α\alpha". ∣A∣=−1|A| = -1 does not depend on α\alpha at all.
  4. Forgetting to divide by −1-1⁠. adj⁡A=−A\operatorname{adj}A = -A is not the inverse; A−1=1−1adj⁡A=AA^{-1} = \frac{1}{-1}\operatorname{adj}A = A⁠.
What to take away
  1. With trigonometric entries, simplify the determinant with an identity before deciding where it is zero; here cos⁡2α+sin⁡2α=1\cos^2\alpha+\sin^2\alpha = 1 makes it constant.
  2. A row like 1,0,01, 0, 0 makes both the determinant and most cofactors quick.
  3. If A⋅A=IA\cdot A = I⁠, then A−1=AA^{-1} = A⁠. Reflections are the typical example.

Every fact used, and where it comes from

FactUsed inSource
cos⁡2α+sin⁡2α=1\cos^2\alpha + \sin^2\alpha = 1 for all real α\alphaSteps 1, 4, 7Pythagorean identity (Class 11, Trigonometric Functions)
Expansion of a 3×33\times3 determinant along a row; choose the row with most zerosStep 1Section 4.2.3 and its Remarks (Lesson: expanding)
Minor MijM_{ij} and cofactor Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij}Steps 2–4Definitions 1 and 2, Section 4.4 (Lesson: minors and cofactors)
Row times its own cofactors =∣A∣= |A|Step 4Remark, Section 4.4
adj⁡A\operatorname{adj}A = transpose of [Aij][A_{ij}]Step 5Definition 3, Section 4.5.1 (Lesson: the adjoint)
A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}A when ∣A∣≠0|A|\neq0Step 6Theorem 4, Section 4.5 (Lesson: inverse)
Row-times-column rule for productsStep 7Chapter 3, Section 3.4.5
cos⁡(x−y)\cos(x - y) and sin⁡(x−y)\sin(x - y) formulasStep 7 (why the figure shows a reflection)Class 11, Trigonometric Functions
Figure coordinates, the decimal check, all cofactorsStep 7, 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 →