← Accueil Fiches méthodes Cours Exercices créés Correction TD3 Documents donnés
Maths AM2 (2ᵉ année) · Chapitre 3

Matrices et applications linéaires

Chapitre 3 de L. Graissot (ECAM AM2, 2026-2027) : rang, matrice d'une application linéaire, changement de base, matrices semblables. La page contient le cours complet (14 exemples du polycopié corrigés pas à pas), 3 exercices créés et le TD3 corrigé (exercices 1 → 9). L'énoncé de l'exercice 10 est incomplet dans le scan fourni (voir la note en fin de TD).

Sommaire du chapitre
🛠️ Fiche méthodes 1/2 — Rang, théorème du rang, matrice d'une application linéaire
Rang d'une famille de vecteursécrire les vecteurs en colonnes, échelonner par Gauss (échange, multiplication par \(\lambda\neq0\), ajout d'une combinaison d'autres colonnes) : rang = nombre de colonnes non nulles / de pivots
Rang d'une matrice\(\mathrm{rg}\,A=\) nb de pivots après Gauss (lignes ou colonnes) \(=\mathrm{rg}\,{}^tA\) ; \(A\) carrée \(n\times n\) inversible \(\Leftrightarrow\mathrm{rg}\,A=n\)
Rang d'une application linéaire\(\mathrm{rg}\,f=\dim\mathrm{Im}\,f=\mathrm{rg}\big(f(e_1),\dots,f(e_n)\big)=\mathrm{rg}\) de la matrice de \(f\) dans n'importe quelles bases
Théorème du rang\(\dim E=\dim\ker f+\mathrm{rg}\,f\) : en connaissant le rang (par Gauss), on obtient \(\dim\ker f\) sans résoudre ; en connaissant le noyau, on a le rang
Injective / surjective / bijective\(f:E\to F\) : injective \(\Leftrightarrow\mathrm{rg}\,f=\dim E\) ; surjective \(\Leftrightarrow\mathrm{rg}\,f=\dim F\) ; si \(\dim E=\dim F\) : injective \(\Leftrightarrow\) surjective \(\Leftrightarrow\) bijective \(\Leftrightarrow\mathrm{rg}=n\)
Construire la matrice de \(f\)colonne \(j\) = coordonnées de \(f(e_j)\) dans la base d'arrivée ; taille = \(\dim F\times\dim E\) (lignes = arrivée, colonnes = départ). Si la base d'arrivée n'est pas canonique, résoudre un système pour chaque \(f(e_j)\)
Calculer \(f(x)\) avec la matricecoordonnées \(X\) de \(x\) dans la base de départ, \(Y=AX\) donne les coordonnées de \(f(x)\) dans la base d'arrivée (ne pas oublier de reconvertir en vecteur)
Matrice d'une composée / d'un inverse\(\mathrm{Mat}(g\circ f)=\mathrm{Mat}(g)\times\mathrm{Mat}(f)\) (dans cet ordre, bases compatibles) ; \(\mathrm{Mat}(f^{-1})=A^{-1}\) ; \(\mathrm{Mat}(f^n)=A^n\)
Matrices d'endomorphismes classiquesidentité \(I_n\) ; homothétie \(\lambda I_n\) ; projection sur l'axe \(Ox\) : \(\mathrm{diag}(1,0)\) ; rotation d'angle \(\theta\) : \(\begin{pmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{pmatrix}\) ; dérivation \(\mathbb R_n[X]\to\mathbb R_{n-1}[X]\) en base monomiale : coefficients \(1,2,\dots,n\) au-dessus de la diagonale
Matrice d'une dérivation / primitiveappliquer l'opérateur à \(1,X,X^2,\dots\) puis écrire les coordonnées en colonnes (matrice rectangulaire si les degrés diffèrent)
Retrouver noyau et image par la matricenoyau : résoudre \(AX=0\) ; image : combinaisons des colonnes de \(A\), base = colonnes à pivot ; puis reconvertir en vecteurs de \(E\) ou \(F\)
Vérifications rapidestaille de la matrice, \(\mathrm{rg}\,A+\dim\ker=\) nb de colonnes, et un test sur un vecteur simple (ex. \(f(e_1)\) = 1ʳᵉ colonne)
🛠️ Fiche méthodes 2/2 — Changement de base, matrices semblables, diagonalisation
Matrice de passage \(P\)colonnes de \(P\) = coordonnées des vecteurs de la nouvelle base \(\mathcal B'\) dans l'ancienne base \(\mathcal B\) ; toujours inversible ; si \(\mathcal B\) est canonique, il suffit d'écrire les vecteurs de \(\mathcal B'\) en colonnes
Changer les coordonnées d'un vecteur\(X_{\mathcal B}=P\,X_{\mathcal B'}\) donc \(X_{\mathcal B'}=P^{-1}X_{\mathcal B}\) (l'ancien s'exprime avec \(P\), le nouveau avec \(P^{-1}\))
Calculer \(P^{-1}\)Gauss-Jordan sur \((P\,|\,I)\), ou résoudre le système \(PX'=X\) ; en \(2\times2\) : \(\frac1{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}\) ; vérifier \(PP^{-1}=I\)
Changement de base d'un endomorphisme\(B=P^{-1}AP\) (\(A\) = matrice dans l'ancienne base, \(B\) dans la nouvelle, \(P\) = passage ancien → nouveau) ; moyen mnémotechnique : en lisant de droite à gauche, \(P\) (nouveau → ancien), puis \(A\), puis \(P^{-1}\) (ancien → nouveau)
Cas général (bases différentes au départ et à l'arrivée)\(A'=Q^{-1}AP\) où \(P\) = passage des bases de départ, \(Q\) = passage des bases d'arrivée
Choisir une base adaptéeprendre une base de \(\ker f\) complétée par une base de l'image (projecteur, nilpotent) ou des vecteurs propres (\(f(v)=\lambda v\)) : la matrice devient diagonale ou presque
Projecteurbase adaptée \(\mathcal B=(\text{base de Im},\text{base de ker})\) : \(B=\mathrm{diag}(1,\dots,1,0,\dots,0)\) ; \(\mathrm{rg}=\mathrm{tr}=\) nb de 1
Endomorphisme nilpotent (\(f^2=0\))\(\mathrm{Im}\,f\subset\ker f\) ; prendre \(v\notin\ker f\), la famille \((f(v),v,\dots)\) donne une matrice avec un seul \(1\) hors diagonale ; \(\mathrm{rg}\,f\leqslant\frac n2\)
Diagonaliser (cas simple)1) \(\det(A-\lambda I)=0\) donne les valeurs propres ; 2) pour chaque \(\lambda\), résoudre \((A-\lambda I)X=0\) : vecteurs propres ; 3) si on trouve \(n\) vecteurs propres libres : \(P\) = colonnes, \(D=P^{-1}AP=\mathrm{diag}(\lambda_i)\)
Puissances \(A^n\)si \(A=PDP^{-1}\) : \(A^n=PD^nP^{-1}\), \(D^n=\mathrm{diag}(\lambda_i^n)\) ; si \(A=PTP^{-1}\) avec \(T=\lambda I+N\), \(N^2=0\) (trigonalisation) : \(T^n=\lambda^nI+n\lambda^{n-1}N\) (binôme de Newton)
Suites récurrentes couplées\(X_{n+1}=AX_n\Rightarrow X_n=A^nX_0\) ; ou découpler : \(Y_n=P^{-1}X_n\) vérifie \(Y_{n+1}=DY_n\), donc \(Y_n=D^nY_0\), puis \(X_n=PY_n\)
Matrices semblables\(A\) et \(B\) sont semblables s'il existe \(P\) inversible avec \(B=P^{-1}AP\) (même endomorphisme, bases différentes). Invariants : rang, trace, déterminant — si l'un diffère, elles ne sont pas semblables
Vérifier un changement de base\(\mathrm{tr}\,A=\mathrm{tr}\,B\), \(\det A=\det B\), \(\mathrm{rg}\,A=\mathrm{rg}\,B\) ; tester \(AP=PB\) (évite de calculer \(P^{-1}\))
Piègesconfondre \(P\) et \(P^{-1}\) ; mettre les vecteurs de la base en lignes au lieu de colonnes ; inverser l'ordre dans \(Q^{-1}AP\) ; oublier que \(\mathrm{Mat}(g\circ f)=\mathrm{Mat}(g)\,\mathrm{Mat}(f)\) (pas l'inverse)

1. Résumé de cours détaillé

Cours de L. Graissot (ECAM AM2, 2026-2027), chapitre 3, pages 29 → 45 du polycopié. Dans tout le chapitre, \(\mathbb K=\mathbb R\) ou \(\mathbb C\) ; les exemples numériques du cours sont corrigés pas à pas ci-dessous.

1.1 Rang d'une famille finie de vecteurs

Rang d'une famille Soit \(E\) un \(\mathbb K\)-espace vectoriel et \((v_1,\dots,v_p)\) une famille finie de vecteurs de \(E\). Le rang de la famille est la dimension du sous-espace engendré : \[ \operatorname{rg}(v_1,\dots,v_p)=\dim\operatorname{Vect}(v_1,\dots,v_p). \] C'est la dimension du plus petit sous-espace vectoriel contenant tous les \(v_i\).
Proposition 1 — encadrement du rang Pour une famille de \(p\) vecteurs de \(E\) : (1) \(0\le\operatorname{rg}(v_1,\dots,v_p)\le p\) ; (2) si \(E\) est de dimension finie, \(\operatorname{rg}(v_1,\dots,v_p)\le\dim E\).
À retenir. Le rang vaut \(0\) ⇔ tous les vecteurs sont nuls. Le rang vaut \(p\) ⇔ la famille est libre. (Raison : \(\operatorname{Vect}(v_1,\dots,v_p)\) est engendré par \(p\) vecteurs ; sa dimension est \(p\) exactement quand ces \(p\) vecteurs forment une base de ce sous-espace, c'est-à-dire quand ils sont libres.)
Exemple 1 — Rang d'une famille de \(\mathbb R^4\)♦◊◊

Déterminer le rang de \(\{v_1,v_2,v_3\}\) dans \(\mathbb R^4\), avec \(v_1=\begin{pmatrix}1\\0\\1\\0\end{pmatrix}\), \(v_2=\begin{pmatrix}0\\1\\1\\1\end{pmatrix}\), \(v_3=\begin{pmatrix}-1\\1\\0\\1\end{pmatrix}\).

Encadrement

  • Vecteurs de \(\mathbb R^4\) : \(\operatorname{rg}\le4\). Mais il n'y a que 3 vecteurs : \(\operatorname{rg}\le3\).
  • \(v_1\neq0\) : \(\operatorname{rg}\ge1\).
  • \(v_1,v_2\) sont non colinéaires (la 1ʳᵉ coordonnée de \(v_2\) est \(0\) alors que celle de \(v_1\) vaut \(1\), et la 2ᵉ de \(v_1\) est \(0\) alors que celle de \(v_2\) vaut \(1\)) donc libres : \(\operatorname{rg}(v_1,v_2,v_3)\ge\operatorname{rg}(v_1,v_2)=2\).

Le rang vaut donc \(2\) ou \(3\). Il vaut \(3\) ⇔ la famille est libre. On cherche une relation \(\lambda_1v_1+\lambda_2v_2+\lambda_3v_3=0\) :

\[ \begin{cases}\lambda_1-\lambda_3=0\\ \lambda_2+\lambda_3=0\\ \lambda_1+\lambda_2=0\\ \lambda_2+\lambda_3=0\end{cases} \iff \lambda_1=\lambda_3,\ \lambda_2=-\lambda_3. \]

(La 3ᵉ équation, \(\lambda_1+\lambda_2=\lambda_3-\lambda_3=0\), est alors automatiquement vérifiée.) Avec \(\lambda_3=1\) : \(v_1-v_2+v_3=(1-0-1,\ 0-1+1,\ 1-1+0,\ 0-1+1)=0\). La famille est liée.

\(v_3=v_2-v_1\) donc \(\operatorname{Vect}(v_1,v_2,v_3)=\operatorname{Vect}(v_1,v_2)\) et \(\operatorname{rg}(v_1,v_2,v_3)=2\).

1.2 Rang d'une matrice

Rang d'une matrice Une matrice \(A\in\mathcal M_{n,p}(\mathbb K)\) est une juxtaposition de \(p\) vecteurs colonnes de \(\mathbb K^n\). Son rang est le rang de la famille de ses colonnes. Réciproquement, si \(\mathcal B=(e_1,\dots,e_n)\) est une base de \(E\) (\(\dim E=n\)) et \((v_1,\dots,v_p)\) une famille de \(E\), la matrice de leurs coordonnées dans \(\mathcal B\) est dans \(\mathcal M_{n,p}(\mathbb K)\) et a le même rang que la famille.
Exemple 2 — Rang d'une matrice \(2\times4\)♦◊◊

Rang de \(A=\begin{pmatrix}2&6&-1&0\\1&3&-\tfrac12&0\end{pmatrix}\in\mathcal M_{2,4}(\mathbb K)\).

Colonnes : \(v_1=\binom21\), \(v_2=\binom63\), \(v_3=\binom{-1}{-1/2}\), \(v_4=\binom00\). On a \(v_2=3v_1\), \(v_3=-\tfrac12v_1\) et \(v_4=0\cdot v_1\) : tous les vecteurs sont colinéaires à \(v_1\neq0\).

\(\operatorname{Vect}(v_1,\dots,v_4)=\operatorname{Vect}(v_1)\) est une droite : \(\operatorname{rg}A=1\).

1.3 Matrices échelonnées et opérations conservant le rang

Matrice échelonnée par rapport aux colonnes Le nombre de zéros commençant une colonne croît strictement de colonne en colonne, jusqu'à ce qu'il ne reste plus que des colonnes de zéros. (La transposée d'une telle matrice est échelonnée par rapport aux lignes.) Exemple de forme (\(+\) = coefficient non nul, \(*\) = quelconque) : \[ \begin{pmatrix}+&0&0&0&0&0\\ *&0&0&0&0&0\\ *&+&0&0&0&0\\ *&*&+&0&0&0\\ *&*&*&0&0&0\\ *&*&*&+&0&0\end{pmatrix}. \]
Proposition 2 Le rang d'une matrice échelonnée par colonnes est égal au nombre de colonnes non nulles (ces colonnes sont linéairement indépendantes à cause de la forme en escalier). Dans l'exemple ci-dessus : 4 colonnes non nulles sur 6, donc rang \(4\).
Proposition 3 — opérations élémentaires sur les colonnes Le rang n'est pas modifié par :
  1. \(C_i\leftarrow\lambda C_i\) avec \(\lambda\neq0\) (multiplier une colonne par un scalaire non nul) ;
  2. \(C_i\leftarrow C_i+\lambda C_j\), \(j\neq i\) (ajouter à une colonne un multiple d'une autre) ;
  3. \(C_i\leftrightarrow C_j\) (échanger deux colonnes).
Plus généralement \(C_i\leftarrow C_i+\sum_{j\neq i}\lambda_jC_j\) conserve le rang.
Méthode — rang par Gauss sur les colonnes On applique les opérations de la proposition 3 aux colonnes de \(A\) jusqu'à obtenir une matrice échelonnée par colonnes ; le rang est alors le nombre de colonnes non nulles. La méthode de Gauss « classique » opère sur les lignes ; les opérations sur les colonnes de \(A\) correspondent aux opérations sur les lignes de \({}^tA\).
Exemple 3 — Rang de 5 vecteurs de \(\mathbb R^4\) (méthode de Gauss)♦♦◊

Rang de la famille \(v_1=\begin{pmatrix}1\\1\\1\\1\end{pmatrix}\), \(v_2=\begin{pmatrix}-1\\2\\0\\1\end{pmatrix}\), \(v_3=\begin{pmatrix}3\\2\\-1\\-3\end{pmatrix}\), \(v_4=\begin{pmatrix}3\\5\\0\\-1\end{pmatrix}\), \(v_5=\begin{pmatrix}3\\8\\1\\1\end{pmatrix}\).

Matrice des colonnes \(A=\begin{pmatrix}1&-1&3&3&3\\1&2&2&5&8\\1&0&-1&0&1\\1&1&-3&-1&1\end{pmatrix}\). Rang \(\le\min(4,5)=4\).

On élimine à l'aide de \(C_1\) (pivot \(1\) en 1ʳᵉ ligne) : \(C_2\leftarrow C_2+C_1\), \(C_3\leftarrow C_3-3C_1\), \(C_4\leftarrow C_4-3C_1\), \(C_5\leftarrow C_5-3C_1\) :

\[ \begin{pmatrix}1&0&0&0&0\\1&3&-1&2&5\\1&1&-4&-3&-2\\1&2&-6&-4&-2\end{pmatrix}. \]

Pivot suivant : la colonne \(C_3\) a un coefficient \(-1\) en ligne 2 ; on travaille avec \(C_3\) (qu'on peut échanger avec \(C_2\) si l'on veut) : \(C_2\leftarrow C_2+3C_3\), \(C_4\leftarrow C_4+2C_3\), \(C_5\leftarrow C_5+5C_3\) :

\[ \begin{pmatrix}1&0&0&0&0\\1&0&-1&0&0\\1&-11&-4&-11&-22\\1&-16&-6&-16&-32\end{pmatrix}. \]

On voit \(C_4=C_2\) et \(C_5=2C_2\) : \(C_4\leftarrow C_4-C_2\) et \(C_5\leftarrow C_5-2C_2\) les annulent. Il reste trois colonnes non nulles : \(C_1=(1,1,1,1)\), \(C_3=(0,-1,-4,-6)\) et \(C_2=(0,0,-11,-16)\). Rangées dans l'ordre \((C_1,C_3,C_2)\), elles commencent par \(0\), \(1\) puis \(2\) zéros : le nombre de zéros croît strictement, la matrice est échelonnée par colonnes (proposition 2).

3 colonnes non nulles et échelonnées : \(\operatorname{rg}(v_1,\dots,v_5)=3\), avec \(v_4=v_1+v_2+v_3\) et \(v_5=2v_1+2v_2+v_3\).

Vérification directe : \(v_1+v_2+v_3=(1-1+3,\ 1+2+2,\ 1+0-1,\ 1+1-3)=(3,5,0,-1)=v_4\) ✓ ; \(2v_1+2v_2+v_3=(2-2+3,\ 2+4+2,\ 2+0-1,\ 2+2-3)=(3,8,1,1)=v_5\) ✓.

Piège. Le rang d'une famille de 5 vecteurs de \(\mathbb R^4\) vaut au plus 4 (jamais 5) : cette famille est forcément liée.

1.4 Rang et matrice inversible

Théorème 1 Une matrice carrée d'ordre \(n\) est inversible ⇔ elle est de rang \(n\). Plus précisément, si \(f\) est l'endomorphisme de \(\mathbb R^n\) de matrice \(A\) dans la base canonique : \[ A\ \text{de rang }n\iff f\ \text{de rang }n\iff f\ \text{surjective}\iff f\ \text{bijective}\iff A\ \text{inversible}. \]

1.5 Rang engendré par les vecteurs lignes

Proposition 4 Si on voit \(A\) comme superposition de vecteurs lignes \((w_1,\dots,w_n)\), alors \(\operatorname{rg}A=\dim\operatorname{Vect}(w_1,\dots,w_n)\). Autrement dit \[ \boxed{\operatorname{rg}A=\operatorname{rg}\,{}^tA}. \]
Attention. Les dimensions \(\dim\operatorname{Vect}(v_1,\dots,v_p)\) (colonnes) et \(\dim\operatorname{Vect}(w_1,\dots,w_n)\) (lignes) sont égales, mais les espaces \(\operatorname{Vect}(\text{colonnes})\subset\mathbb K^n\) et \(\operatorname{Vect}(\text{lignes})\subset\mathbb K^p\) ne sont pas les mêmes (ils ne vivent même pas dans le même espace si \(n\neq p\)).

2.1 Construction d'une application linéaire ; rang d'une application linéaire

Théorème 2 — Construction d'une application linéaire Soient \(E,F\) deux \(\mathbb K\)-espaces vectoriels, \(\dim E=n\), \((e_1,\dots,e_n)\) une base de \(E\). Pour tout choix \((v_1,\dots,v_n)\) de \(n\) vecteurs de \(F\), il existe une et une seule application linéaire \(f:E\to F\) telle que \(f(e_i)=v_i\) pour tout \(i\). (Aucune hypothèse sur \(\dim F\).)

Démonstration.

Exemple 4 — Application \(\mathbb R^n\to\mathbb R[X]\) définie par l'image de la base♦◊◊

Il existe une unique application linéaire \(f:\mathbb R^n\to\mathbb R[X]\) telle que \(f(e_i)=(X+1)^i\) pour \(i=1,\dots,n\) (\((e_i)\) base canonique).

Par le théorème 2 (ici \(F=\mathbb R[X]\) est de dimension infinie : sans importance). Pour \(x=(x_1,\dots,x_n)\) :

\(f(x_1,\dots,x_n)=x_1f(e_1)+\dots+x_nf(e_n)=\displaystyle\sum_{i=1}^nx_i(X+1)^i.\)
Proposition 5 et définition du rang Si \(E\) est de dimension finie, \(\operatorname{Im}f=f(E)\) est de dimension finie et, si \((e_1,\dots,e_n)\) est une base de \(E\), \(\operatorname{Im}f=\operatorname{Vect}\big(f(e_1),\dots,f(e_n)\big)\). La dimension de \(\operatorname{Im}f\) est le rang de \(f\) : \[ \operatorname{rg}f=\dim\operatorname{Im}f=\dim\operatorname{Vect}\big(f(e_1),\dots,f(e_n)\big). \]

Preuve. Soit \(y\in\operatorname{Im}f\) : \(y=f(x)\) avec \(x=\sum x_ie_i\), donc \(y=\sum x_if(e_i)\) par linéarité : tout élément de \(\operatorname{Im}f\) est combinaison linéaire des \(f(e_i)\). \(\square\)

Proposition 6 Si \(E,F\) sont de dimension finie : \(\operatorname{rg}f\le\min(\dim E,\dim F)\) (car \(\operatorname{Im}f\) est engendré par \(\dim E\) vecteurs et contenu dans \(F\)).
Exemple 5 — Rang de \(f:\mathbb R^3\to\mathbb R^2\), \(f(x,y,z)=(3x-4y+2z,\ 2x-3y-z)\)♦◊◊

Image de la base canonique : \(f(e_1)=(3,2)\), \(f(e_2)=(-4,-3)\), \(f(e_3)=(2,-1)\). Rang \(\le\min(3,2)=2\).

\(f(e_1)\) et \(f(e_2)\) sont libres : \(\det\begin{pmatrix}3&-4\\2&-3\end{pmatrix}=-9+8=-1\neq0\). Donc \(\operatorname{rg}f\ge2\).

\(\operatorname{rg}f=2\) : \(f\) est surjective, et \(\dim\operatorname{Ker}f=3-2=1\) (théorème du rang).

Noyau, pour contrôle : \(3x-4y+2z=0\) et \(2x-3y-z=0\). On élimine \(z\) : \(2\times(2)+(1)\) donne \(7x-10y=0\), soit \(x=\tfrac{10}7y\) ; alors \(z=2x-3y=\tfrac{20}7y-3y=-\tfrac17y\). Direction \(y=-7\) : \((x,y,z)=(-10,-7,1)\). Vérification : \(3(-10)-4(-7)+2=0\) ✓ ; \(2(-10)-3(-7)-1=0\) ✓. \(\operatorname{Ker}f=\operatorname{Vect}\big((-10,-7,1)\big)\).

2.2 Théorème du rang

Théorème 3 — Théorème du rang Soit \(f:E\to F\) linéaire, \(E\) de dimension finie. Alors \[ \boxed{\dim E=\dim\operatorname{Ker}f+\dim\operatorname{Im}f=\dim\operatorname{Ker}f+\operatorname{rg}f}. \]
Idée de preuve (non détaillée dans le polycopié). On prend une base \((k_1,\dots,k_r)\) de \(\operatorname{Ker}f\), qu'on complète en une base \((k_1,\dots,k_r,c_1,\dots,c_s)\) de \(E\). Alors \((f(c_1),\dots,f(c_s))\) est une base de \(\operatorname{Im}f\) (génératrice car les \(f(k_i)\) sont nuls ; libre car \(\sum\lambda_jf(c_j)=0\Rightarrow\sum\lambda_jc_j\in\operatorname{Ker}f\), donc nul, donc tous les \(\lambda_j=0\)). D'où \(\dim E=r+s\).

En pratique la formule sert à trouver la dimension du noyau connaissant le rang, ou l'inverse.

Exemple 6 — \(f:\mathbb R^4\to\mathbb R^3\), rang et dimension du noyau♦♦◊

\(f(x_1,x_2,x_3,x_4)=(x_1-x_2+x_3,\ 2x_1+2x_2+6x_3+4x_4,\ -x_1-2x_3-x_4)\). Rang de \(f\) et \(\dim\operatorname{Ker}f\).

Matrice dans les bases canoniques (colonnes = images de \(e_1,\dots,e_4\)) : \(A=\begin{pmatrix}1&-1&1&0\\2&2&6&4\\-1&0&-2&-1\end{pmatrix}\). Rang \(\le\min(4,3)=3\).

On utilise \(\operatorname{rg}A=\operatorname{rg}{}^tA\) et on échelonne les lignes : \(L_2\leftarrow L_2-2L_1\), \(L_3\leftarrow L_3+L_1\) :

\[ \begin{pmatrix}1&-1&1&0\\0&4&4&4\\0&-1&-1&-1\end{pmatrix} \xrightarrow{L_2\leftarrow\frac14L_2}\begin{pmatrix}1&-1&1&0\\0&1&1&1\\0&-1&-1&-1\end{pmatrix} \xrightarrow{L_3\leftarrow L_3+L_2}\begin{pmatrix}1&-1&1&0\\0&1&1&1\\0&0&0&0\end{pmatrix}. \]
2 lignes non nulles : \(\operatorname{rg}f=2\) ; théorème du rang : \(\dim\operatorname{Ker}f=4-2=2\).

Base du noyau (contrôle) : le système réduit est \(x_2=-x_3-x_4\) et \(x_1=x_2-x_3=-2x_3-x_4\). Paramètres \((x_3,x_4)\) libres : \((x_1,x_2,x_3,x_4)=x_3(-2,-1,1,0)+x_4(-1,-1,0,1)\). Vérification du 1ᵉʳ vecteur : \(-2+1+1=0\) ; \(2(-2)+2(-1)+6=0\) ; \(2-2=0\) ✓.

2.3 Applications linéaires entre deux espaces de même dimension

Un isomorphisme est une application linéaire bijective ; sa réciproque est aussi linéaire.

Proposition 7 Si \(f:E\to F\) est un isomorphisme et si \(E\) (resp. \(F\)) est de dimension finie, alors \(F\) (resp. \(E\)) l'est aussi et \(\dim E=\dim F\).

Preuve. \(f\) surjective : \(F=\operatorname{Im}f\) est engendré par l'image d'une base de \(E\), donc \(\dim F\le\dim E\). Avec \(f^{-1}\) (isomorphisme aussi) : \(\dim E\le\dim F\). \(\square\)

Théorème 4 — même dimension : bijective ⇔ injective ⇔ surjective Soit \(f:E\to F\) linéaire, \(\dim E=\dim F<\infty\). Les assertions (i) \(f\) bijective, (ii) \(f\) injective, (iii) \(f\) surjective sont équivalentes.

Preuve. \(f\) injective ⇔ \(\operatorname{Ker}f=\{0\}\) ⇔ (théorème du rang) \(\dim\operatorname{Im}f=\dim E\) ⇔ (hypothèse \(\dim E=\dim F\)) \(\dim\operatorname{Im}f=\dim F\) ⇔ \(\operatorname{Im}f=F\) ⇔ \(f\) surjective. \(\square\)

Exemple 7 — \(f:\mathbb R^2\to\mathbb R^2\), \(f(x,y)=(x-y,\ x+y)\) est un isomorphisme♦◊◊

Espaces de départ et d'arrivée de même dimension 2 : d'après le théorème 4, il suffit de montrer l'injectivité, c'est-à-dire \(\operatorname{Ker}f=\{0\}\) :

\[ (x,y)\in\operatorname{Ker}f\iff(x-y,\ x+y)=(0,0)\iff\begin{cases}x-y=0\\x+y=0\end{cases}\iff x=y=0. \]
\(\operatorname{Ker}f=\{(0,0)\}\), \(f\) injective, donc bijective : c'est un isomorphisme.

Contrôle matriciel : \(\operatorname{Mat}(f)=\begin{pmatrix}1&-1\\1&1\end{pmatrix}\), \(\det=1+1=2\neq0\) ✓.

3.1 Matrice associée à une application linéaire

Définition 4 — Matrice de \(f\) relativement à \((\mathcal B,\mathcal B')\) Soit \(f:E\to F\) linéaire, \(\mathcal B=(e_1,\dots,e_p)\) base de \(E\), \(\mathcal B'=(f_1,\dots,f_n)\) base de \(F\). Pour chaque \(j\), \(f(e_j)=a_{1j}f_1+\dots+a_{nj}f_n\) (coordonnées uniques). La matrice \(\operatorname{Mat}_{\mathcal B,\mathcal B'}(f)=(a_{ij})\in\mathcal M_{n,p}(\mathbb K)\) a pour \(j\)-ième colonne les coordonnées de \(f(e_j)\) dans \(\mathcal B'\) : \[ \operatorname{Mat}_{\mathcal B,\mathcal B'}(f)=\begin{pmatrix}f(e_1)&\cdots&f(e_p)\end{pmatrix}\ \text{(chaque }f(e_j)\text{ écrit en colonne dans }\mathcal B'). \]
À retenir. Taille : \(\dim F\times\dim E\) (lignes = dimension de l'arrivée, colonnes = dimension du départ). Les coefficients dépendent du choix des bases ; la taille, non. Convention : départ en premier, arrivée en second dans \(\operatorname{Mat}_{\mathcal B,\mathcal B'}\).
Exemple 8 — Matrice dans deux couples de bases♦♦◊

\(f:\mathbb R^3\to\mathbb R^2\), \(f(x_1,x_2,x_3)=(x_1+x_2-x_3,\ x_1-2x_2+3x_3)\) ; \(\mathcal B=(e_1,e_2,e_3)\) et \(\mathcal B'=(f_1,f_2)\) bases canoniques. (1) Matrice de \(f\) dans \((\mathcal B,\mathcal B')\) ? (2) Avec \(\epsilon_1=\begin{pmatrix}1\\1\\0\end{pmatrix}\), \(\epsilon_2=\begin{pmatrix}1\\0\\1\end{pmatrix}\), \(\epsilon_3=\begin{pmatrix}0\\1\\1\end{pmatrix}\), \(\phi_1=\begin{pmatrix}1\\0\end{pmatrix}\), \(\phi_2=\begin{pmatrix}1\\1\end{pmatrix}\) : montrer que \(\mathcal B_0=(\epsilon_i)\) est une base de \(\mathbb R^3\), \(\mathcal B_0'=(\phi_1,\phi_2)\) une base de \(\mathbb R^2\), puis donner la matrice de \(f\) dans \((\mathcal B_0,\mathcal B_0')\).

1)

\(f(e_1)=(1,1)\), \(f(e_2)=(1,-2)\), \(f(e_3)=(-1,3)\) (coordonnées dans la canonique de \(\mathbb R^2\), qui sont les composantes mêmes).

\(\operatorname{Mat}_{\mathcal B,\mathcal B'}(f)=A=\begin{pmatrix}1&1&-1\\1&-2&3\end{pmatrix}\in\mathcal M_{2,3}(\mathbb R)\).

2)

Bases. \(\det(\epsilon_1,\epsilon_2,\epsilon_3)=\begin{vmatrix}1&1&0\\1&0&1\\0&1&1\end{vmatrix}=1(0-1)-1(1-0)+0=-2\neq0\) : base de \(\mathbb R^3\). \(\det(\phi_1,\phi_2)=\begin{vmatrix}1&1\\0&1\end{vmatrix}=1\neq0\) : base de \(\mathbb R^2\).

Images. On calcule \(f(\epsilon_j)\) puis on décompose sur \((\phi_1,\phi_2)\) : \(\binom ab=\alpha\phi_1+\beta\phi_2=\binom{\alpha+\beta}\beta\), donc \(\beta=b\), \(\alpha=a-b\).

\[ \begin{aligned} f(\epsilon_1)&=f(1,1,0)=(2,-1)\ \Rightarrow\ \beta=-1,\ \alpha=2+1=3,\\ f(\epsilon_2)&=f(1,0,1)=(0,4)\ \Rightarrow\ \beta=4,\ \alpha=0-4=-4,\\ f(\epsilon_3)&=f(0,1,1)=(0,1)\ \Rightarrow\ \beta=1,\ \alpha=0-1=-1. \end{aligned} \]
\(\operatorname{Mat}_{\mathcal B_0,\mathcal B_0'}(f)=\begin{pmatrix}3&-4&-1\\-1&4&1\end{pmatrix}\).

Contrôle par la formule de changement de base (§4.2) : \(Q^{-1}AP\) avec \(P=\begin{pmatrix}1&1&0\\1&0&1\\0&1&1\end{pmatrix}\), \(Q=\begin{pmatrix}1&1\\0&1\end{pmatrix}\), \(Q^{-1}=\begin{pmatrix}1&-1\\0&1\end{pmatrix}\) : \(AP=\begin{pmatrix}2&0&0\\-1&4&1\end{pmatrix}\) puis \(Q^{-1}AP=\begin{pmatrix}2+1&0-4&0-1\\-1&4&1\end{pmatrix}=\begin{pmatrix}3&-4&-1\\-1&4&1\end{pmatrix}\) ✓.

3.2 Opérations sur les applications linéaires et les matrices

Proposition 8 — somme et produit par un scalaire Si \(f,g:E\to F\) sont linéaires, \(\mathcal B\) base de \(E\), \(\mathcal B'\) base de \(F\) : \(\operatorname{Mat}_{\mathcal B,\mathcal B'}(f+g)=\operatorname{Mat}_{\mathcal B,\mathcal B'}(f)+\operatorname{Mat}_{\mathcal B,\mathcal B'}(g)\) et \(\operatorname{Mat}_{\mathcal B,\mathcal B'}(\lambda f)=\lambda\operatorname{Mat}_{\mathcal B,\mathcal B'}(f)\) (mêmes bases au départ et à l'arrivée pour les deux applications).
Proposition 9 — composition = produit de matrices Soient \(f:E\to F\), \(g:F\to G\) linéaires, \(\mathcal B,\mathcal B',\mathcal B''\) des bases de \(E,F,G\). Alors \[ \boxed{\operatorname{Mat}_{\mathcal B,\mathcal B''}(g\circ f)=\operatorname{Mat}_{\mathcal B',\mathcal B''}(g)\times\operatorname{Mat}_{\mathcal B,\mathcal B'}(f)}\qquad(C=B\times A). \] Le produit matriciel est défini pour correspondre à la composition ; l'ordre des facteurs est celui de la composition (le dernier appliqué est à gauche).

Démonstration. Notons \(A=(a_{ij})=\operatorname{Mat}_{\mathcal B,\mathcal B'}(f)\), \(B=(b_{ij})=\operatorname{Mat}_{\mathcal B',\mathcal B''}(g)\), \(C=\operatorname{Mat}_{\mathcal B,\mathcal B''}(g\circ f)\). Pour le 1ᵉʳ vecteur de base :

\[ (g\circ f)(e_1)=g\Big(\sum_{k}a_{k1}f_k\Big)=\sum_ka_{k1}g(f_k)=\sum_ka_{k1}\sum_lb_{lk}g_l=\sum_l\Big(\sum_kb_{lk}a_{k1}\Big)g_l. \]

La 1ʳᵉ colonne de \(C\) est donc \(\big(\sum_kb_{lk}a_{k1}\big)_l\), qui est exactement la 1ʳᵉ colonne de \(BA\) (ligne \(l\) de \(B\) fois colonne 1 de \(A\)). Le même calcul pour \(e_2,\dots,e_p\) donne les autres colonnes : \(C=BA\). \(\square\)

Exemple 9 — Composition \(g\circ f\) de deux façons♦♦◊

\(f:E=\mathbb R^2\to F=\mathbb R^3\), \(g:F\to G=\mathbb R^2\) ; bases \(\mathcal B=(e_1,e_2)\), \(\mathcal B'=(f_1,f_2,f_3)\), \(\mathcal B''=(g_1,g_2)\) ; \(A=\operatorname{Mat}_{\mathcal B,\mathcal B'}(f)=\begin{pmatrix}1&0\\1&1\\0&2\end{pmatrix}\in\mathcal M_{3,2}\), \(B=\operatorname{Mat}_{\mathcal B',\mathcal B''}(g)=\begin{pmatrix}2&-1&0\\3&1&2\end{pmatrix}\in\mathcal M_{2,3}\). Calculer \(C=\operatorname{Mat}_{\mathcal B,\mathcal B''}(g\circ f)\) de deux façons.

Façon 1 — par l'application \(g\circ f\) (images des vecteurs de base)

Lecture des colonnes : \(f(e_1)=f_1+f_2\), \(f(e_2)=f_2+2f_3\) ; \(g(f_1)=2g_1+3g_2\), \(g(f_2)=-g_1+g_2\), \(g(f_3)=2g_2\).

\[ \begin{aligned} (g\circ f)(e_1)&=g(f_1)+g(f_2)=(2-1)g_1+(3+1)g_2=g_1+4g_2,\\ (g\circ f)(e_2)&=g(f_2)+2g(f_3)=-g_1+g_2+4g_2=-g_1+5g_2. \end{aligned} \]

Façon 2 — par le produit de matrices (proposition 9)

\[ C=BA=\begin{pmatrix}2&-1&0\\3&1&2\end{pmatrix}\begin{pmatrix}1&0\\1&1\\0&2\end{pmatrix} =\begin{pmatrix}2-1+0&0-1+0\\3+1+0&0+1+4\end{pmatrix}=\begin{pmatrix}1&-1\\4&5\end{pmatrix}. \]
\(\operatorname{Mat}_{\mathcal B,\mathcal B''}(g\circ f)=\begin{pmatrix}1&-1\\4&5\end{pmatrix}\) : les deux façons concordent (colonnes \((1,4)\) et \((-1,5)\)).
Piège. \(AB\) existerait aussi (\(3\times2\) fois \(2\times3\)) mais serait la matrice de \(f\circ g\), de taille \(3\times3\) : ce n'est pas la même application.

3.3 Matrice d'un endomorphisme

Pour \(f:E\to E\) avec \(\dim E=n\), les matrices sont carrées \(n\times n\). Si on prend la même base \(\mathcal B\) au départ et à l'arrivée on note \(\operatorname{Mat}_{\mathcal B}(f)\) ; on peut aussi choisir deux bases distinctes de \(E\) et noter \(\operatorname{Mat}_{\mathcal B,\mathcal B'}(f)\).

Exemple 10 — Matrices d'endomorphismes classiques♦◊◊
  • Identité \(\mathrm{id}_E\) : \(\operatorname{Mat}_{\mathcal B}(\mathrm{id})=I_n\) pour toute base \(\mathcal B\) (car \(\mathrm{id}(e_j)=e_j\)).
    Attention : faux si les bases de départ et d'arrivée sont différentes (c'est alors une matrice de passage, §4).
  • Homothétie \(h_\lambda(x)=\lambda x\) : \(\operatorname{Mat}_{\mathcal B}(h_\lambda)=\lambda I_n\).
  • Symétrie centrale \(s(x)=-x\) : \(\operatorname{Mat}_{\mathcal B}(s)=-I_n\).
  • Rotation \(r_\theta\) de \(\mathbb R^2\) (angle \(\theta\), centre \(O\)), base canonique : \(r_\theta(x,y)=(x\cos\theta-y\sin\theta,\ x\sin\theta+y\cos\theta)\). Colonnes : \(r_\theta(1,0)=(\cos\theta,\sin\theta)\), \(r_\theta(0,1)=(-\sin\theta,\cos\theta)\) : \[ \operatorname{Mat}_{\mathcal B}(r_\theta)=\begin{pmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{pmatrix}. \]
Corollaire 1 — puissances Si \(f:E\to E\) et \(A=\operatorname{Mat}_{\mathcal B}(f)\), alors pour tout \(p\in\mathbb N\) : \(\operatorname{Mat}_{\mathcal B}(f^p)=A^p\) (récurrence sur \(p\) avec la proposition 9, \(f^p=f\circ f\circ\dots\circ f\)).

3.4 Matrice d'un isomorphisme

Théorème 5 — Caractérisation Soient \(E,F\) de même dimension finie, \(f:E\to F\) linéaire, \(\mathcal B,\mathcal B'\) des bases de \(E,F\) et \(A=\operatorname{Mat}_{\mathcal B,\mathcal B'}(f)\).
  1. \(f\) bijective ⇔ \(A\) inversible.
  2. Si \(f\) est bijective : \(\operatorname{Mat}_{\mathcal B',\mathcal B}(f^{-1})=A^{-1}\).
Corollaire 2 — endomorphisme \(f\in\mathcal L(E)\) est bijective ⇔ \(A=\operatorname{Mat}_{\mathcal B}(f)\) est inversible, et alors \(\operatorname{Mat}_{\mathcal B}(f^{-1})=A^{-1}\).
Idée de preuve. Si \(f\) est bijective, \(f^{-1}\circ f=\mathrm{id}_E\) et \(f\circ f^{-1}=\mathrm{id}_F\) ; par la proposition 9, \(\operatorname{Mat}(f^{-1})A=I\) et \(A\operatorname{Mat}(f^{-1})=I\), d'où \(A\) inversible d'inverse \(\operatorname{Mat}(f^{-1})\). Réciproquement, si \(A\) est inversible, l'application \(h\) de matrice \(A^{-1}\) (théorème 2) vérifie \(h\circ f=\mathrm{id}\) et \(f\circ h=\mathrm{id}\).
Exemple 11 — Matrice de \((s\circ r)^{-1}\) (rotation \(\pi/6\) et réflexion d'axe \(y=x\))♦♦◊

\(r:\mathbb R^2\to\mathbb R^2\) rotation d'angle \(\frac\pi6\) (centrée à l'origine), \(s\) la réflexion par rapport à l'axe \((y=x)\). Matrice de \((s\circ r)^{-1}\) dans la base canonique ?

Matrice de \(r\) (\(\cos\frac\pi6=\frac{\sqrt3}2\), \(\sin\frac\pi6=\frac12\)) : \(R=\begin{pmatrix}\frac{\sqrt3}2&-\frac12\\\frac12&\frac{\sqrt3}2\end{pmatrix}\).

Matrice de \(s\) : la réflexion d'axe \(y=x\) échange les coordonnées : \(s(x,y)=(y,x)\), donc \(S=\begin{pmatrix}0&1\\1&0\end{pmatrix}\) (et \(S^2=I\) : \(s\) est une involution).

Composée. \(\operatorname{Mat}(s\circ r)=SR\) (\(r\) appliquée d'abord, donc à droite) : \(SR=\begin{pmatrix}0&1\\1&0\end{pmatrix}\begin{pmatrix}\frac{\sqrt3}2&-\frac12\\\frac12&\frac{\sqrt3}2\end{pmatrix}=\begin{pmatrix}\frac12&\frac{\sqrt3}2\\\frac{\sqrt3}2&-\frac12\end{pmatrix}\) (multiplier à gauche par \(S\) échange les deux lignes de \(R\)).

Inverse. Par le corollaire 2, \(\operatorname{Mat}\big((s\circ r)^{-1}\big)=(SR)^{-1}=R^{-1}S^{-1}=R^{-1}S\), avec \(R^{-1}=R^{T}=\begin{pmatrix}\frac{\sqrt3}2&\frac12\\-\frac12&\frac{\sqrt3}2\end{pmatrix}\) (rotation d'angle \(-\frac\pi6\)). Multiplier à droite par \(S\) échange les deux colonnes de \(R^{-1}\) :

\((SR)^{-1}=R^{-1}S=\begin{pmatrix}\frac12&\frac{\sqrt3}2\\\frac{\sqrt3}2&-\frac12\end{pmatrix}=SR.\)

Vérification : \((SR)^2=\begin{pmatrix}\frac14+\frac34&\frac{\sqrt3}4-\frac{\sqrt3}4\\\frac{\sqrt3}4-\frac{\sqrt3}4&\frac34+\frac14\end{pmatrix}=I_2\) : \(s\circ r\) est son propre inverse — c'est elle-même une réflexion (matrice symétrique orthogonale).

Piège. \((s\circ r)^{-1}=r^{-1}\circ s^{-1}\) : l'ordre s'inverse. Écrire \(s^{-1}\circ r^{-1}\) (soit \(S R^{-1}\)) serait faux en général.

4.1 Matrice de passage d'une base à une autre

Définition 5 — Matrice de passage Soit \(E\) de dimension \(n\), \(\mathcal B\) et \(\mathcal B'\) deux bases. La matrice de passage de \(\mathcal B\) vers \(\mathcal B'\), notée \(P_{\mathcal B,\mathcal B'}\), est la matrice carrée \(n\times n\) dont la \(j\)-ième colonne est formée des coordonnées du \(j\)-ième vecteur de \(\mathcal B'\) par rapport à \(\mathcal B\) : colonnes = nouvelle base écrite dans l'ancienne. On la note parfois \(\operatorname{Mat}_{\mathcal B}(\mathcal B')\).
Exemple 12 — Matrice de passage dans \(\mathbb R^2\)♦◊◊

\(e_1=\binom10\), \(e_2=\binom11\), \(\epsilon_1=\binom12\), \(\epsilon_2=\binom54\). \(\mathcal B=(e_1,e_2)\), \(\mathcal B'=(\epsilon_1,\epsilon_2)\). Matrice de passage de \(\mathcal B\) vers \(\mathcal B'\) ?

Il faut écrire \(\epsilon_1,\epsilon_2\) dans \((e_1,e_2)\) : \(\epsilon=\alpha e_1+\beta e_2=\binom{\alpha+\beta}\beta\), donc \(\beta\) = 2ᵉ composante et \(\alpha\) = 1ʳᵉ − 2ᵉ.

\[ \epsilon_1=(1-2)e_1+2e_2=-e_1+2e_2=\binom{-1}{2}_{\mathcal B},\qquad \epsilon_2=(5-4)e_1+4e_2=e_1+4e_2=\binom14_{\mathcal B}. \]

(Contrôle : \(-e_1+2e_2=(-1+2,\ 2)=(1,2)=\epsilon_1\) ✓ ; \(e_1+4e_2=(1+4,\ 4)=(5,4)=\epsilon_2\) ✓.)

\(P_{\mathcal B,\mathcal B'}=\begin{pmatrix}-1&1\\2&4\end{pmatrix}\).
Proposition 10 — passage = identité \(P_{\mathcal B,\mathcal B'}=\operatorname{Mat}_{\mathcal B',\mathcal B}(\mathrm{id}_E)\), où \(E\) est muni de \(\mathcal B'\) au départ et de \(\mathcal B\) à l'arrivée. Attention à l'inversion de l'ordre des bases ! (Preuve : \(\mathrm{id}(e_j')=e_j'\), dont les coordonnées dans \(\mathcal B\) forment la \(j\)-ième colonne de \(P_{\mathcal B,\mathcal B'}\).)
Proposition 11 (1) \(P_{\mathcal B,\mathcal B'}\) est inversible et \(P_{\mathcal B',\mathcal B}=(P_{\mathcal B,\mathcal B'})^{-1}\). (2) Pour trois bases \(\mathcal B,\mathcal B',\mathcal B''\) : \(P_{\mathcal B,\mathcal B''}=P_{\mathcal B,\mathcal B'}\times P_{\mathcal B',\mathcal B''}\).

Preuve. (1) \(\mathrm{id}_E\) est bijective de réciproque \(\mathrm{id}_E\) ; par le théorème 5, \((P_{\mathcal B,\mathcal B'})^{-1}=\big(\operatorname{Mat}_{\mathcal B',\mathcal B}(\mathrm{id})\big)^{-1}=\operatorname{Mat}_{\mathcal B,\mathcal B'}(\mathrm{id})=P_{\mathcal B',\mathcal B}\). (2) \(\mathrm{id}:(E,\mathcal B'')\to(E,\mathcal B')\to(E,\mathcal B)\) se factorise en \(\mathrm{id}\circ\mathrm{id}\) ; la proposition 9 donne \(\operatorname{Mat}_{\mathcal B'',\mathcal B}(\mathrm{id})=\operatorname{Mat}_{\mathcal B',\mathcal B}(\mathrm{id})\times\operatorname{Mat}_{\mathcal B'',\mathcal B'}(\mathrm{id})\), soit \(P_{\mathcal B,\mathcal B''}=P_{\mathcal B,\mathcal B'}P_{\mathcal B',\mathcal B''}\). \(\square\)

Exemple 13 — Passage entre deux bases de \(\mathbb R^3\)♦♦◊

\(E=\mathbb R^3\), base canonique \(\mathcal B\). \(\mathcal B_1=\Big(\begin{pmatrix}1\\1\\0\end{pmatrix},\begin{pmatrix}0\\-1\\0\end{pmatrix},\begin{pmatrix}3\\2\\-1\end{pmatrix}\Big)=(b_1,b_2,b_3)\), \(\mathcal B_2=\Big(\begin{pmatrix}1\\-1\\0\end{pmatrix},\begin{pmatrix}0\\1\\0\end{pmatrix},\begin{pmatrix}0\\0\\-1\end{pmatrix}\Big)=(u_1,u_2,u_3)\). Matrice de passage de \(\mathcal B_1\) vers \(\mathcal B_2\) ?

On écrit chaque \(u_j\) dans \(\mathcal B_1\) :

\[ \begin{aligned} u_1&=(1,-1,0)=b_1+2b_2\quad(\text{car }b_1+2b_2=(1,1-2,0)=(1,-1,0)),\\ u_2&=(0,1,0)=-b_2,\\ u_3&=(0,0,-1)=b_3-3b_1-b_2\quad(\text{car }b_3-3b_1-b_2=(3-3,\ 2-3+1,\ -1)=(0,0,-1)). \end{aligned} \]
\(P=P_{\mathcal B_1,\mathcal B_2}=\begin{pmatrix}1&0&-3\\2&-1&-1\\0&0&1\end{pmatrix}\).

Son inverse (utilisé à l'exemple suivant), \(P^{-1}=P_{\mathcal B_2,\mathcal B_1}=\begin{pmatrix}1&0&3\\2&-1&5\\0&0&1\end{pmatrix}\) : on vérifie \(PP^{-1}\) — 1ʳᵉ ligne \((1,0,-3)\) : \(1\), \(0\), \(3-3=0\) ; 2ᵉ ligne \((2,-1,-1)\) : \(2-2=0\), \(1\), \(6-5-1=0\) ; 3ᵉ ligne \((0,0,1)\) : \(0,0,1\) ✓.

Proposition 12 — coordonnées d'un vecteur Si \(X=\operatorname{Mat}_{\mathcal B}(x)\) et \(X'=\operatorname{Mat}_{\mathcal B'}(x)\) : \[ \boxed{X=P_{\mathcal B,\mathcal B'}\,X'}\qquad(\text{les anciennes coordonnées s'obtiennent à partir des nouvelles}). \] (Preuve : \(X=\operatorname{Mat}_{\mathcal B}(\mathrm{id}(x))=\operatorname{Mat}_{\mathcal B',\mathcal B}(\mathrm{id})\operatorname{Mat}_{\mathcal B'}(x)=P_{\mathcal B,\mathcal B'}X'\).)
Piège classique. La matrice de passage \(P_{\mathcal B,\mathcal B'}\) transforme les nouvelles coordonnées en anciennes (\(X=PX'\)), pas l'inverse. Pour avoir \(X'\) : \(X'=P^{-1}X\). (Les vecteurs de la nouvelle base s'écrivent avec \(P\) ; les coordonnées se transforment avec \(P^{-1}\).)

4.2 Formule de changement de base

Théorème 6 — Formule de changement de base Soit \(f:E\to F\) linéaire ; \(\mathcal B_E,\mathcal B_E'\) deux bases de \(E\), \(\mathcal B_F,\mathcal B_F'\) deux bases de \(F\) ; \(P=P_{\mathcal B_E,\mathcal B_E'}\), \(Q=P_{\mathcal B_F,\mathcal B_F'}\), \(A=\operatorname{Mat}_{\mathcal B_E,\mathcal B_F}(f)\), \(B=\operatorname{Mat}_{\mathcal B_E',\mathcal B_F'}(f)\). Alors \[ \boxed{B=Q^{-1}AP}. \]

Démonstration. On factorise \(f=\mathrm{id}_F\circ f\circ\mathrm{id}_E\) : \((E,\mathcal B_E')\xrightarrow{\mathrm{id}}(E,\mathcal B_E)\xrightarrow{f}(F,\mathcal B_F)\xrightarrow{\mathrm{id}}(F,\mathcal B_F')\). La proposition 9 donne

\[ B=\operatorname{Mat}_{\mathcal B_F,\mathcal B_F'}(\mathrm{id}_F)\times\operatorname{Mat}_{\mathcal B_E,\mathcal B_F}(f)\times\operatorname{Mat}_{\mathcal B_E',\mathcal B_E}(\mathrm{id}_E)=P_{\mathcal B_F',\mathcal B_F}\,A\,P_{\mathcal B_E,\mathcal B_E'}=Q^{-1}AP.\ \square \]
Corollaire 3 — endomorphisme Pour \(f\in\mathcal L(E)\), \(\mathcal B,\mathcal B'\) deux bases, \(P=P_{\mathcal B,\mathcal B'}\), \(A=\operatorname{Mat}_{\mathcal B}(f)\), \(B=\operatorname{Mat}_{\mathcal B'}(f)\) : \[ \boxed{B=P^{-1}AP}\qquad\text{et donc}\qquad A^n=PB^nP^{-1}. \]
Exemple 14 — Changement de base d'un endomorphisme de \(\mathbb R^3\)♦♦◊

Avec \(\mathcal B_1,\mathcal B_2\) de l'exemple 13, \(f:\mathbb R^3\to\mathbb R^3\) de matrice \(A=\operatorname{Mat}_{\mathcal B_1}(f)=\begin{pmatrix}1&0&-6\\-2&2&-7\\0&0&3\end{pmatrix}\). Matrice \(B=\operatorname{Mat}_{\mathcal B_2}(f)\) ?

Corollaire 3 avec \(P=P_{\mathcal B_1,\mathcal B_2}\) (exemple 13) et \(P^{-1}\) : \(B=P^{-1}AP\). On calcule d'abord \(AP\) :

\[ AP=\begin{pmatrix}1&0&-6\\-2&2&-7\\0&0&3\end{pmatrix}\begin{pmatrix}1&0&-3\\2&-1&-1\\0&0&1\end{pmatrix} =\begin{pmatrix}1&0&-3-6\\-2+4&-2&6-2-7\\0&0&3\end{pmatrix}=\begin{pmatrix}1&0&-9\\2&-2&-3\\0&0&3\end{pmatrix}. \]

puis \(P^{-1}(AP)\) avec \(P^{-1}=\begin{pmatrix}1&0&3\\2&-1&5\\0&0&1\end{pmatrix}\) :

\[ P^{-1}AP=\begin{pmatrix}1+0+0&0&-9+9\\2-2&0+2&-18+3+15\\0&0&3\end{pmatrix}=\begin{pmatrix}1&0&0\\0&2&0\\0&0&3\end{pmatrix}. \]
\(B=\operatorname{Mat}_{\mathcal B_2}(f)=\begin{pmatrix}1&0&0\\0&2&0\\0&0&3\end{pmatrix}\) : \(f\) est diagonale dans \(\mathcal B_2\).

Intérêt : les puissances sont immédiates, \(B^k=\operatorname{diag}(1,2^k,3^k)\), donc \(A^k=PB^kP^{-1}\) (cf. TD3 exercices 6 et 9).

4.3 Matrices semblables

Définition 6 — Matrices semblables \(A,B\in\mathcal M_n(\mathbb K)\) : \(B\) est semblable à \(A\) s'il existe \(P\in GL_n(\mathbb K)\) (inversible) telle que \(B=P^{-1}AP\).
Proposition 13 La relation « être semblable » est réflexive (\(A=I^{-1}AI\)), symétrique (\(B=P^{-1}AP\Rightarrow A=(P^{-1})^{-1}B\,P^{-1}\)) et transitive (\(B=P^{-1}AP\), \(C=Q^{-1}BQ\Rightarrow C=(PQ)^{-1}A(PQ)\)). On dit donc indifféremment « \(A\) est semblable à \(B\) » ou « \(A\) et \(B\) sont semblables ».
Corollaire 4. Deux matrices semblables représentent le même endomorphisme, exprimé dans des bases différentes. Elles ont donc en commun tout ce qui est intrinsèque à l'endomorphisme : même rang, même trace, même déterminant, mêmes puissances (à conjugaison près).

2. Exercices d'entraînement (créés) avec corrections

Trois exercices créés pour s'entraîner sur les trois idées du chapitre : rang et noyau, changement de base/puissances, composition. Tous les résultats sont vérifiés.
Exercice A — Rang et noyau d'une application \(\mathbb R^4\to\mathbb R^3\)♦♦◊

\(f:\mathbb R^4\to\mathbb R^3\), \(f(x,y,z,t)=(x+2y+t,\ y+z-t,\ x+3y+z)\). Déterminer \(\operatorname{rg}f\), une base de \(\operatorname{Ker}f\) et une base de \(\operatorname{Im}f\).

Matrice et rang

Colonnes = images de la base canonique : \(A=\begin{pmatrix}1&2&0&1\\0&1&1&-1\\1&3&1&0\end{pmatrix}\). On remarque la ligne 3 = ligne 1 + ligne 2 (\(1+0=1\), \(2+1=3\), \(0+1=1\), \(1-1=0\)). Donc \(\operatorname{rg}A=\operatorname{rg}{}^tA=\operatorname{rg}(L_1,L_2)=2\) (\(L_1,L_2\) non colinéaires).

\(\operatorname{rg}f=2\) et, par le théorème du rang, \(\dim\operatorname{Ker}f=4-2=2\).

Noyau

\(f(x,y,z,t)=0\iff\begin{cases}x+2y+t=0\\y+z-t=0\end{cases}\) (la 3ᵉ équation est la somme des deux). Donc \(z=t-y\) et \(x=-2y-t\), avec \(y,t\) libres :

\[ (x,y,z,t)=y(-2,1,-1,0)+t(-1,0,1,1). \]

Contrôle de \((-2,1,-1,0)\) : \(-2+2=0\), \(1-1=0\), \(-2+3-1=0\) ✓. Contrôle de \((-1,0,1,1)\) : \(-1+1=0\), \(0+1-1=0\), \(-1+0+1=0\) ✓. Ils sont libres (non colinéaires).

\(\operatorname{Ker}f=\operatorname{Vect}\big((-2,1,-1,0),\ (-1,0,1,1)\big)\).

Image

\(\operatorname{Im}f=\operatorname{Vect}(f(e_1),f(e_2),f(e_3),f(e_4))\), colonnes de \(A\) : \(c_1=(1,0,1)\), \(c_2=(2,1,3)\), \(c_3=(0,1,1)\), \(c_4=(1,-1,0)\). \(c_1,c_2\) sont libres (non colinéaires) et \(\dim\operatorname{Im}f=2\) : ils forment une base. Les deux autres colonnes en dépendent : \(c_3=c_2-2c_1\) car \((2-2,\ 1-0,\ 3-2)=(0,1,1)\) ✓ ; et \(c_4=3c_1-c_2\) car \((3-2,\ 0-1,\ 3-3)=(1,-1,0)\) ✓.

\(\operatorname{Im}f=\operatorname{Vect}\big((1,0,1),\ (2,1,3)\big)\), plan d'équation \(z=x+y\) (d'après \(L_3=L_1+L_2\)).
Exercice B — Diagonalisation et puissances dans \(\mathbb R^2\)♦♦◊

\(f\in\mathcal L(\mathbb R^2)\) de matrice \(A=\begin{pmatrix}4&-2\\1&1\end{pmatrix}\) dans la base canonique. Soient \(u_1=(1,1)\), \(u_2=(2,1)\). (1) Montrer que \((u_1,u_2)\) est une base et donner la matrice \(D\) de \(f\) dedans. (2) Calculer \(A^n\). (3) Résoudre \(x_{n+1}=4x_n-2y_n\), \(y_{n+1}=x_n+y_n\).

1)

\(P=\begin{pmatrix}1&2\\1&1\end{pmatrix}\), \(\det P=1-2=-1\neq0\) : base. \(f(u_1)=A\binom11=\binom{4-2}{1+1}=\binom22=2u_1\) ; \(f(u_2)=A\binom21=\binom{8-2}{2+1}=\binom63=3u_2\).

\(D=\operatorname{Mat}_{(u_1,u_2)}(f)=\begin{pmatrix}2&0\\0&3\end{pmatrix}=P^{-1}AP\).

2)

\(P^{-1}=\dfrac1{-1}\begin{pmatrix}1&-2\\-1&1\end{pmatrix}=\begin{pmatrix}-1&2\\1&-1\end{pmatrix}\). \(A^n=PD^nP^{-1}\) :

\[ PD^n=\begin{pmatrix}2^n&2\cdot3^n\\2^n&3^n\end{pmatrix},\qquad A^n=\begin{pmatrix}2^n&2\cdot3^n\\2^n&3^n\end{pmatrix}\begin{pmatrix}-1&2\\1&-1\end{pmatrix} =\begin{pmatrix}-2^n+2\cdot3^n&2^{n+1}-2\cdot3^n\\-2^n+3^n&2^{n+1}-3^n\end{pmatrix}. \]
\(A^n=\begin{pmatrix}2\cdot3^n-2^n&2^{n+1}-2\cdot3^n\\3^n-2^n&2^{n+1}-3^n\end{pmatrix}\), \(n\in\mathbb N\).

Contrôles : \(n=0\) : \(\begin{pmatrix}2-1&2-2\\1-1&2-1\end{pmatrix}=I_2\) ✓ ; \(n=1\) : \(\begin{pmatrix}6-2&4-6\\3-2&4-3\end{pmatrix}=A\) ✓.

3)

\(X_n=A^nX_0\). Avec \(X_0=\binom{x_0}{y_0}\) quelconque :

\(x_n=(2\cdot3^n-2^n)x_0+(2^{n+1}-2\cdot3^n)y_0,\quad y_n=(3^n-2^n)x_0+(2^{n+1}-3^n)y_0.\)

Forme géométrique : en écrivant \(X_0=a\,u_1+b\,u_2\), \(X_n=a\,2^nu_1+b\,3^nu_2\), soit \(x_n=a\,2^n+2b\,3^n\), \(y_n=a\,2^n+b\,3^n\).

Exercice C — Dérivation, primitive et composition (matrices rectangulaires)♦♦◊

\(D:\mathbb R_3[X]\to\mathbb R_2[X]\), \(P\mapsto P'\) et \(G:\mathbb R_2[X]\to\mathbb R_3[X]\), \(P\mapsto\int_0^XP(t)\,dt\). Bases canoniques \((1,X,X^2,X^3)\) et \((1,X,X^2)\). Matrices de \(D\), \(G\), \(D\circ G\) et \(G\circ D\) ; \(D\) et \(G\) sont-elles bijectives ?

Matrice de \(D\) (taille \(3\times4\))

\(D(1)=0\), \(D(X)=1\), \(D(X^2)=2X\), \(D(X^3)=3X^2\) :

\[ M_D=\begin{pmatrix}0&1&0&0\\0&0&2&0\\0&0&0&3\end{pmatrix}. \]

Matrice de \(G\) (taille \(4\times3\))

\(G(1)=X\), \(G(X)=\tfrac{X^2}2\), \(G(X^2)=\tfrac{X^3}3\) :

\[ M_G=\begin{pmatrix}0&0&0\\1&0&0\\0&\tfrac12&0\\0&0&\tfrac13\end{pmatrix}. \]

Composées

\[ M_DM_G=\begin{pmatrix}0&1&0&0\\0&0&2&0\\0&0&0&3\end{pmatrix}\begin{pmatrix}0&0&0\\1&0&0\\0&\tfrac12&0\\0&0&\tfrac13\end{pmatrix} =\begin{pmatrix}1&0&0\\0&1&0\\0&0&1\end{pmatrix}=I_3, \]

(car \((\int_0^XP)'=P\)), tandis que

\[ M_GM_D=\begin{pmatrix}0&0&0&0\\0&1&0&0\\0&0&1&0\\0&0&0&1\end{pmatrix}=\operatorname{diag}(0,1,1,1)\neq I_4 \]

(car \(\int_0^XP'=P-P(0)\) : on perd la constante).

\(D\circ G=\mathrm{id}_{\mathbb R_2[X]}\) mais \(G\circ D\neq\mathrm{id}_{\mathbb R_3[X]}\). \(D\) est surjective (rang 3, \(\dim\operatorname{Ker}D=4-3=1\), \(\operatorname{Ker}D=\operatorname{Vect}(1)\)) mais pas injective ; \(G\) est injective (rang 3) mais pas surjective (\(\operatorname{Im}G=\{P\mid P(0)=0\}\), dimension 3 \(<4\)). Aucune n'est bijective : les espaces n'ont pas la même dimension (4 et 3).
Piège. Le produit \(M_GM_D\) existe et n'est pas \(I_4\) : le produit de matrices n'est pas commutatif et \(M_D\) n'a pas d'inverse (elle n'est pas carrée). Une matrice rectangulaire peut avoir un inverse à droite (\(M_DM_G=I_3\)) sans avoir d'inverse à gauche.

2. Correction TD3 — Matrices et applications linéaires (exercices 1 → 9)

TD3 de L. Graissot (ECAM AM2, 2026-2027), pas de corrigé officiel → tout résolu maison, méthode complète sans raccourci, avec vérification de chaque résultat (produit matriciel ou substitution). Convention : les colonnes d'une matrice sont les images des vecteurs de la base de départ.
Exercice 1 — Matrices dans la base canonique♦◊◊
Énoncé TD3 Exercice 1 — matrice de quatre applications linéaires dans la base canonique
Énoncé (TD3, L. Graissot) — Exercice 1.
Méthode On calcule l'image de chaque vecteur de la base canonique et on range ses coordonnées en colonne.

1) \(f(x,y,z)=(x+y-2z,\ 2x+y-z,\ -x-3y+2z)\), \(E=\mathbb R^3\)

Base canonique \((e_1,e_2,e_3)\) :

\[ f(1,0,0)=(1,2,-1),\quad f(0,1,0)=(1,1,-3),\quad f(0,0,1)=(-2,-1,2). \]
\[ \operatorname{Mat}(f)=\begin{pmatrix}1&1&-2\\2&1&-1\\-1&-3&2\end{pmatrix}. \]

2) \(f(P)=(2X+1)P-X^2P'\), \(E=\mathbb R_2[X]\)

Base canonique \((1,X,X^2)\). On calcule, avec \(1'=0\), \(X'=1\), \((X^2)'=2X\) :

\[ \begin{aligned} f(1)&=(2X+1)\cdot1-0=1+2X &&\to(1,2,0),\\ f(X)&=(2X+1)X-X^2\cdot1=X+X^2 &&\to(0,1,1),\\ f(X^2)&=(2X+1)X^2-X^2\cdot2X=X^2 &&\to(0,0,1). \end{aligned} \]
\[ \operatorname{Mat}(f)=\begin{pmatrix}1&0&0\\2&1&0\\0&1&1\end{pmatrix}. \]

On vérifie que \(f\) est bien à valeurs dans \(\mathbb R_2[X]\) : le terme en \(X^3\) de \(f(X^2)\) s'annule (\(2X^3-2X^3=0\)).

3) \(f(P)=\displaystyle\int_X^{X+2}P(t)\,dt\), \(E=\mathbb R_2[X]\)

Pour \(P=X^k\) : \(\displaystyle\int_X^{X+2}t^k\,dt=\dfrac{(X+2)^{k+1}-X^{k+1}}{k+1}\).

\[ \begin{aligned} f(1)&=(X+2)-X=2 &&\to(2,0,0),\\ f(X)&=\frac{(X+2)^2-X^2}{2}=\frac{4X+4}{2}=2X+2 &&\to(2,2,0),\\ f(X^2)&=\frac{(X+2)^3-X^3}{3}=\frac{6X^2+12X+8}{3}=2X^2+4X+\frac83 &&\to\left(\tfrac83,4,2\right). \end{aligned} \]
\[ \operatorname{Mat}(f)=\begin{pmatrix}2&2&\tfrac83\\0&2&4\\0&0&2\end{pmatrix}. \]

Matrice triangulaire supérieure : \(f\) conserve le degré (intégrer sur une longueur 2 ne change pas le degré).

4) \(f(M)=AM+MB\), \(A=\begin{pmatrix}1&2\\0&-1\end{pmatrix}\), \(B=\begin{pmatrix}0&1\\-2&1\end{pmatrix}\), \(E=\mathcal M_2(\mathbb R)\)

Base canonique \((E_{11},E_{12},E_{21},E_{22})\) de \(\mathcal M_2(\mathbb R)\) ; on repère une matrice \(\begin{pmatrix}a&b\\c&d\end{pmatrix}\) par ses coordonnées \((a,b,c,d)\).

\[ \begin{aligned} f(E_{11})&=AE_{11}+E_{11}B=\begin{pmatrix}1&0\\0&0\end{pmatrix}+\begin{pmatrix}0&1\\0&0\end{pmatrix}=\begin{pmatrix}1&1\\0&0\end{pmatrix}\to(1,1,0,0),\\ f(E_{12})&=\begin{pmatrix}0&1\\0&0\end{pmatrix}+\begin{pmatrix}-2&1\\0&0\end{pmatrix}=\begin{pmatrix}-2&2\\0&0\end{pmatrix}\to(-2,2,0,0). \end{aligned} \]

Détail de \(E_{21}\) : \(AE_{21}=\begin{pmatrix}1&2\\0&-1\end{pmatrix}\begin{pmatrix}0&0\\1&0\end{pmatrix}=\begin{pmatrix}2&0\\-1&0\end{pmatrix}\) et \(E_{21}B=\begin{pmatrix}0&0\\1&0\end{pmatrix}\begin{pmatrix}0&1\\-2&1\end{pmatrix}=\begin{pmatrix}0&0\\0&1\end{pmatrix}\), donc

\[ f(E_{21})=\begin{pmatrix}2&0\\-1&1\end{pmatrix}\to(2,0,-1,1). \]

Détail de \(E_{22}\) : \(AE_{22}=\begin{pmatrix}0&2\\0&-1\end{pmatrix}\) et \(E_{22}B=\begin{pmatrix}0&0\\-2&1\end{pmatrix}\), donc

\[ f(E_{22})=\begin{pmatrix}0&2\\-2&0\end{pmatrix}\to(0,2,-2,0). \]
\[ \operatorname{Mat}(f)=\begin{pmatrix}1&-2&2&0\\1&2&0&2\\0&0&-1&-2\\0&0&1&0\end{pmatrix}. \]
Piège. Ici \(E=\mathcal M_2(\mathbb R)\) est de dimension 4 : la matrice de \(f\) est \(4\times4\), pas \(2\times2\). Il ne faut pas confondre les matrices \(A,B\) (éléments de \(E\) servant à définir \(f\)) avec la matrice de \(f\).
Exercice 2 — Noyau, image et changements de base (3 bases)♦♦◊
Énoncé TD3 Exercice 2 — endomorphisme de R3 de matrice A, noyau, image, nouvelles bases
Énoncé (TD3, L. Graissot) — Exercice 2.

\(A=\begin{pmatrix}1&-2&-1\\2&0&2\\0&1&1\end{pmatrix}\), matrice de \(f\) dans la base \(e=(e_1,e_2,e_3)\).

1) Base de \(\operatorname{Ker}f\), base de \(\operatorname{Im}f\), supplémentaires ?

Noyau. \((x,y,z)\in\operatorname{Ker}f\iff A\begin{pmatrix}x\\y\\z\end{pmatrix}=0\) :

\[ \begin{cases}x-2y-z=0\\2x+2z=0\\y+z=0\end{cases} \iff\begin{cases}z=-x\\ y=-z=x\\ x-2x+x=0\ \checkmark\end{cases} \]

Donc \(\operatorname{Ker}f=\{(x,x,-x)\}=\operatorname{Vect}(u)\) avec \(u=(1,1,-1)=e_1+e_2-e_3\) (c'est le vecteur \(u\) de la question 2).

Image. \(\operatorname{Im}f=\operatorname{Vect}(f(e_1),f(e_2),f(e_3))\), colonnes de \(A\) : \(f(e_1)=(1,2,0)\), \(f(e_2)=(-2,0,1)\), \(f(e_3)=(-1,2,1)\). On remarque \(f(e_1)+f(e_2)=(-1,2,1)=f(e_3)\), donc \(f(e_3)\) est superflu. Les deux vecteurs \(f(e_1),f(e_2)\) ne sont pas colinéaires (\(0\) en 3ᵉ coordonnée pour le premier, \(1\) pour le second ; \(2\neq0\) en 2ᵉ pour le premier, \(0\) pour le second), donc ils forment une famille libre. Théorème du rang : \(\operatorname{rg}f=3-\dim\operatorname{Ker}f=3-1=2\) ✓.

Supplémentaires ? Il faut \(\operatorname{Ker}f\cap\operatorname{Im}f=\{0\}\) et \(\dim\operatorname{Ker}f+\dim\operatorname{Im}f=3\) (la 2ᵉ condition est vraie : \(1+2=3\)). Vérifions \(u\notin\operatorname{Im}f\) : si \(u=a f(e_1)+b f(e_2)\), alors 3ᵉ coordonnée : \(b=-1\) ; 2ᵉ : \(2a=1\), \(a=\tfrac12\) ; 1ʳᵉ : \(a-2b=\tfrac12+2=\tfrac52\neq1\) → contradiction. Donc \(u\notin\operatorname{Im}f\) ; comme \(\operatorname{Ker}f\) est la droite \(\operatorname{Vect}(u)\), l'intersection est \(\{0\}\).

\(\operatorname{Ker}f=\operatorname{Vect}(u)\), \(u=(1,1,-1)\) ; \(\operatorname{Im}f=\operatorname{Vect}\big((1,2,0),(-2,0,1)\big)\) ; \(\operatorname{Ker}f\) et \(\operatorname{Im}f\) sont supplémentaires : \(\mathbb R^3=\operatorname{Ker}f\oplus\operatorname{Im}f\).

2) \((u,f(e_1),f(e_2))\) est une base ; matrice de \(f\) dans cette base

Coordonnées dans \(e\) : \(u=(1,1,-1)\), \(f(e_1)=(1,2,0)\), \(f(e_2)=(-2,0,1)\). Matrice \(P=\begin{pmatrix}1&1&-2\\1&2&0\\-1&0&1\end{pmatrix}\). Son déterminant (développement selon la 3ᵉ ligne) :

\[ \det P=(-1)\begin{vmatrix}1&-2\\2&0\end{vmatrix}+1\cdot\begin{vmatrix}1&1\\1&2\end{vmatrix} =(-1)(0+4)+(2-1)=-4+1=-3\neq0. \]

(Cohérent avec la question 1 : \(u\) engendre le noyau, \(f(e_1),f(e_2)\) l'image, ces deux sous-espaces étant supplémentaires.) Donc \(\mathcal B_2=(u,f(e_1),f(e_2))\) est une base de \(\mathbb R^3\).

Images des vecteurs de \(\mathcal B_2\) :

  • \(f(u)=0\) (car \(u\in\operatorname{Ker}f\)) → colonne \((0,0,0)\).
  • \(f(f(e_1))=A\begin{pmatrix}1\\2\\0\end{pmatrix}=\begin{pmatrix}1-4\\2\\2\end{pmatrix}=\begin{pmatrix}-3\\2\\2\end{pmatrix}\). Or \(f(e_1)+2f(e_2)=(1,2,0)+(-4,0,2)=(-3,2,2)\). Donc \(f(f(e_1))=1\cdot f(e_1)+2\cdot f(e_2)\) → colonne \((0,1,2)\).
  • \(f(f(e_2))=A\begin{pmatrix}-2\\0\\1\end{pmatrix}=\begin{pmatrix}-2-1\\-4+2\\1\end{pmatrix}=\begin{pmatrix}-3\\-2\\1\end{pmatrix}\). Or \(-f(e_1)+f(e_2)=(-1,-2,0)+(-2,0,1)=(-3,-2,1)\). Donc \(f(f(e_2))=-f(e_1)+f(e_2)\) → colonne \((0,-1,1)\).
\[ \operatorname{Mat}_{\mathcal B_2}(f)=\begin{pmatrix}0&0&0\\0&1&-1\\0&2&1\end{pmatrix}. \] Matrice diagonale par blocs (\(0\) pour la droite \(\operatorname{Ker}f\), bloc \(2\times2\) inversible pour le plan \(\operatorname{Im}f\)) : c'est exactement ce que prévoit \(\mathbb R^3=\operatorname{Ker}f\oplus\operatorname{Im}f\).

3) \((u,e_1,e_2)\) est une base ; matrice de \(f\) dans cette base

Matrice des coordonnées : \(\begin{pmatrix}1&1&0\\1&0&1\\-1&0&0\end{pmatrix}\) (colonnes \(u,e_1,e_2\)). Développement selon la 3ᵉ ligne : \(\det=(-1)\begin{vmatrix}1&0\\0&1\end{vmatrix}=-1\neq0\) → base. Directement : \(e_3=e_1+e_2-u\), donc \(e_3\in\operatorname{Vect}(u,e_1,e_2)\) et la famille engendre \(\mathbb R^3\).

  • \(f(u)=0\) → \((0,0,0)\).
  • \(f(e_1)=(1,2,0)=e_1+2e_2\) → \((0,1,2)\).
  • \(f(e_2)=(-2,0,1)=-2e_1+e_3=-2e_1+(e_1+e_2-u)=-u-e_1+e_2\) → \((-1,-1,1)\).
\[ \operatorname{Mat}_{(u,e_1,e_2)}(f)=\begin{pmatrix}0&0&-1\\0&1&-1\\0&2&1\end{pmatrix}. \]
Lecture. La 1ʳᵉ colonne est nulle dans les deux bases (\(f(u)=0\)). Dans la base de la question 2, la 1ʳᵉ ligne est aussi nulle (l'image est dans \(\operatorname{Vect}(f(e_1),f(e_2))\), sans composante sur \(u\)) ; pas dans la question 3, où \(e_1,e_2\) ne sont pas dans \(\operatorname{Im}f\) — c'est la différence entre « base adaptée » et « base quelconque ».
Exercice 3 — Projection sur l'axe des abscisses parallèlement à \(\mathbb R(\vec\imath+\vec\jmath)\)♦♦◊
Énoncé TD3 Exercice 3 — projection dans R2, matrices dans différentes bases, trois méthodes
Énoncé (TD3, L. Graissot) — Exercice 3.
Convention retenue. \(\operatorname{Mat}_{\mathcal B',\mathcal B}(f)\) : base de départ \(\mathcal B'\), base d'arrivée \(\mathcal B\) ; \(\operatorname{Mat}_{\mathcal B'}(f)=\operatorname{Mat}_{\mathcal B',\mathcal B'}(f)\).

1) \(\operatorname{Mat}_{\mathcal B,\mathcal B}(f)\)

\(f\) est la projection sur \(\mathbb R\vec\imath\) parallèlement à \(\mathbb R(\vec\imath+\vec\jmath)\) : \(f(\vec\imath)=\vec\imath\) (vecteur de l'axe, fixé) et \(f(\vec\imath+\vec\jmath)=\vec0\) (vecteur de la direction). Donc

\[ f(\vec\jmath)=f\big((\vec\imath+\vec\jmath)-\vec\imath\big)=\vec0-\vec\imath=-\vec\imath. \]
\[ \operatorname{Mat}_{\mathcal B,\mathcal B}(f)=\begin{pmatrix}1&-1\\0&0\end{pmatrix},\qquad f(x,y)=(x-y,\,0). \]

Vérification : \(f(1,1)=(0,0)\) ✓, \(f(x,0)=(x,0)\) ✓.

2) \(\operatorname{Mat}_{\mathcal B',\mathcal B}(f)\), \(\mathcal B'=(\vec\imath-\vec\jmath,\,-2\vec\imath+3\vec\jmath)\)

On note \(b_1'=\vec\imath-\vec\jmath=(1,-1)\), \(b_2'=-2\vec\imath+3\vec\jmath=(-2,3)\). (\(\mathcal B'\) est une base : \(\det\begin{pmatrix}1&-2\\-1&3\end{pmatrix}=3-2=1\neq0\).)

\[ f(b_1')=f(1,-1)=(1-(-1),0)=(2,0)=2\vec\imath,\qquad f(b_2')=f(-2,3)=(-2-3,0)=(-5,0)=-5\vec\imath. \]

On exprime dans la base d'arrivée \(\mathcal B\) (canonique) :

\[ \operatorname{Mat}_{\mathcal B',\mathcal B}(f)=\begin{pmatrix}2&-5\\0&0\end{pmatrix} =\operatorname{Mat}_{\mathcal B,\mathcal B}(f)\cdot P,\quad P=\begin{pmatrix}1&-2\\-1&3\end{pmatrix}. \]

Contrôle du produit : \(\begin{pmatrix}1&-1\\0&0\end{pmatrix}\begin{pmatrix}1&-2\\-1&3\end{pmatrix}=\begin{pmatrix}2&-5\\0&0\end{pmatrix}\) ✓.

3) \(\operatorname{Mat}_{\mathcal B'}(f)=\operatorname{Mat}_{\mathcal B',\mathcal B'}(f)\)

Il faut maintenant exprimer \(f(b_1')=2\vec\imath\) et \(f(b_2')=-5\vec\imath\) dans la base \(\mathcal B'\). On inverse : \(P^{-1}=\dfrac1{\det P}\begin{pmatrix}3&2\\1&1\end{pmatrix}=\begin{pmatrix}3&2\\1&1\end{pmatrix}\) (formule \(\frac1{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}\)). Les colonnes de \(P^{-1}\) donnent \(\vec\imath=3b_1'+b_2'\) et \(\vec\jmath=2b_1'+b_2'\). Vérification : \(3(1,-1)+(-2,3)=(1,0)\) ✓ et \(2(1,-1)+(-2,3)=(0,1)\) ✓. Donc

\[ f(b_1')=2\vec\imath=6b_1'+2b_2',\qquad f(b_2')=-5\vec\imath=-15b_1'-5b_2'. \]
\[ \operatorname{Mat}_{\mathcal B'}(f)=P^{-1}\operatorname{Mat}_{\mathcal B}(f)P=\begin{pmatrix}6&-15\\2&-5\end{pmatrix}. \]

Contrôle : \(P^{-1}\begin{pmatrix}2&-5\\0&0\end{pmatrix}=\begin{pmatrix}3\cdot2&3\cdot(-5)\\1\cdot2&1\cdot(-5)\end{pmatrix}=\begin{pmatrix}6&-15\\2&-5\end{pmatrix}\) ✓. Autre contrôle : \(\operatorname{tr}=6-5=1=\operatorname{tr}\begin{pmatrix}1&-1\\0&0\end{pmatrix}\) et \(\det=-30+30=0\) (la trace et le déterminant ne changent pas par changement de base) ✓.

4) Image de \(\vec w=2\vec u-\vec v\) (avec \(\vec u=b_1'\), \(\vec v=b_2'\)) — trois méthodes

Coordonnées de \(\vec w\) dans \(\mathcal B'\) : \((2,-1)\). Dans la base canonique : \(\vec w=2(1,-1)-(-2,3)=(4,-5)\).

Méthode 1 — par la matrice canonique. \(f(\vec w)=\begin{pmatrix}1&-1\\0&0\end{pmatrix}\begin{pmatrix}4\\-5\end{pmatrix}=\begin{pmatrix}4+5\\0\end{pmatrix}=\begin{pmatrix}9\\0\end{pmatrix}\).

Méthode 2 — par \(\operatorname{Mat}_{\mathcal B',\mathcal B}(f)\) (départ \(\mathcal B'\), arrivée canonique : on lui donne directement les coordonnées dans \(\mathcal B'\) et on obtient le résultat dans la base canonique) : \(\begin{pmatrix}2&-5\\0&0\end{pmatrix}\begin{pmatrix}2\\-1\end{pmatrix}=\begin{pmatrix}4+5\\0\end{pmatrix}=\begin{pmatrix}9\\0\end{pmatrix}\).

Méthode 3 — par \(\operatorname{Mat}_{\mathcal B'}(f)\) (résultat dans \(\mathcal B'\), puis conversion) : \(\begin{pmatrix}6&-15\\2&-5\end{pmatrix}\begin{pmatrix}2\\-1\end{pmatrix}=\begin{pmatrix}12+15\\4+5\end{pmatrix}=\begin{pmatrix}27\\9\end{pmatrix}_{\mathcal B'}\), soit \(f(\vec w)=27b_1'+9b_2'=27(1,-1)+9(-2,3)=(27-18,\,-27+27)=(9,0)\).

Méthode 4 (contrôle) — par linéarité. \(f(\vec w)=2f(\vec u)-f(\vec v)=2(2,0)-(-5,0)=(9,0)\).

\(f(\vec w)=9\,\vec\imath=(9,0)\) dans la base canonique (les quatre méthodes concordent).
Piège. Avec \(\operatorname{Mat}_{\mathcal B'}(f)\) le résultat \((27,9)\) est exprimé dans \(\mathcal B'\), pas dans la base canonique : oublier de reconvertir donne un résultat faux. Avec \(\operatorname{Mat}_{\mathcal B',\mathcal B}(f)\) la base d'arrivée est déjà la canonique, il n'y a rien à reconvertir.
Exercice 4 — Endomorphisme de \(\mathbb R_2[X]\) et équation différentielle♦♦♦
Énoncé TD3 Exercice 4 — φ(P)=(X²+X+1)P'−(2X−1)P sur R2[X], bijectivité, équation différentielle
Énoncé (TD3, L. Graissot) — Exercice 4.

1) \(\varphi\) est un endomorphisme ; matrice dans la base canonique

Linéarité. Pour \(P,Q\in\mathbb R_2[X]\) et \(\lambda\in\mathbb R\) : la dérivation est linéaire, donc \(\varphi(\lambda P+Q)=(X^2+X+1)(\lambda P'+Q')-(2X-1)(\lambda P+Q)=\lambda\varphi(P)+\varphi(Q)\).

À valeurs dans \(\mathbb R_2[X]\). Pour \(P=aX^2+bX+c\) : \(P'=2aX+b\) et

\[ \varphi(P)=(X^2+X+1)(2aX+b)-(2X-1)(aX^2+bX+c). \]

Le terme en \(X^3\) vaut \(2a-2a=0\) : \(\deg\varphi(P)\le2\). Donc \(\varphi\in\mathcal L(\mathbb R_2[X])\) : endomorphisme. Matrice dans \((1,X,X^2)\) :

\[ \begin{aligned} \varphi(1)&=-(2X-1)=1-2X &&\to(1,-2,0),\\ \varphi(X)&=(X^2+X+1)-(2X-1)X=X^2+X+1-2X^2+X=-X^2+2X+1 &&\to(1,2,-1),\\ \varphi(X^2)&=(X^2+X+1)\,2X-(2X-1)X^2=2X^3+2X^2+2X-2X^3+X^2=3X^2+2X &&\to(0,2,3). \end{aligned} \]
\[ M=\operatorname{Mat}(\varphi)=\begin{pmatrix}1&1&0\\-2&2&2\\0&-1&3\end{pmatrix}. \]

2) \(\varphi\) bijective ? Antécédent de \(X^2-1\)

Développement du déterminant selon la 1ʳᵉ ligne :

\[ \det M=1\begin{vmatrix}2&2\\-1&3\end{vmatrix}-1\begin{vmatrix}-2&2\\0&3\end{vmatrix}+0 =1\cdot(6+2)-1\cdot(-6-0)=8+6=14\neq0. \]

\(M\) est inversible, donc \(\varphi\) est bijective (endomorphisme d'un espace de dimension finie de matrice inversible).

Antécédent de \(X^2-1\), de coordonnées \((-1,0,1)\) : on résout \(M\begin{pmatrix}c\\b\\a\end{pmatrix}=\begin{pmatrix}-1\\0\\1\end{pmatrix}\) pour \(P=aX^2+bX+c\) :

\[ \begin{cases}c+b=-1\\-2c+2b+2a=0\\-b+3a=1\end{cases} \]

(1) donne \(c=-1-b\). (2) : \(2+2b+2b+2a=0\), soit \(a=-1-2b\). (3) : \(-b+3(-1-2b)=1\), soit \(-7b=4\), \(b=-\tfrac47\). Alors \(a=-1+\tfrac87=\tfrac17\) et \(c=-1+\tfrac47=-\tfrac37\).

\(\varphi\) est bijective et \(P_0=\dfrac{X^2-4X-3}{7}\) est l'unique antécédent de \(X^2-1\).

Vérification : \(\varphi(P_0)=\frac17\big[(X^2+X+1)(2X-4)-(2X-1)(X^2-4X-3)\big]\). Premier produit : \(2X^3-4X^2+2X^2-4X+2X-4=2X^3-2X^2-2X-4\). Second : \(2X^3-8X^2-6X-X^2+4X+3=2X^3-9X^2-2X+3\). Différence : \(7X^2-7\). Donc \(\varphi(P_0)=X^2-1\) ✓.

3) Résoudre \((x^2+x+1)y'-(2x-1)y=x^2-1\)

L'équation s'écrit \(\varphi(y)=x^2-1\) où \(\varphi\) agit maintenant sur des fonctions dérivables (sur \(\mathbb R\), car \(x^2+x+1>0\) : discriminant \(1-4=-3<0\)). C'est une équation différentielle linéaire du 1ᵉʳ ordre : solution générale = solution particulière + solution générale de l'équation homogène.

Solution particulière : le polynôme \(P_0\) de la question 2 (c'est précisément le but de la question).

Équation homogène \((x^2+x+1)y'=(2x-1)y\), soit \(\dfrac{y'}{y}=\dfrac{2x-1}{x^2+x+1}\). On décompose \(2x-1=(2x+1)-2\) (car \((x^2+x+1)'=2x+1\)) :

\[ \int\frac{2x-1}{x^2+x+1}\,dx=\ln(x^2+x+1)-2\int\frac{dx}{x^2+x+1}. \]

Forme canonique \(x^2+x+1=\big(x+\tfrac12\big)^2+\tfrac34\), donc \(\displaystyle\int\frac{dx}{x^2+x+1}=\frac{2}{\sqrt3}\arctan\!\Big(\frac{2x+1}{\sqrt3}\Big)\). D'où

\[ y_h(x)=C\,(x^2+x+1)\exp\!\Big(-\frac{4}{\sqrt3}\arctan\frac{2x+1}{\sqrt3}\Big),\quad C\in\mathbb R. \]
\[ y(x)=\frac{x^2-4x-3}{7}+C\,(x^2+x+1)\,e^{-\frac{4}{\sqrt3}\arctan\frac{2x+1}{\sqrt3}},\qquad C\in\mathbb R,\ x\in\mathbb R. \]
Lien avec l'algèbre linéaire. Parmi les polynômes de degré \(\le2\), l'unique solution est \(P_0\) (car \(\varphi\) y est injective : \(\ker\varphi=\{0\}\)). Les solutions homogènes \(y_h\) ne sont pas polynomiales dès que \(C\neq0\) (à cause de l'exponentielle) — cohérent avec \(\ker\varphi=\{0\}\) sur \(\mathbb R_2[X]\).
Exercice 5 — Projecteur de \(\mathbb R^3\) : diagonalisation par changement de base♦♦◊
Énoncé TD3 Exercice 5 — Φ définie par Φ(e1)=e3, Φ(e2)=−e1+e2+e3, Φ(e3)=e3, nouvelle base f1,f2,f3
Énoncé (TD3, L. Graissot) — Exercice 5.

1) Matrice \(A\) de \(\Phi\) dans \((e_1,e_2,e_3)\) et noyau

Colonnes = images : \(\Phi(e_1)=e_3=(0,0,1)\), \(\Phi(e_2)=-e_1+e_2+e_3=(-1,1,1)\), \(\Phi(e_3)=e_3=(0,0,1)\).

\[ A=\begin{pmatrix}0&-1&0\\0&1&0\\1&1&1\end{pmatrix}. \]

Noyau : \(A\begin{pmatrix}x\\y\\z\end{pmatrix}=\begin{pmatrix}-y\\y\\x+y+z\end{pmatrix}=0\iff y=0,\ z=-x\). Donc \(\ker\Phi=\{(x,0,-x)\}=\operatorname{Vect}(e_1-e_3)\) (droite ; \(\operatorname{rg}\Phi=3-1=2\)).

\(\ker\Phi=\operatorname{Vect}(e_1-e_3)\).

2) \(f_1=e_1-e_3,\ f_2=e_1-e_2,\ f_3=-e_1+e_2+e_3\) : \(e_i\) en fonction des \(f_j\) ; base ?

On remarque \(f_2+f_3=(e_1-e_2)+(-e_1+e_2+e_3)=e_3\). Puis \(f_1+e_3=e_1\), donc \(e_1=f_1+f_2+f_3\). Enfin \(e_2=e_1-f_2=f_1+f_2+f_3-f_2=f_1+f_3\).

\(e_1=f_1+f_2+f_3,\quad e_2=f_1+f_3,\quad e_3=f_2+f_3.\)

Vérification : \(f_1+f_2+f_3=(1+1-1,\,0-1+1,\,-1+0+1)=(1,0,0)=e_1\) ✓. Les trois \(e_i\) sont combinaisons linéaires de \(f_1,f_2,f_3\), donc \(\operatorname{Vect}(f_1,f_2,f_3)=\mathbb R^3\) : famille génératrice de 3 vecteurs dans un espace de dimension 3, c'est une base.

3) \(\Phi(f_j)\) ; matrice \(B\) dans \((f_1,f_2,f_3)\) ; nature de \(\Phi\)

\[ \begin{aligned} \Phi(f_1)&=\Phi(e_1)-\Phi(e_3)=e_3-e_3=0,\\ \Phi(f_2)&=\Phi(e_1)-\Phi(e_2)=e_3-(-e_1+e_2+e_3)=e_1-e_2=f_2,\\ \Phi(f_3)&=-\Phi(e_1)+\Phi(e_2)+\Phi(e_3)=-e_3+(-e_1+e_2+e_3)+e_3=-e_1+e_2+e_3=f_3. \end{aligned} \]
\[ B=\operatorname{Mat}_{(f_1,f_2,f_3)}(\Phi)=\begin{pmatrix}0&0&0\\0&1&0\\0&0&1\end{pmatrix}. \] \(\Phi\) est la projection sur \(\operatorname{Vect}(f_2,f_3)\) (=\(\operatorname{Im}\Phi\)) parallèlement à \(\operatorname{Vect}(f_1)=\ker\Phi\).

(On vérifie \(\Phi\circ\Phi=\Phi\) : \(B^2=B\), caractéristique d'un projecteur.)

4) \(P\) inversible, \(P^{-1}\), relation entre \(A,B,P,P^{-1}\)

\(P=\begin{pmatrix}1&1&-1\\0&-1&1\\-1&0&1\end{pmatrix}\) a pour colonnes les coordonnées de \(f_1,f_2,f_3\) dans \((e_1,e_2,e_3)\) : c'est la matrice de passage de \((e)\) vers \((f)\). Déterminant (développement selon la 1ʳᵉ colonne) : \(\det P=1\begin{vmatrix}-1&1\\0&1\end{vmatrix}+(-1)\begin{vmatrix}1&-1\\-1&1\end{vmatrix} =1\cdot(-1)-(1-1)=-1\neq0\). Donc \(P\) est inversible. D'après la question 2, les colonnes de \(P^{-1}\) donnent \(e_1,e_2,e_3\) dans la base \((f)\) :

\[ P^{-1}=\begin{pmatrix}1&1&0\\1&0&1\\1&1&1\end{pmatrix},\qquad \boxed{B=P^{-1}AP}\ \ (\text{ou }A=PBP^{-1}). \]

Vérification de \(PP^{-1}=I_3\) : 1ʳᵉ ligne de \(P\), \((1,1,-1)\), contre les colonnes \((1,1,1)\), \((1,0,1)\), \((0,1,1)\) : \(1+1-1=1\), \(1+0-1=0\), \(0+1-1=0\) ✓ ; 2ᵉ ligne \((0,-1,1)\) : \(-1+1=0\), \(0+1=1\), \(-1+1=0\) ✓ ; 3ᵉ ligne \((-1,0,1)\) : \(-1+1=0\), \(-1+1=0\), \(1\) ✓.

Exercice 6 — Base de trigonalisation et puissances de \(A\)♦♦♦
Énoncé TD3 Exercice 6 — endomorphisme de R3 de matrice A, base où la matrice devient B, puissances
Énoncé (TD3, L. Graissot) — Exercice 6.

\(A=\begin{pmatrix}-1&0&1\\-1&-2&1\\-1&-1&1\end{pmatrix}\), \(B=\begin{pmatrix}0&0&0\\0&-1&1\\0&0&-1\end{pmatrix}\).

1) Base \((b_1,b_2,b_3)\) dans laquelle la matrice de \(f\) est \(B\)

Méthode Lire les colonnes de \(B\) : elles disent comment \(f\) agit sur la base cherchée. \[ f(b_1)=0,\qquad f(b_2)=-b_2,\qquad f(b_3)=b_2-b_3. \] Il faut donc : \(b_1\in\ker f\) ; \(b_2\) vecteur propre pour \(-1\) ; \(b_3\) tel que \((f+\mathrm{id})(b_3)=b_2\).

\(b_1\) : \(Av=0\iff\begin{cases}-x+z=0\\-x-2y+z=0\\-x-y+z=0\end{cases}\). (1) : \(z=x\) ; (2) : \(-2y=0\), \(y=0\) ; (3) : \(-x-0+x=0\) ✓. On prend \(b_1=(1,0,1)\).

\(b_2\) : \((A+I)v=0\) avec \(A+I=\begin{pmatrix}0&0&1\\-1&-1&1\\-1&-1&2\end{pmatrix}\) : (1) \(z=0\) ; (2) \(-x-y=0\) ; (3) \(-x-y+2z=0\) ✓. On prend \(b_2=(1,-1,0)\).

\(b_3\) : \((A+I)b_3=b_2\) : \(\begin{cases}z=1\\-x-y+z=-1\\-x-y+2z=0\end{cases}\) : \(z=1\), puis \(x+y=2\) (équation 2) et l'équation 3 donne \(-x-y+2=0\) ✓ (cohérent). On prend \(b_3=(2,0,1)\).

Vérifications. \(Ab_1=(-1+1,\,-1+1,\,-1+1)=0\) ✓. \(Ab_2=(-1,\,-1+2,\,-1+1)=(-1,1,0)=-b_2\) ✓. \(Ab_3=(-2+1,\,-2+1,\,-2+1)=(-1,-1,-1)\) et \(b_2-b_3=(1-2,\,-1-0,\,0-1)=(-1,-1,-1)\) ✓.

C'est une base : \(P=\begin{pmatrix}1&1&2\\0&-1&0\\1&0&1\end{pmatrix}\) (colonnes \(b_1,b_2,b_3\)), \(\det P=(-1)\cdot(-1)^{2+2}\begin{vmatrix}1&2\\1&1\end{vmatrix}=(-1)(1-2)=1\neq0\).

Base \(\big(b_1,b_2,b_3\big)=\big((1,0,1),\,(1,-1,0),\,(2,0,1)\big)\) ; dans cette base \(\operatorname{Mat}(f)=B\), soit \(B=P^{-1}AP\).
Pourquoi pas une matrice diagonale ? \(-1\) est valeur propre double (polynôme caractéristique \(\lambda(\lambda+1)^2\)) mais \(\ker(f+\mathrm{id})\) n'est qu'une droite : \(f\) n'est pas diagonalisable. La meilleure forme possible est celle-ci (bloc de Jordan \(\begin{pmatrix}-1&1\\0&-1\end{pmatrix}\)).

2) Puissances de \(B\), puis de \(A\)

Puissances de \(B\). \(B\) est diagonale par blocs : le bloc \(1\times1\) vaut \(0\) et le bloc \(T=\begin{pmatrix}-1&1\\0&-1\end{pmatrix}=-I_2+N\) avec \(N=\begin{pmatrix}0&1\\0&0\end{pmatrix}\), \(N^2=0\). Comme \(-I_2\) et \(N\) commutent, le binôme de Newton s'applique et tous les termes en \(N^k\), \(k\ge2\), disparaissent :

\[ T^n=(-I_2+N)^n=(-1)^nI_2+n(-1)^{n-1}N=\begin{pmatrix}(-1)^n&n(-1)^{n-1}\\0&(-1)^n\end{pmatrix}. \]
Pour \(n\ge1\) : \(B^n=\begin{pmatrix}0&0&0\\0&(-1)^n&n(-1)^{n-1}\\0&0&(-1)^n\end{pmatrix}\). (Pour \(n=0\), \(B^0=I_3\).)

Puissances de \(A\). \(A^n=PB^nP^{-1}\) avec \(P^{-1}=\begin{pmatrix}-1&-1&2\\0&-1&0\\1&1&-1\end{pmatrix}\) (on vérifie \(PP^{-1}\) : 1ʳᵉ ligne de \(P\), \((1,1,2)\), contre les colonnes de \(P^{-1}\) : \(-1+0+2=1\), \(-1-1+2=0\), \(2+0-2=0\) ✓ ; 2ᵉ ligne \((0,-1,0)\) : \(0\), \(1\), \(0\) ✓ ; 3ᵉ ligne \((1,0,1)\) : \(-1+1=0\), \(-1+1=0\), \(2-1=1\) ✓). Posons \(s=(-1)^n\), donc \(n(-1)^{n-1}=-ns\) :

\[ PB^n=\begin{pmatrix}1&1&2\\0&-1&0\\1&0&1\end{pmatrix}\begin{pmatrix}0&0&0\\0&s&-ns\\0&0&s\end{pmatrix} =\begin{pmatrix}0&s&(2-n)s\\0&-s&ns\\0&0&s\end{pmatrix}, \] \[ A^n=PB^nP^{-1}=\begin{pmatrix}0&s&(2-n)s\\0&-s&ns\\0&0&s\end{pmatrix}\begin{pmatrix}-1&-1&2\\0&-1&0\\1&1&-1\end{pmatrix} =s\begin{pmatrix}2-n&1-n&n-2\\n&n+1&-n\\1&1&-1\end{pmatrix}. \]
Pour tout \(n\ge1\) : \[ A^n=(-1)^n\begin{pmatrix}2-n&1-n&n-2\\n&n+1&-n\\1&1&-1\end{pmatrix}. \]

Contrôle : \(n=1\) donne \(-\begin{pmatrix}1&0&-1\\1&2&-1\\1&1&-1\end{pmatrix}=A\) ✓ ; \(n=2\) donne \(\begin{pmatrix}0&-1&0\\2&3&-2\\1&1&-1\end{pmatrix}=A^2\) (calcul direct de \(A\cdot A\), 1ʳᵉ ligne : \((-1,0,1)\cdot\)colonnes de \(A\) = \((1-1,\,0+0-1,\,-1+0+1)=(0,-1,0)\) ✓).

Piège. La formule fermée est valable à partir de \(n\ge1\) ; pour \(n=0\) elle donnerait \(\begin{pmatrix}2&1&-2\\0&1&0\\1&1&-1\end{pmatrix}\neq I_3\) (le bloc \(1\times1\) nul de \(B\) vaut \(0^n=0\) pour \(n\ge1\) mais \(B^0=I_3\) a un \(1\) à cet endroit).
Exercice 7 — Base de \(\mathbb R_2[X]\), matrices de passage, coordonnées♦♦◊
Énoncé TD3 Exercice 7 — famille B=(X²+1, X+1, 2X²−X) de R2[X], passage, coordonnées, φ(P)=XP'
Énoncé (TD3, L. Graissot) — Exercice 7.

1) \(\mathcal B=(X^2+1,\ X+1,\ 2X^2-X)\) est une base de \(\mathbb R_2[X]\)

Dans la base canonique \((1,X,X^2)\) (coordonnées dans l'ordre \(1,X,X^2\)) : \(X^2+1\to(1,0,1)\), \(X+1\to(1,1,0)\), \(2X^2-X\to(0,-1,2)\). Matrice des coordonnées \(P=\begin{pmatrix}1&1&0\\0&1&-1\\1&0&2\end{pmatrix}\) :

\[ \det P=1\begin{vmatrix}1&-1\\0&2\end{vmatrix}-1\begin{vmatrix}0&-1\\1&2\end{vmatrix}+0=2-(0+1)=1\neq0. \]
\(\det P=1\neq0\) et \(\dim\mathbb R_2[X]=3\) : \(\mathcal B\) est une base.

2) Matrices de passage canonique → \(\mathcal B\) et \(\mathcal B\) → canonique

Par définition (colonnes = coordonnées de la nouvelle base dans l'ancienne) :

\[ P_{\text{can}\to\mathcal B}=P=\begin{pmatrix}1&1&0\\0&1&-1\\1&0&2\end{pmatrix}. \]

La matrice de passage inverse est \(P^{-1}\). Calcul par la comatrice (\(\det P=1\)) : on obtient

\[ P_{\mathcal B\to\text{can}}=P^{-1}=\begin{pmatrix}2&-2&-1\\-1&2&1\\-1&1&1\end{pmatrix}. \]

Vérification de \(PP^{-1}=I_3\) : 1ʳᵉ ligne de \(P\), \((1,1,0)\), contre les colonnes \((2,-1,-1)\), \((-2,2,1)\), \((-1,1,1)\) : \(2-1=1\), \(-2+2=0\), \(-1+1=0\) ✓ ; 2ᵉ ligne \((0,1,-1)\) : \(-1+1=0\), \(2-1=1\), \(1-1=0\) ✓ ; 3ᵉ ligne \((1,0,2)\) : \(2-2=0\), \(-2+2=0\), \(-1+2=1\) ✓.

Interprétation : les colonnes de \(P^{-1}\) expriment \(1,X,X^2\) dans \(\mathcal B\). Exemple : \(1=2(X^2+1)-(X+1)-(2X^2-X)\) (développé : \(2X^2+2-X-1-2X^2+X=1\) ✓).

3) Coordonnées de \(P=X^2-X+2\) dans \(\mathcal B\)

Coordonnées canoniques : \((2,-1,1)\). Dans \(\mathcal B\) : \(X_{\mathcal B}=P^{-1}X_{\text{can}}\) :

\[ \begin{pmatrix}2&-2&-1\\-1&2&1\\-1&1&1\end{pmatrix}\begin{pmatrix}2\\-1\\1\end{pmatrix} =\begin{pmatrix}4+2-1\\-2-2+1\\-2-1+1\end{pmatrix}=\begin{pmatrix}5\\-3\\-2\end{pmatrix}. \]
\(X^2-X+2=5(X^2+1)-3(X+1)-2(2X^2-X)\).

Vérification : \(5X^2+5-3X-3-4X^2+2X=X^2-X+2\) ✓.

4) \(\varphi(P)=XP'\) : matrice dans la canonique puis dans \(\mathcal B\)

\(\varphi(1)=0\), \(\varphi(X)=X\cdot1=X\), \(\varphi(X^2)=X\cdot2X=2X^2\) (\(\varphi\) est bien un endomorphisme de \(\mathbb R_2[X]\)).

\[ D=\operatorname{Mat}_{\text{can}}(\varphi)=\begin{pmatrix}0&0&0\\0&1&0\\0&0&2\end{pmatrix}. \]

Dans la base \(\mathcal B\) : \(\operatorname{Mat}_{\mathcal B}(\varphi)=P^{-1}DP\). D'abord \(DP=\begin{pmatrix}0&0&0\\0&1&-1\\2&0&4\end{pmatrix}\) (chaque ligne de \(P\) multipliée par le coefficient diagonal correspondant), puis

\[ P^{-1}(DP)=\begin{pmatrix}2&-2&-1\\-1&2&1\\-1&1&1\end{pmatrix}\begin{pmatrix}0&0&0\\0&1&-1\\2&0&4\end{pmatrix} =\begin{pmatrix}-2&-2&-2\\2&2&2\\2&1&3\end{pmatrix}. \]
\[ \operatorname{Mat}_{\mathcal B}(\varphi)=\begin{pmatrix}-2&-2&-2\\2&2&2\\2&1&3\end{pmatrix}. \]

Vérification sur la 1ʳᵉ colonne : \(\varphi(X^2+1)=X\cdot2X=2X^2\), dont les coordonnées dans \(\mathcal B\) sont \(P^{-1}(0,0,2)=(-2,2,2)\) ✓ (colonne 1). Trace conservée : \(-2+2+3=3=0+1+2\) ✓.

Piège. Dans une base « moins naturelle », la matrice d'un endomorphisme simple (ici diagonale dans la canonique) devient pleine. On choisit une base adaptée pour simplifier, jamais l'inverse.
Exercice 8 — Endomorphisme nilpotent (\(f^2=0\))♦♦◊
Énoncé TD3 Exercice 8 — endomorphisme de R3 de matrice A, f², Im⊂Ker, A semblable à une matrice à un seul 1
Énoncé (TD3, L. Graissot) — Exercice 8.

\(A=\begin{pmatrix}3&-3&6\\1&-1&2\\-1&1&-2\end{pmatrix}\).

1) Calcul de \(f^2\) ; \(\operatorname{Im}f\subset\operatorname{Ker}f\)

Produit \(A\times A\) (ligne × colonne). Colonnes de \(A\) : \(c_1=(3,1,-1)\), \(c_2=(-3,-1,1)\), \(c_3=(6,2,-2)\).

\[ \begin{aligned} &\text{Ligne }(3,-3,6):\ 9-3-6=0,\ \ -9+3+6=0,\ \ 18-6-12=0;\\ &\text{Ligne }(1,-1,2):\ 3-1-2=0,\ \ -3+1+2=0,\ \ 6-2-4=0;\\ &\text{Ligne }(-1,1,-2):\ -3+1+2=0,\ \ 3-1-2=0,\ \ -6+2+4=0. \end{aligned} \]
\(A^2=0\), c'est-à-dire \(f\circ f=0\) : \(f\) est nilpotent d'indice 2.

Inclusion : soit \(y\in\operatorname{Im}f\), \(y=f(x)\). Alors \(f(y)=f(f(x))=f^2(x)=0\), donc \(y\in\operatorname{Ker}f\).

\(\operatorname{Im}f\subset\operatorname{Ker}f\).

2) \(\operatorname{rg}f\), \(\dim\operatorname{Ker}f\), bases du noyau et de l'image

On a \(c_2=-c_1\) et \(c_3=2c_1\) avec \(c_1\neq0\) : \(\operatorname{Im}f=\operatorname{Vect}(c_1)\), donc \(\operatorname{rg}f=1\). Théorème du rang : \(\dim\operatorname{Ker}f=3-1=2\). (Cohérent avec la question 1 : \(\dim\operatorname{Im}f=1\le\dim\operatorname{Ker}f=2\).)

Noyau : les trois lignes sont proportionnelles à \((1,-1,2)\) (\((3,-3,6)=3\cdot(1,-1,2)\), \((-1,1,-2)=-(1,-1,2)\)), donc \(\operatorname{Ker}f\) est le plan d'équation \(x-y+2z=0\) : \((x,y,z)=y(1,1,0)+z(-2,0,1)\). Base : \(\big((1,1,0),(-2,0,1)\big)\). On vérifie \(c_1=(3,1,-1)\in\operatorname{Ker}f\) : \(3-1-2=0\) ✓ (en effet \(c_1=(1,1,0)-(-2,0,1)=(3,1,-1)\), combinaison des deux vecteurs de base).

\(\operatorname{rg}f=1\), \(\dim\operatorname{Ker}f=2\) ; base de \(\operatorname{Im}f\) : \(\big((3,1,-1)\big)\) ; base de \(\operatorname{Ker}f\) : \(\big((1,1,0),(-2,0,1)\big)\).

3) \(A\) est semblable à \(\begin{pmatrix}0&0&0\\1&0&0\\0&0&0\end{pmatrix}\)

Méthode On cherche une base \((b_1,b_2,b_3)\) avec \(f(b_1)=b_2\), \(f(b_2)=0\), \(f(b_3)=0\) : la matrice dans cette base est exactement celle demandée (colonne 1 = \((0,1,0)\), colonnes 2 et 3 nulles).

On prend \(b_1=e_1=(1,0,0)\) (\(f(e_1)\neq0\)), \(b_2=f(b_1)=(3,1,-1)\) (dans \(\operatorname{Ker}f\) car \(\operatorname{Im}f\subset\operatorname{Ker}f\), donc \(f(b_2)=0\)), et \(b_3=(1,1,0)\in\operatorname{Ker}f\), non colinéaire à \(b_2\) (\(b_2\) et \(b_3\) sont donc deux vecteurs indépendants du plan \(\operatorname{Ker}f\)).

Base ? \(Q=\begin{pmatrix}1&3&1\\0&1&1\\0&-1&0\end{pmatrix}\) (colonnes \(b_1,b_2,b_3\)) : \(\det Q=1\begin{vmatrix}1&1\\-1&0\end{vmatrix}=1\cdot(0+1)=1\neq0\) ✓.

Dans la base \((b_1,b_2,b_3)\) : \(\operatorname{Mat}(f)=\begin{pmatrix}0&0&0\\1&0&0\\0&0&0\end{pmatrix}\), donc \(A\) lui est semblable : \(Q^{-1}AQ=\begin{pmatrix}0&0&0\\1&0&0\\0&0&0\end{pmatrix}\).
Tout nilpotent d'indice 2 de \(\mathbb R^3\) de rang 1 est ainsi : c'est la « forme normale » : une chaîne \(b_1\mapsto b_2\mapsto0\) plus un vecteur du noyau \(b_3\) hors de cette chaîne.
Exercice 9 — Diagonalisation, \(A^n\) et suites récurrentes couplées♦♦♦
Énoncé TD3 Exercice 9 — endomorphisme de R2 de matrice A, base e1,e2, puissances, suites couplées
Énoncé (TD3, L. Graissot) — Exercice 9.

\(A=\begin{pmatrix}2&\tfrac23\\-\tfrac52&-\tfrac23\end{pmatrix}\), \(e_1=\begin{pmatrix}-2\\3\end{pmatrix}\), \(e_2=\begin{pmatrix}-2\\5\end{pmatrix}\).

1) \(\mathcal B'=(e_1,e_2)\) est une base de \(\mathbb R^2\) ; \(\operatorname{Mat}_{\mathcal B'}(f)\)

\(P=\begin{pmatrix}-2&-2\\3&5\end{pmatrix}\), \(\det P=(-2)(5)-(-2)(3)=-10+6=-4\neq0\) : \(e_1,e_2\) indépendants, donc base de \(\mathbb R^2\) (dimension 2).

Images : \(f(e_1)=Ae_1=\begin{pmatrix}2(-2)+\frac23\cdot3\\-\frac52(-2)-\frac23\cdot3\end{pmatrix}=\begin{pmatrix}-4+2\\5-2\end{pmatrix}=\begin{pmatrix}-2\\3\end{pmatrix}=e_1\) ; \(f(e_2)=Ae_2=\begin{pmatrix}-4+\frac{10}3\\5-\frac{10}3\end{pmatrix}=\begin{pmatrix}-\frac23\\\frac53\end{pmatrix}=\tfrac13\begin{pmatrix}-2\\5\end{pmatrix}=\tfrac13e_2\).

\[ \operatorname{Mat}_{\mathcal B'}(f)=D=\begin{pmatrix}1&0\\0&\tfrac13\end{pmatrix},\qquad D=P^{-1}AP. \] \(e_1\) et \(e_2\) sont des vecteurs propres pour les valeurs propres \(1\) et \(\tfrac13\).

2) \(A^n\) pour tout \(n\in\mathbb N\)

\(A=PDP^{-1}\), donc \(A^n=PD^nP^{-1}\) avec \(D^n=\begin{pmatrix}1&0\\0&3^{-n}\end{pmatrix}\) (valable aussi pour \(n=0\)). \(P^{-1}=\dfrac1{-4}\begin{pmatrix}5&2\\-3&-2\end{pmatrix}=\begin{pmatrix}-\frac54&-\frac12\\\frac34&\frac12\end{pmatrix}\) (formule \(\frac1{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}\)). Posons \(r=3^{-n}\) :

\[ PD^n=\begin{pmatrix}-2&-2r\\3&5r\end{pmatrix},\qquad A^n=\begin{pmatrix}-2&-2r\\3&5r\end{pmatrix}\begin{pmatrix}-\frac54&-\frac12\\\frac34&\frac12\end{pmatrix} =\begin{pmatrix}\frac52-\frac32r&1-r\\-\frac{15}4+\frac{15}4r&-\frac32+\frac52r\end{pmatrix}. \]
\[ A^n=\begin{pmatrix}\tfrac52-\tfrac32\,3^{-n}&1-3^{-n}\\[2pt]-\tfrac{15}4\big(1-3^{-n}\big)&-\tfrac32+\tfrac52\,3^{-n}\end{pmatrix},\quad n\in\mathbb N. \]

Contrôles : \(n=0\) (\(r=1\)) : \(A^0=I_2\) ✓. \(n=1\) (\(r=\frac13\)) : \(\begin{pmatrix}\frac52-\frac12&\frac23\\-\frac{15}4+\frac54&-\frac32+\frac56\end{pmatrix}=\begin{pmatrix}2&\frac23\\-\frac52&-\frac23\end{pmatrix}=A\) ✓. Limite : \(A^n\to\begin{pmatrix}\frac52&1\\-\frac{15}4&-\frac32\end{pmatrix}\) (projecteur sur \(\operatorname{Vect}(e_1)\) parallèlement à \(\operatorname{Vect}(e_2)\)).

3) Suites réelles telles que \(\begin{cases}x_{n+1}=2x_n+\frac23y_n\\y_{n+1}=-\frac52x_n-\frac23y_n\end{cases}\)

En posant \(X_n=\begin{pmatrix}x_n\\y_n\end{pmatrix}\) : \(X_{n+1}=AX_n\), donc \(X_n=A^nX_0\) (récurrence immédiate), avec \(X_0=(x_0,y_0)\in\mathbb R^2\) quelconque. Les suites solutions sont donc en bijection avec les conditions initiales \((x_0,y_0)\in\mathbb R^2\).

Forme explicite en développant \(A^nX_0\) :

\[ x_n=\Big(\tfrac52x_0+y_0\Big)-\Big(\tfrac32x_0+y_0\Big)3^{-n},\qquad y_n=-\Big(\tfrac{15}4x_0+\tfrac32y_0\Big)+\Big(\tfrac{15}4x_0+\tfrac52y_0\Big)3^{-n}. \]

Forme géométrique plus parlante : décomposer \(X_0=a\,e_1+b\,e_2\) (\((a,b)\) coordonnées de \(X_0\) dans \(\mathcal B'\)). Comme \(f(e_1)=e_1\) et \(f(e_2)=\tfrac13e_2\), on a \(X_n=a\,e_1+b\,3^{-n}e_2\) :

\[ \boxed{\ \begin{cases}x_n=-2a-2b\,3^{-n}\\ y_n=3a+5b\,3^{-n}\end{cases}\quad(a,b)\in\mathbb R^2\ } \] L'ensemble des suites solutions est un plan vectoriel de dimension 2 (\(\mathbb R\)-ev engendré par la suite constante \((-2,3)\) et la suite géométrique \(3^{-n}(-2,5)\)) ; elles convergent toutes vers \((-2a,\,3a)\).

Vérification : \(X_{n+1}=AX_n=a\,Ae_1+b\,3^{-n}Ae_2=a\,e_1+b\,3^{-n}\cdot\tfrac13e_2=a\,e_1+b\,3^{-(n+1)}e_2\) ✓.

Exercice 10 — non traité (scan incomplet). Le scan s'arrête au début de l'exercice 10 : on lit seulement « Soit \(f\in\mathcal L(\mathbb R^3)\), l'application linéaire dont la matrice dans la base canonique est : » puis la page se termine, sans la matrice ni les questions. Les pages 4 à 20 du PDF sont directement le cours (la page du TD qui contenait la suite manque). Il suffit d'envoyer une photo de cette dernière page du TD pour que je corrige l'exercice.

📂 Documents donnés

Fichier original lié à ce chapitre. Cliquez pour ouvrir.

TD3 (p.1-3) + cours du chapitre 3 (p.4-20) (L. Graissot)

Cursus AM2 · Mathématiques · L. Graissot, 2026-2027. Cours complet ; TD3 : exercices 1 → 9 corrigés (pas de corrigé officiel — résolu maison). Voir aussi Ch2 — Applications linéaires.