Versione italiana
Esercizi sulle Operazioni tra Matrici
Concetti Chiave
-
Definizione di Matrice:
Una matrice è un insieme di numeri disposti in righe e colonne. Una matrice di dimensione m \times n ha m righe e n colonne. -
Tipi di Operazioni tra Matrici:
- Somma di Matrici: Due matrici possono essere sommate se hanno le stesse dimensioni. La somma si ottiene sommando gli elementi corrispondenti.
- Differenza di Matrici: Simile alla somma, la differenza si ottiene sottraendo gli elementi corrispondenti.
- Prodotto di Matrici: Il prodotto di due matrici A (dimensione m \times n) e B (dimensione n \times p) è una matrice C (dimensione m \times p) i cui elementi sono dati da:
C_{ij} = \sum_{k=1}^{n} A_{ik} B_{kj}
- Prodotto per uno Scalare: Moltiplicare una matrice per uno scalare significa moltiplicare ogni elemento della matrice per quel numero.
-
Matrice Identità:
La matrice identità I_n è una matrice quadrata di dimensione n con 1 sulla diagonale principale e 0 altrove. Ha la proprietà che, per ogni matrice A di dimensione n \times n:A \cdot I_n = I_n \cdot A = A
Esercizi
Esercizio 1: Somma di Matrici
Problema: Calcola la somma delle matrici A e B dove:
A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}, \quad B = \begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix}
Soluzione:
- Somma gli elementi corrispondenti:
A + B = \begin{pmatrix} 1 + 5 & 2 + 6 \\ 3 + 7 & 4 + 8 \end{pmatrix} = \begin{pmatrix} 6 & 8 \\ 10 & 12 \end{pmatrix}
Esercizio 2: Differenza di Matrici
Problema: Calcola la differenza delle matrici A e B dove:
A = \begin{pmatrix} 9 & 8 \\ 7 & 6 \end{pmatrix}, \quad B = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}
Soluzione:
- Sottrai gli elementi corrispondenti:
A - B = \begin{pmatrix} 9 - 1 & 8 - 2 \\ 7 - 3 & 6 - 4 \end{pmatrix} = \begin{pmatrix} 8 & 6 \\ 4 & 2 \end{pmatrix}
Esercizio 3: Prodotto di Matrici
Problema: Calcola il prodotto delle matrici A e B dove:
A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}, \quad B = \begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix}
Soluzione:
- Calcola il prodotto:
C = A \cdot B = \begin{pmatrix} 1 \cdot 5 + 2 \cdot 7 & 1 \cdot 6 + 2 \cdot 8 \\ 3 \cdot 5 + 4 \cdot 7 & 3 \cdot 6 + 4 \cdot 8 \end{pmatrix}
= \begin{pmatrix} 5 + 14 & 6 + 16 \\ 15 + 28 & 18 + 32 \ \end{pmatrix}
= \begin{pmatrix} 19 & 22 \\ 43 & 50 \end{pmatrix}
Esercizio 4: Prodotto di una Matrice per uno Scalare
Problema: Calcola il prodotto della matrice A per lo scalare k = 3 dove:
A = \begin{pmatrix} 4 & -2 \\ 1 & 0 \end{pmatrix}
Soluzione:
- Moltiplica ogni elemento della matrice per 3:
kA = 3 \cdot A = \begin{pmatrix} 3 \cdot 4 & 3 \cdot -2 \\ 3 \cdot 1 & 3 \cdot 0 \end{pmatrix} = \begin{pmatrix} 12 & -6 \\ 3 & 0 \end{pmatrix}
Esercizio 5: Verifica della Proprietà della Matrice Identità
Problema: Verifica che la matrice identità I moltiplicata per la matrice A restituisce A stessa, dove:
I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}, \quad A = \begin{pmatrix} 2 & 3 \\ 4 & 5 \end{pmatrix}
Soluzione:
- Calcola il prodotto I \cdot A:
I \cdot A = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} \cdot \begin{pmatrix} 2 & 3 \\ 4 & 5 \end{pmatrix}
= \begin{pmatrix} 1 \cdot 2 + 0 \cdot 4 & 1 \cdot 3 + 0 \cdot 5 \\ 0 \cdot 2 + 1 \cdot 4 & 0 \cdot 3 + 1 \cdot 5 \end{pmatrix} = \begin{pmatrix} 2 & 3 \\ 4 & 5 \end{pmatrix}
- Quindi, I \cdot A = A.
Esercizio 6: Somma di Matrici di Dimensioni Diverse (Errore)
Problema: Prova a sommare le matrici A e B dove:
A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}, \quad B = \begin{pmatrix} 5 & 6 & 7 \\ 8 & 9 & 10 \end{pmatrix}
Soluzione:
- Nota che le matrici A e B hanno dimensioni diverse (A è 2 \times 2 e B è 2 \times 3).
- Non è possibile sommarle, quindi l'operazione è non definita.
English version
Matrix Operations Exercises
Key Concepts
-
Definition of Matrix:
A matrix is ​​a set of numbers arranged in rows and columns. A matrix of size m \times n has m rows and n columns. -
Types of Matrix Operations:
- Matrix Addition: Two matrices can be added if they have the same dimensions. The sum is obtained by adding the corresponding elements.
- Matrix Difference: Similar to the addition, the difference is obtained by subtracting the corresponding elements.
- Matrix Product: The product of two matrices A (size m \times n) and B (size n \times p) is a matrix C (size m \times p) whose elements are given by:
C_{ij} = \sum_{k=1}^{n} A_{ik} B_{kj}
- Scalar Product: Multiplying a matrix by a scalar means multiplying each element of the matrix by that number.
- Identity Matrix:
The identity matrix I_n is a square matrix of size n with 1 on the main diagonal and 0 elsewhere. It has the property that, for any matrix A of size n \times n:
A \cdot I_n = I_n \cdot A = A
Exercises
Exercise 1: Matrices Sum
Problem: Calculate the sum of matrices A and B where:
A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}, \quad B = \begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix}
Solution:
- Add the corresponding elements:
A + B = \begin{pmatrix} 1 + 5 & 2 + 6 \\ 3 + 7 & 4 + 8 \end{pmatrix} = \begin{pmatrix} 6 & 8 \\ 10 & 12 \end{pmatrix}
Exercise 2: Difference of Matrices
Problem: Calculate the difference of matrices A and B where:
A = \begin{pmatrix} 9 & 8 \\ 7 & 6 \end{pmatrix}, \quad B = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}
Solution:
- Subtract the corresponding elements:
A - B = \begin{pmatrix} 9 - 1 & 8 - 2 \\ 7 - 3 & 6 - 4 \end{pmatrix} = \begin{pmatrix} 8 & 6 \\ 4 & 2 \end{pmatrix}
Exercise 3: Product of Matrices
Problem: Calculate the product of matrices A and B where:
A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}, \quad B = \begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix}
Solution:
- Calculate the product:
C = A \cdot B = \begin{pmatrix} 1 \cdot 5 + 2 \cdot 7 & 1 \c dot 6 + 2 \cdot 8 \\ 3 \cdot 5 + 4 \cdot 7 & 3 \cdot 6 + 4 \cdot 8 \end{pmatrix}
= \begin{pmatrix} 5 + 14 & 6 + 16 \\ 15 + 28 & 18 + 32 \ \end{pmatrix}
= \begin{pmatrix} 19 & 22 \\ 43 & 50 \end{pmatrix}
Exercise 4: Product of a Matrix and a Scalar
Problem: Calculate the product of the matrix A and the scalar k = 3 where:
A = \begin{pmatrix} 4 & -2 \\ 1 & 0 \end{pmatrix}
Solution:
- Multiply each element of the matrix by 3:
kA = 3 \cdot A = \begin{pmatrix} 3 \cdot 4 & 3 \cdot -2 \\ 3 \cdot 1 & 3 \cdot 0 \end{pmatrix} = \begin{pmatrix} 12 & -6 \\ 3 & 0 \end{pmatrix}
Exercise 5: Verification of the Property of Identity Matrix
Problem: Verify that the identity matrix I multiplied by the matrix A returns A itself, where:
I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}, \quad A = \begin{pmatrix} 2 & 3 \\ 4 & 5 \end{pmatrix}
Solution:
- Compute the product I \cdot A:
I \cdot A = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} \cdot \begin{pmatrix} 2 & 3 \\ 4 & 5 \end{pmatrix}
= \begin{pmatrix} 1 \cdot 2 + 0 \cdot 4 & 1 \cdot 3 + 0 \cdot 5 \\ 0 \cdot 2 + 1 \cdot 4 & 0 \cdot 3 + 1 \cdot 5 \end{pmatrix} = \begin{pmatrix} 2 & 3 \\ 4 & 5 \end{pmatrix}
- So, I \cdot A = A.
Exercise 6: Adding Matrices of Different Sizes (Error)
Problem: Try adding matrices A and B where:
A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}, \quad B = \begin{pmatrix} 5 & 6 & 7 \\ 8 & 9 & 10 \end{pmatrix}
Solution:
- Note that matrices A and B have different sizes (A is 2 \times 2 and B is 2 \times 3).
- You cannot add them, so the operation is undefined.
Commenti
Posta un commento