Equivalence of the system of linear equations
Definition 1. Two systems of linear equations are called equivalent if they have the same solution set.
Theroem 1
Theorem 1. Let Ax=b be a system of m linear equations in n unknowns, and let C be an invertible m×m matrix. Then the system (CA)x=Cb is equivalent to Ax=b.
Proof. Denote K and KC the solution set to Ax=b and (CA)x=Cb, respectively.
∀s∈K,As=b⟹(CA)s=Cb⟹s∈KC.
∀l∈KC,CAl=Cb⟹C−1CAl=Al=b=C−1Cb⟹l∈K. Thus K=KC. ◼
Corollary
Corollary. Let Ax=b be a system of linear equations. If (A′|b′) is obtained from (A|b) by a finite number of elementary row operation, then the system A′x=b′ is equivalent to the original system.
Proof. Denote that (A′|b′)=Rp⋯R1(A|b)=Rp(I)⋯R1(I)(A|b)=C(A|b), where C:=Rp(I)⋯R1(I). Then A′=CA and b′=Cb. By Theorem 1, A′x=b is equivalent to Ax=b. ◼
이 따름정리는 주어진 선형연립방정식을 RREF로 바꾸어도 해집합은 같다는, 즉 equivalent하다는 것을 보장해준다. 주어진 방정식을 RREF로 바꾸면 해를 쉽게 구할 수 있다.
Example
2x1+3x2+x3+4x4−9x5=17x1+x2+x3+x4−3x5=6x1+x2+x3+2x4−5x5=82x1+2x2+2x3+3x4−8x5=14
다음과 같이 연립방정식이 주어졌다고 하자. 가우스 소거법을 적용하여 RREF로 변환하면 다음과 같다.
(A|b)=(2314−9171111−361112−582223−814)∼(1020−2301−10110001−22000000)=(A′|b′)
이때 rank(A′) = rank(A′|b′)이므로 주어진 방정식은 해가 존재한다. 변환한 방정식을 새로 쓰면 다음과 같다.
x1+2x3−2x5=3x2−x3+x5=1x4−2x5=2 각 줄의 가장 왼쪽에 있는 변수들을 제외한 나머지, 즉 x3,x5에 매개변수 t1,t2를 부여하고 정리하면 다음과 같다.
x1=−2t1+2t2+3x2=t1−t2+1x4=2t2+2 따라서 방정식의 일반해는 다음과 같이 얻어진다. (x1x2x3x4x5)=(−2t1+2t2+3t1−t2+1t12t2+2t2)=(31020)+t1(−21100)+t2(2−1021), where t1,t2∈R.
How to solve the system of linear equations
지금까지의 과정을 요약하면 다음과 같다.
- Applying Gaussian elimination to the augmented matrix of the system to obtain RREF.
- Determine whether the system is consistent.
- If it does, then discard any zero rows from RREF and write the corresponding system.
- Divide the variables into two sets: 1) The leftmost variables, 2) The remaining variables
- Assign parametric values t1,t2,... to each variables in 2) set.
- Solve for the variables of the 1) set in terms of the 2) set.
- Then the solution s to the system is of the form s=s0+t1u1+⋯+tn−run−r, where r is the number of nonzero rows in RREF.
이렇게 얻은 해 s를 주어진 연립방정식의 일반해라고 부른다. 위와 같은 과정을 통해서 주어진 선형연립방정식이 해가 존재한다면 항상 구할 수 있다.
한편, 시스템의 해집합이 어떻게 생겨먹었는지를 기억한다면 위에서 구한 일반해 s의 형태는 자명하다. 이때 각 u1,...,un−r은 대응하는 homogeneous system의 해집합의 기저가 된다는 것을 다음의 정리가 보여준다.
Theorem 2
Theorem 2. Let Ax=b be a system of r nonzero equations in n unknowns. Suppose that rank(A) = rank(A|b) and that (A|b) is in RREF. Then the followings hold:
(a) rank(A) = r,
(b) If the general solution obtained by the procedure above is of the form s=s0+t1u1+⋯+tn−run−r, then {u1,...,un−r} is a basis for the solution set of Ax=0, and s0 is a solution to Ax=b.
Proof. (a) By the definition of RREF, it is clear.
(b) Let K and KH be the solution set of Ax=b and Ax=0, respectively.
If we set t1=⋯=tn−r=0, then s=s0∈K. Note that K={s0}+KH by Theorem 1. Thus we have KH={−s0}+K. Since −s0+s=t1u1+⋯+tn−run−r and we can choose any value of t_i arbitrarily, KH=<{u1,...,un−r}>.
Note that dim(KH) = n−r by the dimension theorem. Thus {u1,...,un−r} is a basis for KH by the replacement theorem.