Solved Exercises on Matrix Inverses and Invertibility

Master matrix inverses and invertibility: finding inverses, determining invertibility, and properties of invertible matrices through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 2x2 Matrix Inverse
Exercise 1
Find the inverse of A = \(\begin{bmatrix} 3 & 1 \\ 4 & 2 \end{bmatrix}\) and verify that AA⁻¹ = A⁻¹A = I.
Definition:

Matrix inverse: A⁻¹ such that AA⁻¹ = A⁻¹A = I, provided det(A) ≠ 0

Method:
  1. Calculate the determinant: det(A) = ad - bc
  2. If det(A) ≠ 0, compute A⁻¹ using the formula
  3. Verify AA⁻¹ = I and A⁻¹A = I
Calculate det(A)
det(A) = 2
Find A⁻¹
A⁻¹ = \(\begin{bmatrix} 1 & -0.5 \\ -2 & 1.5 \end{bmatrix}\)
Step 1: Calculate the determinant

For A = \(\begin{bmatrix} a & b \\ c & d \end{bmatrix} = \begin{bmatrix} 3 & 1 \\ 4 & 2 \end{bmatrix}\)

det(A) = ad - bc = (3×2) - (1×4) = 6 - 4 = 2

Step 2: Apply the inverse formula

For 2×2 matrices: A⁻¹ = \(\frac{1}{\text{det}(A)}\begin{bmatrix} d & -b \\ -c & a \end{bmatrix}\)

A⁻¹ = \(\frac{1}{2}\begin{bmatrix} 2 & -1 \\ -4 & 3 \end{bmatrix} = \begin{bmatrix} 1 & -0.5 \\ -2 & 1.5 \end{bmatrix}\)

Step 3: Verify AA⁻¹ = I

AA⁻¹ = \(\begin{bmatrix} 3 & 1 \\ 4 & 2 \end{bmatrix} \begin{bmatrix} 1 & -0.5 \\ -2 & 1.5 \end{bmatrix}\)

Row 1, Col 1: (3×1) + (1×(-2)) = 3 - 2 = 1

Row 1, Col 2: (3×(-0.5)) + (1×1.5) = -1.5 + 1.5 = 0

Row 2, Col 1: (4×1) + (2×(-2)) = 4 - 4 = 0

Row 2, Col 2: (4×(-0.5)) + (2×1.5) = -2 + 3 = 1

So AA⁻¹ = \(\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I\) ✓

Step 4: Verify A⁻¹A = I

A⁻¹A = \(\begin{bmatrix} 1 & -0.5 \\ -2 & 1.5 \end{bmatrix} \begin{bmatrix} 3 & 1 \\ 4 & 2 \end{bmatrix}\)

Row 1, Col 1: (1×3) + ((-0.5)×4) = 3 - 2 = 1

Row 1, Col 2: (1×1) + ((-0.5)×2) = 1 - 1 = 0

Row 2, Col 1: ((-2)×3) + (1.5×4) = -6 + 6 = 0

Row 2, Col 2: ((-2)×1) + (1.5×2) = -2 + 3 = 1

So A⁻¹A = \(\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I\) ✓

A⁻¹ = \(\begin{bmatrix} 1 & -0.5 \\ -2 & 1.5 \end{bmatrix}\)
Final answer:

The inverse is A⁻¹ = \(\begin{bmatrix} 1 & -0.5 \\ -2 & 1.5 \end{bmatrix}\)

Applied rules:

• 2×2 inverse formula: A⁻¹ = (1/det(A))[d -b; -c a]

• Invertibility condition: det(A) ≠ 0

• Verification: AA⁻¹ = A⁻¹A = I

2 Determinant and Invertibility
Exercise 2
Determine whether B = \(\begin{bmatrix} 2 & 6 \\ 1 & 3 \end{bmatrix}\) is invertible. If it is, find its inverse. If not, explain why.
Definition:

Non-invertible matrix: Also called singular matrix, has det(A) = 0

Calculate det(B)
det(B) = 0
Conclusion
B is not invertible
Step 1: Calculate the determinant

For B = \(\begin{bmatrix} 2 & 6 \\ 1 & 3 \end{bmatrix}\)

det(B) = (2×3) - (6×1) = 6 - 6 = 0

Step 2: Apply invertibility criterion

Since det(B) = 0, matrix B is not invertible

A matrix is invertible if and only if its determinant is non-zero

Step 3: Geometric interpretation

det(B) = 0 means B collapses the plane to a line

The rows of B are linearly dependent: [2, 6] = 2[1, 3]

This means B is not one-to-one and not onto

Step 4: Verify linear dependence

Row 1 = 2 × Row 2: [2, 6] = 2[1, 3]

This confirms the rows are linearly dependent

Hence, the matrix cannot have full rank

Step 5: Additional insight

Since B has linearly dependent rows, the system Bx = 0 has non-trivial solutions

This violates the requirement for invertibility

det(B) = 0, so B is not invertible
Final answer:

Matrix B is not invertible because det(B) = 0

Applied rules:

• Invertibility condition: det(A) ≠ 0

• Linear dependence: Zero determinant implies dependent rows/columns

• Rank deficiency: Singular matrices have reduced rank

3 Inverse of Special Matrix
Exercise 3
Find the inverse of the rotation matrix R = \(\begin{bmatrix} \cos θ & -\sin θ \\ \sin θ & \cos θ \end{bmatrix}\) and show that R⁻¹ = Rᵀ.
Definition:

Rotation matrix: Orthogonal matrix with determinant 1

R⁻¹
R⁻¹ = \(\begin{bmatrix} \cos θ & \sin θ \\ -\sin θ & \cos θ \end{bmatrix}\)
Rᵀ
Rᵀ = \(\begin{bmatrix} \cos θ & \sin θ \\ -\sin θ & \cos θ \end{bmatrix}\)
Step 1: Calculate the determinant

For R = \(\begin{bmatrix} \cos θ & -\sin θ \\ \sin θ & \cos θ \end{bmatrix}\)

det(R) = (cos θ)(cos θ) - ((-sin θ)(sin θ)) = cos²θ + sin²θ = 1

Step 2: Apply the inverse formula

R⁻¹ = \(\frac{1}{1}\begin{bmatrix} \cos θ & \sin θ \\ -\sin θ & \cos θ \end{bmatrix} = \begin{bmatrix} \cos θ & \sin θ \\ -\sin θ & \cos θ \end{bmatrix}\)

Step 3: Calculate transpose Rᵀ

Rᵀ = \(\begin{bmatrix} \cos θ & \sin θ \\ -\sin θ & \cos θ \end{bmatrix}\)

Step 4: Verify R⁻¹ = Rᵀ

Both matrices are identical: R⁻¹ = Rᵀ

This confirms that rotation matrices are orthogonal: RᵀR = RRᵀ = I

Step 5: Geometric interpretation

R⁻¹ represents rotation by -θ (opposite direction)

Rᵀ also represents rotation by -θ (since sin(-θ) = -sin(θ), cos(-θ) = cos(θ))

R⁻¹ = Rᵀ = \(\begin{bmatrix} \cos θ & \sin θ \\ -\sin θ & \cos θ \end{bmatrix}\)
Final answer:

The inverse of the rotation matrix equals its transpose

Applied rules:

• Orthogonal matrices: R⁻¹ = Rᵀ

• Rotation matrices: det(R) = 1, preserve length and angles

• Trigonometric identity: cos²θ + sin²θ = 1

Matrix Inverses and Invertibility
AA⁻¹ = A⁻¹A = I
Inverse Definition
Formula
A⁻¹ = (1/det(A))adj(A)
General Inverse
Condition
det(A) ≠ 0
Invertibility
Property
(AB)⁻¹ = B⁻¹A⁻¹
Inverse of Product
Unique inverse: If A is invertible, A⁻¹ is unique
Self-inverse: If A² = I, then A⁻¹ = A
Rank condition: A is invertible iff rank(A) = n (full rank)
Solution: Exercises 4 to 5
4 Product of Invertible Matrices
Exercise 4
If A and B are invertible matrices, prove that AB is invertible and find (AB)⁻¹. Then verify with A = \(\begin{bmatrix} 2 & 1 \\ 1 & 1 \end{bmatrix}\) and B = \(\begin{bmatrix} 1 & 0 \\ 1 & 2 \end{bmatrix}\).
Definition:

Product of invertible matrices: If A and B are invertible, then AB is invertible

Given
A⁻¹, B⁻¹ exist
Result
(AB)⁻¹ = B⁻¹A⁻¹
Step 1: Prove (AB)⁻¹ = B⁻¹A⁻¹

We need to show that (B⁻¹A⁻¹)(AB) = I and (AB)(B⁻¹A⁻¹) = I

Left multiplication: (B⁻¹A⁻¹)(AB) = B⁻¹(A⁻¹A)B = B⁻¹IB = B⁻¹B = I

Right multiplication: (AB)(B⁻¹A⁻¹) = A(BB⁻¹)A⁻¹ = AIA⁻¹ = AA⁻¹ = I

Step 2: Find A⁻¹

For A = \(\begin{bmatrix} 2 & 1 \\ 1 & 1 \end{bmatrix}\): det(A) = (2×1) - (1×1) = 1

A⁻¹ = \(\begin{bmatrix} 1 & -1 \\ -1 & 2 \end{bmatrix}\)

Step 3: Find B⁻¹

For B = \(\begin{bmatrix} 1 & 0 \\ 1 & 2 \end{bmatrix}\): det(B) = (1×2) - (0×1) = 2

B⁻¹ = \(\frac{1}{2}\begin{bmatrix} 2 & 0 \\ -1 & 1 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ -0.5 & 0.5 \end{bmatrix}\)

Step 4: Calculate (AB)⁻¹ = B⁻¹A⁻¹

B⁻¹A⁻¹ = \(\begin{bmatrix} 1 & 0 \\ -0.5 & 0.5 \end{bmatrix} \begin{bmatrix} 1 & -1 \\ -1 & 2 \end{bmatrix}\)

= \(\begin{bmatrix} 1 & -1 \\ -1 & 1.5 \end{bmatrix}\)

Step 5: Verify by calculating AB and its inverse

AB = \(\begin{bmatrix} 2 & 1 \\ 1 & 1 \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 1 & 2 \end{bmatrix} = \begin{bmatrix} 3 & 2 \\ 2 & 2 \end{bmatrix}\)

det(AB) = (3×2) - (2×2) = 2

(AB)⁻¹ = \(\frac{1}{2}\begin{bmatrix} 2 & -2 \\ -2 & 3 \end{bmatrix} = \begin{bmatrix} 1 & -1 \\ -1 & 1.5 \end{bmatrix}\)

This matches B⁻¹A⁻¹ ✓

(AB)⁻¹ = B⁻¹A⁻¹ = \(\begin{bmatrix} 1 & -1 \\ -1 & 1.5 \end{bmatrix}\)
Final answer:

(AB)⁻¹ = B⁻¹A⁻¹ as proven and verified

Applied rules:

• Inverse of product: (AB)⁻¹ = B⁻¹A⁻¹

• Associativity: Matrix multiplication is associative

• Verification: Direct computation confirms the result

5 Powers of Invertible Matrix
Exercise 5
Let A = \(\begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}\). Show that A is invertible, find A⁻¹, and verify that (A²)⁻¹ = (A⁻¹)².
Definition:

Upper triangular matrix: Matrix with zeros below the main diagonal

A⁻¹
A⁻¹ = \(\begin{bmatrix} 1 & -1 \\ 0 & 1 \end{bmatrix}\)
Verification
(A²)⁻¹ = (A⁻¹)²
Step 1: Check if A is invertible

For A = \(\begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}\): det(A) = (1×1) - (1×0) = 1 ≠ 0

Since det(A) ≠ 0, A is invertible

Step 2: Find A⁻¹ using formula

A⁻¹ = \(\frac{1}{1}\begin{bmatrix} 1 & -1 \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} 1 & -1 \\ 0 & 1 \end{bmatrix}\)

Step 3: Calculate A²

A² = \(\begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}\)

= \(\begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix}\)

Step 4: Find (A²)⁻¹

For A² = \(\begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix}\): det(A²) = 1

(A²)⁻¹ = \(\begin{bmatrix} 1 & -2 \\ 0 & 1 \end{bmatrix}\)

Step 5: Calculate (A⁻¹)²

(A⁻¹)² = \(\begin{bmatrix} 1 & -1 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} 1 & -1 \\ 0 & 1 \end{bmatrix}\)

= \(\begin{bmatrix} 1 & -2 \\ 0 & 1 \end{bmatrix}\)

Step 6: Verify (A²)⁻¹ = (A⁻¹)²

Both equal \(\begin{bmatrix} 1 & -2 \\ 0 & 1 \end{bmatrix}\) ✓

This confirms the general property: (Aⁿ)⁻¹ = (A⁻¹)ⁿ

(A²)⁻¹ = (A⁻¹)² = \(\begin{bmatrix} 1 & -2 \\ 0 & 1 \end{bmatrix}\)
Final answer:

(A²)⁻¹ = (A⁻¹)² as verified by direct computation

Applied rules:

• Power rule: (Aⁿ)⁻¹ = (A⁻¹)ⁿ for invertible A

• Triangular matrices: Easy to invert, determinant is product of diagonal elements

• Verification: Direct computation confirms theoretical results

Matrix Inverses: Comprehensive Guide
A^{-1} = \frac{1}{\det(A)} \text{adj}(A)
General Inverse Formula
Key definitions:

Matrix inverse: For square matrix A, A⁻¹ exists if AA⁻¹ = A⁻¹A = I

Invertible matrix: Also called nonsingular matrix, has non-zero determinant

Singular matrix: Non-invertible matrix with zero determinant

Complete methodology:
  1. Check invertibility: Calculate det(A) ≠ 0
  2. For 2×2 matrices: Use the simple formula
  3. For larger matrices: Use adjugate formula or row reduction
  4. Verify result: Check AA⁻¹ = I
Tip 1: Always check the determinant first before attempting to find the inverse.
Tip 2: For orthogonal matrices (like rotation matrices), A⁻¹ = Aᵀ.
Tip 3: Remember: (AB)⁻¹ = B⁻¹A⁻¹ (order matters!).
Tip 4: Upper/lower triangular matrices have triangular inverses.
Common errors: Forgetting to check determinant, misapplying the formula, wrong order in products.
Exam preparation: Master 2×2 formula, understand properties, practice verification.
Properties to know by heart:

• Definition: AA⁻¹ = A⁻¹A = I

• Invertibility: det(A) ≠ 0

• Uniqueness: If A⁻¹ exists, it's unique

• Product: (AB)⁻¹ = B⁻¹A⁻¹

• Transpose: (Aᵀ)⁻¹ = (A⁻¹)ᵀ

• Power: (Aⁿ)⁻¹ = (A⁻¹)ⁿ

Invertibility Properties Visualization
Exercise 6: Invertibility Analysis
Visual analysis of invertibility properties:
• Determinant and invertibility relationship
• Properties of invertible matrices
• Common patterns in matrix inverses

Analysis: The visualization shows how different matrix properties relate to invertibility.

  • Determinant must be non-zero for invertibility
  • Full rank is necessary for invertibility
  • Linear independence of rows/columns is required

Questions & Answers

Question: Why is the inverse of a product (AB)⁻¹ equal to B⁻¹A⁻¹ and not A⁻¹B⁻¹? It seems backwards.

Answer: This is a common point of confusion! Think of it like taking off clothes:

If you put on socks first, then shoes, to reverse the process you must:

  • Take off shoes first (the last thing you put on)
  • Then take off socks (the first thing you put on)

Similarly, for matrix multiplication:

To undo AB (first apply A, then apply B), you must:

  • Undo B first (apply B⁻¹)
  • Then undo A (apply A⁻¹)

So (AB)⁻¹ = B⁻¹A⁻¹.

We can verify: (B⁻¹A⁻¹)(AB) = B⁻¹(A⁻¹A)B = B⁻¹IB = B⁻¹B = I ✓

This "shoe-socks principle" applies to any composition of operations.

Question: What's the connection between invertibility and linear independence?

Answer: There's a fundamental connection between invertibility and linear independence:

For an n×n matrix A:

  • A is invertible ⟺ columns of A are linearly independent
  • A is invertible ⟺ rows of A are linearly independent
  • A is invertible ⟺ rank(A) = n (full rank)
  • A is invertible ⟺ nullity(A) = 0

Why this connection exists:

If the columns of A are linearly dependent, then one column can be expressed as a linear combination of others. This means the transformation A "collapses" dimensions, mapping multiple inputs to the same output, making A non-invertible.

Conversely, if columns are linearly independent, A maps distinct inputs to distinct outputs (one-to-one) and covers the entire output space (onto), making A invertible.

This is why det(A) = 0 (linearly dependent rows/columns) means A is not invertible.

Question: What are practical applications of matrix inverses in real-world problems?

Answer: Matrix inverses have numerous practical applications:

  • Systems of equations: Solve Ax = b by computing x = A⁻¹b
  • Cryptography: Encoding/decoding messages using invertible matrices
  • Computer graphics: Transformations and their reversals
  • Machine learning: Normal equations in linear regression involve matrix inverses
  • Control systems: State-space representations require inverse calculations
  • Physics: Coordinate transformations in mechanics and electromagnetism

In engineering, for example, when modeling physical systems, the equation Ax = b often represents a system where:

  • A represents the system parameters
  • x represents unknown variables
  • b represents known quantities

Finding A⁻¹ allows us to solve for x directly: x = A⁻¹b.

In data science, the normal equation for linear regression is θ = (XᵀX)⁻¹Xᵀy, which requires computing a matrix inverse.