矩阵求逆引理与矩阵分块求逆推导

矩阵求逆引理要解决的问题是:已知一个矩阵及其逆矩阵,当矩阵产生了变化时,能不能根据已知的逆矩阵,求产生变化后的矩阵的逆。这里说的变化量,指的是${\bm{B}}{\bm{D}}^{-1}{\bm{C}}$

\begin{equation*}
\begin{split}
{\left( {\bm{A}} + {\bm{B}}{\bm{D}}^{-1}{\bm{C}} \right)}^{-1} =
{\bm{A}}^{-1} - {\bm{A}}^{-1}{\bm{B}}{\left({\bm{D}} + {\bm{C}}{\bm{A}}^{-1}{\bm{B}}\right)}^{-1}{\bm{C}}{\bm{A}}^{-1} \\
{\left( {\bm{A}} - {\bm{B}}{\bm{D}}^{-1}{\bm{C}} \right)}^{-1} =
{\bm{A}}^{-1} + {\bm{A}}^{-1}{\bm{B}}{\left({\bm{D}} - {\bm{C}}{\bm{A}}^{-1}{\bm{B}}\right)}^{-1}{\bm{C}}{\bm{A}}^{-1}
\end{split}
\end{equation*}
${\bm{A}}$是$m\times m$矩阵,${\bm{B}}$是$m\times n$矩阵,${\bm{C}}$是$n\times m$矩阵,${\bm{D}}$是$n\times n$矩阵,${\bm{E}}={\bm{D}} - {\bm{C}}{\bm{A}}^{-1}{\bm{B}}$ 是可逆矩阵
\begin{equation}
{\left[
\begin{array}{*{20}{c}}
{\bm{A}} & {\bm{B}} \\
{\bm{C}} & {\bm{D}}
\end{array}
\right]}_{(m+n)(m+n)}^{-1} =
{\left[
\begin{array}{*{20}{c}}
{\bm{A}}^{-1} + {\bm{A}}^{-1}{\bm{B}}{\bm{E}}^{-1}{\bm{C}}{\bm{A}}^{-1} &
-{\bm{A}}^{-1}{\bm{B}}{\bm{E}}^{-1} \\
-{\bm{E}}^{-1}{\bm{C}}{\bm{A}}^{-1} & {\bm{E}}^{-1}
\end{array}
\right]}
\end{equation}
${\bm{A}}$是$m\times m$矩阵,${\bm{B}}$是$m\times n$矩阵,${\bm{C}}$是$n\times m$矩阵,${\bm{D}}$是$n\times n$矩阵,${\bm{F}}={\bm{A}} - {\bm{B}}{\bm{D}}^{-1}{\bm{C}}$ 是可逆矩阵
\begin{equation}
{\left[
\begin{array}{*{20}{c}}
{\bm{A}} & {\bm{B}} \\
{\bm{C}} & {\bm{D}}
\end{array}
\right]}_{(m+n)(m+n)}^{-1} =
{\left[
\begin{array}{*{20}{c}}
{\bm{F}}^{-1} &
-{\bm{F}}^{-1}{\bm{B}}{\bm{D}}^{-1} \\
-{\bm{D}}^{-1}{\bm{C}}{\bm{F}}^{-1} &
{\bm{D}}^{-1} + {\bm{D}}^{-1}{\bm{C}}{\bm{F}}^{-1}{\bm{B}}{\bm{D}}^{-1}
\end{array}
\right]}
\end{equation}
当${\bm{E}}$、${\bm{F}}$均可逆时,上面两个式子中每个分块都相等
\begin{equation}
{\left[
\begin{array}{*{20}{c}}
{\bm{A}}^{-1} + {\bm{A}}^{-1}{\bm{B}}{\bm{E}}^{-1}{\bm{C}}{\bm{A}}^{-1} &
-{\bm{A}}^{-1}{\bm{B}}{\bm{E}}^{-1} \\
-{\bm{E}}^{-1}{\bm{C}}{\bm{A}}^{-1} & {\bm{E}}^{-1}
\end{array}
\right]} =
{\left[
\begin{array}{*{20}{c}}
{\bm{F}}^{-1} &
-{\bm{F}}^{-1}{\bm{B}}{\bm{D}}^{-1} \\
-{\bm{D}}^{-1}{\bm{C}}{\bm{F}}^{-1} &
{\bm{D}}^{-1} + {\bm{D}}^{-1}{\bm{C}}{\bm{F}}^{-1}{\bm{B}}{\bm{D}}^{-1}
\end{array}
\right]}
\end{equation}
${\bm{A}}$是$m\times n$矩阵,${\bm{B}}$是$m\times m$矩阵,${\bm{C}}$是$n\times n$矩阵,${\bm{D}}$是$n\times m$矩阵,${\bm{G}}={\bm{C}}-{\bm{D}}{\bm{B}}^{-1}{\bm{A}}$ 是可逆矩阵
\begin{equation}
{\left[
\begin{array}{*{20}{c}}
{\bm{A}} & {\bm{B}} \\
{\bm{C}} & {\bm{D}}
\end{array}
\right]}_{(m+n)(m+n)}^{-1} =
{\left[
\begin{array}{*{20}{c}}
-{\bm{G}}^{-1}{\bm{D}}{\bm{B}}^{-1} & {\bm{G}}^{-1} \\
{\bm{B}}^{-1} + {\bm{B}}^{-1}{\bm{A}}{\bm{G}}^{-1}{\bm{D}}{\bm{B}}^{-1} &
-{\bm{B}}^{-1}{\bm{A}}{\bm{G}}^{-1}
\end{array}
\right]}
\end{equation}
${\bm{A}}$是$m\times n$矩阵,${\bm{B}}$是$m\times m$矩阵,${\bm{C}}$是$n\times n$矩阵,${\bm{D}}$是$n\times m$矩阵,${\bm{H}}={\bm{B}}-{\bm{A}}{\bm{C}}^{-1}{\bm{D}}$ 是可逆矩阵
\begin{equation}
{\left[
\begin{array}{*{20}{c}}
{\bm{A}} & {\bm{B}} \\
{\bm{C}} & {\bm{D}}
\end{array}
\right]}_{(m+n)(m+n)}^{-1} =
{\left[
\begin{array}{*{20}{c}}
-{\bm{C}}^{-1}{\bm{D}}{\bm{H}}^{-1} &
{\bm{C}}^{-1} + {\bm{C}}^{-1}{\bm{D}}{\bm{H}}^{-1}{\bm{A}}{\bm{C}}^{-1} \\
{\bm{H}}^{-1} &
-{\bm{H}}^{-1}{\bm{A}}{\bm{C}}^{-1}
\end{array}
\right]}
\end{equation}
当${\bm{G}}$、${\bm{H}}$均可逆时,上面的两个式子中的每个分块都相等
\begin{equation}
{\left[
\begin{array}{*{20}{c}}
-{\bm{G}}^{-1}{\bm{D}}{\bm{B}}^{-1} & {\bm{G}}^{-1} \\
{\bm{B}}^{-1} + {\bm{B}}^{-1}{\bm{A}}{\bm{G}}^{-1}{\bm{D}}{\bm{B}}^{-1} &
-{\bm{B}}^{-1}{\bm{A}}{\bm{G}}^{-1}
\end{array}
\right]} =
{\left[
\begin{array}{*{20}{c}}
-{\bm{C}}^{-1}{\bm{D}}{\bm{H}}^{-1} &
{\bm{C}}^{-1} + {\bm{C}}^{-1}{\bm{D}}{\bm{H}}^{-1}{\bm{A}}{\bm{C}}^{-1} \\
{\bm{H}}^{-1} &
-{\bm{H}}^{-1}{\bm{A}}{\bm{C}}^{-1}
\end{array}
\right]}
\end{equation}
当${\bm{E}}$、${\bm{F}}$、${\bm{G}}$、${\bm{H}}$均可逆时:
\begin{equation}
{\left[
\begin{array}{*{20}{c}}
{\bm{A}} & {\bm{B}} \\
{\bm{C}} & {\bm{D}}
\end{array}
\right]}_{(m+n)(m+n)}^{-1} =
{\left[
\begin{array}{*{20}{c}}
{({\bm{A}}-{\bm{B}}{\bm{D}}^{-1}{\bm{C}})}^{-1} &
{({\bm{C}}-{\bm{D}}{\bm{B}}^{-1}{\bm{A}})}^{-1} \\
{({\bm{B}}-{\bm{A}}{\bm{C}}^{-1}{\bm{D}})}^{-1} &
{({\bm{D}}-{\bm{C}}{\bm{A}}^{-1}{\bm{B}})}^{-1}
\end{array}
\right]}
\end{equation}
证明:

设矩阵${\bm{A}}$的变化量为${\bm{B}}{\bm{D}}^{-1}{\bm{C}}$,逆矩阵的变化量为${\bm{X}}$,则
\begin{equation}
\begin{split}
{\bm{A}}^{-1} + {\bm{X}} = \left({\bm{A}} + {\bm{B}}{\bm{D}}^{-1}{\bm{C}} \right)^{-1} \\
\left({\bm{A}} + {\bm{B}}{\bm{D}}^{-1}{\bm{C}} \right)\left({\bm{A}}^{-1} + {\bm{X}}\right) = {\bm{I}} \\
{\bm{I}} + {\bm{A}}{\bm{X}} + {\bm{B}}{\bm{D}}^{-1}{\bm{C}}{\bm{A}}^{-1} + {\bm{B}}{\bm{D}}^{-1}{\bm{C}}{\bm{X}} = {\bm{I}} \\
{\bm{A}}{\bm{X}} + {\bm{B}}{\bm{D}}^{-1}{\bm{C}}{\bm{A}}^{-1} + {\bm{B}}{\bm{D}}^{-1}{\bm{C}}{\bm{X}} = {\bm{0}} \\
\left({\bm{A}} + {\bm{B}}{\bm{D}}^{-1}{\bm{C}}\right){\bm{X}} + {\bm{B}}{\bm{D}}^{-1}{\bm{C}}{\bm{A}}^{-1} = {\bm{0}}
\end{split}
\end{equation}

所以逆矩阵的变化为:
\begin{equation}
\begin{split}
{\bm{X}} &= -\left({\bm{A}} + {\bm{B}}{\bm{D}}^{-1}{\bm{C}}\right)^{-1}{\bm{B}}{\bm{D}}^{-1}{\bm{C}}{\bm{A}}^{-1} \\
&= -\left[{\bm{B}}\left({\bm{B}}^{-1}{\bm{A}}+{\bm{D}}^{-1}{\bm{C}}\right)\right]^{-1} {\bm{B}}{\bm{D}}^{-1}{\bm{C}}{\bm{A}}^{-1} \\
&= -\left[{\bm{B}}^{-1}{\bm{A}}+{\bm{D}}^{-1}{\bm{C}}\right]^{-1} {\bm{B}}{\bm{D}}^{-1}{\bm{C}}{\bm{A}}^{-1} \\
&= -\left[{\bm{D}}^{-1}\left({\bm{D}}{\bm{B}}^{-1}{\bm{A}}+{\bm{C}}\right)\right]^{-1}{\bm{D}}^{-1}{\bm{C}}{\bm{A}}^{-1} \\
&= -\left[{\bm{D}}{\bm{B}}^{-1}{\bm{A}}+{\bm{C}}\right]^{-1}{\bm{C}}{\bm{A}}^{-1} \\
&= -\left[\left({\bm{D}}{\bm{B}}^{-1}+{\bm{C}}{\bm{A}}^{-1}\right){\bm{A}}\right]^{-1}{\bm{C}}{\bm{A}}^{-1} \\
&= -{\bm{A}}^{-1}\left[{\bm{D}}{\bm{B}}^{-1}+{\bm{C}}{\bm{A}}^{-1}\right]^{-1}{\bm{C}}{\bm{A}}^{-1} \\
&= -{\bm{A}}^{-1}\left[\left({\bm{D}}+{\bm{C}}{\bm{A}}^{-1}{\bm{B}}\right){\bm{B}}^{-1}\right]^{-1}{\bm{C}}{\bm{A}}^{-1} \\
&= -{\bm{A}}^{-1}{\bm{B}}\left[{\bm{D}}+{\bm{C}}{\bm{A}}^{-1}{\bm{B}}\right]^{-1}{\bm{C}}{\bm{A}}^{-1} \\
\end{split}
\end{equation}

根据矩阵求逆引理,可以计算常用的两种场景的逆矩阵,一种是RLS自适应滤波器中的输入向量相关矩阵求逆,具体推导过程请看RLS自适应滤波器中用矩阵求逆引理来避免求逆运算这里不再详细说明。另一种是相关矩阵的递归平均估计${\bm{R}}(n+1) = \alpha {\bm{R}}(n) + \beta {\bm{x}}(n){{\bm{x}}^H(n)}$。推导结果如下,大家可自行验证结果是否正确

设:${\bm{A}} = \alpha {\bm{R}}(n)$、${\bm{B}} = {\bm{x}}(n)$、${\bm{C}} = {\bm{x}}^H(n)$、${\bm{D}} = {\beta}^{-1} = {(1-\alpha)}^{-1}$,根据矩阵求逆引理,可得

\begin{align*}
{{\bm{R}}(n+1)}^{-1} &= {\alpha}^{-1}{{\bm{R}}(n)}^{-1} - \frac{{\alpha}^{-1}{{\bm{R}}(n)}^{-1}{\bm{x}}(n){\bm{x}}^{H}(n){{\bm{R}}(n)}^{-1}{\alpha}^{-1}}
{{\beta}^{-1}+{\bm{x}}^{H}(n){\alpha}^{-1}{{\bm{R}}(n)}^{-1}{\bm{x}}(n)} \\
&= {\alpha}^{-1}{{\bm{R}}(n)}^{-1} - \frac{{\alpha}^{-1}{{\bm{R}}(n)}^{-1}{\bm{x}}(n){\bm{x}}^{H}(n){{\bm{R}}(n)}^{-1}}
{{\alpha}{\beta}^{-1}+{\bm{x}}^{H}(n){{\bm{R}}(n)}^{-1}{\bm{x}}(n)}
\end{align*}

 其它例子就不再举了。总之,记好矩阵求逆的条件(开始时的加粗红字),以方便碰到符合的场景随时使用。

posted on 2020-10-08 20:08  爱酷媒  阅读(3492)  评论(0编辑  收藏  举报