في الجبر الخطي العددي، طريقة غاوس-زايدل المعروفة أيضًا بطريقة ليبمان، هي طريقة تكرارية تستخدم في حل نظم المعادلات الخطية. وسميت على اسم عالمي الرياضيات الألمانيين كارل فريدريش غاوس وفيليب لودفيش فون زايدل. وذكرت فقط في رساله خاصة من غاوس إلى تلميذه كريستيان غيرلنغ عام 1823.[1] لكنها لم تنشر إلا من قبل زايدل عام 1874.
تعتمد طريقة غاوس زايدل على أسلوب التكرار لحل معادلات خطية عددها n بمجهول x.
![{\displaystyle A\mathbf {x} =\mathbf {b} }](https://wikimedia.org/api/rest_v1/media/math/render/svg/45d894430af69e29d6dda5aacbf4bb19336226a0)
وتعرّف بالتكرار:
![{\displaystyle L_{*}\mathbf {x} ^{(k+1)}=\mathbf {b} -U\mathbf {x} ^{(k)},}](https://wikimedia.org/api/rest_v1/media/math/render/svg/8b694a1c71c794c3758ebe45634e39d09d6d6011)
بحيث:
هو التكرار أو التقريب رقم k لـ
هو التكرار رقم k + 1 لـ
.
وبالتفصيل:
![{\displaystyle A={\begin{bmatrix}a_{11}&a_{12}&\cdots &a_{1n}\\a_{21}&a_{22}&\cdots &a_{2n}\\\vdots &\vdots &\ddots &\vdots \\a_{n1}&a_{n2}&\cdots &a_{nn}\end{bmatrix}},\qquad \mathbf {x} ={\begin{bmatrix}x_{1}\\x_{2}\\\vdots \\x_{n}\end{bmatrix}},\qquad \mathbf {b} ={\begin{bmatrix}b_{1}\\b_{2}\\\vdots \\b_{n}\end{bmatrix}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/98608e9e95d5acad149813eca75c8108acec308a)
![{\displaystyle A=L_{*}+U\qquad {\text{where}}\qquad L_{*}={\begin{bmatrix}a_{11}&0&\cdots &0\\a_{21}&a_{22}&\cdots &0\\\vdots &\vdots &\ddots &\vdots \\a_{n1}&a_{n2}&\cdots &a_{nn}\end{bmatrix}},\quad U={\begin{bmatrix}0&a_{12}&\cdots &a_{1n}\\0&0&\cdots &a_{2n}\\\vdots &\vdots &\ddots &\vdots \\0&0&\cdots &0\end{bmatrix}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7ae078c14c6e5b484013b66aa4054fc5f371a6f5)
ومن ثم يمكن كتابة نظام المعادلات الخطية كما يلي:
![{\displaystyle L_{*}\mathbf {x} =\mathbf {b} -U\mathbf {x} }](https://wikimedia.org/api/rest_v1/media/math/render/svg/3c144ca3b5e2ad27605c63404e870de7e95af59e)
![{\displaystyle \mathbf {x} ^{(k+1)}=L_{*}^{-1}(\mathbf {b} -U\mathbf {x} ^{(k)}).}](https://wikimedia.org/api/rest_v1/media/math/render/svg/1961ea40b002dd26d6947ab95b61553fa0136493)
[2]
و ![{\displaystyle b={\begin{bmatrix}11\\13\end{bmatrix}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/d702762de512e6e25d74f8a2c152fda48fbb0214)
نحتاج لاستخدام المعادلة
![{\displaystyle \mathbf {x} ^{(k+1)}=L_{*}^{-1}(\mathbf {b} -U\mathbf {x} ^{(k)})}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b938133547ed264ec456ecf64c164873164ed7cf)
في صورة
![{\displaystyle \mathbf {x} ^{(k+1)}=T\mathbf {x} ^{(k)}+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/5815855c28d0f03d019e2662ad2f74aa20fca8ce)
حيث:
و![{\displaystyle C=L_{*}^{-1}\mathbf {b} .}](https://wikimedia.org/api/rest_v1/media/math/render/svg/07bfa5ff410e80c64664b0126cba0a878385c266)
يجب أن نحلل المصفوفة
إلى مجموع
و
:
و![{\displaystyle U={\begin{bmatrix}0&3\\0&0\end{bmatrix}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/91e93490f693487e724c8d30775f138d6137597a)
ومعكوس
هو:
.
نستطيع الآن إيجاد:
![{\displaystyle T=-{\begin{bmatrix}0.0625&0.0000\\0.0398&-0.0909\end{bmatrix}}\times {\begin{bmatrix}0&3\\0&0\end{bmatrix}}={\begin{bmatrix}0.000&-0.1875\\0.000&-0.1193\end{bmatrix}},}](https://wikimedia.org/api/rest_v1/media/math/render/svg/04766bb18ac876dbe66c75ebd79a5ff92cba7bbb)
![{\displaystyle C={\begin{bmatrix}0.0625&0.0000\\0.0398&-0.0909\end{bmatrix}}\times {\begin{bmatrix}11\\13\end{bmatrix}}={\begin{bmatrix}0.6875\\-0.7443\end{bmatrix}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/376a3236d55768b6b83a78036f88dc7648a43332)
بذلك نكون قد حصلنا على
و
نفرض:
![{\displaystyle x^{(0)}={\begin{bmatrix}1.0\\1.0\end{bmatrix}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/68d0295474f1320ed87526e067a2d6049ac5f09e)
ثم يمكننا أن نحسب:
![{\displaystyle x^{(1)}={\begin{bmatrix}0.000&-0.1875\\0.000&-0.1193\end{bmatrix}}\times {\begin{bmatrix}1.0\\1.0\end{bmatrix}}+{\begin{bmatrix}0.6875\\-0.7443\end{bmatrix}}={\begin{bmatrix}0.5000\\-0.8636\end{bmatrix}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/dc9a7883689319a1b82d9c23b33bf78bc57ed4b7)
![{\displaystyle x^{(2)}={\begin{bmatrix}0.000&-0.1875\\0.000&-0.1193\end{bmatrix}}\times {\begin{bmatrix}0.5000\\-0.8636\end{bmatrix}}+{\begin{bmatrix}0.6875\\-0.7443\end{bmatrix}}={\begin{bmatrix}0.8494\\-0.6413\end{bmatrix}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/515baeaf2b0bf45d6608e2654d4a46cc66ede318)
![{\displaystyle x^{(3)}={\begin{bmatrix}0.000&-0.1875\\0.000&-0.1193\end{bmatrix}}\times {\begin{bmatrix}0.8494\\-0.6413\\\end{bmatrix}}+{\begin{bmatrix}0.6875\\-0.7443\end{bmatrix}}={\begin{bmatrix}0.8077\\-0.6678\end{bmatrix}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2a292c704d1aca20fade7aa689b911f2a0d5dfa7)
![{\displaystyle x^{(4)}={\begin{bmatrix}0.000&-0.1875\\0.000&-0.1193\end{bmatrix}}\times {\begin{bmatrix}0.8077\\-0.6678\end{bmatrix}}+{\begin{bmatrix}0.6875\\-0.7443\end{bmatrix}}={\begin{bmatrix}0.8127\\-0.6646\end{bmatrix}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/daa6bb8fc2a6d8cde5e101a4d3d62d45faddc425)
![{\displaystyle x^{(5)}={\begin{bmatrix}0.000&-0.1875\\0.000&-0.1193\end{bmatrix}}\times {\begin{bmatrix}0.8127\\-0.6646\end{bmatrix}}+{\begin{bmatrix}0.6875\\-0.7443\end{bmatrix}}={\begin{bmatrix}0.8121\\-0.6650\end{bmatrix}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/82cb7207ca43e3f7254cc748b6887d3e82e89947)
![{\displaystyle x^{(6)}={\begin{bmatrix}0.000&-0.1875\\0.000&-0.1193\end{bmatrix}}\times {\begin{bmatrix}0.8121\\-0.6650\end{bmatrix}}+{\begin{bmatrix}0.6875\\-0.7443\end{bmatrix}}={\begin{bmatrix}0.8122\\-0.6650\end{bmatrix}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/56e63c683b190afa5da93fcc95652c5f64f30b5d)
![{\displaystyle x^{(7)}={\begin{bmatrix}0.000&-0.1875\\0.000&-0.1193\end{bmatrix}}\times {\begin{bmatrix}0.8122\\-0.6650\end{bmatrix}}+{\begin{bmatrix}0.6875\\-0.7443\end{bmatrix}}={\begin{bmatrix}0.8122\\-0.6650\end{bmatrix}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/eea1ffbb81a7477d8244b359bdebb8821230d15e)
وبذلك تكون قيمة x:
![{\displaystyle \mathbf {x} =A^{-1}\mathbf {b} ={\begin{bmatrix}0.8122\\-0.6650\end{bmatrix}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/a26aad07dfb2b75985da3335ec9c900c136e3039)