
















































































Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!

















































































A matrix may be defined as a rectangular array of numbers (real or complex): when the array A has m
rows and n columns and the entries are real numbers, we say that A is an m × n matrix, or more formally
m×n
The elements of A are denoted as a ij
, where i denotes the row and j the column:
If m=1, A is a row vector ; if n=1, A is a column vector.
Sometimes a m x n matric is expressed as A=(a ij
m x n
Example
You may think of a m × n matrix A as a portion of a spreadsheet containing in each cell (the entry a ij
a number: suppose for example to have m = 3 industries producing n = 4 products and let a ij
be the
monthly number of items put on the market.
We may organize this information into a 3 × 4 matrix:
We have e.g. a 32
= 563, a 14
Example 2
Let us consider a system of linear equations:
!
"
!
"
Here the coefficients of the system may be organized into a 2 × 3 matrix and a 2 × 1 vector:
Also the unkowns may be represented as the vector 𝑥⃗ = $
In general, if A = (a ij
)m×n and B = (b ij
m×n
are two matrices of the same dimension, we define the sum
of A and B as the matrix obtained by adding their corresponding entries:
Of course the same is true for the subtraction.
Example 3
If α ∈ R, we define the multiplication by a scalar αA as:
Example 4
Let A, B and C matrices with dimension m × n.
Rules for matrix addition and multiplication by scalars
be the same of A
The matrix multiplication is NOT commutative: in general AB ¹ BA.
Let us consider the system
!
"
!
"
!
"
It can be written as 𝐴𝑥 = 𝑏
Where
The identity matrix of order n, denoted with I n
, is the matrix whose entries are: 𝐼
'
For any n x n matrix A 𝐴𝐼𝑛 = 𝐼𝑛𝐴 = 𝐴.
Let A be a m × n matrix, A = (a ij
m×n
. The transpose of A, denoted by A′ (or At ) is defined as
A′ = (a ji
n×m
, that is the rows of A become the columns of A′:
!!
!"
!'
"!
""
"'
)!
)"
)'
!!
"!
)!
!"
""
)"
!'
"'
)'
Rules for matrix transposition
The n × n matrix A is said symmetric if and only if A = A′, that is a ij
= a ji
for all i , j = 1, 2,... , n.
A matrix for which m = 1 or n = 1 is called a column or row vector, respectivley: so
The number a i
i s called the i - th component (or coordinate) of the vector.
Of course row and column vectors contain the same ‘’information”, but the dimension 1 × n or n × 1 is
important for matrix operations and coding. Geometrically, a vector of real numbers represents a point
in the n- dimensional space Rn.
Since n-vectors are matrices with a dimension fixed to 1, all the algebraic operations defined for
matrices are equally valid for n-vectors, provided the right dimensions:
o if a is 1 × n and b = n × 1, then ab is 1 × 1 (a scalar).
o If a is n × 1 and b = 1 × n, then ab is n × n (a matrix).
The inner (or scalar) product of two n-vectors a and b is defined as
!
!
"
"
'
'
$
$
'
$(!
Rules for the inner product
𝒊
𝟐
𝒏
𝒊(𝟏
o Square of a diagonal Þ pitagora theorem
Given a square matrix A = (a ij
n×n
, we introduce the determinant of A, denoted as |A| or det(A).
The formal definition of the determinant of a square matrix requires the notion of permutation (or
shuffling) of 1, 2,... , n. Recall that n! = n · (n − 1) · (n − 2) · · · 2 · 1 is the the number of all such
permutations.
The determinant of A is the sum of n! terms each being a product of n elements of the matrix, one
element for each row and one for each column, of the type 𝒂𝟏 𝒑𝟏
𝒑𝟐
𝒑𝒏
, where p1,p2, pn
is a permutation of 1, 2, n.
Numerical methods are usually considered tha computation of the determinant.
Rules for determinants
Let A be a n × n matrix.
$$
'
$(!
The rank ρ(A) of a matrix A is the maximum number of rows or columns which are linearly
independent.
Rules for the calculus of the rank.
and columns
For a square matrix A of order n it is possible to prove that ρ(A) = n ⇔ |A| = 0
Let us consider a system of linear equations m × n
i
!!
!
!"
"
!'
'
!
"!
!
""
"
"'
'
"
)!
!
)"
"
)'
'
)
Let us define the matrix of coefficients A = (a ij
m×n
and the (columns) vectors b = (b j
m×
1 and x = (x i
)n×1:
!!
!"
!'
"!
""
"'
)!
)"
)'
!
"
)
!
"
'
We represent the linear system (1) in matrix notation as 𝐴𝑥 = 𝑏 ( 2 )
The system is therefore characterized by m equations in n unknowns. A solution of (1) or (2) is a vector
y satisfying simultaneously all the equations , i.e. Ay = b. It can be seen that such a system may have
no solutions, one solution, ... , infinite solutions, depending on the matrix A and the vector b. The
following Theorem gives a condition for which the system admits solutions and characterizes their
‘’number”.
Let us firstly define the augmented matrix [A|b]:
!!
!"
!'
!
"!
""
"'
"
)!
)"
)'
)
The system 𝑨𝒙 = 𝒃 admits solutions (or it is consistent) if and only if 𝝆(𝑨) = 𝝆(𝑨|𝒃) Þ rank
A= rank augmented A.
Moreover, if the system is consistent, the number of solutions is ∞
𝒏 0 𝝆(𝑨)
What is the meaning of having ∞
𝒏 0 𝝆(𝑨)
solutions?
spanning a stright line
spanning a plane
Collary 17 (consequence of theorem)
Let A = (aij )n×n and b = (bj )n×1.
The (square) linear system Ax = b has a unique solution if and only if |A| = 0 Þ rank = n.
Remark 2 (geometrical interpretation)
A matrix A = (a ij
m×n
may be seen as a map transforming R
n
vectors in R
m
vectors:
The matrix A represents a linear transformation from Rn to Rm.
Let A = (a ij
n×n
, then the homogeneous linear system with n equations and n unknowns Ax = 0 has non-
trivial solutions if and only if |A| = 0 (that is A is singular).
A contour line or level curve is a curve along which the function has a constant value. Level curves are used
to give a geometrical representation of a function f. Indeed, the surface representing 𝑧 = 𝑓 (𝑥, 𝑦 ) can be cut by
the horizontal plane 𝑧 = 𝑐. The projection on the xy - plane of the resulting intersection is the level curve of f at
height c. Mathematically, a contour line is the solution of f (𝑥 , 𝑦 ) = 𝑐.
Given any real number a, b, c , a quadratic form is a homogeneous polynomial of degree 2 (x is degree 1 and y
iss degree 2):
𝑓(𝑥, 𝑦) = 𝑎𝑥
!
!
In a matrix form:
𝑓(𝑥, 𝑦) = (
𝑥 𝑦 ) 6
𝑎 𝑐
𝑐 𝑏
7 6
𝑥
𝑦
7
Note that Q is a symmetric matrix. We will see later in this course that the variance of a portfolio is a quadratic
form in the vector of percentages invested in the assets.
Given a matrix (square matrix) A = (aij )n×n, we say that v ¹ 0 is an eigenvector for A if there exists a scalar λ
such that
𝐴𝑣 = 𝜆𝑣
In such a case λ is said the eigenvalue associated to v.
Remark 1 (geometric interpretation)
The direction in ℝ
"
represented by an eigenvector v is preserved by the linear transformation A and scaled by the
quantity λ.
Reflection through the bisector of the first-third quadrant.
𝐴 = 6
0 1
1 0
7 In this case, the eigenvectors are given by 𝑣
= 6
1
1
7 , 𝑣
!
=
6
1
− 1
7
90◦-Rotation (anti-clockwise). Þ no special direction that remains the
same
𝐴 = 6
0 − 1
1 0
7 Þ In this case, the eigenvectors DO NOT EXIST! No
directions are unchanges through rotations.
Given a square matrix 𝐴 ∈ ℝ
" % "
, if it has n independent eigenvectors v1,... , vn, relative to the n eigenvalues
λ1,... λn, it is possible to prove that 𝑨 = 𝑽𝑫𝑽
&𝟏
, where D is a diagonal matrix.
𝐷 = A
𝜆 1 0 … 0
0 𝜆 2 … 0
0 0 𝜆𝑛
D
V is the matrix whose columns are the eigenvectors of A
𝑉 = A
𝑣
𝑣
#!
𝑣
#"
𝑣
!#
𝑣
!!
𝑣
!"
𝑣
"#
𝑣
"!
𝑣
""
D
Why it is important?