MathClario
← Retour au niveau Prépa
Prépa🔤Algèbre●●●○○· 6 min
🔢

Matrices : addition, multiplication, transposée

Les 3 opérations de base sur les matrices en prépa. Règles de dimension, non-commutativité, transposée.

Addition : même dimension

A+BA + B n’a de sens que si AA et BB ont la même dimension. On additionne coefficient par coefficient.

(1234)+(5678)=(681012)\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} + \begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix} = \begin{pmatrix} 6 & 8 \\ 10 & 12 \end{pmatrix}

Propriétés : commutative, associative, élément neutre 00 (matrice nulle).

Multiplication par un scalaire

λA\lambda A : multiplier chaque coefficient par λ\lambda.

3×(1234)=(36912)3 \times \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} = \begin{pmatrix} 3 & 6 \\ 9 & 12 \end{pmatrix}

Produit matriciel : dimensions compatibles

A×BA \times B a un sens ssi nb colonnes de AA = nb lignes de BB.

Si AA est (n,p)(n, p) et BB est (p,q)(p, q), alors ABAB est (n,q)(n, q).

Formule : (AB)ij=∑k=1paikbkj(AB)_{ij} = \sum_{k=1}^{p} a_{ik} b_{kj} (ligne ii de AA × colonne jj de BB).

Exemple (2,2)×(2,2)(2,2) \times (2,2)

(1234)×(5678)=(19224350)\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} \times \begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix} = \begin{pmatrix} 19 & 22 \\ 43 & 50 \end{pmatrix}

Détail : 1×5+2×7=191 \times 5 + 2 \times 7 = 19, 1×6+2×8=221 \times 6 + 2 \times 8 = 22, etc.

⚠️ Non-commutativité

AB≠BAAB \neq BA en général ! Même quand les deux produits existent.

(0100)(0010)=(1000)\begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix} \begin{pmatrix} 0 & 0 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}

(0010)(0100)=(0001)\begin{pmatrix} 0 & 0 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix} = \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}

Transposée : ATA^T (ou t ⁣A^t\!A)

On échange lignes et colonnes. Si AA est (n,p)(n, p), ATA^T est (p,n)(p, n).

A=(123456),AT=(142536)A = \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix}, \quad A^T = \begin{pmatrix} 1 & 4 \\ 2 & 5 \\ 3 & 6 \end{pmatrix}

Propriétés :

  • (A+B)T=AT+BT(A + B)^T = A^T + B^T
  • (λA)T=λAT(\lambda A)^T = \lambda A^T
  • (AB)T=BTAT(AB)^T = B^T A^T (ordre inversé !)
  • (AT)T=A(A^T)^T = A

Erreurs classiques

  1. Additionner A(2,3)+B(3,2)A(2,3) + B(3,2) : dimensions différentes, impossible.
  2. Écrire AB=BAAB = BA : faux sauf cas particuliers.
  3. (AB)T=ATBT(AB)^T = A^T B^T : NON, c’est BTATB^T A^T.
  4. Oublier la ligne × colonne dans le produit matriciel.
?À toi de jouer

A est (3, 2) et B est (2, 4). Dimension de AB ?

Mini-quiz

Question 1 / 3

A est (2, 3) et B est (3, 5). Dimension de AB ?

#matrice#produit matriciel#transposée#prépa

À voir aussi