Professional Documents
Culture Documents
Nicolosi/Ramponi
A.A. 2022/2023
Example 1
You may think of a m × n matrix A as a portion of a spreadsheet
containing in each cell (the entry aij ) a number: suppose for
example to have m = 3 industries producing n = 4 products and
let aij be the monthly number of items put on the market. We may
organize this information into a 3 × 4 matrix:
1000 246 2380 1760
A = 1530 432 2140 1820
1345 563 1990 2110
Example 2
Let us consider a system of linear equations:
√
3x1 − x2 + 2x3 = 2
0.2x1 + 2x2 − 5.6x3 = 0
αA := (αaij )m×n
Example 4
3 −1 6 −2
2 =
5 2 10 4
Let A = (aij )m×n and B = (bij )n×p be two matrices. The matrix
product C = AB is defined as the m × p matrix C = (cij )m×p
whose entries are
n
X
cij := aik bkj = ai1 b1j + ai2 b2j + . . . + ain bnj
k=1
1 2
3 −1 0 3 5
A= , B= 0 1 ⇒ AB =
2 1 −5 −3 −5
1 2
Remark 1
The matrix multiplication is NOT commutative: in general
AB 6= BA.
It can be written as
Ax = b
where
√
3 −1 2 2 x1
A = 0.2 2 −5.6 , b = 0 , x = x2 .
−1 4 −0.1 1/2 x3
AIn = In A = A.
Example 7
3 0
3 1 5
A= ⇒ A0 = 1 −1
0 −1 2
5 2
−1 −2 −1 2 1
2 = + =
3 6 3 1 4
Example 10
1 2 2 6
2 1 =5 1 3 =
3 1 1 3
Example 11
2 1 1 5
=
1 0 3 1
Nicolosi/Ramponi QMF (a-b) - A.A. 22/23
Operations on vectors
Given two vectors a, b having the same dimension and two scalars
α, β, the vector αa + βb is defined to be a linear combination of
a and b:
a1 b1 αa1 + βb1
a2 b2 αa2 + βb2
α . + β . = .
. . ..
. . .
an bn αan + βbn
α1 v1 + α2 v2 + · · · + αm vm
where αi ∈ R, i = 1, 2, . . . , m.
Example 12
Let v1 = (1, −2), v2 = (−1, 0) and v3 = (1, 1) vectors in R2 , and
α1 = 3, α2 = −2, α3 = 1: then
1 −1 1 6
3 −2 +1 =
−2 0 1 −5
Example 13
Let us consider a portfolio composed by 3 assets. Let a1 = 4,
a2 = 2, a3 = 1, be the number of shares of the assets and
p1 = 100, p2 = 80, p3 = 120 the corresponding market value. Then
the value V of the portfolio is clearly
3
X
V = a1 p1 + a2 p2 + a3 p3 = ai pi = 4 × 100 + 2 × 80 + 1 × 120.
i=1
120
n=3
a11 a12 a13
A = a21 a22 a23
a31 a32 a33
⇒ |A| = a11 a22 a33 − a11 a23 a32 + a12 a23 a31 − a12 a21 a33 +
a13 a21 a32 − a13 a22 a31
Example 14
0 1 2 1 1 1 −1 0
= −2, =3 =0 = −2
2 3 1 2 2 2 0 2
1
2 −1 1 3 0
1 3 2
2
0 4 = −44, 0 0 1 =7 0 1 1 =4
−1 4 3 −2 1 4 0 0 4
1 0 0
4 2 2 1 0 0
0 2 0 = 2,
2 1 1 = 0 1 1 0 = 1
0 0 1 3 0 5 2 2 1
where p1 , p2 , . . . , pn is a permutation of 1, 2, . . . , n.
Numerical methods are usually considered for the computation of
the determinant.
2v1 + v2 − v3 = 0.
Hence v3 = 2v1 + v2 .
ρ(A) = n ⇔ |A| =
6 0
Ax = b (2)
Theorem 16 (Rouché-Capelli)
The system Ax = b admits solutions (or it is consistent) if and
only if
ρ(A) = ρ(A|b).
Moreover, if the system is consistent, the number of solutions is
∞n−ρ(A) .
Corollary 17
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| =
6 0.
A : Rn → Rm
x 7→ Ax = y
A−1 A = AA−1 = In
since A−1 A = I .
Properties of the inverse. Let A and B invertible n × n matrices:
A−1 is invertible and (A−1 )−1 = A
AB is invertible and (AB)−1 = B −1 A−1
A0 is invertible and (A0 )−1 = (A−1 )0
(αA)−1 = α1 A−1 , whenever α 6= 0.
Ax = 0
It is immediately seen that a homogeneous system has always the
so-called trivial solution x1 = x2 = · · · = xn = 0.
Are there non-trivial (i.e. different from zero) solutions?
As a consequence of the Rouché-Capelli Theorem we have the
following result:
Theorem 19 (Solutions of homogeneous systems)
Let A = (aij )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).
Example 20
x1 + x2 = 0
x1 − x2 = 0
The matrix associated to the system is
1 1
A=
1 −1
Example 21
x1 − x2 = 0
2x1 − 2x2 = 0
The matrix associated to the system is
1 −1
A=
2 −2
Example 22
x1 − x2 = 0
x1 − x2 = 1
The matrix A and vector b associated to the system are
1 −1 0
A= b=
1 −1 1
The rank of A is ρ(A) = 1 since the two rows are the same.
However ρ(A|b) = 2. Then the system has no solutions.