|
楼主 |
青青子衿
发表于 2016-8-12 16:49
原理一:利用克拉默法则解线性方程组
本帖最后由 青青子衿 于 2018-6-16 17:47 编辑 回复 1# 青青子衿
\(\Huge{原理一:利用克拉默法则解线性方程组}\)
\begin{equation*}
\left\{
\begin{split}
x_1&+&x_2&+&x_3&+&\cdots&+&x_{n - 2}&+&x_{n - 1}&&&=&\,1\\
x_1&+&x_2&+&x_3&+&\cdots&+&x_{n - 2}&&&+&x_n&=&\,2\\
x_1&+&x_2&+&x_3&+&\cdots&&&+&x_{n - 1}&+&x_n&=&\,3\\
\vdots\,\,\,&&\,\,\vdots&&\,\,\vdots&&
&&\,\,\,\,\vdots&&\,\,\,\,\vdots&&\,\,\,\vdots&&\,\vdots\\
x_1&+&x_2&&&+&\cdots&+&x_{n - 2}&+&x_{n - 1}&+&x_n&=&\,n - 2\\
x_1&&&+&x_3&+&\cdots&+&x_{n - 2}&+&x_{n - 1}&+&x_n&=&\,n - 1\\
&&x_2&+&x_3&+&\cdots&+&x_{n - 2}&+&x_{n - 1}&+&x_n&=&\,n
\end{split}
\right.
\end{equation*}
青青子衿 发表于 2016-8-12 16:33
第一步:先求系数行列式
方程组\(\left(a\right)\)的系数行列式为\(D_a\)
\[D_a=\left|\begin{array}{ccccccc}
1&1&1& \cdots &1&1&0\\
1&1&1& \cdots &1&0&1\\
1&1&1& \cdots &0&1&1\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
1&1&0& \cdots &1&1&1\\
1&0&1& \cdots &1&1&1\\
0&1&1& \cdots &1&1&1
\end{array}\right|\]
把行列式\(D_a\)的第\(2\),\(3\),\(\cdots\),\(n\)列都加到第\(1\)列上去,得:
\[D_a=\left|\begin{array}{ccccccc}
n-1&1&1& \cdots &1&1&0\\
n-1&1&1& \cdots &1&0&1\\
n-1&1&1& \cdots &0&1&1\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
n-1&1&0& \cdots &1&1&1\\
n-1&0&1& \cdots &1&1&1\\
n-1&1&1& \cdots &1&1&1
\end{array}\right|\]
把行列式\(D_a\)的第\(1\),\(2\),\(\cdots\),\(n-1\)行都减去第\(n\)行,得:
\[D_a=\left|\begin{array}{ccccccc}
0&0&0& \cdots &0&0&-1\\
0&0&0& \cdots &0&-1&0\\
0&0&0& \cdots &-1&0&0\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
0&0&-1& \cdots &0&0&0\\
0&-1&0& \cdots &0&0&0\\
n-1&1&1& \cdots &1&1&1
\end{array}\right|=\left(-1\right)^{\frac{n(n-1)}{2}}\left(-1\right)^{n-1}(n-1)\]
第二步:
下面计算行列式\({D_a}_{\overset{\phantom,}{i}}\)
\[{D_a}_{\overset{\phantom,}{i}}=\begin{array}{ccccccccc}
\begin{split}
\begin{array}{ccccccccc}
\,
\end{array}
\\ \,
\left|
\begin{array}{ccccccccc}
1&1&1& \cdots &1& \cdots &1&1&0\\
1&1&1& \cdots &2& \cdots &1&0&1\\
1&1&1& \cdots &3& \cdots &0&1&1\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
1&1&1& \cdots &\color{blue}{n-(i-1)}& \cdots &1&1&1\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
1&1&0& \cdots &n-2&\cdots &1&1&1\\
1&0&1& \cdots &n-1& \cdots &1&1&1\\
0&1&1& \cdots &n& \cdots &1&1&1
\end{array}
\right|
\color{red}{倒数}第i行
\\
\begin{array}{ccccccccc}
&第i列&&&&&&&&&&&&
\end{array}
\end{split}
\end{array}\]
将行列式\({D_a}_{\overset{\phantom,}{i}}\)的第\(2\)至第\(n\)行减去第\(1\)行,得:
\[{D_a}_{\overset{\phantom,}{i}}=\begin{array}{ccccccccc}
\begin{split}
\begin{array}{ccccccccc}
\,
\end{array}
\\ \,
\left|
\begin{array}{ccccccccc}
1&1&1& \cdots &1& \cdots &1&1&0\\
0&0&0& \cdots &1& \cdots &0&-1&1\\
0&0&0& \cdots &2& \cdots &-1&0&1\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
0&0&0& \cdots &\color{blue}{n-i}&\cdots &0&0&1\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
0&0&-1& \cdots &n-3& \cdots &0&0&1\\
0&-1&0& \cdots &n-2& \cdots &0&0&1\\
-1&0&0& \cdots &n-1& \cdots &0&0&1
\end{array}
\right|
\color{red}{倒数}第i行
\\
\begin{array}{ccccccccc}
&第i列&&&&&&&&&&&&
\end{array}
\end{split}
\end{array}\]
将行列式\({D_a}_{\overset{\phantom,}{i}}\)的第\(1\),\(2\),\(\cdots\),\(i-1\),\(i+1\),\(\cdots\),\(n-1\)列分别乘以\(n-1\),\(n-2\),\(\cdots\),\(n-i+1\),\(n-i-1\),\(\cdots\),\(1\)后加到第\(i\)列,得:
\[{D_a}_{\overset{\phantom,}{i}}=\begin{array}{ccccccccc}
\begin{split}
\begin{array}{ccccccccc}
\,
\end{array}
\\ \,
\left|
\begin{array}{ccccccccc}
1&1&1& \cdots &
1+1+2+ \cdots+\left(n - i - 1\right)+\left(n-i+1\right) + \cdots+\left(n-1\right)
& \cdots &1&1&0\\
0&0&0& \cdots &0& \cdots &0&-1&1\\
0&0&0& \cdots &0& \cdots &-1&0&1\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
0&0&0& \cdots &\color{blue}{n-i}&\cdots &0&0&1\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
0&0&-1& \cdots &0& \cdots &0&0&1\\
0&-1&0& \cdots &0& \cdots &0&0&1\\
-1&0&0& \cdots &0& \cdots &0&0&1
\end{array}
\right|
\color{red}{倒数}第i行
\\
\begin{array}{ccccccccc}
&第i列&&&&&&&&&&&&&&&&&&&&&&&&
\end{array}
\end{split}
\end{array}\]
将行列式\({D_a}_{\overset{\phantom,}{i}}\)的第\(1\),\(2\),\(\cdots\),\(i-1\),\(i+1\),\(\cdots\),\(n-1\)列加到第\(n\)列,第\(i\)列乘以\(\frac{1}{i-n}\)加到第\(n\)列,得:
\[{D_a}_{\overset{\phantom,}{i}}=\begin{array}{ccccccccc}
\begin{split}
\begin{array}{ccccccccc}
\,
\end{array}
\\ \,
\left|
\begin{array}{ccccccccc}
1&1&1& \cdots &1+\frac{n(n-1)}{2}-(n-i)& \cdots &1&1&
(n-2)+\frac{\frac{n(n-1)}{2}-n+i+1}{i-n}\\
0&0&0& \cdots &0& \cdots &0&-1&0\\
0&0&0& \cdots &0& \cdots &-1&0&0\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
0&0&0& \cdots &\color{blue}{n-i}&\cdots&0&0&0\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
0&0&-1& \cdots &0& \cdots &0&0&0\\
0&-1&0& \cdots &0& \cdots &0&0&0\\
-1&0&0& \cdots &0& \cdots &0&0&0
\end{array}
\right|
\color{red}{倒数}第i行
\\
\begin{array}{ccccccccc}
&第i列&&&&&&&&&&&&&&&&&&&&&&&&
\end{array}
\end{split}
\end{array}\]
化简行列式\({D_a}_{\overset{\phantom,}{i}}\),得:
\[{D_a}_{\overset{\phantom,}{i}}=\left(-1\right)^{\frac{n(n-1)}{2}}\left(-1\right)^{n-2}\left(n-i\right)\left[(n-2)+\frac{\frac{n(n-1)}{2}-n+i+1}{i-n}\right]\\
=\left(-1\right)^{\frac{n(n-1)}{2}}\left(-1\right)^{n-2}\left[n^2-in-n+i -\frac{n\left(n-1\right)}{2}-1\right]\\
=\left(-1\right)^{\frac{n(n-1)}{2}}\left(-1\right)^{n-2}\left[\frac{n\left(n-1\right)}{2}-1-i(n-1)\right]\\
=\left(-1\right)^{\frac{n(n-1)}{2}}\left(-1\right)^{n-1}\left[1-\frac{n\left(n-1\right)}{2}+i(n-1)\right]\]
由克拉默法则,得:
\[{x_a}_{\overset{\phantom,}{i}}=\frac{{D_a}_{\overset{\phantom,}{i}}}{D_a}=\frac{\left(-1\right)^{\frac{n(n-1)}{2}}\left(-1\right)^{n-1}\left[1-\frac{n\left(n-1\right)}{2}+i(n-1)\right]}{\left(-1\right)^{\frac{n(n-1)}{2}}\left(-1\right)^{n-1}(n-1)}=\frac{1}{n-1}-\frac{n}{2}+i\]
\[ \begin{equation*} \label{a1}\tag*{[Solution#1 of equations a]}
{x_a}_{\overset{\phantom,}{i}}=\frac{1}{n-1}-\frac{n}{2}+i
\end{equation*}\]
\ref{a1}
\begin{equation}
\left\{
\begin{split}
x_1\quad&\ &\ &\ &\ &\ &\ &=&\,\frac{1}{n-1}-\frac{n}{2}+1\\
\,&x_2\quad&\,&\ &\ &\ &\ &=&\,\frac{1}{n-1}-\frac{n}{2}+2\\
\,&\,&x_3\quad&\ &\ &\ &\ &=&\,\frac{1}{n-1}-\frac{n}{2}+3\\
\,&\,&\,&\ddots\quad&\,&\,&\,&=&\,\qquad\quad\vdots\\
\,&\,&\,&\,&x_{n-2}\quad&\,&\,&=&\,\frac{1}{n-1}-\frac{n}{2}+n-2\\
\,&\,&\,&\,&\,&x_{n-1}\quad&\,&=&\,\frac{1}{n-1}-\frac{n}{2}+n-1\\
\,&\,&\,&\,&\,&\quad&x_n&=&\,\frac{1}{n-1}-\frac{n}{2}+n
\end{split}
\right.
\end{equation}
\begin{equation*}
\left\{
\begin{split}
&&x_2&+&x_3&+&\cdots&+&x_{n - 2}&+&x_{n - 1}&+&x_{n}&=&\,1\\
x_1&&&+&x_3&+&\cdots&+&x_{n - 2}&+&x_{n - 1}&+&x_n&=&\,2\\
x_1&+&x_2&&&+&\cdots&+&x_{n - 2}&+&x_{n - 1}&+&x_n&=&\,3\\
\vdots\,\,\,&&\,\,\vdots&&\,\,\vdots&&
&&\,\,\,\,\vdots&&\,\,\,\,\vdots&&\,\,\,\vdots&&\,\vdots\\
x_1&+&x_2&+&x_3&+&\cdots&&&+&x_{n - 1}&+&x_n&=&\,n - 2\\
x_1&+&x_2&+&x_3&+&\cdots&+&x_{n - 2}&&&+&x_n&=&\,n - 1\\
x_1&+&x_2&+&x_3&+&\cdots&+&x_{n - 2}&+&x_{n - 1}&&&=&\,n
\end{split}
\right.
\end{equation*}
青青子衿 发表于 2016-8-12 16:33
第一步:先求系数行列式
方程组\(\left(b\right)\)的系数行列式为\(D_b\)
\[D_b=\left|\begin{array}{ccccccc}
0&1&1& \cdots &1&1&1\\
1&0&1& \cdots &1&1&1\\
1&1&0& \cdots &1&1&1\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
1&1&1& \cdots &0&1&1\\
1&1&1& \cdots &1&0&1\\
1&1&1& \cdots &1&1&0
\end{array}\right|\]
把行列式\(D_b\)的第\(2\),\(3\),\(\cdots\),\(n\)列都加到第\(1\)列上去,得:
\[D_b=\left|\begin{array}{ccccccc}
n-1&1&1& \cdots &1&1&1\\
n-1&0&1& \cdots &1&1&1\\
n-1&1&0& \cdots &1&1&1\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
n-1&1&1& \cdots &0&1&1\\
n-1&1&1& \cdots &1&0&1\\
n-1&1&1& \cdots &1&1&0
\end{array}\right|\]
把行列式\(D_b\)的第\(2\),\(3\),\(\cdots\),\(n\)行都减去第\(1\)行,得:
\[D_b=\left|\begin{array}{ccccccc}
n-1&1&1& \cdots &1&1&1\\
0&-1&0& \cdots &0&0&0\\
0&0&-1& \cdots &0&0&0\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
0&0&0& \cdots &-1&0&0\\
0&0&0& \cdots &0&-1&0\\
0&0&0& \cdots &0&0&-1
\end{array}\right|=\left(-1\right)^{n-1}(n-1)\]
第二步:
下面计算行列式\({D_b}_{\overset{\phantom,}{i}}\)
\[{D_b}_{\overset{\phantom,}{i}}=\begin{array}{ccccccccc}
\begin{split}
\begin{array}{ccccccccc}
&第i列&&&&&&&&&
\end{array}
\\ \,
\left|
\begin{array}{ccccccccc}
0&1&1& \cdots &1& \cdots &1&1&1\\
1&0&1& \cdots &2& \cdots &1&1&1\\
1&1&0& \cdots &3& \cdots &1&1&1\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
1&1&1& \cdots &i& \cdots &1&1&1\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
1&1&1& \cdots &{n - 2}& \cdots &0&1&1\\
1&1&1& \cdots &{n - 1}& \cdots &1&0&1\\
1&1&1& \cdots &n& \cdots &1&1&0
\end{array}
\right|
第i行
\\
\begin{array}{ccccccccc}
\,
\end{array}
\end{split}
\end{array}\]
将行列式\({D_b}_{\overset{\phantom,}{i}}\)的第\(2\)至第\(n\)行减去第\(1\)行,得:
\[{D_b}_{\overset{\phantom,}{i}}=\begin{array}{ccccccccc}
\begin{split}
\begin{array}{ccccccccc}
&第i列&&&&&&&&&&&&
\end{array}
\\ \,
\left|
\begin{array}{ccccccccc}
0&1&1& \cdots &1& \cdots &1&1&1\\
1&-1&0& \cdots &1& \cdots &0&0&0\\
1&0&-1& \cdots &2& \cdots &0&0&0\\
\vdots & \vdots &\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
1&0&0& \cdots &i-1& \cdots &0&0&0\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
1&0&0& \cdots &n-3& \cdots &-1&0&0\\
1&0&0& \cdots &n-2& \cdots &0&-1&0\\
1&0&0& \cdots &n-1& \cdots &0&0&-1
\end{array}
\right|
第i行
\\
\begin{array}{ccccccccc}
\,
\end{array}
\end{split}
\end{array}\]
将行列式\({D_b}_{\overset{\phantom,}{i}}\)的第\(2\),\(3\),\(\cdots\),\(i-1\),\(i+1\),\(\cdots\),\(n\)列分别乘以\(1\),\(2\),\(\cdots\),\(i-2\),\(i\),\(\cdots\),\(n-1\)后加到第\(i\)列,得:
\[{D_b}_{\overset{\phantom,}{i}}=\begin{array}{ccccccccc}
\begin{split}
\begin{array}{ccccccccc}
&第i列&&&&&&&&&&&&&&&&&&&&
\end{array}
\\ \,
\left|
\begin{array}{ccccccccc}
0&1&1& \cdots &1+1+2+\cdots+(i-2)+i+\cdots+(n-1)& \cdots &1&1&0\\
1&-1&0& \cdots &0& \cdots &0&0&0\\
1&0&-1& \cdots &0& \cdots &0&0&0\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
1&0&0& \cdots &i-1&\cdots&0&0&0\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
1&0&0& \cdots &0& \cdots &-1&0&0\\
1&0&0& \cdots &0& \cdots &0&-1&0\\
1&0&0& \cdots &0& \cdots &0&0&-1
\end{array}
\right|
第i行
\\
\begin{array}{ccccccccc}
\,
\end{array}
\end{split}
\end{array}\]
将行列式\({D_b}_{\overset{\phantom,}{i}}\)的第\(2\),\(3\),\(\cdots\),\(i-1\),\(i+1\),\(\cdots\),\(n\)列加到第\(1\)列,第\(i\)列乘以\(\frac{1}{1-i}\)加到第\(1\)列,得:
\[{D_b}_{\overset{\phantom,}{i}}=\begin{array}{ccccccccc}
\begin{split}
\begin{array}{ccccccccc}
&第i列&&&&&&&&&&&&&&
\end{array}
\\ \,
\left|
\begin{array}{ccccccccc}
(n-2)+\frac{\frac{n(n-1)}{2}-i+2}{1-i}&1&1& \cdots &\frac{n(n-1)}{2}-i+2& \cdots &1&1&1\\
0&-1&0& \cdots &0& \cdots &0&0&0\\
0&0&-1& \cdots &0& \cdots &0&0&0\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
0&0&0& \cdots &i-1&\cdots&0&0&0\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
0&0&0& \cdots &0& \cdots &-1&0&0\\
0&0&0& \cdots &0& \cdots &0&-1&0\\
0&0&0& \cdots &0& \cdots &0&0&-1
\end{array}
\right|
第i行
\\
\begin{array}{ccccccccc}
\,
\end{array}
\end{split}
\end{array}\]
化简行列式\({D_b}_{\overset{\phantom,}{i}}\),得:
\[{D_b}_{\overset{\phantom,}{i}}=\left(-1\right)^{n-2}\left(i-1\right)\left[(n-2)+\frac{\frac{n(n-1)}{2}-i+2}{1-i}\right]\\=\left(-1\right)^{n-1}\left[\frac{n(n-1)}{2}+n(1-i)+i\right]\\=\left(-1\right)^{n-1}\left[\frac{n(n-1)}{2}+n-i(n-1)\right]\]
由克拉默法则,得:
\[{x_b}_{\overset{\phantom,}{i}}=\frac{{D_b}_{\overset{\phantom,}{i}}}{D_b}=\frac{\left(-1\right)^{n-1}\left[\frac{n(n-1)}{2}+n-i(n-1)\right]}{\left(-1\right)^{n-1}(n-1)}=\frac{n}{2}+\frac{n}{n-1}-i\]
\[ \begin{equation*} \label{b1}\tag*{[Solution#1 of equations b]}
{x_b}_{\overset{\phantom,}{i}}=\frac{n}{2}+\frac{n}{n-1}-i
\end{equation*}\]
\ref{b1}
\begin{equation}
\left\{
\begin{split}
x_1\quad&\ &\ &\ &\ &\ &\ &=&\,\frac{n}{n-1}+\frac{n}{2}-1\\
\,&x_2\quad&\,&\ &\ &\ &\ &=&\,\frac{n}{n-1}+\frac{n}{2}-2\\
\,&\,&x_3\quad&\ &\ &\ &\ &=&\,\frac{n}{n-1}+\frac{n}{2}-3\\
\,&\,&\,&\ddots\quad&\,&\,&\,&=&\,\qquad\quad\vdots\\
\,&\,&\,&\,&x_{n-2}\quad&\,&\,&=&\,\frac{n}{n-1}+\frac{n}{2}-\left(n-2\right)\\
\,&\,&\,&\,&\,&x_{n-1}\quad&\,&=&\,\frac{n}{n-1}+\frac{n}{2}-\left(n-1\right)\\
\,&\,&\,&\,&\,&\quad&x_n&=&\,\frac{n}{n-1}+\frac{n}{2}-n
\end{split}
\right.
\end{equation} |
|