線型代数学/線型方程式の解のソースを表示
←
線型代数学/線型方程式の解
ナビゲーションに移動
検索に移動
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
<small>[[線型代数学]] > 線型方程式の解 </small> ---- このページでは、[[線型代数学/線型方程式#線型方程式|線型方程式序論]]で書いたような線型方程式の解の求め方や、その性質について議論する。 ==線型方程式の解== ===準備=== ====拡大係数行列==== [[線型代数学/線型方程式#線型方程式|線型方程式序論]]で書いたように、 :<math>\begin{cases} a_{1,1}x_1 + a_{1,2}x_2 + \cdots + a_{1,n}x_n = b_1 \\ a_{2,1}x_1 + a_{2,2}x_2 + \cdots + a_{2,n}x_n = b_2 \\ \vdots \\ a_{m,1}x_1 + a_{m,2}x_2 + \cdots + a_{m,n}x_n = b_m \end{cases} </math> という線型方程式は、<math>\ A =\begin{pmatrix} a_{1,1} & \cdots & a_{1,n}\\ \vdots & \ddots & \vdots\\ a_{m,1} & \cdots & a_{m,n}\\ \end{pmatrix}, \mathbf x = \begin{pmatrix} x_1\\ \vdots \\ x_n \end{pmatrix} , \mathbf b = \begin{pmatrix} b_1 \\ \vdots \\ b_m \end{pmatrix}</math> を用いて、 :<math> \ A \mathbf x = \mathbf b </math> と書くことができる。<br><br> ここで、<math>\tilde A = \begin{pmatrix} \ A & \mathbf b \\ \end{pmatrix} ,\mathbf \tilde x = \begin{pmatrix} \mathbf x \\ -1 \\ \end{pmatrix} </math> とおくと、 <math>\tilde A \mathbf \tilde x = \mathbf 0</math>は、<math> \begin{pmatrix} \ A & \mathbf b \end{pmatrix} \begin{pmatrix} \mathbf x \\ -1 \\ \end{pmatrix} = A \mathbf x - \mathbf b = \mathbf 0</math>となり、移項すれば、<math>\ A \mathbf x = \mathbf b </math>である。<br> つまり、方程式<math>A \mathbf x = \mathbf b</math>は、 :<math> \tilde A \mathbf \tilde x = \mathbf 0 </math> と書きなおせる。このとき、<math> \tilde A </math> を'''拡大係数行列'''という。 ====方程式の変形==== 次に、この方程式を解く際にどのような操作が許されるか考えよう。 まず、基本行列を左からかける、つまり左基本変形に対して方程式 <math> \tilde A \mathbf \tilde x = \mathbf 0 </math> の解が不変であることは明らかであろう。この操作は、高校までの[[中学校数学/2年生/数量/連立方程式#連立方程式の解き方|連立方程式]]を解くときの操作に対応している。 これ以外の操作として、第n+1列を除いた列の交換を考えてみよう。 第i列と第j列を入れ替えたとき、元の方程式と同値な方程式を得るには未知数 <math>\ x_i </math> と未知数 <math>\ x_j </math> を入れ替えればよい。 実際、 :<math> \tilde A\mathbf \tilde x = \tilde AP(i,j)P(i,j)\mathbf \tilde x = (\tilde AP(i,j))(\ P(i,j)\mathbf \tilde x)</math> であるから、<math>\ P(i,j)\mathbf \tilde x </math> が分かれば、これの第i行と第j行を入れ替えるだけで、元の方程式の解になる。 この操作は足し算の順番を入れ替えることに対応している。 ここで、上の式と同様にして<math>\ Q \in \ M(n;\mathbf K)</math>が正則だとすると、 :<math>\tilde A\mathbf \tilde x = \tilde AQQ^{-1}\mathbf \tilde x = (\tilde AQ)(\ Q^{-1}\mathbf \tilde x)</math> となるので、<math>\ Q^{-1}\mathbf \tilde x </math> を求めてもよいのだが、<math>\tilde A </math> を右基本変形するたびにその行列を記録してあとからその積を求めなければならない。なので、上に書いた操作だけで求められるのならそちらの方がよいことはわかるであろう。 以上をまとめて、 *<math>\tilde A </math> に左基本変形を施す。 *<math>\tilde A </math> のn+1列目を除く列の交換を行う。 という操作だけを許すことにしよう。 ===解の存在条件=== ''定理'' <math>\tilde A\mathbf \tilde x = 0 </math>は上の2種類の操作によって以下の形にできる。 :<math>\tilde B = \begin{pmatrix} \ I_r & \ C & \mathbf d_1\\ \mathbf 0 & \mathbf 0 & \mathbf d_2\\ \end{pmatrix} \mathbf \tilde y = \mathbf 0 </math> ここで、<math>\ r = \ rank(A) , \ y_1,\cdots,y_n</math> は<math>\ x_1,\cdots,x_n </math>と1対1に対応している。 (証明)証明方法は階数のページのものとほとんど同じである。 <math>\ A = 0 </math> のときは求めたい形になっている。 <math>\ A \neq 0</math> のとき<math>\ a_{i,j} \neq 0</math>であったとすると、第i行の <math> \frac{-a_{k,j}}{a_{i,j}} </math> 倍を第k行に加えることで :<math> \begin{pmatrix} & & & 0 & & &\\ & & & \vdots & & &\\ & & & 0 & & &\\ a_{i,1}& \cdots & a_{i,j-1} & a_{i,j} & a_{i,j+1} & \cdots & a_{i,n}\\ & & & 0 & & &\\ & & & \vdots & & &\\ & & & 0 & & &\\ \end{pmatrix} </math> を得る。次に第i行を <math>\frac{1}{a_{i,j}}</math> 倍して第1行と第i行を入れ替え、さらに第1列と第j列を入れ替えることで、 :<math> \begin{pmatrix} \mathbf e_1 & \ A' & \mathbf b'\\ \end{pmatrix}</math> を得る。ここで、 <math> \mathbf e_1 = \begin{pmatrix} 1\\ 0 \\ \vdots \\ 0 \\ \end{pmatrix}</math> 以下<math> \ A' \neq \mathbf 0 </math> なら、同様の操作を繰り返せば帰納的に求めたい形になる。 また、 :<math> \begin{pmatrix} \ I_r & \ C \\ \mathbf 0 & \mathbf 0\\ \end{pmatrix}</math> は<math>\ A </math> に基本変形を施して得られたものであるから、<math> \ r = \ rank(A) </math> でなければならない□ この式を連立方程式の形に書きなおすと、 :<math> \begin{cases} y_1 + c_{1,1}y_{r+1} + \cdots + c_{1,n-r}y_n = d_1\\ \vdots \\y_r + c_{r,1}y_{r+1} + \cdots + c_{r,n-r}y_n = d_r\\0 = d_{r+1} \\ \vdots \\ 0 = d_{n}\\ \end{cases} </math> これから、次の定理が成り立つことが分かる。 ''定理'' :<math>\tilde B\mathbf \tilde y = \mathbf 0 </math> が解を持つ <math>\Longleftrightarrow \mathbf d_2 = \mathbf 0 \Longleftrightarrow \ rank(B) = rank(\tilde B)\Longleftrightarrow \ rank(A) = rank(\tilde A)</math> (証明) :<math>\tilde B\mathbf \tilde y = \mathbf 0 </math> が解を持つ <math> \Longleftarrow \mathbf d_2 = \mathbf 0 </math> に関しては、<math>\ y_i = d_i (1 \leq i \leq r),\ y_{r+1} = \cdots = y_n = 0 </math> が解となっている。 その他は自明であろう□ ===一般解=== 上の連立方程式の形から、 <math>\begin{pmatrix} y_1 \\ y_2 \\ \vdots \\ y_r \\ \end{pmatrix} = \begin{pmatrix} d_1 \\ d_2 \\ \vdots \\ d_r \end{pmatrix} + y_{r+1}\begin{pmatrix} -c_{1,1} \\ -c_{2,1} \\ \vdots \\ -c_{r,1} \end{pmatrix} + \cdots + y_n\begin{pmatrix} -c_{1,n-r} \\ -c_{2,n-r} \\ \vdots \\ -c_{r,n-r} \end{pmatrix} </math> <math>\alpha_{r+1}, \cdots ,\alpha_{n} \in \mathbf K</math> を任意の数とし、<math>y_{r+1} = \alpha_{r+1}, \cdots ,y_n = \alpha_{n} </math> とすると、 <math>\mathbf y = \begin{pmatrix} y_1 \\ y_2 \\ \vdots \\ y_r \\ y_{r+1} \\ \vdots \\ y_n \\ \end{pmatrix} = \begin{pmatrix} d_1 \\ d_2 \\ \vdots \\ d_r \\ 0 \\ \vdots \\ 0 \\ \end{pmatrix} + \alpha_{r+1}\begin{pmatrix} -c_{1,1} \\ -c_{2,1} \\ \vdots \\ -c_{r,1} \\ 1 \\ 0 \\ \vdots \\ 0 \\ \end{pmatrix} + \cdots + \alpha_{n}\begin{pmatrix} -c_{1,1} \\ -c_{2,1} \\ \vdots \\ -c_{r,1} \\ 0 \\ \vdots \\ 0 \\ 1 \\ \end{pmatrix} </math> 未知数 <math>y_1, \cdots , y_n </math>を並び換えて、<math>x_1, \cdots , x_n </math> の順番にすれば <math> A\mathbf x = \mathbf b </math>の一般解となる。 ===演習問題=== 次の線型方程式系の解を求めよ。 (1)<math>\begin{cases} -7x - y + z = 6 \\ x - 3y + 4z = -1 \\ 3x + 2y -z = 2 \end{cases}</math> (2)<math>\begin{cases} x + y - z - w = -6 \\ -x + 3y - z + 3w = 20 \\ 2x + 4y - 3z - w = -5 \\ -4x -10y +7z +w = 3 \end{cases}</math> === 解答・解説 === (1) <math>x = -1, y = 4, z = 3</math> (2)<math>\alpha,\beta</math> を任意定数として、<math>\begin{pmatrix} x \\ y \\ z \\ w \end{pmatrix}= \begin{pmatrix} 1 \\ 0 \\ 0 \\ 7 \end{pmatrix}+ \alpha\begin{pmatrix} 2 \\ 0 \\ 1 \\ 1 \end{pmatrix}+ \beta\begin{pmatrix} -3\\ 1 \\ 0 \\ -2 \end{pmatrix}. </math>この解は幾何学的には、<math>\mathbb R^4</math> の平面であり、表示は一意的ではない。例えば、<math>\begin{pmatrix} x \\ y \\ z \\ w \end{pmatrix}= \begin{pmatrix} -\frac{19}{2} \\ \frac{7}{2} \\ 0 \\ 0 \end{pmatrix}+ \alpha\begin{pmatrix} \frac{1}{2} \\ \frac{1}{2} \\ 1 \\ 0 \end{pmatrix}+ \beta\begin{pmatrix} -\frac{3}{2}\\ -\frac{1}{2} \\ 0 \\ 1 \end{pmatrix} </math>も同じ解となる。 ==一般解の性質== ===線型独立な解の個数=== [[Category:線形代数学|せんけいほうていしきのかい]]
線型代数学/線型方程式の解
に戻る。
ナビゲーション メニュー
個人用ツール
ログイン
名前空間
ページ
議論
日本語
表示
閲覧
ソースを閲覧
履歴表示
その他
検索
案内
メインページ
最近の更新
おまかせ表示
MediaWiki についてのヘルプ
特別ページ
ツール
リンク元
関連ページの更新状況
ページ情報