Serie 1 TD wadie

Table des matières

  1. Série n°1: Algèbre linéaire

1. Série n°1: Algèbre linéaire

1.1 Exercice 1: Sous-espaces vectoriels

Pour déterminer si un ensemble est un sous-espace vectoriel de R3\mathbb{R}^3, il faut vérifier trois conditions:

  • L'ensemble contient le vecteur nul.
  • L'ensemble est stable par addition: si u⃗\vec{u} et v⃗\vec{v} sont dans l'ensemble, alors u⃗+v⃗\vec{u} + \vec{v} l'est aussi.
  • L'ensemble est stable par multiplication par un scalaire: si u⃗\vec{u} est dans l'ensemble et λ∈R\lambda \in \mathbb{R}, alors λu⃗\lambda \vec{u} l'est aussi.

Les ensembles suivants sont examinés:

  • F1={(x,y,z)∈R3∣x+y−z=0}F_1 = \{(x, y, z) \in \mathbb{R}^3 \mid x + y - z = 0\}. Cet ensemble est un plan passant par l'origine, donc c'est un sous-espace vectoriel.
  • F2={(x,y,z)∈R3∣x−y+z=1}F_2 = \{(x, y, z) \in \mathbb{R}^3 \mid x - y + z = 1\}. Cet ensemble ne contient pas le vecteur nul (0,0,0)(0,0,0) car 0−0+0≠10 - 0 + 0 \neq 1. Il ne s'agit donc pas d'un sous-espace vectoriel.
  • F3={(x,y,z)∈R3∣xy=0}F_3 = \{(x, y, z) \in \mathbb{R}^3 \mid xy = 0\}. Cet ensemble n'est pas stable par addition. Par exemple, (1,0,0)∈F3(1, 0, 0) \in F_3 et (0,1,0)∈F3(0, 1, 0) \in F_3, mais leur somme (1,1,0)(1, 1, 0) n'est pas dans F3F_3 car 1×1≠01 \times 1 \neq 0. Il ne s'agit donc pas d'un sous-espace vectoriel 1.

1.2 Exercice 2: Combinaisons linéaires et familles libres

On considère les vecteurs u=(1,2,3)u = (1, 2, 3), v=(2,−1,1)v = (2, -1, 1), et w=(4,3,7)w = (4, 3, 7) dans R3\mathbb{R}^3.

  1. Pour déterminer si ww est une combinaison linéaire de uu et vv, on cherche des scalaires α\alpha et β\beta tels que w=αu+βvw = \alpha u + \beta v. Cela conduit au système d'équations: 4=α(1)+β(2)4 = \alpha(1) + \beta(2) 3=α(2)+β(−1)3 = \alpha(2) + \beta(-1) 7=α(3)+β(1)7 = \alpha(3) + \beta(1) En résolvant ce système, on trouve α=1\alpha = 1 et β=2\beta = 2. Donc, w=1u+2vw = 1u + 2v 1.

  2. La famille {u,v,w}\{u, v, w\} est libre si la seule combinaison linéaire de ces vecteurs égale au vecteur nul est celle où tous les coefficients sont nuls. On cherche donc α,β,γ\alpha, \beta, \gamma tels que αu+βv+γw=(0,0,0)\alpha u + \beta v + \gamma w = (0, 0, 0). Puisque w=u+2vw = u + 2v, on peut écrire u+2v−w=(0,0,0)u + 2v - w = (0, 0, 0). Cela correspond à une combinaison linéaire non triviale (avec des coefficients α=1,β=2,γ=−1\alpha=1, \beta=2, \gamma=-1) égale au vecteur nul.

La famille {u,v,w}\{u, v, w\} n'est donc pas libre 1.

📝 Pour déterminer si w=(4,3,7)w = (4, 3, 7) est une combinaison linéaire de u=(1,2,3)u = (1, 2, 3) et v=(2,−1,1)v = (2, -1, 1), on cherche α,β\alpha, \beta tels que w=αu+βvw = \alpha u + \beta v. Cela mène au système 4=α+2β4 = \alpha + 2\beta, 3=2α−β3 = 2\alpha - \beta, 7=3α+β7 = 3\alpha + \beta. La résolution donne α=1\alpha = 1 et β=2\beta = 2, donc w=1u+2vw = 1u + 2v 1.

1.3 Exercice 3: Bases et dimension

  1. Pour montrer que B={(1,1,0),(0,1,1),(1,0,1)}B = \{(1, 1, 0), (0, 1, 1), (1, 0, 1)\} est une base de R3\mathbb{R}^3, il faut prouver que cette famille est libre et qu'elle engendre R3\mathbb{R}^3. Comme la famille contient 3 vecteurs dans un espace de dimension 3, il suffit de montrer qu'elle est libre. On cherche α,β,γ\alpha, \beta, \gamma tels que α(1,1,0)+β(0,1,1)+γ(1,0,1)=(0,0,0)\alpha(1, 1, 0) + \beta(0, 1, 1) + \gamma(1, 0, 1) = (0, 0, 0). Ce système donne: α+γ=0\alpha + \gamma = 0 α+β=0\alpha + \beta = 0 β+γ=0\beta + \gamma = 0 La seule solution est α=β=γ=0\alpha = \beta = \gamma = 0. La famille est donc libre et constitue une base de R3\mathbb{R}^3 1.

  2. Pour trouver les coordonnées du vecteur (2,3,5)(2, 3, 5) dans la base BB, on cherche α,β,γ\alpha, \beta, \gamma tels que (2,3,5)=α(1,1,0)+β(0,1,1)+γ(1,0,1)(2, 3, 5) = \alpha(1, 1, 0) + \beta(0, 1, 1) + \gamma(1, 0, 1). Le système d'équations est: α+γ=2\alpha + \gamma = 2 α+β=3\alpha + \beta = 3 β+γ=5\beta + \gamma = 5 En résolvant ce système, on obtient α=0\alpha = 0, β=3\beta = 3, et γ=2\gamma = 2. Les coordonnées sont (0,3,2)(0, 3, 2) 1.

  3. Soit F={(x,y,z)∈R3∣x+y−z=0}F = \{(x, y, z) \in \mathbb{R}^3 \mid x + y - z = 0\}.

  • Vérification que FF est un sous-espace vectoriel: Le vecteur nul (0,0,0)(0,0,0) satisfait 0+0−0=00+0-0=0, donc (0,0,0)∈F(0,0,0) \in F. Si (x1,y1,z1)∈F(x_1, y_1, z_1) \in F et (x2,y2,z2)∈F(x_2, y_2, z_2) \in F, alors x1+y1−z1=0x_1+y_1-z_1=0 et x2+y2−z2=0x_2+y_2-z_2=0. Pour leur somme (x1+x2,y1+y2,z1+z2)(x_1+x_2, y_1+y_2, z_1+z_2), on a (x1+x2)+(y1+y2)−(z1+z2)=(x1+y1−z1)+(x2+y2−z2)=0+0=0(x_1+x_2) + (y_1+y_2) - (z_1+z_2) = (x_1+y_1-z_1) + (x_2+y_2-z_2) = 0+0=0. FF est donc stable par addition. De même, pour λ(x1,y1,z1)\lambda(x_1, y_1, z_1), on a λx1+λy1−λz1=λ(x1+y1−z1)=λ(0)=0\lambda x_1 + \lambda y_1 - \lambda z_1 = \lambda(x_1+y_1-z_1) = \lambda(0) = 0. FF est stable par multiplication par un scalaire. FF est donc un sous-espace vectoriel.
  • Base et dimension de FF: L'équation x+y−z=0x + y - z = 0 peut être réécrite comme z=x+yz = x + y. Les vecteurs de FF sont de la forme (x,y,x+y)=x(1,0,1)+y(0,1,1)(x, y, x+y) = x(1, 0, 1) + y(0, 1, 1). La famille {(1,0,1),(0,1,1)}\{(1, 0, 1), (0, 1, 1)\} engendre FF. Ces deux vecteurs sont linéairement indépendants car aucun n'est un multiple de l'autre. Ils forment donc une base de FF. La dimension de FF est le nombre de vecteurs dans sa base, soit 2 1.

1.4 Exercice 4: Matrices et déterminants

Soient les matrices: A=(102−131021)A = \begin{pmatrix} 1 & 0 & 2 \\ -1 & 3 & 1 \\ 0 & 2 & 1 \end{pmatrix}, B=(21010−1311)B = \begin{pmatrix} 2 & 1 & 0 \\ 1 & 0 & -1 \\ 3 & 1 & 1 \end{pmatrix}.

  1. Calculs matriciels:
  • A+B=(1+20+12+0−1+13+01+(−1)0+32+11+1)=(312030332)A + B = \begin{pmatrix} 1+2 & 0+1 & 2+0 \\ -1+1 & 3+0 & 1+(-1) \\ 0+3 & 2+1 & 1+1 \end{pmatrix} = \begin{pmatrix} 3 & 1 & 2 \\ 0 & 3 & 0 \\ 3 & 3 & 2 \end{pmatrix}.
  • 2A−B=2(102−131021)−(21010−1311)=(204−262042)−(21010−1311)=(0−14−363−331)2A - B = 2\begin{pmatrix} 1 & 0 & 2 \\ -1 & 3 & 1 \\ 0 & 2 & 1 \end{pmatrix} - \begin{pmatrix} 2 & 1 & 0 \\ 1 & 0 & -1 \\ 3 & 1 & 1 \end{pmatrix} = \begin{pmatrix} 2 & 0 & 4 \\ -2 & 6 & 2 \\ 0 & 4 & 2 \end{pmatrix} - \begin{pmatrix} 2 & 1 & 0 \\ 1 & 0 & -1 \\ 3 & 1 & 1 \end{pmatrix} = \begin{pmatrix} 0 & -1 & 4 \\ -3 & 6 & 3 \\ -3 & 3 & 1 \end{pmatrix}.
  • AB=(102−131021)(21010−1311)=(1(2)+0(1)+2(3)1(1)+0(0)+2(1)1(0)+0(−1)+2(1)−1(2)+3(1)+1(3)−1(1)+3(0)+1(1)−1(0)+3(−1)+1(1)0(2)+2(1)+1(3)0(1)+2(0)+1(1)0(0)+2(−1)+1(1))=(83240−251−1)AB = \begin{pmatrix} 1 & 0 & 2 \\ -1 & 3 & 1 \\ 0 & 2 & 1 \end{pmatrix} \begin{pmatrix} 2 & 1 & 0 \\ 1 & 0 & -1 \\ 3 & 1 & 1 \end{pmatrix} = \begin{pmatrix} 1(2)+0(1)+2(3) & 1(1)+0(0)+2(1) & 1(0)+0(-1)+2(1) \\ -1(2)+3(1)+1(3) & -1(1)+3(0)+1(1) & -1(0)+3(-1)+1(1) \\ 0(2)+2(1)+1(3) & 0(1)+2(0)+1(1) & 0(0)+2(-1)+1(1) \end{pmatrix} = \begin{pmatrix} 8 & 3 & 2 \\ 4 & 0 & -2 \\ 5 & 1 & -1 \end{pmatrix} 1.
  1. Calcul des déterminants:
  • det⁡(A)=1(3×1−1×2)−0(...)+2((−1)×2−3×0)=1(3−2)+2(−2)=1−4=−3\det(A) = 1(3 \times 1 - 1 \times 2) - 0(...) + 2((-1) \times 2 - 3 \times 0) = 1(3-2) + 2(-2) = 1 - 4 = -3.
  • det⁡(B)=2(0×1−(−1)×1)−1(1×1−(−1)×3)+0(...)=2(0+1)−1(1+3)=2(1)−1(4)=2−4=−2\det(B) = 2(0 \times 1 - (-1) \times 1) - 1(1 \times 1 - (-1) \times 3) + 0(...) = 2(0+1) - 1(1+3) = 2(1) - 1(4) = 2 - 4 = -2 1.
  1. Pour la matrice M=(123246105)M = \begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \\ 1 & 0 & 5 \end{pmatrix}, la deuxième ligne est le double de la première ligne (2×(1,2,3)=(2,4,6)2 \times (1, 2, 3) = (2, 4, 6)). Lorsque les lignes (ou colonnes) d'une matrice sont linéairement dépendantes, son déterminant est nul. Donc, det⁡(M)=0\det(M) = 0 1.

  2. Pour la matrice C=(2153)C = \begin{pmatrix} 2 & 1 \\ 5 & 3 \end{pmatrix}:

  • det⁡(C)=2×3−1×5=6−5=1\det(C) = 2 \times 3 - 1 \times 5 = 6 - 5 = 1.
  • La matrice inverse C−1C^{-1} est donnée par 1det⁡(C)(d−b−ca)\frac{1}{\det(C)} \begin{pmatrix} d & -b \\ -c & a \end{pmatrix} pour C=(abcd)C = \begin{pmatrix} a & b \\ c & d \end{pmatrix}. C−1=11(3−1−52)=(3−1−52)C^{-1} = \frac{1}{1} \begin{pmatrix} 3 & -1 \\ -5 & 2 \end{pmatrix} = \begin{pmatrix} 3 & -1 \\ -5 & 2 \end{pmatrix} 1.

1.5 Exercice 5: Résolution par la méthode de Cramer

La méthode de Cramer permet de résoudre un système linéaire dont le déterminant de la matrice des coefficients est non nul. Pour un système AX=BAX=B, la solution pour xix_i est donnée par xi=det⁡(Ai)det⁡(A)x_i = \frac{\det(A_i)}{\det(A)}, où AiA_i est la matrice obtenue en remplaçant la ii-ème colonne de AA par le vecteur BB.

  1. Système: {2x+3y=8x−y=−1\begin{cases} 2x + 3y = 8 \\ x - y = -1 \end{cases} La matrice des coefficients est A=(231−1)A = \begin{pmatrix} 2 & 3 \\ 1 & -1 \end{pmatrix}. Son déterminant est det⁡(A)=2(−1)−3(1)=−2−3=−5\det(A) = 2(-1) - 3(1) = -2 - 3 = -5.

Pour xx, on remplace la première colonne par (8,−1)(8, -1): Ax=(83−1−1)A_x = \begin{pmatrix} 8 & 3 \\ -1 & -1 \end{pmatrix}. det⁡(Ax)=8(−1)−3(−1)=−8+3=−5\det(A_x) = 8(-1) - 3(-1) = -8 + 3 = -5. x=det⁡(Ax)det⁡(A)=−5−5=1x = \frac{\det(A_x)}{\det(A)} = \frac{-5}{-5} = 1. Pour yy, on remplace la deuxième colonne par (8,−1)(8, -1): Ay=(281−1)A_y = \begin{pmatrix} 2 & 8 \\ 1 & -1 \end{pmatrix}. det⁡(Ay)=2(−1)−8(1)=−2−8=−10\det(A_y) = 2(-1) - 8(1) = -2 - 8 = -10. y=det⁡(Ay)det⁡(A)=−10−5=2y = \frac{\det(A_y)}{\det(A)} = \frac{-10}{-5} = 2.

La solution est (x,y)=(1,2)(x, y) = (1, 2) 2.

  1. Système: {x+y+z=62x−y+z=3x+2y−z=2\begin{cases} x + y + z = 6 \\ 2x - y + z = 3 \\ x + 2y - z = 2 \end{cases} La matrice des coefficients est A=(1112−1112−1)A = \begin{pmatrix} 1 & 1 & 1 \\ 2 & -1 & 1 \\ 1 & 2 & -1 \end{pmatrix}. det⁡(A)=1(1−2)−1(−2−1)+1(4−(−1))=1(−1)−1(−3)+1(5)=−1+3+5=7\det(A) = 1(1 - 2) - 1(-2 - 1) + 1(4 - (-1)) = 1(-1) - 1(-3) + 1(5) = -1 + 3 + 5 = 7. Pour xx: Ax=(6113−1122−1)A_x = \begin{pmatrix} 6 & 1 & 1 \\ 3 & -1 & 1 \\ 2 & 2 & -1 \end{pmatrix}. det⁡(Ax)=6(1−2)−1(−3−2)+1(6−(−2))=6(−1)−1(−5)+1(8)=−6+5+8=7\det(A_x) = 6(1 - 2) - 1(-3 - 2) + 1(6 - (-2)) = 6(-1) - 1(-5) + 1(8) = -6 + 5 + 8 = 7. x=77=1x = \frac{7}{7} = 1.

Pour yy: Ay=(16123112−1)A_y = \begin{pmatrix} 1 & 6 & 1 \\ 2 & 3 & 1 \\ 1 & 2 & -1 \end{pmatrix}. det⁡(Ay)=1(−3−2)−6(−2−1)+1(4−3)=1(−5)−6(−3)+1(1)=−5+18+1=14\det(A_y) = 1(-3 - 2) - 6(-2 - 1) + 1(4 - 3) = 1(-5) - 6(-3) + 1(1) = -5 + 18 + 1 = 14. y=147=2y = \frac{14}{7} = 2. Pour zz: Az=(1162−13122)A_z = \begin{pmatrix} 1 & 1 & 6 \\ 2 & -1 & 3 \\ 1 & 2 & 2 \end{pmatrix}. det⁡(Az)=1(−2−6)−1(4−3)+6(4−(−1))=1(−8)−1(1)+6(5)=−8−1+30=21\det(A_z) = 1(-2 - 6) - 1(4 - 3) + 6(4 - (-1)) = 1(-8) - 1(1) + 6(5) = -8 - 1 + 30 = 21. z=217=3z = \frac{21}{7} = 3.

La solution est (x,y,z)=(1,2,3)(x, y, z) = (1, 2, 3) 2.

📝 Pour résoudre le système {2x+3y=8x−y=−1\begin{cases} 2x + 3y = 8 \\ x - y = -1 \end{cases} par la méthode de Cramer, on calcule det⁡(A)=−5\det(A) = -5. Pour xx, on calcule det⁡(Ax)=det⁡(83−1−1)=−5\det(A_x) = \det \begin{pmatrix} 8 & 3 \\ -1 & -1 \end{pmatrix} = -5. Donc x=−5−5=1x = \frac{-5}{-5} = 1. Pour yy, on calcule det⁡(Ay)=det⁡(281−1)=−10\det(A_y) = \det \begin{pmatrix} 2 & 8 \\ 1 & -1 \end{pmatrix} = -10. Donc y=−10−5=2y = \frac{-10}{-5} = 2. La solution est (1,2)(1, 2) 2.

1.6 Exercice 6: Méthode de Gauss

La méthode du pivot de Gauss consiste à transformer le système linéaire en un système équivalent plus simple (forme échelonnée) à l'aide d'opérations élémentaires sur les lignes de la matrice augmentée.

  1. Système: {x+y+2z=42x−y+z=53x+y−z=0\begin{cases} x + y + 2z = 4 \\ 2x - y + z = 5 \\ 3x + y - z = 0 \end{cases} Matrice augmentée: (112∣42−11∣531−1∣0)\begin{pmatrix} 1 & 1 & 2 & | & 4 \\ 2 & -1 & 1 & | & 5 \\ 3 & 1 & -1 & | & 0 \end{pmatrix}. Opérations: L2←L2−2L1L_2 \leftarrow L_2 - 2L_1, L3←L3−3L1L_3 \leftarrow L_3 - 3L_1. (112∣40−3−3∣−30−2−7∣−12)\begin{pmatrix} 1 & 1 & 2 & | & 4 \\ 0 & -3 & -3 & | & -3 \\ 0 & -2 & -7 & | & -12 \end{pmatrix}. L2←−13L2L_2 \leftarrow -\frac{1}{3}L_2. (112∣4011∣10−2−7∣−12)\begin{pmatrix} 1 & 1 & 2 & | & 4 \\ 0 & 1 & 1 & | & 1 \\ 0 & -2 & -7 & | & -12 \end{pmatrix}.

Opération: L3←L3+2L2L_3 \leftarrow L_3 + 2L_2. (112∣4011∣100−5∣−10)\begin{pmatrix} 1 & 1 & 2 & | & 4 \\ 0 & 1 & 1 & | & 1 \\ 0 & 0 & -5 & | & -10 \end{pmatrix}. La dernière ligne donne −5z=−10-5z = -10, donc z=2z = 2.

La deuxième ligne donne y+z=1y + z = 1, donc y+2=1y + 2 = 1, ce qui donne y=−1y = -1. La première ligne donne x+y+2z=4x + y + 2z = 4, donc x+(−1)+2(2)=4x + (-1) + 2(2) = 4, ce qui donne x−1+4=4x - 1 + 4 = 4, donc x=1x = 1.

Ce système admet une solution unique: (1,−1,2)(1, -1, 2) 2.

  1. Système: {x+y+z=1x+2y+3z=22x+3y+4z=3\begin{cases} x + y + z = 1 \\ x + 2y + 3z = 2 \\ 2x + 3y + 4z = 3 \end{cases} Matrice augmentée: (111∣1123∣2234∣3)\begin{pmatrix} 1 & 1 & 1 & | & 1 \\ 1 & 2 & 3 & | & 2 \\ 2 & 3 & 4 & | & 3 \end{pmatrix}. Opérations: L2←L2−L1L_2 \leftarrow L_2 - L_1, L3←L3−2L1L_3 \leftarrow L_3 - 2L_1. (111∣1012∣1012∣1)\begin{pmatrix} 1 & 1 & 1 & | & 1 \\ 0 & 1 & 2 & | & 1 \\ 0 & 1 & 2 & | & 1 \end{pmatrix}.

Opération: L3←L3−L2L_3 \leftarrow L_3 - L_2. (111∣1012∣1000∣0)\begin{pmatrix} 1 & 1 & 1 & | & 1 \\ 0 & 1 & 2 & | & 1 \\ 0 & 0 & 0 & | & 0 \end{pmatrix}. La dernière ligne 0=00=0 indique une dépendance linéaire.

Le système a une infinité de solutions. De la deuxième ligne: y+2z=1y + 2z = 1, donc y=1−2zy = 1 - 2z.

De la première ligne: x+y+z=1x + y + z = 1, donc x+(1−2z)+z=1x + (1 - 2z) + z = 1, ce qui donne x+1−z=1x + 1 - z = 1, donc x=zx = z. Les solutions sont de la forme (z,1−2z,z)(z, 1-2z, z) pour tout z∈Rz \in \mathbb{R} 2.

  1. Système: {x+y+z=12x+2y+2z=3\begin{cases} x + y + z = 1 \\ 2x + 2y + 2z = 3 \end{cases} Matrice augmentée: (111∣1222∣3)\begin{pmatrix} 1 & 1 & 1 & | & 1 \\ 2 & 2 & 2 & | & 3 \end{pmatrix}. Opération: L2←L2−2L1L_2 \leftarrow L_2 - 2L_1. (111∣1000∣1)\begin{pmatrix} 1 & 1 & 1 & | & 1 \\ 0 & 0 & 0 & | & 1 \end{pmatrix}.

La dernière ligne 0=10 = 1 est une contradiction. Ce système n'admet aucune solution 2.

Voir aussi