Inverse of a Matrix

MAT1511 - Precalculus Mathematics B · Matrices

Inverse of a Matrix

The inverse of a matrix is a key concept in linear algebra. It is crucial for solving systems of linear equations and has applications in various fields, including engineering and computer science. The inverse of a matrix A is denoted as A-1. The defining property of the inverse is that when a matrix is multiplied by its inverse, the result is the identity matrix I.

Definition of the Inverse Matrix

For a square matrix A, the inverse A-1 exists if and only if the product of A and A-1 equals the identity matrix I:

A × A-1 = I

Where the identity matrix I is defined as follows:

I = [[1, 0], [0, 1]]

for a 2x2 matrix. The identity matrix acts as a multiplicative identity, similar to the number 1 in regular multiplication.

Conditions for Inverse Existence

A matrix must be square (having the same number of rows and columns) to have an inverse. Additionally, the determinant of the matrix must be non-zero. If the determinant is zero, the matrix is termed singular, and it does not have an inverse.

Remember: A matrix A has an inverse if it is square and det(A) ≠ 0.

Finding the Inverse of a 2x2 Matrix

For a 2x2 matrix A given by:

A = [[a, b], [c, d]]

The inverse A-1 can be calculated using the formula:

A-1 = (1/det(A)) × [[d, -b], [-c, a]]

where det(A) = ad - bc is the determinant of matrix A. Let’s work through an example.

Example 1: Inverse of a 2x2 Matrix

Consider the matrix:

A = [[4, 3], [2, 1]]

Step 1: Calculate the determinant of A.

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

Step 2: Since the determinant is not zero, the inverse exists.

Step 3: Apply the formula for the inverse:

A-1 = (1/det(A)) × [[1, -3], [-2, 4]]

A-1 = (1/-2) × [[1, -3], [-2, 4]]

A-1 = [[-0.5, 1.5], [1, -2]]

Finding the Inverse of a 3x3 Matrix

Finding the inverse of a 3x3 matrix is more complex. For a matrix A given by:

A = [[a, b, c], [d, e, f], [g, h, i]]

The inverse A-1 can be found using the formula:

A-1 = (1/det(A)) × adj(A)

where adj(A) is the adjugate of matrix A. The adjugate is found by taking the transpose of the cofactor matrix.

Example 2: Inverse of a 3x3 Matrix

Consider the matrix:

A = [[1, 2, 3], [0, 1, 4], [5, 6, 0]]

Step 1: Calculate the determinant of A.

Using the determinant formula for a 3x3 matrix:

det(A) = a(ei - fh) - b(di - fg) + c(dh - eg)

det(A) = 1(1×0 - 4×6) - 2(0×0 - 4×5) + 3(0×6 - 1×5)

det(A) = 1(0 - 24) - 2(0 - 20) + 3(0 - 5)

det(A) = -24 + 40 - 15 = 1

Step 2: Since the determinant is not zero, the inverse exists.

Step 3: Calculate the cofactor matrix:

  • C11 = det([[1, 4], [6, 0]]) = (1×0 - 4×6) = -24
  • C12 = -det([[0, 4], [5, 0]]) = -(-20) = 20
  • C13 = det([[0, 1], [5, 6]]) = (0×6 - 1×5) = -5
  • C21 = -det([[2, 3], [6, 0]]) = -(-18) = 18
  • C22 = det([[1, 3], [5, 0]]) = (1×0 - 3×5) = -15
  • C23 = -det([[1, 2], [5, 6]]) = -(6 - 10) = 4
  • C31 = det([[2, 3], [1, 4]]) = (2×4 - 3×1) = 5
  • C32 = -det([[1, 3], [0, 4]]) = -(4) = -4
  • C33 = det([[1, 2], [0, 1]]) = (1×1 - 0×2) = 1

The cofactor matrix is:

 Cofactor = [[-24, 20, -5], [18, -15, 4], [5, -4, 1]]

Step 4: Find the adjugate by taking the transpose of the cofactor matrix:

 adj(A) = [[-24, 18, 5], [20, -15, -4], [-5, 4, 1]]

Step 5: Calculate the inverse:

A-1 = (1/det(A)) × adj(A)

A-1 = (1/1) × [[-24, 18, 5], [20, -15, -4], [-5, 4, 1]]

A-1 = [[-24, 18, 5], [20, -15, -4], [-5, 4, 1]]

Watch out: Be careful with the signs when calculating cofactors. A small mistake can lead to an incorrect inverse.

Verifying the Inverse

It is important to verify that the calculated inverse is correct. You can do this by multiplying the original matrix A by its inverse A-1. If the result is the identity matrix, then the inverse is correct.

Example 3: Verification

Using the first example, let’s verify:

A × A-1 = [[4, 3], [2, 1]] × [[-0.5, 1.5], [1, -2]]

Calculating this product:

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

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

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

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

The product is:

 [[1, 0], [0, 1]]

This confirms that A-1 is indeed the correct inverse.

Applications of the Inverse Matrix

The inverse of a matrix is used in various applications, including:

  • Solving systems of linear equations using the formula x = A-1b, where b is the constant matrix.
  • Computer graphics for transformations.
  • Engineering for stability analysis.

Summary

  • The inverse of a matrix A is denoted A-1.
  • A matrix has an inverse if it is square and its determinant is non-zero.
  • The inverse of a 2x2 matrix can be calculated using a specific formula.
  • The inverse of a 3x3 matrix involves calculating the determinant, cofactor matrix, and adjugate.
  • Verification of the inverse can be done by multiplying A and A-1 to check if the result is the identity matrix.

Check your understanding

  1. What is the condition for a matrix to have an inverse?
  2. How do you calculate the determinant of a 2x2 matrix?
  3. What is the formula for finding the inverse of a 3x3 matrix?
  4. How can you verify that your calculated inverse is correct?