BURHAN.

Matrices carrées d'ordre 2 et 3 : Cours de Mathématiques 2BAC Sciences Mathématiques, chapitre Structures algébriques : groupes, anneaux, corps

Matrices carrées d'ordre 2 et 3 : notion du chapitre Structures algébriques : groupes, anneaux, corps du programme de maths 2BAC SM, expliquée pas à pas, avec 1 exemple guidé. Pour les élèves de 2BAC SM A et SM B, option française (BIOF).

Notions du cours (10)

Apprendre avec Burhan

Les matrices carrées d'ordre 2 et 3

Étape 1 sur 4

Des tableaux de nombres

Devine : Case par case

On additionne deux tableaux de même taille case par case. Que vaut (3−120)+(−3415)\begin{pmatrix} 3 & -1 \\ 2 & 0 \end{pmatrix} + \begin{pmatrix} -3 & 4 \\ 1 & 5 \end{pmatrix} ?

Choisis une réponse : l'explication s'affiche sous ton choix. Tu peux en changer.

Choix A :(0335)\begin{pmatrix} 0 & 3 \\ 3 & 5 \end{pmatrix}

Juste.

Chaque case est la somme des cases de même place : 3+(−3)=03 + (-3) = 0, −1+4=3-1 + 4 = 3, 2+1=32 + 1 = 3 et 0+5=50 + 5 = 5.

Choix B :(0065)\begin{pmatrix} 0 & 0 \\ 6 & 5 \end{pmatrix}

Faux.

Tu as lu le second tableau colonne par colonne. La case de la ligne 11 et de la colonne 22 vaut −1+4=3-1 + 4 = 3.

Choix C :Le nombre 1111.

Faux.

1111 est la somme de toutes les cases. Une somme de tableaux est encore un tableau de même taille.

Voir la correction complète

On additionne les coefficients de même place : (3+(−3)−1+42+10+5)=(0335)\begin{pmatrix} 3 + (-3) & -1 + 4 \\ 2 + 1 & 0 + 5 \end{pmatrix} = \begin{pmatrix} 0 & 3 \\ 3 & 5 \end{pmatrix}.

DéfinitionMatrices carrées d'ordre 2 et 3 ; somme et produit par un réel

Soit n∈{2,3}n \in \{2, 3\}. Une matrice carrée d'ordre nn à coefficients réels est un tableau A=(aij)A = (a_{ij}) de n2n^2 réels, où aija_{ij} est placé à la ligne ii et à la colonne jj (1≤i≤n1 \leq i \leq n, 1≤j≤n1 \leq j \leq n). Par exemple, pour n=2n = 2 : A=(a11a12a21a22)A = \begin{pmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{pmatrix}. On note M2(R)\mathcal{M}_2(\mathbb{R}) et M3(R)\mathcal{M}_3(\mathbb{R}) ces ensembles. Deux matrices de même ordre sont égales si elles ont les mêmes coefficients aux mêmes places.

Pour A=(aij)A = (a_{ij}) et B=(bij)B = (b_{ij}) dans Mn(R)\mathcal{M}_n(\mathbb{R}) et α∈R\alpha \in \mathbb{R} : A+B=(aij+bij)etαA=(αaij).A + B = (a_{ij} + b_{ij}) \quad \text{et} \quad \alpha A = (\alpha a_{ij}). La matrice nulle OO a tous ses coefficients nuls ; on note −A=(−aij)-A = (-a_{ij}).

ExempleAdditionner et multiplier par un réel

Avec A=(2−104)A = \begin{pmatrix} 2 & -1 \\ 0 & 4 \end{pmatrix} et B=(13−25)B = \begin{pmatrix} 1 & 3 \\ -2 & 5 \end{pmatrix} :

A+B=(32−29),3A=(6−3012),−B=(−1−32−5).A + B = \begin{pmatrix} 3 & 2 \\ -2 & 9 \end{pmatrix}, \qquad 3A = \begin{pmatrix} 6 & -3 \\ 0 & 12 \end{pmatrix}, \qquad -B = \begin{pmatrix} -1 & -3 \\ 2 & -5 \end{pmatrix}.

En ordre 33, c'est le même geste :

(102010−131)+2(01−1201100)=(120412131).\begin{pmatrix} 1 & 0 & 2 \\ 0 & 1 & 0 \\ -1 & 3 & 1 \end{pmatrix} + 2\begin{pmatrix} 0 & 1 & -1 \\ 2 & 0 & 1 \\ 1 & 0 & 0 \end{pmatrix} = \begin{pmatrix} 1 & 2 & 0 \\ 4 & 1 & 2 \\ 1 & 3 & 1 \end{pmatrix}.

Continuer : Multiplier ligne par colonne →

Étape 2 sur 4

Multiplier ligne par colonne

Le produit des matrices ne se fait pas case par case. Son geste de base associe une ligne et une colonne : on multiplie terme à terme, puis on additionne. La ligne (23)\begin{pmatrix} 2 & 3 \end{pmatrix} et la colonne (4−1)\begin{pmatrix} 4 \\ -1 \end{pmatrix} donnent 2×4+3×(−1)=52 \times 4 + 3 \times (-1) = 5.

Les matrices servent de support dans 11 des 14 exercices de structures consultés. Ce geste doit donc devenir sûr.

DéfinitionProduit de deux matrices carrées

Soient n∈{2,3}n \in \{2, 3\}, A=(aij)A = (a_{ij}) et B=(bij)B = (b_{ij}) dans Mn(R)\mathcal{M}_n(\mathbb{R}). Le produit A×BA \times B, noté aussi ABAB, est la matrice C=(cij)C = (c_{ij}) de Mn(R)\mathcal{M}_n(\mathbb{R}) définie par cij=∑k=1naikbkj:c_{ij} = \sum_{k=1}^{n} a_{ik} b_{kj} : le coefficient de la ligne ii et de la colonne jj se calcule avec la ligne ii de AA et la colonne jj de BB. Pour n=2n = 2 : (abcd)(a1b1c1d1)=(aa1+bc1ab1+bd1ca1+dc1cb1+dd1).\begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix} a_1 & b_1 \\ c_1 & d_1 \end{pmatrix} = \begin{pmatrix} a a_1 + b c_1 & a b_1 + b d_1 \\ c a_1 + d c_1 & c b_1 + d d_1 \end{pmatrix}. La matrice unité II d'ordre nn a des 11 sur la diagonale (i=ji = j) et des 00 ailleurs.

Méthodecalculer un produit de matrices

  1. Contrôler l'ordre : les deux matrices sont toutes deux d'ordre 22, ou toutes deux d'ordre 33.
  2. Pour la case (i,j)(i, j) de ABAB, prendre la ligne ii de AA et la colonne jj de BB ; multiplier terme à terme, puis additionner.
  3. Écrire chaque somme avant de l'effectuer.
  4. Garder l'ordre : BABA est un autre calcul, avec les lignes de BB et les colonnes de AA.

Rédaction attendue.

(12−13)(201−4)=(1×2+2×11×0+2×(−4)(−1)×2+3×1(−1)×0+3×(−4))=(4−81−12).\begin{pmatrix} 1 & 2 \\ -1 & 3 \end{pmatrix} \begin{pmatrix} 2 & 0 \\ 1 & -4 \end{pmatrix} = \begin{pmatrix} 1 \times 2 + 2 \times 1 & 1 \times 0 + 2 \times (-4) \\ (-1) \times 2 + 3 \times 1 & (-1) \times 0 + 3 \times (-4) \end{pmatrix} = \begin{pmatrix} 4 & -8 \\ 1 & -12 \end{pmatrix}.

À toi : Un produit d'ordre 3

Calcule ABAB, avec A=(1020−11310)A = \begin{pmatrix} 1 & 0 & 2 \\ 0 & -1 & 1 \\ 3 & 1 & 0 \end{pmatrix} et B=(21001−1101)B = \begin{pmatrix} 2 & 1 & 0 \\ 0 & 1 & -1 \\ 1 & 0 & 1 \end{pmatrix}.

Besoin d'aide ? Indice 1

La case (1,1)(1, 1) utilise la ligne 11 de AA et la colonne 11 de BB : 1×2+0×0+2×11 \times 2 + 0 \times 0 + 2 \times 1.

Encore bloqué ? Indice 2

Avance ligne par ligne : trois cases pour la ligne 11 de AA, puis la ligne 22, puis la ligne 33.

Encore bloqué ? Indice 3

Attention aux signes dans la ligne 22 de AA.

Voir la solution complète

Ligne 11 de AA : 2+0+2=42 + 0 + 2 = 4, 1+0+0=11 + 0 + 0 = 1 et 0+0+2=20 + 0 + 2 = 2.

Ligne 22 de AA : 0+0+1=10 + 0 + 1 = 1, 0−1+0=−10 - 1 + 0 = -1 et 0+1+1=20 + 1 + 1 = 2.

Ligne 33 de AA : 6+0+0=66 + 0 + 0 = 6, 3+1+0=43 + 1 + 0 = 4 et 0−1+0=−10 - 1 + 0 = -1.

AB=(4121−1264−1).AB = \begin{pmatrix} 4 & 1 & 2 \\ 1 & -1 & 2 \\ 6 & 4 & -1 \end{pmatrix}.

← Étape précédenteContinuer : Les règles du calcul matriciel →

Étape 3 sur 4

Les règles du calcul matriciel

L'addition et le produit par un réel se font case par case. Chaque case obéit donc aux règles de calcul dans R\mathbb{R}. Par exemple, A+B=B+AA + B = B + A, car aij+bij=bij+aija_{ij} + b_{ij} = b_{ij} + a_{ij} pour chaque place (i,j)(i, j).

Pourquoi est-ce vrai pour toutes les règles ? La propriété suivante le démontre, case par case.

PropriétéPropriétés de l'addition des matrices et du produit par un réel

Soit n∈{2,3}n \in \{2, 3\}.

  1. L'addition est une loi de composition interne sur Mn(R)\mathcal{M}_n(\mathbb{R}), associative et commutative ; OO est son élément neutre, et toute matrice AA a pour symétrique −A-A.
  2. Pour tous réels α\alpha, β\beta et toutes matrices AA, BB de Mn(R)\mathcal{M}_n(\mathbb{R}) : α(A+B)=αA+αB\alpha(A + B) = \alpha A + \alpha B, (α+β)A=αA+βA(\alpha + \beta)A = \alpha A + \beta A, α(βA)=(αβ)A\alpha(\beta A) = (\alpha\beta)A et 1A=A1A = A.

Démonstration

Étape 1. Les deux opérations se font coefficient par coefficient : le coefficient de place (i,j)(i, j) de A+BA + B est aij+bija_{ij} + b_{ij}, celui de αA\alpha A est αaij\alpha a_{ij}. La somme de deux matrices d'ordre nn est une matrice d'ordre nn.

Étape 2 (point 1). Pour chaque place (i,j)(i, j), les règles de calcul dans R\mathbb{R} donnent (aij+bij)+cij=aij+(bij+cij)(a_{ij} + b_{ij}) + c_{ij} = a_{ij} + (b_{ij} + c_{ij}), aij+bij=bij+aija_{ij} + b_{ij} = b_{ij} + a_{ij}, aij+0=aija_{ij} + 0 = a_{ij} et aij+(−aij)=0a_{ij} + (-a_{ij}) = 0.

Étape 3 (point 2). De même, α(aij+bij)=αaij+αbij\alpha(a_{ij} + b_{ij}) = \alpha a_{ij} + \alpha b_{ij}, (α+β)aij=αaij+βaij(\alpha + \beta)a_{ij} = \alpha a_{ij} + \beta a_{ij}, α(βaij)=(αβ)aij\alpha(\beta a_{ij}) = (\alpha\beta)a_{ij} et 1×aij=aij1 \times a_{ij} = a_{ij}.

Conclusion. Les deux membres de chaque égalité ont les mêmes coefficients aux mêmes places : ils sont égaux.

Devine : L'ordre compte-t-il ?

Avec A=(1201)A = \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix} et B=(0110)B = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, compare ABAB et BABA.

Choisis une réponse : l'explication s'affiche sous ton choix. Tu peux en changer.

Choix A :AB=BAAB = BA, comme pour les réels.

Faux.

AB=(2110)AB = \begin{pmatrix} 2 & 1 \\ 1 & 0 \end{pmatrix} et BA=(0112)BA = \begin{pmatrix} 0 & 1 \\ 1 & 2 \end{pmatrix} : ils diffèrent.

Choix B :AB≠BAAB \neq BA.

Juste.

AB=(2110)AB = \begin{pmatrix} 2 & 1 \\ 1 & 0 \end{pmatrix}, alors que BA=(0112)BA = \begin{pmatrix} 0 & 1 \\ 1 & 2 \end{pmatrix}.

Choix C :AB=BAAB = BA ici, car BB ne contient que des 00 et des 11.

Faux.

Des coefficients simples n'y changent rien : la case (1,1)(1, 1) vaut 22 dans ABAB et 00 dans BABA.

Voir la correction complète
AB=(1×0+2×11×1+2×00×0+1×10×1+1×0)=(2110),BA=(0112).AB = \begin{pmatrix} 1 \times 0 + 2 \times 1 & 1 \times 1 + 2 \times 0 \\ 0 \times 0 + 1 \times 1 & 0 \times 1 + 1 \times 0 \end{pmatrix} = \begin{pmatrix} 2 & 1 \\ 1 & 0 \end{pmatrix}, \qquad BA = \begin{pmatrix} 0 & 1 \\ 1 & 2 \end{pmatrix}.

Donc AB≠BAAB \neq BA : le produit des matrices n'est pas commutatif.

PropriétéPropriétés du produit des matrices

Soit n∈{2,3}n \in \{2, 3\}.

  1. Le produit est une loi de composition interne associative sur Mn(R)\mathcal{M}_n(\mathbb{R}), d'élément neutre II : AI=IA=AAI = IA = A.
  2. Le produit est distributif par rapport à l'addition : A(B+C)=AB+ACA(B + C) = AB + AC et (B+C)A=BA+CA(B + C)A = BA + CA.
  3. Pour tout réel α\alpha : (αA)B=A(αB)=α(AB)(\alpha A)B = A(\alpha B) = \alpha(AB).
  4. Le produit n'est pas commutatif : il existe AA et BB dans Mn(R)\mathcal{M}_n(\mathbb{R}) telles que AB≠BAAB \neq BA.

Démonstration

Idée de la preuve. On compare les coefficients de même place.

  • Neutre. Le coefficient (i,j)(i, j) de AIAI est ∑kaikδkj\sum_{k} a_{ik} \delta_{kj}, où δkj\delta_{kj} vaut 11 si k=jk = j et 00 sinon : il vaut aija_{ij}. De même pour IAIA.
  • Distributivité. Le coefficient (i,j)(i, j) de A(B+C)A(B + C) est ∑kaik(bkj+ckj)=∑kaikbkj+∑kaikckj\sum_{k} a_{ik}(b_{kj} + c_{kj}) = \sum_{k} a_{ik} b_{kj} + \sum_{k} a_{ik} c_{kj} ; de même à droite.
  • Produit par un réel. Le coefficient (i,j)(i, j) de (αA)B(\alpha A)B est ∑k(αaik)bkj=α∑kaikbkj\sum_{k} (\alpha a_{ik}) b_{kj} = \alpha \sum_{k} a_{ik} b_{kj} ; de même pour A(αB)A(\alpha B).
  • Associativité. Le coefficient (i,j)(i, j) de (AB)C(AB)C et celui de A(BC)A(BC) valent tous deux la somme des aikbklclja_{ik} b_{kl} c_{lj} sur tous les couples (k,l)(k, l).
  • Non-commutativité. Pour n=2n = 2, A=(0100)A = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix} et B=(0010)B = \begin{pmatrix} 0 & 0 \\ 1 & 0 \end{pmatrix} donnent AB=(1000)AB = \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix} et BA=(0010)(0100)=(0001)BA = \begin{pmatrix} 0 & 0 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix} = \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}. Pour n=3n = 3, on complète ces matrices par des zéros.

Étapes omises : l'écriture détaillée des sommes doubles de l'associativité.

AttentionNe pas permuter un produit

Avec A=(2011)A = \begin{pmatrix} 2 & 0 \\ 1 & 1 \end{pmatrix} et B=(0103)B = \begin{pmatrix} 0 & 1 \\ 0 & 3 \end{pmatrix}, on trouve AB=(0204)AB = \begin{pmatrix} 0 & 2 \\ 0 & 4 \end{pmatrix} et BA=(1133)BA = \begin{pmatrix} 1 & 1 \\ 3 & 3 \end{pmatrix}.

Les identités remarquables changent donc : (A+B)2=A2+AB+BA+B2(A + B)^{2} = A^{2} + AB + BA + B^{2}, qui n'est pas égal à A2+2AB+B2A^{2} + 2AB + B^{2} ici.

← Étape précédenteContinuer : Un produit nul sans facteur nul →

Étape 4 sur 4

Un produit nul sans facteur nul

Devine : Un produit surprenant

Dans R\mathbb{R}, ab=0ab = 0 impose a=0a = 0 ou b=0b = 0. Dans M2(R)\mathcal{M}_2(\mathbb{R}), existe-t-il A≠OA \neq O et B≠OB \neq O telles que AB=OAB = O ?

Choisis une réponse : l'explication s'affiche sous ton choix. Tu peux en changer.

Choix A :Non : la règle du produit nul reste vraie.

Faux.

Essaie A=(11−1−1)A = \begin{pmatrix} 1 & 1 \\ -1 & -1 \end{pmatrix} : A×A=OA \times A = O, alors que A≠OA \neq O.

Choix B :Seulement dans M3(R)\mathcal{M}_3(\mathbb{R}).

Faux.

La matrice A=(11−1−1)A = \begin{pmatrix} 1 & 1 \\ -1 & -1 \end{pmatrix}, d'ordre 22, vérifie déjà A×A=OA \times A = O.

Choix C :Oui, cela arrive.

Juste.

Avec A=(11−1−1)A = \begin{pmatrix} 1 & 1 \\ -1 & -1 \end{pmatrix}, on a A≠OA \neq O et pourtant A×A=OA \times A = O.

Voir la correction complète

Oui. Pour A=(11−1−1)A = \begin{pmatrix} 1 & 1 \\ -1 & -1 \end{pmatrix}, le calcul ligne par colonne donne A×A=(1−11−1−1+1−1+1)=OA \times A = \begin{pmatrix} 1 - 1 & 1 - 1 \\ -1 + 1 & -1 + 1 \end{pmatrix} = O, alors que A≠OA \neq O.

La règle du produit nul de R\mathbb{R} ne passe pas aux matrices.

AttentionNe pas simplifier par une matrice

Avec A=(3612)A = \begin{pmatrix} 3 & 6 \\ 1 & 2 \end{pmatrix} et B=(4−6−23)B = \begin{pmatrix} 4 & -6 \\ -2 & 3 \end{pmatrix}, on calcule AB=OAB = O. Ainsi AB=AOAB = AO, alors que B≠OB \neq O.

De AB=ACAB = AC, on ne peut donc pas déduire B=CB = C, même si A≠OA \neq O. On ne « divise » jamais par une matrice. La section sur les anneaux dira quand une simplification est permise.

← Étape précédenteFin de la notion

S'entraîner sur cette notion

Sources du cours

  • Référentiel BURHAN du chapitre « Structures algébriques : groupes, anneaux, corps » (2bac · sciences-mathematiques · mathematiques)