Espace profs
FicheNiveau : TLE EXP

Matrices : opérations, inverse, puissances, systèmes et suites

Calculer avec les matrices (produit, inverse, puissances), résoudre un système AX = B, étudier une suite U(n+1) = AU(n) + C et décrire une transformation du plan.

L’essentiel

Matrice. Une matrice de taille n×pn \times p est un tableau de nombres réels à nn lignes et pp colonnes ; aija_{ij} est le coefficient de la ligne ii et de la colonne jj. Une matrice carrée d’ordre nn a nn lignes et nn colonnes, une matrice ligne une seule ligne, une matrice colonne une seule colonne.

Somme et produit par un réel. Pour deux matrices de même taille, on additionne coefficient par coefficient ; kAkA multiplie chaque coefficient par kk.

Produit matriciel. Si AA est de taille n×pn \times p et BB de taille p×qp \times q (autant de colonnes dans AA que de lignes dans BB), ABAB est de taille n×qn \times q et son coefficient (i,j)(i, j) est le produit de la ligne ii de AA par la colonne jj de BB :

cij=ai1b1j+ai2b2j+⋯+aipbpjc_{ij} = a_{i1}b_{1j} + a_{i2}b_{2j} + \dots + a_{ip}b_{pj}

Le produit est associatif et distributif sur l’addition, mais pas commutatif : en général, AB≠BAAB \neq BA.

Matrice identité. InI_n est la matrice carrée d’ordre nn qui a des 11 sur la diagonale et des 00 ailleurs. Pour toute matrice carrée AA d’ordre nn : AIn=InA=AAI_n = I_nA = A.

Inverse. Une matrice carrée AA est inversible s’il existe une matrice BB telle que AB=BA=InAB = BA = I_n ; on note B=A−1B = A^{-1}. Pour une matrice d’ordre 22, avec ad−bc≠0ad - bc \neq 0 :

A=(abcd)A−1=1ad−bc(d−b−ca)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix} \qquad A^{-1} = \frac{1}{ad - bc} \begin{pmatrix} d & -b \\ -c & a \end{pmatrix}

Si ad−bc=0ad - bc = 0, AA n’est pas inversible. Pour une matrice d’ordre 33, l’inverse est donné par l’énoncé ou par la calculatrice : on vérifie alors que le produit fait I3I_3. Par exemple :

(110011001)(1−1101−1001)=(100010001)\begin{pmatrix} 1 & 1 & 0 \\ 0 & 1 & 1 \\ 0 & 0 & 1 \end{pmatrix} \begin{pmatrix} 1 & -1 & 1 \\ 0 & 1 & -1 \\ 0 & 0 & 1 \end{pmatrix} = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}

Puissances. Pour une matrice carrée AA : A0=InA^0 = I_n et An+1=An×AA^{n+1} = A^n \times A. On conjecture souvent AnA^n sur les premières puissances, puis on le démontre par récurrence.

Système linéaire. Un système de nn équations à nn inconnues s’écrit AX=BAX = B, avec XX la colonne des inconnues. Si AA est inversible, il a une unique solution : X=A−1BX = A^{-1}B.

Suite de matrices colonnes. Si Un+1=AUn+CU_{n+1} = AU_n + C et si UU est une colonne qui vérifie U=AU+CU = AU + C, alors Vn=Un−UV_n = U_n - U vérifie Vn+1=AVnV_{n+1} = AV_n, donc Vn=AnV0V_n = A^nV_0 et Un=An(U0−U)+UU_n = A^n(U_0 - U) + U.

Transformations du plan. Le point M′(x′ ; y′)M'(x' \,;\, y'), image de M(x ; y)M(x \,;\, y), s’obtient par (x′y′)=T(xy)\begin{pmatrix} x' \\ y' \end{pmatrix} = T \begin{pmatrix} x \\ y \end{pmatrix} :

Transformation Matrice TT
rotation de centre OO et d’angle θ\theta (cos⁡θ−sin⁡θsin⁡θcos⁡θ)\begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}
homothétie de centre OO et de rapport kk (k00k)\begin{pmatrix} k & 0 \\ 0 & k \end{pmatrix}
symétrie d’axe (Ox)(Ox) (100−1)\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}
symétrie d’axe (Oy)(Oy) (−1001)\begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}
symétrie de centre OO (−100−1)\begin{pmatrix} -1 & 0 \\ 0 & -1 \end{pmatrix}

Enchaîner deux transformations revient à multiplier leurs matrices : T2T1T_2T_1 si l’on applique d’abord T1T_1. Par exemple, la rotation d’angle π2\dfrac{\pi}{2} envoie M(2 ; 1)M(2 \,;\, 1) en M′(−1 ; 2)M'(-1 \,;\, 2), car cos⁡π2=0\cos\dfrac{\pi}{2} = 0 et sin⁡π2=1\sin\dfrac{\pi}{2} = 1.

La méthode

  1. Avant un produit, vérifie les tailles : (n×p)×(p×q)(n \times p) \times (p \times q) donne n×qn \times q. Calcule chaque coefficient « ligne par colonne ».
  2. Pour inverser une matrice d’ordre 22, calcule ad−bcad - bc, puis applique la formule ; vérifie toujours que AA−1=I2AA^{-1} = I_2. Pour une matrice d’ordre 33, montre que la matrice proposée BB vérifie AB=I3AB = I_3.
  3. Pour résoudre un système, écris-le AX=BAX = B, justifie que AA est inversible, puis calcule X=A−1BX = A^{-1}B. Contrôle en remplaçant dans le système.
  4. Pour une puissance, calcule A2A^2 et A3A^3, conjecture la forme de AnA^n et démontre-la par récurrence avec An+1=An×AA^{n+1} = A^n \times A. Si A=I+NA = I + N avec N2=0N^2 = 0 (matrice 00), alors An=I+nNA^n = I + nN.
  5. Pour une suite Un+1=AUn+CU_{n+1} = AU_n + C, cherche la colonne fixe UU en résolvant (I−A)U=C(I - A)U = C, pose Vn=Un−UV_n = U_n - U et utilise Vn=AnV0V_n = A^nV_0.

Exemples corrigés

Produit, inverse et système. On pose

A=(2111)B=(1023)A = \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix} \qquad B = \begin{pmatrix} 1 & 0 \\ 2 & 3 \end{pmatrix}

On calcule ligne par colonne :

AB=(2+20+31+20+3)=(4333)BA=(2+01+04+32+3)=(2175)AB = \begin{pmatrix} 2 + 2 & 0 + 3 \\ 1 + 2 & 0 + 3 \end{pmatrix} = \begin{pmatrix} 4 & 3 \\ 3 & 3 \end{pmatrix} \qquad BA = \begin{pmatrix} 2 + 0 & 1 + 0 \\ 4 + 3 & 2 + 3 \end{pmatrix} = \begin{pmatrix} 2 & 1 \\ 7 & 5 \end{pmatrix}

donc AB≠BAAB \neq BA. Pour AA, ad−bc=2×1−1×1=1≠0ad - bc = 2 \times 1 - 1 \times 1 = 1 \neq 0 : AA est inversible et

A−1=(1−1−12)carAA−1=(2−1−2+21−1−1+2)=(1001).A^{-1} = \begin{pmatrix} 1 & -1 \\ -1 & 2 \end{pmatrix} \qquad\text{car}\qquad AA^{-1} = \begin{pmatrix} 2 - 1 & -2 + 2 \\ 1 - 1 & -1 + 2 \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}.

Le système 2x+y=52x + y = 5 et x+y=3x + y = 3 s’écrit AX=(53)AX = \begin{pmatrix} 5 \\ 3 \end{pmatrix}, donc

X=A−1(53)=(5−3−5+6)=(21).X = A^{-1}\begin{pmatrix} 5 \\ 3 \end{pmatrix} = \begin{pmatrix} 5 - 3 \\ -5 + 6 \end{pmatrix} = \begin{pmatrix} 2 \\ 1 \end{pmatrix}.

La solution est x=2 et y=1\boxed{x = 2 \text{ et } y = 1} ; contrôle : 2×2+1=52 \times 2 + 1 = 5 et 2+1=32 + 1 = 3.

Coefficient d’un produit de matricesS’entraîner

Une puissance par récurrence. Soit A=(1201)A = \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix}. On a A2=(1401)A^2 = \begin{pmatrix} 1 & 4 \\ 0 & 1 \end{pmatrix} et A3=(1601)A^3 = \begin{pmatrix} 1 & 6 \\ 0 & 1 \end{pmatrix} : on conjecture An=(12n01)A^n = \begin{pmatrix} 1 & 2n \\ 0 & 1 \end{pmatrix}.

  • Initialisation : pour n=0n = 0, (1001)=I2=A0\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} = I_2 = A^0.
  • Hérédité : si An=(12n01)A^n = \begin{pmatrix} 1 & 2n \\ 0 & 1 \end{pmatrix}, alors An+1=An×A=(12+2n01)=(12(n+1)01)A^{n+1} = A^n \times A = \begin{pmatrix} 1 & 2 + 2n \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} 1 & 2(n+1) \\ 0 & 1 \end{pmatrix}.
  • Conclusion : pour tout entier naturel nn, An=(12n01)\boxed{A^n = \begin{pmatrix} 1 & 2n \\ 0 & 1 \end{pmatrix}}.

Sur ta copie

Soit P(n)P(n) la propriété : « An=(12n01)A^n = \begin{pmatrix} 1 & 2n \\ 0 & 1 \end{pmatrix} ».
j’énonce la propriété à démontrer
Initialisation : A0=I2=(1001)A^0 = I_2 = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}, donc P(0)P(0) est vraie.
je vérifie le premier rang
Hérédité : on suppose P(n)P(n) vraie pour un entier nn fixé.
j’écris l’hypothèse de récurrence
Alors An+1=An×A=(12n01)(1201)=(12(n+1)01)A^{n+1} = A^n \times A = \begin{pmatrix} 1 & 2n \\ 0 & 1 \end{pmatrix}\begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} 1 & 2(n+1) \\ 0 & 1 \end{pmatrix}.
j’utilise l’hypothèse, puis je calcule le produit dans le bon ordre
Donc P(n+1)P(n+1) est vraie.
je conclus l’hérédité
Conclusion : P(n)P(n) est vraie pour tout n∈Nn \in \mathbb{N}, soit An=(12n01)A^n = \begin{pmatrix} 1 & 2n \\ 0 & 1 \end{pmatrix}.
je termine par une phrase de conclusion

Autre écriture : A=I2+NA = I_2 + N avec N=(0200)N = \begin{pmatrix} 0 & 2 \\ 0 & 0 \end{pmatrix} et N2=(0000)N^2 = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}, d’où An=I2+nNA^n = I_2 + nN : même résultat.

Un problème type. On étudie les suites (xn)(x_n) et (yn)(y_n) définies par x0=0x_0 = 0, y0=0y_0 = 0 et, pour tout nn :

xn+1=0,5xn+0,5yn+1yn+1=0,5yn+2x_{n+1} = 0{,}5x_n + 0{,}5y_n + 1 \qquad y_{n+1} = 0{,}5y_n + 2

1. Avec Un=(xnyn)U_n = \begin{pmatrix} x_n \\ y_n \end{pmatrix}, on a Un+1=AUn+CU_{n+1} = AU_n + C, où

A=(0,50,500,5)C=(12)A = \begin{pmatrix} 0{,}5 & 0{,}5 \\ 0 & 0{,}5 \end{pmatrix} \qquad C = \begin{pmatrix} 1 \\ 2 \end{pmatrix}

2. On cherche UU tel que U=AU+CU = AU + C, soit (I2−A)U=C(I_2 - A)U = C. La matrice I2−A=(0,5−0,500,5)I_2 - A = \begin{pmatrix} 0{,}5 & -0{,}5 \\ 0 & 0{,}5 \end{pmatrix} vérifie ad−bc=0,5×0,5−(−0,5)×0=0,25≠0ad - bc = 0{,}5 \times 0{,}5 - (-0{,}5) \times 0 = 0{,}25 \neq 0, et son inverse est (2202)\begin{pmatrix} 2 & 2 \\ 0 & 2 \end{pmatrix} (le produit fait bien I2I_2). Donc

U=(2202)(12)=(64).U = \begin{pmatrix} 2 & 2 \\ 0 & 2 \end{pmatrix}\begin{pmatrix} 1 \\ 2 \end{pmatrix} = \begin{pmatrix} 6 \\ 4 \end{pmatrix}.

3. On pose Vn=Un−UV_n = U_n - U. Alors Vn+1=AUn+C−(AU+C)=A(Un−U)=AVnV_{n+1} = AU_n + C - (AU + C) = A(U_n - U) = AV_n, donc Vn=AnV0V_n = A^nV_0, avec V0=(−6−4)V_0 = \begin{pmatrix} -6 \\ -4 \end{pmatrix}.

4. On écrit A=0,5 (I2+N)A = 0{,}5\,(I_2 + N) avec N=(0100)N = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}, dont le carré est la matrice nulle. Comme dans l’exemple précédent (et on le démontre de même par récurrence) :

An=0,5n(1n01),d’ouˋVn=0,5n(−6−4n−4).A^n = 0{,}5^n \begin{pmatrix} 1 & n \\ 0 & 1 \end{pmatrix}, \qquad\text{d’où}\qquad V_n = 0{,}5^n \begin{pmatrix} -6 - 4n \\ -4 \end{pmatrix}.

Comme Un=Vn+UU_n = V_n + U :

xn=6−(6+4n)×0,5nyn=4−4×0,5n\boxed{x_n = 6 - (6 + 4n) \times 0{,}5^n \qquad y_n = 4 - 4 \times 0{,}5^n}

Contrôle : x1=6−10×0,5=1x_1 = 6 - 10 \times 0{,}5 = 1 et y1=4−2=2y_1 = 4 - 2 = 2, comme le donne la relation de départ.

5. 0,5n→00{,}5^n \to 0 et n×0,5n=n2n→0n \times 0{,}5^n = \dfrac{n}{2^n} \to 0 (croissances comparées), donc xn→6x_n \to 6 et yn→4y_n \to 4 : la suite (Un)(U_n) converge vers la colonne fixe UU.

Les pièges

  • L’ordre des facteurs : ABAB et BABA sont en général différents, et l’un peut exister sans l’autre (tailles). Dans X=A−1BX = A^{-1}B, l’inverse se place à gauche.
  • Pas de division : on n’écrit jamais BA\dfrac{B}{A}. On multiplie par A−1A^{-1}, après avoir vérifié que AA est inversible.
  • Puissance : A2A^2 n’est pas la matrice des carrés des coefficients (sauf cas particuliers, comme une matrice diagonale).
  • Identités remarquables : (A+B)2=A2+AB+BA+B2(A + B)^2 = A^2 + AB + BA + B^2, et non A2+2AB+B2A^2 + 2AB + B^2, sauf si AB=BAAB = BA (c’est le cas pour I+NI + N).
  • Inverse : la formule d’ordre 22 échange aa et dd et change le signe de bb et cc. Vérifie toujours le produit.
  • Composition : appliquer T1T_1 puis T2T_2 donne la matrice T2T1T_2T_1, pas T1T2T_1T_2.