Fiche récapitulative générée pour impression / export PDF.

Licence 2 · Algèbre L2 — Matrices, déterminants et réduction

Matrices et opérations

Matrices et opérations

1. Définitions

Une matrice AMm,n(R)A\in\mathcal{M}_{m,n}(\mathbb{R}) est un tableau de mm lignes et nn colonnes. Le coefficient en ligne ii, colonne jj est noté aija_{ij}.

Matrices spéciales : identité InI_n, nulle 00, diagonale, triangulaire, symétrique (AT=AA^T=A), antisymétrique (AT=AA^T=-A).

2. Opérations

- Addition : (A+B)ij=aij+bij(A+B)_{ij} = a_{ij}+b_{ij} (même taille).
- Multiplication scalaire : (λA)ij=λaij(\lambda A)_{ij}=\lambda a_{ij}.
- Produit : (AB)ij=k=1paikbkj(AB)_{ij}=\sum_{k=1}^p a_{ik}b_{kj} pour AMm,pA\in\mathcal{M}_{m,p}, BMp,nB\in\mathcal{M}_{p,n}.
- Transposée : (AT)ij=aji(A^T)_{ij}=a_{ji}.

Propriétés du produit :
- Associatif : (AB)C=A(BC)(AB)C=A(BC)
- Distributif sur l'addition
- Non commutatif en général : ABBAAB\neq BA
- (AB)T=BTAT(AB)^T = B^T A^T, (AB)1=B1A1(AB)^{-1}=B^{-1}A^{-1} si inversibles

3. Inversibilité

AMnA\in\mathcal{M}_n est inversible (ou régulière) si B\exists B tel que AB=BA=InAB=BA=I_n. Alors B=A1B=A^{-1} est unique.

AA est inversible det(A)0rang(A)=n\Leftrightarrow \det(A)\neq0 \Leftrightarrow \text{rang}(A)=n.

4. Matrices par blocs

On peut découper une matrice en blocs et effectuer les opérations bloc par bloc (en respectant les compatibilités de tailles).

5. Trace

tr(A)=i=1naii\text{tr}(A) = \sum_{i=1}^n a_{ii}. Propriétés : tr(A+B)=tr(A)+tr(B)\text{tr}(A+B)=\text{tr}(A)+\text{tr}(B), tr(AB)=tr(BA)\text{tr}(AB)=\text{tr}(BA), tr(AT)=tr(A)\text{tr}(A^T)=\text{tr}(A).

Exercices de la leçon

Exercice 1

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

Corrigé

B=I2B=I_2 est la matrice identité. AI2=A=(1234)AI_2=A=\begin{pmatrix}1&2\\3&4\end{pmatrix}.

Exercice 2

Vrai ou faux : Le produit de matrices est commutatif.

Corrigé

Faux. En général ABBAAB\neq BA. Par exemple (1100)(0101)=(0200)\begin{pmatrix}1&1\\0&0\end{pmatrix}\begin{pmatrix}0&1\\0&1\end{pmatrix}=\begin{pmatrix}0&2\\0&0\end{pmatrix} mais le produit inversé donne (0101)\begin{pmatrix}0&1\\0&1\end{pmatrix}.

Exercice 3

Quelle est la trace de A=(310214005)A=\begin{pmatrix}3&1&0\\2&-1&4\\0&0&5\end{pmatrix} ?

Corrigé

tr(A)=a11+a22+a33=3+(1)+5=7\text{tr}(A)=a_{11}+a_{22}+a_{33}=3+(-1)+5=7.

Exercice 4

Vrai ou faux : (A+B)2=A2+2AB+B2(A+B)^2 = A^2+2AB+B^2.

Corrigé

Faux. (A+B)2=(A+B)(A+B)=A2+AB+BA+B2(A+B)^2=(A+B)(A+B)=A^2+AB+BA+B^2. Comme ABBAAB\neq BA en général, cela n'est pas égal à A2+2AB+B2A^2+2AB+B^2.

Exercice 5

Quelle est l'inverse de A=(2111)A=\begin{pmatrix}2&1\\1&1\end{pmatrix} ?

Corrigé

det(A)=21=1\det(A)=2-1=1. Pour 2×22\times2 : A1=1detA(dbca)=(1112)A^{-1}=\frac{1}{\det A}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}=\begin{pmatrix}1&-1\\-1&2\end{pmatrix}. Vérification : AA1=I2AA^{-1}=I_2 ✓.

Exercice 6

Calculer tr(AB)\text{tr}(AB) si A=(1,2,3)A=(1,2,3) (ligne) et B=(1,2,3)TB=(1,2,3)^T (colonne).

Corrigé

AA est 1×31\times3, BB est 3×13\times1. AB=1×1+2×2+3×3=1+4+9=14AB=1\times1+2\times2+3\times3=1+4+9=14. C'est une matrice 1×11\times1, donc tr(AB)=14\text{tr}(AB)=14.

Alternativement : tr(AB)=tr(BA)\text{tr}(AB)=\text{tr}(BA). BABA est 3×33\times3 avec tr(BA)=i(BA)ii=ibiai=14\text{tr}(BA)=\sum_{i}(BA)_{ii}=\sum_i b_i a_i=14.

Exercice 7

Vrai ou faux : Si AB=0AB=0 et A0A\neq0, alors B=0B=0.

Corrigé

Faux. A=(1000)A=\begin{pmatrix}1&0\\0&0\end{pmatrix} et B=(0010)B=\begin{pmatrix}0&0\\1&0\end{pmatrix} : AB=0AB=0 mais A,B0A,B\neq0. Les matrices peuvent être des diviseurs de zéro.

Exercice 8

Montrer que tr(AB)=tr(BA)\text{tr}(AB)=\text{tr}(BA) pour AMm,nA\in\mathcal{M}_{m,n}, BMn,mB\in\mathcal{M}_{n,m}.

Corrigé

tr(AB)=i=1m(AB)ii=i=1mk=1naikbki\text{tr}(AB)=\sum_{i=1}^m(AB)_{ii}=\sum_{i=1}^m\sum_{k=1}^n a_{ik}b_{ki}.

On permute les sommes : =k=1ni=1mbkiaik=k=1n(BA)kk=tr(BA)=\sum_{k=1}^n\sum_{i=1}^m b_{ki}a_{ik}=\sum_{k=1}^n(BA)_{kk}=\text{tr}(BA). \square

Exercice 9

Vrai ou faux : Toute matrice symétrique réelle est diagonalisable.

Corrigé

Vrai. C'est le théorème spectral : toute matrice symétrique réelle est diagonalisable dans une base orthonormée (valeurs propres réelles, vecteurs propres orthogonaux).

Exercice 10

Calculer A100A^{100} pour A=(2003)A=\begin{pmatrix}2&0\\0&3\end{pmatrix}.

Corrigé

Pour une matrice diagonale : Dn=diag(d1n,,dkn)D^n=\text{diag}(d_1^n,\ldots,d_k^n). Donc A100=(2100003100)A^{100}=\begin{pmatrix}2^{100}&0\\0&3^{100}\end{pmatrix}.

Exercice 11

Montrer que si AA est inversible et AB=ACAB=AC, alors B=CB=C.

Corrigé

Preuve :
AB=ACAB=AC
A1(AB)=A1(AC)\Rightarrow A^{-1}(AB)=A^{-1}(AC) (multiplier à gauche par A1A^{-1})
(A1A)B=(A1A)C\Rightarrow (A^{-1}A)B=(A^{-1}A)C
InB=InC\Rightarrow I_nB=I_nC
B=C\Rightarrow B=C. \square

Exercice 12

Vrai ou faux : Si A2=IA^2=I, alors A=IA=I ou A=IA=-I.

Corrigé

Faux. A=(1001)A=\begin{pmatrix}1&0\\0&-1\end{pmatrix} vérifie A2=IA^2=I mais A±IA\neq\pm I. En fait A2=I(AI)(A+I)=0A^2=I\Leftrightarrow (A-I)(A+I)=0, ce qui n'implique pas A=±IA=\pm I dans l'algèbre non commutative des matrices.

Exercice 13

Montrer que rang(AB)min(rang(A),rang(B))\text{rang}(AB)\leq\min(\text{rang}(A),\text{rang}(B)).

Corrigé

Preuve :
1. Im(AB)={ABx:xRn}{Ay:yRp}=Im(A)\text{Im}(AB)=\{ABx:x\in\mathbb{R}^n\}\subset\{Ay:y\in\mathbb{R}^p\}=\text{Im}(A). Donc rang(AB)rang(A)\text{rang}(AB)\leq\text{rang}(A).
2. Im(AB)=A(Im(B))\text{Im}(AB)=A(\text{Im}(B)), image de Im(B)\text{Im}(B) par AA. Donc rang(AB)=dimA(Im(B))dimIm(B)=rang(B)\text{rang}(AB)=\dim A(\text{Im}(B))\leq\dim\text{Im}(B)=\text{rang}(B). \square

Exercice 14

Soit PP une matrice de projection (P2=PP^2=P). Quelles sont les valeurs propres possibles de PP ?

Corrigé

Si Pv=λvPv=\lambda v avec v0v\neq0, alors P2v=P(Pv)=P(λv)=λPv=λ2vP^2v=P(Pv)=P(\lambda v)=\lambda Pv=\lambda^2 v. Mais P2=PP^2=P donne Pv=λvPv=\lambda v, donc λ2v=λv\lambda^2 v=\lambda v, soit λ(λ1)v=0\lambda(\lambda-1)v=0. Comme v0v\neq0, λ=0\lambda=0 ou λ=1\lambda=1.

Exercice 15

Vrai ou faux : Si AA et BB sont des matrices n×nn\times n avec AB=InAB=I_n, alors BA=InBA=I_n.

Corrigé

Vrai (pour des matrices carrées de même taille). AB=InAB=I_n implique AA inversible et B=A1B=A^{-1}, donc BA=InBA=I_n. (En dimension infinie ce serait faux, mais pour matrices carrées n×nn\times n c'est vrai.)

AlphaMath Académie · Matrices et opérations · Algèbre L2 — Matrices, déterminants et réduction