Home page for accesible maths LAB100

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

3 Functions for Matrices

The determinant of a square matrix can be computed in R by using the function det for instance

det(E)

The transpose of a matrix can be obtained by using t() e.g.

t(E)

The inverse of a square matrix can be obtained by using the function solve

solve(E)

 

Quiz 1: Inverting a 5×5 matrix

Find the inverse of the matrix

[1-10310-10121101-102111-10002]
  1. (A)
    [-1210-1-1/403/401/21/40-7/41-3/23/411/401/2-1/21-1/200]
  2. (B)
    [-1201-1-1/403/401/27/40-1/41-1/2-1/4-11/403/21/201/200]
  3. (C)
    [-1-1/41/43/4-1/2200-1113/4-7/4-1/41/200100-11/2-3/21/20]
  4. (D)
    [-1210-1-1/403/401/21/40-7/41-3/23/4-1-1/401/2-1/211/200]
  5. (E)
    [-1-1/41/43/4-1/2200-1113/4-7/4-1/41/200100-11/2-3/21/20]

 

 

Workshop 1: Determinant of a matrix

Find the determinant of the 10×10 matrix of the form:

𝐕=[1-1-200-11-1-2-2-100-2-2-1-100-2-11]

 

 

Workshop 2: Inverse of a matrix

Find the inverse of the matrix 𝐕 defined in the previous question. Find the (7,8) element of 𝐕-1 to 3 decimal places.

 

 

Workshop 3: Determinants of large matrix

Consider other matrices of the same general form as 𝐕. What size n of n×n matrix leads to a matrix with determinant 190231?

 

 

Workshop 4: Largest determinant of a 3×3 matrix

What is the largest possible determinant that a symmetric 3×3 matrix, all of whose entries lie in the set of integers {1,2,3,4,5,6} can have? Use R to determine the answer.