본문으로 이동

미디어위키 1.45 안정화가 거의 끝났습니다. 다만 Flow 확장 기능 관련 이슈가 있어서 대체하는 작업을 수행할 계획입니다.

  1. 큰숲백과:청사진에서 위키 발전의 대략적인 방향성을 제시했습니다. 의견이 있으신 분은 큰숲백과토론:청사진에서 의견을 남겨주시면 좋겠습니다.
  2. 기능상의 오류로 지원하지 않고 있는 기능에 대해서는 큰숲백과토론:이슈 트래커에 요약했습니다. 참고하시기 바랍니다.
  3. 데이터베이스 덤프 받고싶으신 분은 큰숲백과 가입 후에 사용자토론:Bigforest에 의견 남겨주시면 ftp 주소, 계정, 비밀번호를 특수:EmailUser를 통해서 공개할 예정입니다.

작은숲:공책/선형대수/Gaussian Elimination

큰숲백과, 나무를 보지 말고 큰 숲을 보라.
공책 문서입니다. 독자연구성 서술이나 난해한 서술이 있을 수도 있음에 유의해주세요.

Summary (요약)

This article is about Gaussian Elimination and Gauss-Jordan Elimination. (가우스 소거법과 가우스/조르당 소거법에 관한 문서입니다.)

Object of the note (이 강의 노트의 목적)

The object of the article is explaning Gaussian Elimination and solving system of linear equations using the method. (가우스 소거법을 사용하는 방법과 이 소거법을 이용해서 선형 연립방정식을 푸는 방법을 설명한다.)

What is the system of linear equations? (선형 연립방정식이란?)

The system of linear equations with m equations and n variables has the format.

a11x1+a12x2+a13x3+⋯+a1nxn=b1
a21x1+a22x2+a23x3+⋯+a2nxn=b2
a31x1+a32x2+a33x3+⋯+a3nxn=b3
⋮
am1x1+am2x2+am3x3+⋯+amnxn=bm

By the definition of multiplications of matrix, this equation can be expressed as the matrix form.

(a11a12a13⋯a1na21a22a23⋯a2na31a32a33⋯a3n⋮⋮⋮⋮am1am2am3⋯amn)(x1x2x3⋮xn)=(b1b2b3⋮bm)

We can express each matrices in the above equation as Am×n=(aij), xn×1=(xi), bm×1=(bi)라고 하면, 연립 일차 방정식은 다음과 같이 단순하게 쓸 수 있다.

Ax=b

In this case, Ais called the coefficient matrix(계수 행렬), x called solution vector(해 벡터), and b called source vector(소스 벡터). Also, the matrix adjointing coefficient matrix and source matrix (A|b) is called augmented matrix(첨가 행렬).

The system of linear equations Ax=b is called homogeneous(동기 연립 일차 방정식) if b=0 and nonhomogeneous(비동기 연립 일차 방정식) if b≠0.

[1]

What is Guassian Elimination? (가우스 소거법이란?)

Gaussian Elimination is a method of solving systems of linear eqautions by operating augmented matrix with row interchange, multiplication of rows and add a row to a multiple of other rows in order to simplify augmented matrix and find solutions.
가우스 소거법 - 첨가행렬을 행 교환, 상수배 혹은 선형 연립 방정식을 푸는 전략입니다.

Core strategy - Making the coefficient aij=0 by subtracting other coefficients of rows. Each column should have at most one nonzero coefficients. (행의 상수배한 것을 적절히 빼서 각 열마다 기껏해야 1개를 제외하고 모두 계수를 0으로 만드는 전략입니다.) 구체적으로는 아래와 같이 시행할 것입니다.

How it works(동작 원리)

  1. Interchanging rows does not change solutions - 행 교환은 연립방정식의 해를 바꾸지 않습니다.
  2. Multiplication by constant does not change solutions - 행의 상수배는 연립방정식의 해를 바꾸지 않습니다. This is useful strategy in order to make nonzero leading coeffcient as 1. (각 행에서 최초로 0 아닌 계수가 1로 만드는데 유용합니다.)
  3. Adding a multiple of one row to the other row does not change solutions - 다른 행의 상수배를 더해도 해는 보존됩니다. This is useful strategy in order to remove extraneous coefficients in other rows and make each column contain at most one nonzero coefficient. 이 전략은 첨가행렬에서 각 열마다 0 아닌 숫자가 최대 1개까지 나타나게 만들기 위한 전략입니다.

Terms (용어)

  • Row-echelon form (행 사다리꼴 행렬)
    • Matrix (aij) - Each row matrix Mr=(arj) r fixed.
    • Leading coefficient(선행계수) - For Mr rth row matrix, arj(r) with j(r)=min⁡{j|arj(r)≠0}
    • Row-echelon form - A is row-echelon form if
      • rth row Mr=0, then for s>r sth row Ms=0
      • suppose arj(s) is the leading coeffcient of rth row, then for s>r, Ms=0 or j(s)>j(r)
    • Reduced Row-echelon form (기약 행 사다리꼴 행렬) - A row-echelon form A is the reduced row echlon form i
      • for leading coefficient arJ(r), (r=1, ... k), j(1)<j(2)<⋯<j(k) - for each j≤j(k) jth row has at most one nonzero coefficient.


Solution of a question (문제풀이)

  • Gaussian Elimination - Make augmented matrix as Row-echelon form and using back substitution.

{x+y+2z=92x+4y−3z=13x+6y−5z=0

  • Express system of linear equation as augmented matrix

(112924−3136−50)

  • M2←M2−2×M1

(112902−7−1736−50)

  • M3←M3−3×M1

(112902−7−1703−11−27)

  • M2←M2×1/2

(112901−7/2−17/203−11−27)

  • M3←M3−M2×3

(112901−7/2−17/200−1/2−3/2)

  • −1/2z=−3/2→z=3
  • y−7/2z=y−21/2=−17/2→y=2 (Back Substitution)
  • x+y+2z=x+8=9→x=1 (Back Substitution)


  • Gauss-Jordan Elimination - Make Augmented Matrix as Reduced Row-echelon form.

{x+y+2z=92x+4y−3z=13x+6y−5z=0

  • Express system of linear equation as augmented matrix

(112924−3136−50)

  • M2←M2−2×M1

(112902−7−1736−50)

  • M3←M3−3×M1

(112902−7−1703−11−27)

  • M2←M2×1/2

(112901−7/2−17/203−11−27)

  • M3←M3−M2×3

(112901−7/2−17/200−1/2−3/2)

  • M3←M3×−2

(112901−7/2−17/20013)

  • M1←M1+M2×−1

(1011/235/201−7/2−17/20013)

  • M1←M1+M3×−11/2,M2←M2+M3×7/2

(100101020013)

Example

General Solution
구문 분석 실패 (알 수 없는 함수 "\begin{pmatrix}"): {\displaystyle \begin{pmatrix} {a} & {b} \\ {c}& {d} \end{pmatrix} \begin{pmatrix} {x \\ y} \end{pmatrix} = \begin{pmatrix} {m} \\ {n} \end{pmatrix} }

or (ab|mcd|n) (ad−bc≠0)

has a unique pair of solution (xy)=1ad−bc(dm−bn−cm+an)

Sources

각주