Professional Documents
Culture Documents
By Tilak Abeysinghe ©
* Notation
* Transpose: A’ or AT
* Multiplication
In general AB≠BA.
A(B+C) = AB+AC
(A+B)C = AC+BC
A(BC) = (AB)C
(AB)′ = B′A′
* Sums
i = (1,1,...,1)′ , ∑x j = i ′x
tr(A′) = tr(A)
tr(kA) = ktr(A)
tr(In) = n
tr(A+B) = tr(A) +tr(B)
tr(ABC) = tr(BCA) =tr(CAB), if orders are conformable.
* Determinant of a square matrix
det( A) =| A | =constant
a 22 a 23
* Cofactor of a11 = (−1)1+1
a32 a33
* Rank of a matrix
* Inverse of a matrix
adj ( A)
Inverse of An is A −1 = where adj(A) = adjoint of A = C ′ = [cij ]′ .
A
I −1 = I
( A −1 ) −1 = A
( A′) −1 = ( A −1 )′
( AB) −1 = B −1 A −1
* Solution for a system of simultaneous equations
x = A −1b
| Ai |
xi =
| A|
* Partitioned Matrices
A A12
A = 11
A22
.
A21
Does there exist a vector x (n×1) such that A (n×n) transform x into a multiple of
itself. Such a vector is called an invariant vector. This leads to
Ax = λx
( A − λI ) x = 0 .
Example:
5 −3
A= .
4 −2
Form | A − λI |= 0 . This leads to λ1 = 2, or λ 2 = 1 . These are eigen values.
For λ = 1, ( A − λI ) x = 0 gives
5 − 1 − 3 x1 0
=
4 − 2 − 1 x 2 0
. This yields
x1 = ±3 / 5 and x 2 = ±4 / 5 .
x1 3 / 5 x − 3/ 5
= or 1 = .
x2 4 / 5 x2 − 4 / 5
Similarly for λ = 2
x1 1 / 2 x − 1/ 2
= or 1 = .
x2 1 / 2 x2 − 1 / 2
* Orthogonal Matrices
If A is symmetric, then all its characteristic roots are real and the characteristic
vectors corresponding to different c-roots are orthogonal, i.e. xi, x j = 0 for λi ≠ λ j .
If the n characteristic roots are distinct, form a matrix of characteristic vectors C
(n×n). The matrix C is an orthogonal matrix. Again note xi' xi = 1, xi' x j = 0 .
C ′C = CC ′ = I ⇒ C ′ = C −1
| C |= ±1 .
1 1
Define another diagonal matrix W = diag ( ,..., ).
λ1 λn
Then WΛW = I .
Some properties:
* Factoring Matrix
* Idempotent Matrix
M = I n − X ( X ′X ) −1 X ′.
* Quadratic Form
n n
x ′Ax = ∑∑ aij xi x j is called the quadratic form in x.
i =1 j =1
1 2 x1
( x1 x2 ) x = x12 + 4 x1 x2 + 4 x22 .
2 3 2
* Definite Matrices
An is symmetric.
Am×n , Bk ×l
a11 B . a1n B
( A ⊗ B) mk ×nl = . . .
a B . a B
m1 mn
A⊗ B ≠ B ⊗ A
( A ⊗ B)′ = A′ ⊗ B ′
( A ⊗ B) −1 = A −1 ⊗ B −1
( A ⊗ B)(C ⊗ D) = AC ⊗ BD
A ⊗ (B ⊗ C) = A ⊗ B + A ⊗ C
*Vector and matrix differentiation
Let x be a vector.
y = f ( x1 , x 2 ,..., x n )
∂y / ∂x1
∂y / ∂x
∂y
2
= . .
∂x
.
∂y / ∂xn
∂ 2 y / ∂x∂x ′ = ∂ 2 y / ∂xi ∂x j
∂ 2 y / ∂x1∂x1 . . . ∂ 2 y / ∂x1∂x n
. .
= . .
. .
∂ 2 y / ∂x ∂x ∂ y / ∂x n ∂x n
2
n 1 . . .
n
=
y a=
'x ∑a x
i =1
i i is a scalar. Then
∂y / ∂x1 a1
∂y / ∂x a
∂y
2 2
= . = . = a.
∂x
. .
∂y / ∂x 2 an
n
Note each element of yi is=
yi a=′
i x ∑ a x , where a ′ is the ith row of A. Therefore,
i =1
i i i
∂yi
= ai =transpose of the ith row of A.
∂x
∂Ax
Thus, = A′ .
∂x
a a12 x1
y = (x1 x 2 ) 11 = a11 x12 + a 21 x1 x 2 + a12 x1 x 2 + a 22 x 22
a 21 a 22 x 2
If A is symmetric then
y = a11 x12 + 2a12 x1 x 2 + a 22 x 22 .
∂y / ∂x 2 = 2a12 x1 + 2a 22 x 2
a a12 x1
∂y / ∂x = 2 11
a12 a 22 x 2
= 2Ax in general.