Matrices
An m by n matrix over a set S is a rectangular array of elements of S, arranged in m rows and n columns. It is customary to write an m by n matrix using notation such as
The m x n matrix A can also be written compactly as A [
Fixed the i-esima row (or j-esima column) of a matrix A = (aij), the elements ai1,ai2, ain can be seen as vectors of ℝn. For this reason thye are known as row (column) vectors and are indicated as:
Some Special Matrices
A matrix A = [aij]n×n, which has an equal number of rows and columns, is called a square matrix of order n. Otherwise it is called rectangular.
The elements a11, a22, ..., ann form the main diagonal of A. The sum of the elements on the main diagonal of A is called the trace of A, and it is denoted by
tr A = ∑ni=1 aii
A square matrix in which all the entries above (or below) the main diagonal are zero is called a lower (or an upper) triangular matrix. For example an upper triangular matrix has the form
A square matrix A = [aij]n×n in which every entry off the main diagonal is zero, that is,
aij = 0 for i = j,
is called a diagonal matrix. The sum, the scalar product, and the product of diagonal matrices are again diagonal matrices. (The collection of all diagonal real n × n matrices is thus closed under these operations.)
Two matrices A = (aij) and B = (bij) are equal if every element of aij of A is equal to the correspondend element bij of B.
The set of al matrices m x n with elements in 𝕂 is denoted by 𝕄m,n(𝕂) and the set of all square matricec of order n by Mn(𝕂). Obviously 𝕄n,n(𝕂) = Mn(𝕂) and M1(𝕂) = 𝕂, because a 1 x 1 matrix is nothing elese than an element of 𝕂
Sum of Matrices
By setting
(aij) + (bij) = (aij + bij)
λ(aij) + (λaij)
∀(aij), (bij) ∈ 𝕄m,n(𝕂), λ∈ 𝕂, is defined on 𝕄m,n(𝕂) una struttura di 𝕂-spazio vettoriale. Lo zero è la matrice nulla.
If A = (aij) and B = (bij), λ∈ 𝕂, the matrices (aij) + (bij) and (λaij) are denoted by A + B and λA, respectively.
It is easy to verify that for the sum of matrices the commutative and associative properties hold:
A + B = B + A (A + B) + C = A + (B + C)
Product of a matrix by a vector
Consideriamo il concetto importante di combinazione lineare di m vettori di dimensione n
a1x1 + a2x2 + . . . + am xm
questa combinazione lineare si può definire come il prodotto righe per colonne tra una matrice ed un vettore, quest'ultimo immaginato disposto come colonna.