I. Système linéaire On considère le système linéaire suivant :
{ a 11 x 1 + a 12 x 2 + ⋯ + a 1 n x n = b 1 a 21 x 1 + a 22 x 2 + … + a 2 n x n = b 2 ⋯ = a n 1 x 1 + a n 2 x 2 + … + a n n x n = b n \left\lbrace\begin{matrix} a_{11}x_1 + a_{12}x_2 + \cdots + a_{1n}x_n = b_1 \\ a_{21}x_1 + a_{22}x_2 + \ldots + a_{2n}x_n = b_2\\ \qquad\cdots\qquad \quad\quad\quad\quad\quad\quad= \\ a_{n1}x_1 + a_{n2}x_2 + \ldots + a_{nn}x_n = b_n \end{matrix}\right. ⎩ ⎨ ⎧ a 11 x 1 + a 12 x 2 + ⋯ + a 1 n x n = b 1 a 21 x 1 + a 22 x 2 + … + a 2 n x n = b 2 ⋯ = a n 1 x 1 + a n 2 x 2 + … + a nn x n = b n
Propriété : un système linéaire de la forme ci-dessus est équivalent à l’équation A X = B AX = B A X = B où :
Si A A A est inversible, alors l’équation A X = B AX = B A X = B admet pour unique solution : X = A − 1 B X = A^{-1}B X = A − 1 B
II. Exemple de résolution d'un système linéaire à l'aide des matrices Soit à résoudre le système { 2 x + 3 y = 5 4 x − y = 1 \left\lbrace\begin{matrix}2x + 3y = 5 \\ 4x -~ y = 1\end{matrix}\right. { 2 x + 3 y = 5 4 x − y = 1
1. 1. 1. Transcription matricielle :
On pose : A = ( 2 3 4 − 1 ) A = \begin{pmatrix} 2 \quad ~3 \\ 4 \quad -1 \end{pmatrix} A = ( 2 3 4 − 1 ) ; X = ( x y ) X = \begin{pmatrix} x \\ y \end{pmatrix} X = ( x y ) et B = ( 5 1 ) B = \begin{pmatrix} 5 \\ 1 \end{pmatrix} B = ( 5 1 )
Alors le système s’écrit : A X = B AX = B A X = B
2. 2. 2. Calcul du déterminant de A A A :
det ( A ) = 2 × ( − 1 ) − 4 × 3 = − 2 − 12 = − 14 \det(A) = 2 \times (-1) - 4 \times 3 = -2 - 12 = -14 det ( A ) = 2 × ( − 1 ) − 4 × 3 = − 2 − 12 = − 14
3. 3. 3. A A A est inversible car det ( A ) ≠ 0 \det(A) \ne 0 det ( A ) = 0 . Calcul de A − 1 A^{-1} A − 1 :
A − 1 = 1 det ( A ) ( − 1 − 3 − 4 2 ) = 1 − 14 ( − 1 − 3 − 4 2 ) A^{-1} = \dfrac{1}{\det(A)} \begin{pmatrix} -1 \quad -3 \\ -4 \quad ~ 2 \end{pmatrix}= \dfrac{1}{-14} \begin{pmatrix} -1 \quad -3 \\ -4 \quad ~ 2 \end{pmatrix} A − 1 = det ( A ) 1 ( − 1 − 3 − 4 2 ) = − 14 1 ( − 1 − 3 − 4 2 )
4. 4. 4. Calcul de X = A − 1 B X = A^{-1}B X = A − 1 B :
X = 1 − 14 ( − 1 − 3 − 4 2 ) ( 5 1 ) X = \dfrac{1}{-14} \begin{pmatrix} -1 \quad -3 \\ -4 \quad 2 \end{pmatrix} \begin{pmatrix} 5 \\ 1 \end{pmatrix} X = − 14 1 ( − 1 − 3 − 4 2 ) ( 5 1 )
On effectue le produit matriciel :
( − 1 × 5 + ( − 3 ) × 1 − 4 × 5 + 2 × 1 ) = ( − 5 − 3 − 20 + 2 ) = ( − 8 − 18 ) \begin{pmatrix} -1 \times 5 + (-3) \times 1 \\ -4 \times 5 + 2 \times 1 \end{pmatrix} = \begin{pmatrix} -5 - 3 \\ -20 + 2 \end{pmatrix} = \begin{pmatrix} -8 \\ -18 \end{pmatrix} ( − 1 × 5 + ( − 3 ) × 1 − 4 × 5 + 2 × 1 ) = ( − 5 − 3 − 20 + 2 ) = ( − 8 − 18 )
Donc :
X = 1 − 14 ( − 8 − 18 ) = ( 4 7 9 7 ) X = \dfrac{1}{-14} \begin{pmatrix} -8 \\ -18 \end{pmatrix} = \begin{pmatrix} \dfrac{4}{7} \\ \dfrac{9}{7} \end{pmatrix} X = − 14 1 ( − 8 − 18 ) = 7 4 7 9
5. 5. 5. Conclusion : la solution du système s'écrit S = { ( 4 7 ; 9 7 ) } S=\left\lbrace\left(\dfrac 47;\dfrac 97\right)\right\rbrace S = { ( 7 4 ; 7 9 ) }