Professional Documents
Culture Documents
Susana Ni
ola
Jorge Mendonça
Carla Pinto
Department of Mathemati
s
Instituto Superior de Engenharia do Porto
Contents
Introdu tion
Denition of a matrix
Denition
A matrix is a re
tangular array of numbers in R. The indi-
vidual numbers are
alled entries, aij of the matrix and refer
to them by their row and j
olumn numbers.The rows are
numbered 1, 2, ...from the top and the
olumns are numbered
1, 2, ... from left to right.
Representation of a matrix
a11 a12 · · · a1j
a21 a22 · · · a3j
A = [aij ] = .. .. . . ..
. . . .
a1j a2j · · · aij
where aij ∈ ℜ, i = 1...m, j = 1, ...n. A matrix may also be
represented by a short form:
Example
1 2 3
Let A =
2 4 −1
Matrix A has dimension 2 × 3, i.e, 2 rows and 3
olumns,
thus A ∈ M2×3 . The element lo
ated in the 2nd row and
3rd
olumn of the matrix A is a23 = −1.
Example
Week days Monday Tuesday Wednesday Thursday Friday Saturday
ALGAN 0 1 0 0 4 1
APROG 2 3 1 3 0 0
AMATA 0 2 2 0 3 2
PRECOMP 3 0 0 2 2 0
0 1 0 0 4 1
2 3 1 3 0 0
Let A =
0
2 2 0 3 2
3 0 0 2 2 0
Example
Let
1 2 3
1 0 3
A3×3 = −2 0 1
B2×3 =
0 0 1
2 −3 7
1
C1×3 = 1 0 3 D3×1 = 0
−2
1 0 0
E3×3 = 0 1 0
0 0 1
Row Matrix
A matrix with one row is
alled a row matrix or a row ve
tor,
i.e
A = [aij ] = a11 · · · a1n
Example
A1×4 = 1 2 3 4
Column Matrix
A matrix with one
olumn is
alled a
olumn matrix or a
olumn ve
tor, i.e
a11
A = [aij ] = · · ·
an1
Example
1
2
A4×1 =
3
4
Re
tangular Matrix
A re
tangular matrix is a matrix whose size is not the same
in both dimensions, i.e, m 6= n.
Square Matrix
A square matrix is a matrix with the same numbers of rows
and
olumns, i.e,m = n
Diagonal Matrix
A square matrix
A = [aij ]
is
alled a diagonal matrix, if o-diagonal elements are equal
to zero or, symboli
ally, aij = 0 for all i 6= j .
a11 0 · · · 0
0 a22 · · · 0
A = [aij ] = .. .. . . ..
. . . .
0 0 0 ann
A ∈ Mnn
a square matrix. A square matrix has an upper triangular
form, if all its elements below the main diagonal are zero,
su
h that,
a11 a12 · · · a1n
0 a22 · · · a2n
A = [aij ] = .. .. . . ..
. . . .
0 0 0 ann
A ∈ Mnn
a square matrix. A square matrix has a lower triangular form,
if all its elements above the main diagonal are zero, su
h that,
a11 0 · · · 0
a21 a22 · · · 0
A = [aij ] = .. .. . . ..
. . . .
an1 an2 · · · ann
Zero/Null Matrix
A matrix is
alled a zero-matrix (0-matrix), if it
onsists of
only zero elements: a[ ij] = 0 for ea
h i, j . In a short form, a
zero-matrix, O, is written as:
0 0 ··· 0
0 0 ··· 0
O = [Oij ] = . . . ..
.. .. .. .
0 0 0 0
Homologous Elements
Elements that o
upy the same position in two matri
es of
the same type are
alled homologous elements. They are also
alled
orresponding elements.
Transpose of matrix AT of A
The transpose of a matrix A is obtained by writing the rows as
olumns (and/or writing the
olumns as rows). More pre
isely,
we
an take the transpose of any m × n matrix A.If we write
the entries of the rst row a11 ; a12 ....a1n down the rst
olumn
of the transpose, the entries a21 ; a22 ....a2n of the se
ond row
down the se
ond
olumn, et
. We get a new matrix, whi
h
we denote AT and is an n × m matrix.
a11 a12 a13 ··· a1n
a21 a22 a23 ··· a2n
A = [Aij ] = a31 a32 a33 ··· a3n
.. .. .. ..
...
. . . .
am1 am2 am3 · · · amn
s
aisep.ipp.pt; jpmisep.ipp.pt;
apisep.ipp.pt DMA-ISEP
Linear Algebra and Analyti
al Geometry 20 / 44
Denition and Representation of a Matrix Basi
Con
epts of Matri
es Operations with Matri
es
Transpose of matrix AT of A
Thus:
a11 a21 a31 ··· am1
a12 a22 a32 ··· am2
AT = [Aji ] =
a13 a23 a33 ··· am3
.. .. .. ..
...
. . . .
a1n a2n a3n · · · amn
1 2 0
0 3 6
AT = [Aji ] =
−1 −2 7
4 0 9
2 4 1
Symmetri
Matrix
Let
A ∈ Mnn
a square matrix. A square matrix A is
alled a symmetri
matrix, if A is equal to the transpose of AT , i.e, A = AT .
1 2 1 2
A = [A2×2 ] = AT = AT 2×2 =
2 3 2 3
Matrix Algebra
Matrix Addition
Matrix Addition
Let A = [aij ] ∈ Mm×n (R) and B = [bij ] ∈ Mmn (R). If
A and B are matri
es of the same dimension, then the sum,
A + B is the matrix:
Matrix Addition
Matrix Addition
3 + (−1) 0 + 2 3 + (−1) 0 + 0
A+B = 2+1 1−2 7−8 1+2 =
3+2 1 + 35 0 + 11 15 − 1
2 2 2 0
= 3 −1 −1 3
5 36 11 14
Matrix Addition
Matrix Addition
Matrix Addition
Exer
ises
1 1 2 1 1 4
1 Let A = −1 3 1 and B = 2 −1 0
3 1 0 3 1 −3
Compute A + B
1 1 4
1 1 2
2 Let C = and D = 2 −1 0
−1 3 1
3 1 −3
Compute C + D
Examples
Let α = 3 and A ∈ M4×3 (R) given by:
1 −2 4
0 −1 9
A=
1 1 −3
2 10 −3
6 30 −9
Exer
ise
Let A ∈ M2×3 (R) given by:
1 1 2
A=
−1 −1 4
☞ Note:
A B.
is equal to the numbers of rows of the matrix
1 × 3 + 0 × 1 + (−1) × 0 1 × 0 + 0 × (−1) + (−1) × (−1) 1 × 1 + 0 × 0 + (−1) × 2
=
2×3+3×1+1×0 2 × 0 + 3 × (−1) + 3 × (−1) 2×1+3×0+1×2
3 1 −1
= ∈ M2×3 (R)
9 −6 4
Power of a matrix
Let A ∈ Mn×n (∈ R) and k ∈ N. The power of Ak of a
matrix A for k a non-negative number, is dened as the matrix
produ
t ofk
opies of A: |A × A ×{z..... × A} Note that,
ktimes
k t t k
(A ) = (A )
Compute A3