Processing math: 100%

bme

admin write write write

Gaussian Jordan Elimination Method (가우스 조단 소거법)

Linear Algebra 2022. 9. 2. 12:04
728x90
반응형
System of linear equations (연립방정식)의 solution를 구하는 가장 표준적인 방법.
Gauss Elimination을 좀더 보강한 방법
(← 손으로 계산할 경우, 가장 일반적인 방법)
  • System의 Augmented Matrix에 Elementary Row Operations을 적용하여 Row Reduction(=행소거, 또는 Elimination으로 볼 수 있음)을 수행.
  • Row reduction에 의해 Augmented Matrix는 Row Echelon Form (REF)이 됨. (← forward phase종료)
  • 이 REF를 backward phase를 수행하여 Reduced Row Echelon Form(RREF)으로 변경하여 solution을 구함.

Row Echelon Form

[00000]

  • is a leading entry. (pivot position)
  • 1,2 column이 바로 pivot column임.

Reduced Row Echelon Form

[000000]

  • is a leading entry. (pivot position)
  • 1,2 column이 바로 pivot column임.

Example

아래와 같은 augmented matrix가 있다고 하자. 여기에 Gauss-Jordan Elmination Method를 적용하라.

[021112211][x1x2x3]=[467][021411262117]

 

Solution

 

1. interchange 수행 (row1row3를 교체)

[211711260214]

 

2. replacement 수행 (row2=row212row1)

[211701/23/25/20214]

 

3. 편의를 위해 scaling 수행 (row2=2row2)

[211701350214]

 

4. replacement 수행 (row3=row32row2)

[211701350056]

 

5. backworad pahse 시작 : replacement 수행 (row2=row2+35row3)

[21170107/50056]

 

6. replacement 수행 (row1=row1+15row3)

[21029/50107/50056]

 

7. replacement 수행 (row1=row1row2)

[20022/50107/50056]

 

8. scaling 수행 (row1=12row1)

[10011/50107/50056]

 

9. scaling 수행 (row3=15row3)

[10011/50107/50016/5]

 

위에서 구한 matrix는 RREF이며, 쉽게 solution을 구할 수 있음.
x1=11/5,x2=7/5,x3=6/5


Gauss-Jordan Elimination Method의 사용처

  1. Solution 구하기.
  2. inverse matrix구하기.
    Gauss-Jordan Elimination Method를 통해 solution 구할 수 있다는 애기는 coefficient matrix의 inverse를 구하는데에도 사용가능하다는 것을 의미한다.
  3. rank계산 및 linear indepedent한 row vector 구하기
    all-zero row의 경우 linearly dependent하므로 coefficient matrix의 rank 를 계산하는데 이용가능함.

추가로,

  • REF를 구한 이후, Back substituion (후진 대입법)을 통해 해를 구하는 것이 Gauss Elimination Method (위의 예제에서 step4까지)이고,
  • RREF까지 구하여 해를 구할 경우 Gauss-Jordan Elimination Method라고 함.
  • REF는 element row operation들을 어떤 순서로 적용하느냐에 따라 다르므로 유일하게 결정되지 않으나, RREF는 유일(unique)하다. 때문에 library들에서 RREF는 함수로 제공되지만, REF는 아니다.
  • 굳이 REF를 얻고 싶다면, LU decomposition 등으로 구할 수는 있음 (unique하진 않음을 명심.). 

2022.09.02 - [Linear Algebra] - [LA] sympy로 Reduced Row Echelon Matrix 구하기.

728x90
admin