Chapterبەش 6 · Lectureوانە 6.7
Finding the Inverse by Row Operations (Gauss–Jordan)دۆزینەوەی پێچەوانە بە کارە سەرەتاییەکانی ڕیز (لابردنی گاوس–جۆردان)
The three elementary row operations, the augmented matrix and why row operations turn it into ; worked and examples, how a singular matrix shows itself (a zero row), the notes' homework solved both ways, and which method to use when.
سێ ، و بۆچی دەیکەن بە ؛ نموونەی شیکراوەی و ، چۆن خۆی دەردەخات (ڕیزێکی سفر)، ئەرکی تێبینییەکان بە هەردوو ڕێگە و کام ڕێگە و کەی.
What you will learnچی فێر دەبیت
- Name the three elementary row operations, write them in notation and undo each one.
- Find the inverse of a or matrix by reducing to .
- Recognise a singular matrix during the elimination.
- Choose between the shortcut, the adjugate and Gauss–Jordan.
- ناوی سێ بهێنیت، بە نووسینی بیاننووسیت و هەریەکەیان هەڵبوەشێنیتەوە.
- پێچەوانەی یان بدۆزیتەوە بە گۆڕینی بۆ .
- لە کاتی لابردندا بناسیتەوە.
- لە نێوان ڕێگە کورتەکە، و هەڵبژێریت.
The three elementary row operationsسێ کاری سەرەتایی ڕیز
The notes use row operations without naming them. There are exactly three , and each one has a short notation ( means “row 2”):
تێبینییەکان بەکاردەهێنن بێ ئەوەی ناویان بهێنن. ڕێک سێ هەیە و هەریەکەیان نووسینێکی کورتی هەیە ( واتە «ڕیزی 2»):
| Operationکار | Notationنووسین | How to undo itچۆن هەڵدەوەشێتەوە |
|---|---|---|
| Swap two rowsگۆڕینەوەی شوێنی دوو ڕیز | Swap them againدیسان بیانگۆڕەوە | |
| Multiply a row by a number لێکدانی ڕیزێک لە ژمارەیەکی | Multiply by لە بیدە | |
| Add a multiple of another rowزیادکردنی چەند هێندەی ڕیزێکی تر | Subtract the same multiple: هەمان چەند هێندە دەربکە: |
Every operation can be undone, so no information is lost — that is why is not allowed (multiplying a row by 0 wipes it out). Their effect on the determinant is in Properties of Determinants; here they build inverses.
هەموو کارێک دەکرێت هەڵبوەشێنرێتەوە، بۆیە هیچ زانیارییەک ون نابێت — هەر بۆیە ڕێگەپێدراو نییە (لێکدانی ڕیزێک لە 0 دەیسڕێتەوە). کاریگەرییان لەسەر لە تایبەتمەندییەکانی دیتەرمینانتدایە؛ لێرەدا پێچەوانە دروست دەکەن.
The three elementary row operations: swap two rows, multiply a row by a non-zero number, and add a multiple of one row to another.
سێ : گۆڕینەوەی شوێنی دوو ڕیز، لێکدانی ڕیزێک لە ژمارەیەکی ناسفر و زیادکردنی چەند هێندەی ڕیزێک بۆ ڕیزێکی تر.
Plays 1:03-2:57 ('Elementary row operations'). The rest of the video uses them to solve a system of equations, not to find an inverse.
لە 1:03 تا 2:57 پەخش دەبێت (بەشی «Elementary row operations»). ئەوەی تری ڤیدیۆکە بەکاریان دەهێنێت بۆ چارەسەرکردنی کۆمەڵێک ، نەک بۆ دۆزینەوەی .
The idea: becomes بیرۆکەکە: دەبێتە
Write and the side by side, with a line between them. This long matrix is the . Then use row operations on the whole rows until the left half becomes . The right half is then . This is , Method 3 of the notes.
و لە تەنیشت یەکتر بنووسە و هێڵێک لە نێوانیاندا دابنێ. ئەم درێژە ـە. پاشان لەسەر هەموو ڕیزەکان بەکاربهێنە تا نیوەی چەپ دەبێتە . ئەوکات نیوەی ڕاست ـە. ئەمە ـە، ڕێگەی 3ی تێبینییەکان.
Why it works. Each row operation is the same as multiplying on the left by a simple matrix. If the operations turn into , their combined matrix satisfies , so . The right half started as and received the same operations, so it ends as .
بۆچی کار دەکات. هەر هەمان لێکدانە لە لای چەپەوە لە سادە. ئەگەر کارەکان بکەن بە ، کۆکراوەکەیان دەکات، بۆیە . نیوەی ڕاست بە دەستی پێکرد و هەمان کارەکانی بەسەردا هات، بۆیە بە کۆتایی دێت.
A plan that always worksپلانێک کە هەمیشە کار دەکات
Work column by column, from left to right:
ستوون بە ستوون کار بکە، لە چەپەوە بۆ ڕاست:
- Get a 1 on the diagonal of this column: swap in a row whose entry here is not 0, or multiply the row by .
- Make every other entry of the column 0, above and below, with , where is the row with the 1.
- Move to the next column. When the left half is , read on the right.
- 1 بخە سەر تیرەکە لەم ستوونەدا: ڕیزێک کە ژمارەکەی لێرە 0 نییە بهێنە ئێرە، یان ڕیزەکە لە بدە.
- هەموو ژمارەکانی تری ستوونەکە بکە بە 0، لە سەرەوە و خوارەوە، بە کە ئەو ڕیزەیە کە 1ـەکەی تێدایە.
- بڕۆ بۆ ستوونی داهاتوو. کاتێک نیوەی چەپ بوو بە ، لە لای ڕاست بخوێنەوە.
A exampleنموونەیەکی
The notes' example: find for by Gauss–Jordan.
نموونەکەی تێبینییەکان: بدۆزەرەوە بۆ بە .
The first step clears column 1, the second puts a 1 on the diagonal, the third clears column 2. So .
هەنگاوی یەکەم ستوونی 1 پاک دەکاتەوە، دووەم 1 دەخاتە سەر تیرەکە، سێیەم ستوونی 2 پاک دەکاتەوە. کەواتە .
Compare with the shortcut: and — the same matrix, as it must be: a matrix has only one inverse.
بەراوردی بکە لەگەڵ ڕێگە کورتەکەی : و — هەمان ، وەک دەبێت وابێت: تەنها یەک پێچەوانەی هەیە.
A example, row by rowنموونەیەکی ، ڕیز بە ڕیز
The notes' example: find for . Watch the left half turn into while appears on the right:
نموونەکەی تێبینییەکان: بدۆزەرەوە بۆ . سەیر بکە چۆن نیوەی چەپ دەبێتە و لە لای ڕاست دەردەکەوێت:
![Eight frames of the augmented matrix [A | I] with A = rows (2, 7, 1), (1, 4, −1), (1, 3, 0). Each frame names the row operation and highlights the rows it changed: swap R1 and R2; R2 → R2 − 2R1 and R3 → R3 − R1; R2 → −R2; R1 → R1 − 4R2 and R3 → R3 + R2; R3 → −½R3; R1 → R1 − 11R3 and R2 → R2 + 3R3. In the last frame the left half is the identity matrix (green) and the right half (purple) is A⁻¹ with rows (−3/2, −3/2, 11/2), (1/2, 1/2, −3/2), (1/2, −1/2, −1/2).](/_astro/calc-gauss-jordan-inverse-steps.en.C-6rQB8L.gif)
![Eight frames of the augmented matrix [A | I] with A = rows (2, 7, 1), (1, 4, −1), (1, 3, 0). Each frame names the row operation and highlights the rows it changed: swap R1 and R2; R2 → R2 − 2R1 and R3 → R3 − R1; R2 → −R2; R1 → R1 − 4R2 and R3 → R3 + R2; R3 → −½R3; R1 → R1 − 11R3 and R2 → R2 + 3R3. In the last frame the left half is the identity matrix (green) and the right half (purple) is A⁻¹ with rows (−3/2, −3/2, 11/2), (1/2, 1/2, −3/2), (1/2, −1/2, −1/2).](/_astro/calc-gauss-jordan-inverse-steps.ckb.DmedGhLr.gif)
- Column 1ستوونی 1
brings a 1 to the top; then , .
1 دەهێنێتە سەرەوە؛ پاشان ، .
- Column 2ستوونی 2
; then , .
؛ پاشان ، .
- Column 3ستوونی 3
; then , .
؛ پاشان ، .
- Read the inverseپێچەوانەکە بخوێنەوە
. Checked with sympy; .
. بە sympy پشکنراوە؛ .
When there is no inverseکاتێک پێچەوانە نییە
If is singular, Gauss–Jordan tells you by itself: at some point a row of zeros appears in the left half. Then the left half can never become , so there is no inverse. Example: ().
ئەگەر بێپێچەوانە بێت، خۆی پێت دەڵێت: لە شوێنێکدا ڕیزێکی سفر لە نیوەی چەپدا دەردەکەوێت. ئەوکات نیوەی چەپ هەرگیز نابێتە ، بۆیە پێچەوانە نییە. نموونە: ().
Row 3 of the left half is : stop — has no inverse. This agrees with the determinant test: .
ڕیزی 3ی نیوەی چەپ ـە: بوەستە — پێچەوانەی نییە. ئەمە لەگەڵ تاقیکردنەوەی یەک دەگرێتەوە: .
One matrix, two methodsیەک ماتریکس، دوو ڕێگە
The notes' homework uses the matrix of the inverse lesson's homework again, now by Gauss–Jordan. Do it, then compare with the adjugate answer.
ئەرکی تێبینییەکان هەمان ئەرکی وانەی پێچەوانە بەکاردەهێنێتەوە، ئەمجارە بە . بیکە و پاشان لەگەڵ وەڵامی بەراوردی بکە.
Find for by Gauss–Jordan.
بدۆزەرەوە بۆ بە .
Hintئاماژە
Start with : column 1 already has 1 and 0 above.
بە دەست پێبکە: ستوونی 1 لە سەرەوە 1 و 0ـی هەیە.
Show answerوەڵامەکە پیشان بدە
So — exactly the adjugate answer. The adjugate needed one and nine determinants; Gauss–Jordan needed seven row operations.
کەواتە — ڕێک وەڵامی . پێویستی بە یەک و نۆ بوو؛ پێویستی بە حەوت بوو.
Which method when?کام ڕێگە و کەی؟
| Methodڕێگە | Best forباشترین بۆ | Workکار |
|---|---|---|
| Shortcutڕێگە کورتەکە | onlyتەنها | One determinant, swap, change two signsیەک ، گۆڕینەوە، گۆڕینی دوو هێما |
| Adjugateڕێگەی ئەدجوگەیت | Small by hand; a formula for every entryـی بچووک بە دەست؛ بۆ هەر ژمارەیەک | For : cofactors, each a determinant of size — grows very fastبۆ : ، هەریەکەیان بە قەبارەی — زۆر خێرا گەورە دەبێت |
| Gauss–Jordan | and bigger; also shows at once when there is no inverse و گەورەتر؛ یەکسەریش پیشان دەدات کاتێک پێچەوانە نییە | About steps: what computers useنزیکەی هەنگاو: ئەوەی بەکاری دەهێنێت |
In computing: rref and invلە کۆمپیوتەردا: rref و inv
Common mistakesهەڵە باوەکان
| Mistakeهەڵە | What is trueڕاستییەکە |
|---|---|
| Changing only the left half of a rowگۆڕینی تەنها نیوەی چەپی ڕیزێک | Every operation acts on the whole row, both halves.هەموو کارێک لەسەر هەموو ڕیزەکە کار دەکات، هەردوو نیوە. |
| Multiplying a row by 0لێکدانی ڕیزێک لە 0 | Not allowed: it cannot be undone. Use .ڕێگەپێدراو نییە: ناگەڕێتەوە. بەکاربهێنە. |
| in one step لە یەک هەنگاودا | Allowed for the inverse (it is two operations), but keep track; for determinants it multiplies by 3.بۆ پێچەوانە ڕێگەپێدراوە (دوو کارە)، بەڵام ئاگات لێ بێت؛ بۆ لە 3 دەدات. |
| Using an old row after it changedبەکارهێنانی ڕیزێکی کۆن دوای گۆڕانی | Always use the current rows; write the matrix again after each step.هەمیشە ڕیزە ئێستاییەکان بەکاربهێنە؛ دوای هەر هەنگاوێک دووبارە بنووسەوە. |
| Reading before the left half is exactly خوێندنەوەی پێش ئەوەی نیوەی چەپ ڕێک بێت | Finish every column, above and below the diagonal.هەموو ستوونێک تەواو بکە، لە سەرەوە و خوارەوەی تیرەکە. |
| Ignoring a zero row on the leftپشتگوێخستنی ڕیزێکی سفر لە لای چەپ | It means the matrix is singular: there is no inverse.واتە : پێچەوانە نییە. |
Exercisesڕاهێنانەکان
Find for (1) by Gauss–Jordan and (2) by the shortcut.
بدۆزەرەوە بۆ (1) بە و (2) بە ڕێگە کورتەکە.
Show answerوەڵامەکە پیشان بدە
Find the inverse of by Gauss–Jordan.
پێچەوانەی بە بدۆزەرەوە.
Show answerوەڵامەکە پیشان بدە
, and the right half is (checked with sympy).
و نیوەی ڕاست ـە (بە sympy پشکنراوە).
Use Gauss–Jordan on . What happens?
لەسەر بەکاربهێنە. چی ڕوودەدات؟
Show answerوەڵامەکە پیشان بدە
After and the left half is : column 2 has no non-zero entry below row 1, and gives a zero row. is singular (: column 2 is twice column 1).
دوای و نیوەی چەپ ـە: ستوونی 2 لە ژێر ڕیزی 1دا هیچ ژمارەیەکی ناسفری نییە و ڕیزێکی سفر دەدات. (: ستوونی 2 دوو هێندەی ستوونی 1ە).
Soran started with and wrote, after , the row . What went wrong?
سۆران بە دەستی پێکرد و دوای ڕیزی ـی نووسی. چی هەڵە بوو؟
Show answerوەڵامەکە پیشان بدە
He changed only the left half. The right half also changes: , so the row is .
تەنها نیوەی چەپی گۆڕی. نیوەی ڕاستیش دەگۆڕێت: ، بۆیە ڕیزەکە ـە.
Summaryپوختە
- Three elementary row operations: swap , scale (), replace . Each can be undone.
- Gauss–Jordan: — whatever happens on the left happens on the right.
- Column by column: a 1 on the diagonal, then zeros above and below.
- A zero row on the left means the matrix is singular.
- Shortcut for , adjugate for small , Gauss–Jordan for bigger matrices and for computers.
- سێ : گۆڕینەوە ، لێکدان ()، گۆڕین . هەریەکەیان دەگەڕێتەوە.
- : — هەرچی لە چەپ ڕووبدات لە ڕاستیش ڕوودەدات.
- ستوون بە ستوون: 1 لەسەر تیرە، پاشان سفر لە سەرەوە و خوارەوە.
- ڕیزێکی سفر لە لای چەپ واتە .
- ڕێگە کورتەکە بۆ ، بۆ ـی بچووک، بۆ گەورەتر و بۆ .
Why does doing the same operations to give ?بۆچی هەمان کارەکان لەسەر دەدەن؟
The operations together act like one matrix with , so ; applied to they give .
کارەکان پێکەوە وەک یەک کار دەکەن کە ، بۆیە ؛ لەسەر دەدەن.
Do different choices of steps give different inverses?ئایا هەڵبژاردنی هەنگاوی جیاواز پێچەوانەی جیاواز دەدات؟
No. The path can differ, but a matrix has only one inverse, so every correct path ends at the same .
نەخێر. ڕێگەکە دەشێت جیاواز بێت، بەڵام تەنها یەک پێچەوانەی هەیە، بۆیە هەموو ڕێگەیەکی ڕاست بە هەمان کۆتایی دێت.
Next: Partitioned (Block) Matrices — the chapter's advanced lesson, with Method 4 of the notes.
دواتر: ماتریکسە بلۆکییەکان — وانەی پێشکەوتووی ئەم بەشە، لەگەڵ ڕێگەی 4ی تێبینییەکان.
Lesson complete!وانەکە تەواو بوو!
Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.
Key termsزاراوە سەرەکییەکان
Partitioned (Block) Matricesماتریکسە بلۆکییەکان
Related lecturesوانە پەیوەندیدارەکان
References and further readingسەرچاوەکان و خوێندنەوەی زیاتر
- OpenStax College Algebra 2e, 7.6 Solving Systems with Gaussian Elimination (the three row operations, augmented matrices)
- OpenStax College Algebra 2e, 7.7 Solving Systems with Inverses (augmenting with the identity; a zero row means no inverse)
- MathWorks: rref (Gauss–Jordan elimination with partial pivoting; inverse from rref([A eye(n)]); inv is more efficient)
- Wikipedia: Invertible matrix (Gaussian elimination in practice)
This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.