LU分解と合成写像の零次元
導入済み
4:49
A.7 · LU分解と合成写像の零次元
この単元では、前方代入および後方代入によって因数分解された線形系を解き、ピボット操作が必要な場合に行置換を一貫して適用し、 boundする。
英語のナレーション・英語と中国語の字幕を切り替え可能
このレッスンの内容
| English | 意味 |
|---|---|
| linear maps | |
| nullity/ˈnʌlɪti/ | 零度 |
| matrix inverse/ˈmeɪtrɪks ɪnˈvɜːs/ | The matrix that, multiplied by the original, gives the identity matrix; only non-singular square matrices have one. |
| multiplier/ˌmʌltɪˈplaɪə/ | |
| forward substitution/ˈfɔːwəd ˌsʌbstɪˈtjuːʃn/ | 前方代入 |
| back substitution/bæk ˌsʌbstɪˈtjuːʃn/ | 逆代入 |
| determinant/dɪˈtɜːmɪnənt/ | A scalar calculated from a square matrix that indicates properties such as invertibility and area or volume scaling. |
| LU factorisation | |
| residual/rɪˈsɪdʒuːəl/ | An observed value minus the value predicted by a model. |
1台の機械、多数の負荷
- 固定されたネットワークは多くの需要ベクトル$b$に直面する可能性がある。線形モデル$Ax=b$では、同じ行列を一度因数分解し、その後各新しい需要に対して迅速に解く。
- 第2の質問は、線形写像の鎖がどの入力を喪失するかである。零次元はゼロに送られる独立な入力方向の数を数えるものであり、ゼロ要素の数を数えるものではない。
因数分解の慣例を固定する
- 解くために、可逆な$n\times n$行列を取り、$PA=LU$と書く。ここで$P$は行を並べ替える、$L$は対角成分が$1$の下方三角行列、$U$は nonzero 対角成分を持つ上方三角行列である。
- $d=Pb$ と $y=Ux$ を書く。次に $Ly=d$ を先に解き、$Ux=y$ を後に解く。$P=I$ の場合、これは $A=LU$ に帰着し、明示的な行列逆行列は必要ない。
消去法は乗数をストックする
- $A=\begin{pmatrix}2&1\\6&4\end{pmatrix}$に対して、行2から行1の$3$倍を引く。これにより$U=\begin{pmatrix}2&1\\0&1\end{pmatrix}$が得られ、乗数因子が$L=\begin{pmatrix}1&0\\3&1\end{pmatrix}$に格納される。乗算チェックは$LU=A$を確認する。
- $b=(2,7)$ で、まず$Ly=b$を解く:$y_1=2$ と $y_2=7-3(2)=1$。次に$x_2=1$ と $x_1=(2-1)/2=1/2$。$Ax=b$ への代入により両方の方程式を確認する。
Let $L=\begin{pmatrix}1&0\\3&1\end{pmatrix}$, $U=\begin{pmatrix}2&1\\0&1\end{pmatrix}$ かつ $b=(2,7)$. Solve $LUx=b$; give $x_1$.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Forward substitution gives $y=(2,1)$. Then $x_2=1$ かつ $x_1=(2-1)/2=1/2$. The product $LU=\begin{pmatrix}2&1\\6&4\end{pmatrix}$ checks the original system.
下方三角を通って前方へ
- 前方代入法は、各行をその上に既に見つかった成分を用いて解きます。対角成分が $L$ の場合、$y_i=d_i-\sum_{j<i}l_{ij}y_j$ を用います。対角成分が単位でない場合は、代わりに $l_{ii}\ne0$ で除算する必要があります。
- 元の3行の例では、$L=\begin{pmatrix}1&0&0\\2&1&0\\-1&3&1\end{pmatrix}$ と $d=(-1,-1,12)$ です。したがって、$y_1=-1$、$y_2=-1-2(-1)=1$ および $y_3=12+(-1)-3(1)=8$ が得られます。
Solve $Ly=d$ for $L=\begin{pmatrix}2&0\\3&1\end{pmatrix}$ かつ $d=(4,7)$. Give $y_2$.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Divide by $l_{11}=2$: $y_1=2$. Then $y_2=7-3(2)=1$. Assuming $y_1=d_1$ would be wrong for this non-unit L.
上三角行列を逆順にたどる
- 後方代入法は最下段から始めます:$x_i=(y_i-\sum_{j>i}u_{ij}x_j)/u_{ii}$ です。各対角ピボットはゼロではないため、この除算は有効です。
- $U=\begin{pmatrix}2&1&-1\\0&3&2\\0&0&4\end{pmatrix}$ と $y=(-1,1,8)$ に対して、$x_3=2$、$x_2=(1-4)/3=-1$ および $x_1=(-1+1+2)/2=1$ を求めます。したがって $x=(1,-1,2)$ となり、$Ux=y$ と $Ly=b$ は元の連立方程式を検証します。
行の入れ替えには右辺も移动する必要がある
- $A=\begin{pmatrix}0&2\\1&3\end{pmatrix}$ と $b=(4,7)$ を取ります。行を入れ替えると、$P=\begin{pmatrix}0&1\\1&0\end{pmatrix}$ は $PA=\begin{pmatrix}1&3\\0&2\end{pmatrix}=U$ と $L=I$ を与えます。新しい右辺は $Pb=(7,4)$ です。
- $y=(7,4)$ を解き、次に $x_2=2$ と $x_1=7-3(2)=1$ を解きます。元の方程式は $2x_2=4$ と $x_1+3x_2=7$ を与えます。古い $b$ に $PA$ を使うと、異なる系を解いてしまいます。
For an invertible square matrix with $PA=LU$, put the steps for solving $Ax=b$ in order.
難易度 3/5 · 200 コイン + 今日初回達成時の小ボーナス
$PAx=LUx=Pb$. Set $y=Ux$, solve the lower-triangular system first, then the upper-triangular system, and check $Ax=b$.
賛成 $A=\begin{pmatrix}0&2\\1&3\end{pmatrix}$, $b=(4,7)$ and the row-swap matrix $P$, which pair gives $Pb$ and the solution $x$?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Swap the right side with the rows. Back substitution in $\begin{pmatrix}1&3\\0&2\end{pmatrix}x=(7,4)$ gives $x_2=2$, then $x_1=1$.
正則性でも、先行き LU 分解は保証されない
- 前の$A$は行列式が$-2$であるため可逆である。しかし、単位下三角$L$は$a_{11}=u_{11}=0$と$a_{21}=l_{21}u_{11}=0$を与え、$a_{21}=1$に矛盾するため、この行列にはそのようなpivotなしの$A=LU$分解が存在しない。
- 完全計算において、任意の正則な正方行列は、適切な行入れ替えにより $PA=LU$ を持つことができます。先頭の非ゼロ成分のみでは、後のすべてのピボットが非ゼロであることは保証されません。数値計算においては、入れ替えは丸め誤差を増幅させる小さなピボットを避けるためにも役立ちます。
Some invertible square matrices require a row exchange before a factorisation with unit-lower L and upper-triangular U exists.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
True. For $A=\begin{pmatrix}0&2\\1&3\end{pmatrix}$, an unpivoted unit-lower factorisation would force $a_{21}=0$. A row swap gives $PA=U$ かつ $L=I$.
賛成 $A=\begin{pmatrix}0&1\\2&3\end{pmatrix}$ かつ $b=(2,8)$, exhibit $PA=LU$, solve $Ax=b$ and check the original equations. Explain why unit-lower unpivoted LU fails.
中間ステップ、順序および仮定をモデル応答と比較する。
ゼロの対角成分には別の判断が必要
- 特異行列であっても LU 分解を持つことがあります:$L=I$ と $U=\begin{pmatrix}1&1\\0&0\end{pmatrix}$ はその一例です。ゼロの対角成分は一意解の除算ルールを妨げますが、それ自体で解が存在しないことを証明するものではありません。
- この $U$ において、右辺 $(2,0)$ は無限多くの解 $x_1=2-t$、$x_2=t$ を与えます。右辺 $(2,1)$ は解を持たず、最後の行が $0=1$ となってしまうためです。ゼロで除算するのではなく、整合性と自由変数を確認してください。
賛成 $U=\begin{pmatrix}1&1\\0&0\end{pmatrix}$, how many solutions do $Ux=(2,0)$ かつ $Ux=(2,1)$ have, in that order?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
The first system leaves $x_2$ free. The second requires $0=1$. A zero pivot does not allow a unique-solution division step.
因子を再利用し、古い解を再使用しない
- 一般的な密行列 $n\times n$ に対して、標準的な消去法には $O(n^3)$ の演算が必要です。各三角行列による解法は $O(n^2)$ かかるため、同じ $P,L,U$ を再利用する場合、右辺が $k$ 個であれば総演算数は $O(n^3+kn^2)$ となります。
- 各右辺に対して $Pb$、$y$ および $x$ を再計算します。元の行順序で残差 $b-Ax$ を確認し、完全ゼロなら完全解を検証します。$A$ が不良条件の場合、単なる小さい数値残差だけでは、小さい解の誤差を保証しません。
解法のどのフェーズか?
Separate permutation, forward solve, backward solve and verification for invertible 3x3 PA=LU with unit-diagonal L.
Using standard dense LU, what is the total arithmetic cost for $k$ right sides of the same invertible $n\times n$ matrix, reusing its factors?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Factor once at cubic cost, then perform two quadratic-cost triangular solves for each right side. This is a general dense estimate.
次元よりも前にスペースを追跡する
- $B:V\to W$ と $A:W\to Z$ を同じ体上の有限次元空間間の線形写像とする。積 $AB=A\circ B$ はまず $B$ を適用する。 $\dim V=n$, $\dim W=m$, $\operatorname{rank}B=r$, $\dim\ker A=s$ を表せ。
- $Bv=0$ が $A(Bv)=0$ を含めば、 $\ker B\subseteq\ker(AB)$ も含まれる。追加で失われる方向は、 $Bv$ が零でないにもかかわらず $\ker A$ に含まれる場合に生じる。交わり $\operatorname{im}B\cap\ker A$ は $W$ に含まれる。
合成の恒等式を導く
- $B$ を $T:\ker(AB)\to\operatorname{im}B\cap\ker A$ に制限する。この写像は全射である: $w=Bv$ と $Aw=0$ ならば、 $ABv=0$ 。その核はちょうど $\ker B$ である。
- したがって、 $T$ に対するランク-零度定理により、 $\dim\ker(AB)=\dim\ker B+t$ が得られ、ここで $t=\dim(\operatorname{im}B\cap\ker A)$ 。同様に、 $\operatorname{rank}(AB)=r-t$ :第2の写像で実際に失われるのは、 $B$ によって実際に到達される方向のみである。
For linear maps $B:V\to W$ かつ $A:W\to Z$, suppose rank $B=4$ and rank $AB=2$. Give $\dim(\operatorname{im}B\cap\ker A)$.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Rank $AB=r-t$, so $t=4-2=2$.
中間空間における交わりの上限を求める
- 次元が $r,s$ の部分空間 $S,K\subseteq W$ について、 $t=\dim(S\cap K)$ と表す。恒等式 $\dim(S+K)=r+s-t\le m$ から、 $t\ge r+s-m$ が得られる。また、 $0\le t\le\min(r,s)$ 。
- $t$ の下限は $\max(0,r+s-m)$ 、上限は $\min(r,s)$ である。零度の上限を得るには $\dim\ker B=n-r$ を加えるか、ランクの上限を得るには $t$ を $r$ から引く。全体空間の次元は $m$ であり、必ずしも $n$ と等しくない。
6次元の範囲の両端が達成される
- $\mathbb R^6$ 上の自己同型について、零度が $A=2$ および $B=3$ であると仮定する。すると、 $r=3$ , $s=2$ , $m=6$ なので、 $0\le t\le2$ および $3\le\dim\ker(AB)\le5$ 。
- $A=\operatorname{diag}(1,1,1,1,0,0)$ を選ぶ。 $B$ が最初の3つの基底ベクトルを $(e_1,e_2,e_3)$ , $(e_1,e_2,e_5)$ または $(e_1,e_5,e_6)$ に送るよう定義し、最後の3つを零に送る。これらの選択は、それぞれ $t=0,1,2$ および零度 $3,4,5$ を与える。
オン $\mathbb R^4$, let $A=\operatorname{diag}(1,1,0,0)$ and let $B$ have nullity $2$. Find every possible nullity of $AB$, and construct B for each value.
中間ステップ、順序および仮定をモデル応答と比較する。
元の5次元の上限を求める
- $A,B:\mathbb R^5\to\mathbb R^5$ の零度が $1,2$ 、ランクが $B=3$ および $0\le t\le1$ である場合、 $AB$ の最小の可能な零度は $2$ 、最大は $3$ である。
- $A=\operatorname{diag}(1,1,1,1,0)$ を固定する。 $B=\operatorname{diag}(1,1,1,0,0)$ を取れば $t=0$ 、 $B=\operatorname{diag}(1,1,0,0,1)$ を取れば $t=1$ が得られる。したがって両方の上限が達成される。最初のケースでは、2つの零度を足すと常に誤った答えになる。
Let $A,B:\mathbb R^5\to\mathbb R^5$ have nullities $1$ かつ $2$, respectively. What is the largest possible nullity of $AB$?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Rank $B=3$. The image of $B$ can contain the one-dimensional kernel of $A$, giving nullity $AB=2+1=3$.
Let $A,B:\mathbb R^5\to\mathbb R^5$ have nullities $1$ かつ $2$, respectively. What is the smallest possible nullity of $AB$?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
The intersection can have dimension $\max(0,3+1-5)=0$. Thus the minimum is $2+0=2$, attained by the two diagonal maps in the lesson.
異なる定義域の大きさの重なり
- $\dim V=7$ , $\dim W=4$ , $\dim Z=3$ 、零度が $B=4$ および $A=2$ であると仮定する。すると、 $r=3$ , $s=2$ および $1\le t\le2$ 。よって、零度 $AB$ は $5$ から $6$ の範囲をとり、 $1≤\operatorname{rank}(AB)≤2$ 。
- 上限を実現するために、 $A(w_1,w_2,w_3,w_4)=(w_1,w_2,0)$ とする。 $V$ の最初の3つの基底ベクトルを、 $t=1$ のために $(e_1,e_2,e_3)$ や、 $t=2$ のために $(e_1,e_3,e_4)$ に送り、他の4つを零に送る。中間空間の次元は $4$ であり、 $7$ ではない。
Let $\dim V=7$, $\dim W=4$, nullity $B=4$ and nullity $A=2$ for $B:V\to W$, $A:W\to\mathbb R^3$. What is the smallest possible nullity of $AB$?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Rank $B=3$. The intersection in the four-dimensional middle space has dimension at least $3+2-4=1$, so the minimum nullity is $4+1=5$.
Let $B:\mathbb R^6\to\mathbb R^3$ have nullity $4$, and $A:\mathbb R^3\to\mathbb R^2$ have nullity $2$. Find the sharp bounds for nullity $AB$ and give maps attaining both.
中間ステップ、順序および仮定をモデル応答と比較する。
写像の順序を逆転させる
- 正方行列式であっても、$AB$ と $BA$ が同じ零空間の次元を持つとは限らない。例えば、$A=\begin{pmatrix}1&0\\0&0\end{pmatrix}$ と $B=\begin{pmatrix}0&1\\0&0\end{pmatrix}$ をとると、$AB=B$ は階数 $1$ 、零空間の次元 $1$ を持ち、$BA=0$ は零空間の次元 $2$ を持つ。
- $BA$の恒等式は $\operatorname{im}A\cap\ker B$ を用い、nullity $A$ を加える。実際の写像の順序を維持すること。長方形な写像の場合、$AB$ と $BA$ は定義域の次元が異なったり、片方の積が未定義であったりする場合もある。
Two square matrices always give the same nullity for AB and BA.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
False. With $A=\operatorname{diag}(1,0)$ かつ $B=\begin{pmatrix}0&1\\0&0\end{pmatrix}$, $AB=B$ has nullity $1$ しかし $BA=0$ has nullity $2$.
画像から等号成立条件を読み取る
- $\operatorname{im}B\cap\ker A=\{0\}$の場合、$\ker(AB)=\ker B$となる:$A$は$B$によって到達される像上で単射である。可逆な$A$はこれを保証するが、必要条件ではない。$\operatorname{im}B\subseteq\ker A$の場合、$AB=0$となり、帰核数は$AB=\dim V$となる。
- $B$ が同型写像である場合、$\ker(AB)$ を双対的に $\ker A$ に移すため、その次元は一致する。ただし、それらの核は同じ部分空間であるとは限らない。一般に、nullity $A$ だけでは、失われた方向のどれが $B$ によって到達されるかについて何も言えない。
地図情報は何を保証するか?
有限次元互換B然后Aを使用し、nullity B=k, dim V=n, t=dim(im B ∩ ker A)とする。
Let $A=\operatorname{diag}(1,0)$ on $\mathbb R^2$ かつ $B=\begin{pmatrix}0&1\\1&0\end{pmatrix}$. Find $\ker A$ かつ $\ker(AB)$. Explain why their dimensions agree but their subspaces differ.
中間ステップ、順序および仮定をモデル応答と比較する。
復習
- $PA=LU$ を用いて右辺を並べ替え、$Ly=Pb$ を解き、次に $Ux=y$ を解く。除法を用いる前に非ゼロピボットを確認し、$Ax=b$ を検証する。
- $B:V\to W$ に $A:W\to Z$ が続く場合、image–kernel の重なり部分の次元に nullity $B$ を加える。その重なり部分を $W$ で bound し、求める結果が最小値、最大値、または固定値かどうかを確認する。
- nullity: 線形写像の核(kernel)の次元。
- 前方代入法: 下三角行列系を最初の行から順に解くこと。
- 後方代入法: 上三角行列系を最後の行から逆順に解くこと。
何が問題でしたか?この内容はサイトの運営チームだけが確認します。