专栏文章

Calculating the Inverse of a Matrix

学习·文化课参与者 1已保存评论 0

文章操作

快速查看文章及其快照的属性,并进行相关操作。

当前评论
0 条
当前快照
1 份
快照标识符
@mink4unx
此快照首次捕获于
2025/12/02 03:43
3 个月前
此快照最后确认于
2025/12/02 03:43
3 个月前
查看原文

Calculating the Inverse of a Matrix

Calculating the inverse of a 4×44 \times 4 matrix needs at most 224224 steps. Wow.

Step 0

Let
(211533020)\begin{pmatrix} 2 & 1 & 1 \\ -5 & -3 & -3 \\ 0 & 2 & 0 \end{pmatrix}
be the matrix you want to calculate.

Step 1: Create an Augmented Matrix

Add II to the right-hand side of the matrix. In this example, it becomes
(211100533010020001)\begin{pmatrix} 2 & 1 & 1 & 1 & 0 & 0\\ -5 & -3 & -3 & 0 & 1 & 0\\ 0 & 2 & 0 & 0 & 0 & 1 \end{pmatrix}

Step 2: Calculating the Reduced Row Echelon Form

I hate this step.
Anyway, you want to make the left-hand side of the matrix to be II. You can do it through row operations:
  • Swap 2 rows.
  • Multiply each element in one row by a non-zero constant.
  • Add a multiple of another row to one row.
If you don't know how to do that, there are a lot of online resources about it.
Finally, we get
(10031001000120015212)\begin{pmatrix} 1 & 0 & 0 & 3 & 1 & 0\\ 0 & 1 & 0 & 0 & 0 & \dfrac{1}{2}\\ 0 & 0 & 1 & -5 & -2 & -\dfrac{1}{2} \end{pmatrix}

Step 3: The right-hand side of this matrix is the inverse of the original matrix.

So the inverse of the matrix is
(31000125212)\begin{pmatrix} 3 & 1 & 0 \\ 0 & 0 & \dfrac{1}{2} \\ -5 & -2 & -\dfrac{1}{2} \end{pmatrix}

Why does it work?

Doing a row operation is actually left-multiplying an elementary matrix. When the left-hand side becomes II, the combination of those elementary matrices is A1A^{-1} because A1A=IA^{-1}A=I. Since the same operations are done to the right-hand side, it becomes A1I=A1A^{-1}I=A^{-1}.

评论

0 条评论,欢迎与作者交流。

正在加载评论...