MATH 323 Lecture 4

From Notes
Jump to navigation Jump to search

« previous | Thursday, September 6, 2012 | next »


Matrices (cont'd)

Constructor:

  1. Matn()
  2. Mn()
  3. Mm×n()

1 and 2 are called a ring because they have the + and · operations defined on them since they are square matrices.

Multiplication (cont'd)

AB=C

cij=t=1naitbtj=a(i,:)b(:,j)

NOT commutative: ABBA

Due to associativity of multiplication in #Theorem 1.3.2, we do not write parentheses around multiplication:

  • (AB)C=A(BC)=ABC
  • A1A2An


Exponentiation

An=AAn for integer n


Identity Matrix

Plays the role of "1" in multiplication:

I=In=(δij), where δij={1i=j0ij

(In other words, 1s along diagonal, 0s everywhere else) ...such that

AI=IA=A


Standard Basis

Acts as an identity vector:

I=(e1,,e,n), where ei is a vector of 0s, except the ith element is 1.

Zero Matrix

Plays role of 0 in addition:

0=[0000]

...such that

A+0=0+A=A


Inverse Matrix

If AB=BA=In for n×n matrices A and B, we say than B is the inverse of A: B=A1.

Not every matrix is invertible. A matrix that does not have a multiplicative inverse is said to be singular.


Transpose of a Matrix

For a m×n matrix A=(aij), the transpose of A, written AT, will be n×m and is defined as follows:

AT=(aijT), where aijT=aji

Geometrically, the first row becomes the first column, second row becomes second column, etc. The matrix is simply "reflected" about its "diagonal"

Rules:

  1. (AT)T=A
  2. (αA)T=αAT, α
  3. (A+B)T=AT+BT
  4. (AB)T=BTAT (opposite order)

A n×n matrix A is said to be symmetric iff AT=A. This means that aij=aji

Example

A=[123053]AT=[135203]


Diagonal Matrix

A diagonal matrix is a square (n×n) matrix that has values along its diagonal ({aiji=j})

A special form of diagonal matrices is when D=αI (i.e. all numbers along diagonal are the same): these special diagonal matrices commute with arbitrary matrices


Matrices and Graphs

A graph consists of vertices (data points) and edges that connect them.

A graph with n entries (v1 through vn) can be represented by a n×n adjacency matrix:

A:aij={1vi is connected with vj0otherwise


First, let aij(k) be the (i, j) entry of Ak.

aij(k) represents the number of walks of length k from vi to vj.


Theorem 1.3.2

For all α,β and for all A,B,C, the indicated operations are defined:

  1. A+B=B+A (commutativity of addition)
  2. (A+B)+C=A+(B+C) (associativity of addition)
  3. (AB)C=A(BC) (associativity of multiplication)
  4. A(B+C)=AB+AC (right distributivity)
  5. (A+B)C=AC+BC (left distributivity)
  6. (αβ)A=α(βA)
  7. α(AB)=(αA)B=A(αB)
  8. (α+β)A=αA+βA
  9. α(A+B)=αA+αB

Theorem 1.3.3

If A and B are nonsingular n×n matrices, then AB is also nonsingular and (AB)1=B1A1

(note the opposite order on the right-hand side)

Corollary

For nonsingular matrices A1,,Ak, A1A2Ak is also nonsingular and (A1A2Ak)1=Ak1A21A11