Processing math: 51%

More on matrix products and inversion

Recall that we gave the formula for matrix-vector products:

Definition (matrix-vector multiplication)

Let A=(aij) be an n×m matrix and let x be a m×1 column vector. The product y=Ax is a n×1 vector y given by

yi=mj=1aijxj,1in.

Definition (matrix-matrix multiplication)

Let A=(aij) be an n×m matrix and let B=(bjk) be and m×p matrix. The product C=AB, C=(cik) is given by

cik=mj=1aijbjk.

The easiest way to remember this formula is:

C=AB=[Ab1,Ab2,,Abp]

where bk is the kth column of b.

This has to be the case because of the rules of matrix multiplication:

  • Associative A(BC)=(AB)C
  • Distributive A(B+D)=AB+AD
  • Scalar multiplication λAB=(λA)B=A(λB)

So B=[b1,0,0,0,,0]+[0,b2,0,0,0]+[0,0,b3,0,0]+

and (check this!)

AB=[Ab1,0,0,0,,0]+[0,Ab2,0,0,0]+[0,0,Ab3,0,0]+=[Ab1,Ab2,,Abp]

Matrix/vector transpose

If A=(aij)1in,1jm is an n×m matrix then AT=(aij)1im,1jn is an m×n matrix with

aij=aji.

Properties of the transpose

  • (AT)T=A
  • (AB)T=BTAT
  • (A+B)T=AT+BT
  • (A1)T=(AT)1 if A1 exists

Linear transformations

A linear transformation y=T(x) from Rn to Rm is a function that takes in a vector xRn and returns a vector yRm. In addition, it must satisfy the rule of linearity:

  • T(αx1+βx2)=αT(x1)+βT(x2) for any x1,x2Rn and α,βR

Theorem

Every linear transformation (from Rn to Rm) has a matrix representation A such that T(x)=Ax for all xRn. In addition

A=[a1,a2,,ancolumns of A],ai=T(ei),ei=[0,0,,0i1 zeros,1,0,0,]T

Determinants

Definition

Suppose that A is a square matrix

  • If A=[a] is a 1×1 matrix then det.
  • If A is an n\times n matrix with n > 1 the minor M_{ij} is the determinant of the (n-1)\times(n-1) submatrix of A obtained by deleting the ith row and jth column of the matrix A.
  • The cofactor A_{ij} is given by A_{ij} = M_{ij} (-1)^{i+j}.
  • The determinant of the n \times n matrix A when n > 1 is given by either
\det A = \sum_{j=1}^n a_{ij}A_{ij}, \quad \det A = \sum_{i=1}^n a_{ij}A_{ij}

for any 1 \leq i \leq n or 1 \leq j \leq n.

Example

Find \det A using the cofactor expansion

A = \begin{bmatrix} 1 & 1 & 3 & 0 \\ 2 & 1 &0 & 3 \\ 1 & 0 & 1 & 0 \\ 0 & -1 & -1 & 0 \end{bmatrix}.

Properties of the determinant

  1. If \tilde A is obtained from A by the operation R_i \leftrightarrow R_j with i \neq j then \det \tilde A = - \det A.
  2. If \tilde A is obtained from A by the operation \lambda R_j \to R_j then \det \tilde A = \lambda \det A.
  3. If \tilde A is obtained from A by the operation R_i + \lambda R_j \to R_i with i \neq j then \det \tilde A = \det A.
  4. If any row or column of A has only zero entries, then \det A = 0.
  5. If A has two rows or two columns the same, then \det A = 0.

Properties of the determinant (cont.)

  1. If A and B are both n\times n matrices then \det AB = \det A \det B.
  2. \det A = \det A^T
  3. If A^{-1} exists then \det A^{-1} = 1/\det A.
  4. If A is either upper or lower triangular then \det A = \prod_{i=1}^n a_{ii}.

Example

Find \det A using Gaussian elimination

A = \begin{bmatrix} 1 & 1 & 3 & 0 \\ 2 & 1 &0 & 3 \\ 1 & 0 & 1 & 0 \\ 0 & -1 & -1 & 0 \end{bmatrix}.
In [ ]: