Notion 2 sur 10· Lois de composition interne

Les matrices carrées

Objectif : Additionner et multiplier des matrices de M2(R)\mathcal{M}_2(\mathbb{R}) et de M3(R)\mathcal{M}_3(\mathbb{R}).

Matrices carrées et somme

Ce point expliqué en vidéo

  • Cours2 min 12

    Math & Phys l'explique à 39:11

    Matrices carrées d'ordre 2 à coefficients réels, et leur somme case par case

    Passage de 2 min 12, de 39:11 à 41:23, dans sa vidéo « Les Structures Algébriques - Lois de Composition interne - 2 Bac SM - [Cours Partie 1] »

Définition

Une matrice de M2(R)\mathcal{M}_2(\mathbb{R}) est un tableau de réels à 22 lignes et 22 colonnes. Une matrice de M3(R)\mathcal{M}_3(\mathbb{R}) a 33 lignes et 33 colonnes.

On additionne case par case :

(abcd)+(xyzt)=(a+xb+yc+zd+t)\begin{pmatrix} a & b \\ c & d \end{pmatrix} + \begin{pmatrix} x & y \\ z & t \end{pmatrix} = \begin{pmatrix} a + x & b + y \\ c + z & d + t \end{pmatrix}

Exemple

(1234)+(0−152)=(1186)\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} + \begin{pmatrix} 0 & -1 \\ 5 & 2 \end{pmatrix} = \begin{pmatrix} 1 & 1 \\ 8 & 6 \end{pmatrix}

La somme est encore dans M2(R)\mathcal{M}_2(\mathbb{R}) : l'addition est une loi interne sur M2(R)\mathcal{M}_2(\mathbb{R}).

À toi

  1. A=(2−341)A = \begin{pmatrix} 2 & -3 \\ 4 & 1 \end{pmatrix} et B=(53−60)B = \begin{pmatrix} 5 & 3 \\ -6 & 0 \end{pmatrix}. Que vaut la case en bas à gauche de A+BA + B ?

    Aide et correction

    Indice

    Additionne les deux cases en bas à gauche : 44 et −6-6.

    Réponse

    La case vaut −2-2.

    Correction détaillée

    Case par case : 2+5=72 + 5 = 7, −3+3=0-3 + 3 = 0, 4+(−6)=−24 + (-6) = -2 et 1+0=11 + 0 = 1.

    A+B=(70−21)A + B = \begin{pmatrix} 7 & 0 \\ -2 & 1 \end{pmatrix} : la case en bas à gauche vaut −2-2.

Le produit dans M2(R)\mathcal{M}_2(\mathbb{R})

Ce point expliqué en vidéo

  • Cours1 min 48

    Math & Phys l'explique à 41:22

    Produit de deux matrices de M₂(ℝ) : chaque case = une ligne de la première fois une colonne de la seconde

    Passage de 1 min 48, de 41:22 à 43:10, dans sa vidéo « Les Structures Algébriques - Lois de Composition interne - 2 Bac SM - [Cours Partie 1] »

Règle

La case de la ligne ii et de la colonne jj de ABAB : multiplie la ligne ii de AA par la colonne jj de BB, terme à terme, puis additionne.

(abcd)(xyzt)=(ax+bzay+btcx+dzcy+dt)\begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix} x & y \\ z & t \end{pmatrix} = \begin{pmatrix} ax + bz & ay + bt \\ cx + dz & cy + dt \end{pmatrix}

Exemple

A=(1234)A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} et B=(0110)B = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}.

Ligne 11, colonne 11 : 1×0+2×1=21 \times 0 + 2 \times 1 = 2. Ligne 11, colonne 22 : 1×1+2×0=11 \times 1 + 2 \times 0 = 1.

Ligne 22, colonne 11 : 3×0+4×1=43 \times 0 + 4 \times 1 = 4. Ligne 22, colonne 22 : 3×1+4×0=33 \times 1 + 4 \times 0 = 3.

AB=(2143)AB = \begin{pmatrix} 2 & 1 \\ 4 & 3 \end{pmatrix}.

À toi

  1. A=(2103)A = \begin{pmatrix} 2 & 1 \\ 0 & 3 \end{pmatrix} et B=(142−1)B = \begin{pmatrix} 1 & 4 \\ 2 & -1 \end{pmatrix}. Calcule la case en haut à droite de ABAB (ligne 11, colonne 22).

    Aide et correction

    Indice

    Ligne 11 de AA : 22 et 11. Colonne 22 de BB : 44 et −1-1.

    Réponse

    La case vaut 77.

    Correction détaillée

    2×4+1×(−1)=8−1=72 \times 4 + 1 \times (-1) = 8 - 1 = 7.

    AB=(476−3)AB = \begin{pmatrix} 4 & 7 \\ 6 & -3 \end{pmatrix} : la case en haut à droite vaut 77.

Le produit dans M3(R)\mathcal{M}_3(\mathbb{R})

Ce point expliqué en vidéo

  • Cours1 min 37

    Math & Phys l'explique à 46:56

    Produit dans M₃(ℝ) : même règle, ligne de la première fois colonne de la seconde, avec 3 termes

    Passage de 1 min 37, de 46:56 à 48:33, dans sa vidéo « Les Structures Algébriques - Lois de Composition interne - 2 Bac SM - [Cours Partie 1] »

  • Cours6 min 56

    Math & Phys l'explique à 2:54

    Produit de deux matrices 3 × 3 : la case (i ; j) est la ligne i fois la colonne j, case par case sur Mₙ × Mₚ

    Passage de 6 min 56, de 2:54 à 9:50, dans sa vidéo « Structures Algébriques - Loi de Composition Interne - Matrices - 2 Bac SM - [Exercice 8] »

1 / 2

Règle

Même règle, avec 33 termes : la case (ligne ii, colonne jj) de ABAB est la ligne ii de AA fois la colonne jj de BB.

Avec la ligne (a;b;c)(a ; b ; c) et la colonne (x;y;z)(x ; y ; z), la case vaut ax+by+czax + by + cz.

Exemple

A=(010001000)A = \begin{pmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ 0 & 0 & 0 \end{pmatrix}. On calcule A2=A×AA^2 = A \times A.

Ligne 11, colonne 33 : 0×0+1×1+0×0=10 \times 0 + 1 \times 1 + 0 \times 0 = 1. Toutes les autres cases valent 00.

A2=(001000000)A^2 = \begin{pmatrix} 0 & 0 & 1 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{pmatrix}.

À toi

  1. On donne les matrices :

    A=(120013201)A = \begin{pmatrix} 1 & 2 & 0 \\ 0 & 1 & 3 \\ 2 & 0 & 1 \end{pmatrix}
    B=(102011110)B = \begin{pmatrix} 1 & 0 & 2 \\ 0 & 1 & 1 \\ 1 & 1 & 0 \end{pmatrix}

    Calcule la case de ABAB à la ligne 11 et à la colonne 33.

    Aide et correction

    Indice

    Ligne 11 de AA : (1;2;0)(1 ; 2 ; 0). Colonne 33 de BB : (2;1;0)(2 ; 1 ; 0).

    Réponse

    La case vaut 44.

    Correction détaillée

    1×2+2×1+0×0=2+2+01 \times 2 + 2 \times 1 + 0 \times 0 = 2 + 2 + 0.

    La case de la ligne 11 et de la colonne 33 de ABAB vaut 44.

L'ordre compte, sauf avec I2I_2

Règle

En général, AB≠BAAB \neq BA : le produit des matrices n'est pas commutatif.

La matrice identité I2=(1001)I_2 = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} ne change rien : AI2=I2A=AA I_2 = I_2 A = A. De même avec I3I_3 dans M3(R)\mathcal{M}_3(\mathbb{R}).

Exemple

A=(1101)A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix} et B=(1011)B = \begin{pmatrix} 1 & 0 \\ 1 & 1 \end{pmatrix}.

AB=(2111)AB = \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix} mais BA=(1112)BA = \begin{pmatrix} 1 & 1 \\ 1 & 2 \end{pmatrix}.

AB≠BAAB \neq BA.

À toi

  1. A=(1201)A = \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix} et B=(1031)B = \begin{pmatrix} 1 & 0 \\ 3 & 1 \end{pmatrix}. On a :

    BA=(1237)BA = \begin{pmatrix} 1 & 2 \\ 3 & 7 \end{pmatrix}

    Calcule la case en haut à gauche de ABAB.

    Aide et correction

    Indice

    Ligne 11 de AA : 11 et 22. Colonne 11 de BB : 11 et 33.

    Réponse

    La case vaut 77, alors que celle de BABA vaut 11.

    Correction détaillée

    1×1+2×3=71 \times 1 + 2 \times 3 = 7, donc AB=(7231)AB = \begin{pmatrix} 7 & 2 \\ 3 & 1 \end{pmatrix}.

    La case vaut 77 : AB≠BAAB \neq BA.