Linear Algebra Notes

Linear Systems of Equations

Fields

Fields are denoted by FF and examples include:

  • Real numbers: F=RF = \mathbb{R}
  • Rational numbers: F=QF = \mathbb{Q}
  • Complex numbers: F=CF = \mathbb{C}
  • F=Z4,7F = \mathbb{Z}_{4,7}

Linear System Definition

A linear system consists of mm equations in nn unknowns (x1,x2,,xnx1, x2, …, x_n):

a<em>11x1+a</em>12x2++a1nxn=b1a<em>{11}x1 + a</em>{12}x2 + … + a_{1n}xn = b1

a<em>21x1+a</em>22x2++a2nxn=b2a<em>{21}x1 + a</em>{22}x2 + … + a_{2n}xn = b2

\vdots

a<em>m1x1+a</em>m2x2++a<em>mnxn=b</em>ma<em>{m1}x1 + a</em>{m2}x2 + … + a<em>{mn}xn = b</em>m

Where a<em>11,a</em>12,,a<em>mn,b1,,b</em>mFa<em>{11}, a</em>{12}, …, a<em>{mn}, b1, …, b</em>m \in F.

Matrix Notation

  • Coefficient Matrix (A):

    A=[a<em>11a</em>12amp;amp;a<em>1n a</em>21amp;a<em>22a</em>2n amp;amp;amp; a<em>m1a</em>m2amp;amp;amn]A = \begin{bmatrix} a<em>{11} & a</em>{12} &amp; … &amp; a<em>{1n} \ a</em>{21} &amp; a<em>{22} & … & a</em>{2n} \ \vdots &amp; \vdots &amp; \ddots &amp; \vdots \ a<em>{m1} & a</em>{m2} &amp; … &amp; a_{mn} \end{bmatrix}

  • Matrix of Unknowns (X):

    X=[x1 x2  xn]X = \begin{bmatrix} x1 \ x2 \ \vdots \ x_n \end{bmatrix}

  • Right Hand Side Matrix (B):

    B=[b1 b2  bm]B = \begin{bmatrix} b1 \ b2 \ \vdots \ b_m \end{bmatrix}

  • Augmented Matrix ([A|B]):

    [AB]=[a<em>11a</em>12amp;amp;a<em>1nb1 a</em>21amp;a<em>22a</em>2namp;b2 amp;amp;amp;amp; a<em>m1a</em>m2amp;amp;amnamp;bm][A|B] = \begin{bmatrix} a<em>{11} & a</em>{12} &amp; … &amp; a<em>{1n} & b1 \ a</em>{21} &amp; a<em>{22} & … & a</em>{2n} &amp; b2 \ \vdots &amp; \vdots &amp; \ddots &amp; \vdots &amp; \vdots \ a<em>{m1} & a</em>{m2} &amp; … &amp; a_{mn} &amp; bm \end{bmatrix}

Solution to a Linear System

An nn-tuple of numbers s1,s2,,snFs1, s2, …, sn \in F is a solution to the system [AB][A|B] if, upon substituting x1=s1,x2=s2,,xn=snx1 = s1, x2 = s2, …, xn = s_n, every equation of the system becomes a correct equality.

Solution Set

The solution set of the system [AB][A|B] is the set of all solutions to [AB][A|B]. Solving the system means finding its solution set.

Consistent and Inconsistent Systems

  • Consistent System: A system with at least one solution.
  • Inconsistent System: A system with an empty solution set.

Example

  • System 1

    x1+x2=5x1 + x2 = 5

    x1+2x2=6x1 + 2x2 = 6

    Augmented matrix:

    [1amp;1amp;5 1amp;2amp;6]\begin{bmatrix} 1 &amp; 1 &amp; 5 \ 1 &amp; 2 &amp; 6 \end{bmatrix}

    Applying R2+(1)R1R2R2 + (-1)R1 \rightarrow R_2:

    [1amp;1amp;5 0amp;1amp;1]\begin{bmatrix} 1 &amp; 1 &amp; 5 \ 0 &amp; 1 &amp; 1 \end{bmatrix}

    Applying R1+(1)R2R1R1 + (-1)R2 \rightarrow R_1:

    [1amp;0amp;4 0amp;1amp;1]\begin{bmatrix} 1 &amp; 0 &amp; 4 \ 0 &amp; 1 &amp; 1 \end{bmatrix}

    The only solution is x1=4,x2=1x1 = 4, x2 = 1. Solution set: [4,1]{[4, 1]}

  • System 2

    x1+x2=5x1 + x2 = 5

    2x1+2x2=92x1 + 2x2 = 9

    Augmented matrix:

    [1amp;1amp;5 2amp;2amp;9]\begin{bmatrix} 1 &amp; 1 &amp; 5 \ 2 &amp; 2 &amp; 9 \end{bmatrix}

    Applying R2+(2)R1R2R2 + (-2)R1 \rightarrow R_2:

    [1amp;1amp;5 0amp;0amp;1]\begin{bmatrix} 1 &amp; 1 &amp; 5 \ 0 &amp; 0 &amp; -1 \end{bmatrix}

    This indicates no solution exists. The solution set is empty, {}, and the system is inconsistent.

  • System 3

    x1+x2=5x1 + x2 = 5

    2x1+2x2=102x1 + 2x2 = 10

    Augmented matrix:

    [1amp;1amp;5 2amp;2amp;10]\begin{bmatrix} 1 &amp; 1 &amp; 5 \ 2 &amp; 2 &amp; 10 \end{bmatrix}

    Applying R2+(2)R1R2R2 + (-2)R1 \rightarrow R_2:

    [1amp;1amp;5 0amp;0amp;0]\begin{bmatrix} 1 &amp; 1 &amp; 5 \ 0 &amp; 0 &amp; 0 \end{bmatrix}

    x1+x2=5x1 + x2 = 5, so x1=5x2x1 = 5 - x2. There are infinitely many solutions. Any solution is in the form [5t,t]tF{[5-t, t] | t \in F}.

Equivalent Linear Systems

Two linear systems in nn unknowns are equivalent if they have the same solution set.

Elementary Row Operations

  1. Interchanging two rows.
  2. Multiplying a row by a nonzero number.
  3. Replacing a row by the sum of itself and a multiple of another row.

Theorem: Elementary row operations do not change the solution set.

Questions to Think About

  • Will multiplying a row by 0 change the solution set?
  • Will replacing a row by a sum of itself and a multiple of itself change the solution set?

Definitions

  • Nonzero Row: A row with at least one nonzero entry.
  • Zero Row: A row consisting of all zeros.
  • Leading Entry: The leftmost nonzero entry in a nonzero row.

Row Echelon Form (REF)

A matrix is in REF if:

  1. All nonzero rows are above any zero rows.
  2. Each leading entry of a nonzero row is in a column strictly to the right of the leading entry of the row above it.

Reduced Row Echelon Form (RREF)

A matrix is in RREF if:

  1. It is in REF.
  2. The leading entry in each nonzero row is 1.
  3. The leading entry is the only nonzero entry in its column.

Pivot Position and Column

  • Pivot Position: A location in a matrix AA that corresponds to a leading 1 in RREF(A).
  • Pivot Column: A column of AA that contains a pivot position.

Theorems and Observations

  • Any matrix can be reduced to RREF by a sequence of elementary row operations.
  • The RREF of a matrix is unique.

Finding Solution Sets in RREF

  • Observation 1

    If B is a pivot column, then there is a '1' in the form [0  0 1]\begin{bmatrix} 0 \ … \ 0 \ 1 \end{bmatrix}. The system is inconsistent.

  • Observation 2

    Assume BB is not a pivot column.

    • Lead Variables: Variables corresponding to pivot columns.
    • Free Variables: All other variables.

    To find the solution set, solve for lead variables in terms of free variables.

Example

x1+6x2+3x4=0x1 + 6x2 + 3x4 = 0

x3+4x4=5x3 + 4x4 = 5

x5=7x5 = 7

x1,x3,x5x1, x3, x5 are lead variables.

x2,x4x2, x_4 are free variables.

x1=6x23x4x1 = -6x2 - 3x4

x3=54x4x3 = 5 - 4x4

x5=7x5 = 7

Solution set:

[6t3s t 54s s 7]s,tF{\begin{bmatrix} -6t - 3s \ t \ 5 - 4s \ s \ 7 \end{bmatrix} | s, t \in F}

Conclusion

A linear system is consistent if and only if BB is not a pivot column.

If the system is consistent:

  • It has a unique solution when all variables are lead (no free variables).
  • It has many solutions when there are free variables.

Example: Solving a System

x1+x2+x3+x4+x5=1x1 + x2 + x3 + x4 + x5 = 1

x1x2+x5=1-x1 - x2 + x5 = -1

2x12x2+3x5=1-2x1 - 2x2 + 3x5 = 1

x3+x4+3x5=3x3 + x4 + 3x5 = 3

x1+x2+2x3+2x4+4x5=4x1 + x2 + 2x3 + 2x4 + 4x_5 = 4

Applying elementary row operations leads to:

Solution set:

[4t t 6+s s 3]s,tF{\begin{bmatrix} 4 - t \ t \ -6 + s \ s \ 3 \end{bmatrix} | s, t \in F}

x1,x3,x5x1, x3, x5 are lead variables.

x2,x4x2, x_4 are free variables.

Mm×n(F)M_{m \times n}(F)

Vector Spaces

Examples of Vector Spaces

  1. Ordered Pairs of Real Numbers with Component-wise Operations

    R2=[a1 a2]a1,a2R\mathbb{R}^2 = { \begin{bmatrix} a1 \ a2 \end{bmatrix} | a1, a2 \in \mathbb{R} }

    [a1 a2]+[b1 b2]=[a1+b1 a2+b2]\begin{bmatrix} a1 \ a2 \end{bmatrix} + \begin{bmatrix} b1 \ b2 \end{bmatrix} = \begin{bmatrix} a1 + b1 \ a2 + b2 \end{bmatrix}

    c[a1 a2]=[ca1 ca2]c \begin{bmatrix} a1 \ a2 \end{bmatrix} = \begin{bmatrix} ca1 \ ca2 \end{bmatrix}

    Geometrically, vectors in the plane are directional vectors represented by directed line segments from (0,0) to (a1,a2)(a1, a2).

    Scalar multiplication changes the length and direction (or preserves direction if c > 0 and reverses direction if c < 0).

    Vector addition is done by the parallelogram rule.

  2. Ordered n-tuples of Real Numbers with Component-wise Operations

    Rn=[a1  an]aiR\mathbb{R}^n = { \begin{bmatrix} a1 \ \vdots \ an \end{bmatrix} | a_i \in \mathbb{R} }

    [a1  an]+[b1  bn]=[a1+b1  an+bn]\begin{bmatrix} a1 \ \vdots \ an \end{bmatrix} + \begin{bmatrix} b1 \ \vdots \ bn \end{bmatrix} = \begin{bmatrix} a1 + b1 \ \vdots \ an + bn \end{bmatrix}

    c[a1  an]=[ca1  can]c \begin{bmatrix} a1 \ \vdots \ an \end{bmatrix} = \begin{bmatrix} ca1 \ \vdots \ can \end{bmatrix}

    Two n-tuples are equal if ai=biai = bi for all ii.

  3. Ordered n-tuples of Elements of a Field F with Component-wise Operations

    Fn=[a1  an]aiFF^n = { \begin{bmatrix} a1 \ \vdots \ an \end{bmatrix} | a_i \in F }

    [a1  an]+[b1  bn]=[a1+b1  an+bn]\begin{bmatrix} a1 \ \vdots \ an \end{bmatrix} + \begin{bmatrix} b1 \ \vdots \ bn \end{bmatrix} = \begin{bmatrix} a1 + b1 \ \vdots \ an + bn \end{bmatrix}

    c[a1  an]=[ca1  can]c \begin{bmatrix} a1 \ \vdots \ an \end{bmatrix} = \begin{bmatrix} ca1 \ \vdots \ can \end{bmatrix}

  4. m x n Matrices with Entries from Field F and Component-wise Operations

    M<em>m×n(F)=[a</em>11amp;amp;a<em>1n  a</em>m1amp;amp;a<em>mn]a</em>ijFM<em>{m \times n}(F) = { \begin{bmatrix} a</em>{11} &amp; … &amp; a<em>{1n} \ \vdots & \ddots & \vdots \ a</em>{m1} &amp; … &amp; a<em>{mn} \end{bmatrix} | a</em>{ij} \in F }

    Matrix addition and scalar multiplication are defined component-wise.

  5. Polynomials with Coefficients from Field F

    A polynomial of degree n is an expression of the form:

    anxn+an1xn1++a1x+a0anx^n + a_{n-1}x^{n-1} + … + a1x + a0

    where aiFai \in F for all ii and an0an \neq 0.

    The polynomial 0 (where ai=0a_i = 0 for all ii) has degree -1.

    Two polynomials are equal if their corresponding coefficients are equal (i.e., ai=biai = bi for all ii).

    Polynomial addition is defined by collecting like terms:

    (anxn++a1x+a0)+(bnxn++b1x+b0)=(an+bn)xn++(a1+b1)x+(a0+b0)(anx^n + … + a1x + a0) + (bnx^n + … + b1x + b0) = (an + bn)x^n + … + (a1 + b1)x + (a0 + b0)

    Scalar multiplication is defined as:

    c(anxn++a1x+a0)=(can)xn++(ca1)x+(ca0)c(anx^n + … + a1x + a0) = (can)x^n + … + (ca1)x + (ca0)

    Examples of Polynomial Vector Spaces

    • Pn(F)=anxn+an1xn1++a1x+a0aiFPn(F) = { anx^n + a_{n-1}x^{n-1} + … + a1x + a0 | ai \in F }: polynomials of degree n\leq n
    • P(F)=anxn+a<em>n1xn1++a1x+a0a</em>iF,n0P(F) = { anx^n + a<em>{n-1}x^{n-1} + … + a1x + a0 | a</em>i \in F, n \geq 0 }: polynomials of any degree
  6. Functions from a Set S to a Field F with Pointwise Operations

    Let SS be a set and FF be a field. Then f:SFf: S \rightarrow F means ff is a function from SS to FF.

    F(S,F)=ff:SFF(S, F) = {f | f: S \rightarrow F}

    Two functions f,g:SFf, g: S \rightarrow F are equal if f(x)=g(x)f(x) = g(x) for all xSx \in S.

    Addition and scalar multiplication are defined point-wise:

    (f+g)(x)=f(x)+g(x)(f + g)(x) = f(x) + g(x)

    (cf)(x)=cf(x)(cf)(x) = c f(x)

Justifying Gaussian Elimination

Consider W a mxn matrix. Elementary operations are reversible.

Let WW' is obtained from WW by one elementary now operation.

Proposition 1: WW can be obtained from WW' by one elementary now operation.

Proof:

Case 1:

Assume that WW' is obtained from WW by interchanging two rows RiRjRi \leftrightarrow Rj;

WRiRjWRiRjWW \xrightarrow{Ri \leftrightarrow Rj} W' \xrightarrow{Ri \leftrightarrow Rj} W

Case 2:

Assume that WW' is obtained from WW by multiplying a row by non-zero scalar cRiRic Ri \rightarrow Ri;

WcRiRiW1cRiRiWW \xrightarrow{c Ri \rightarrow Ri} W' \xrightarrow{\frac{1}{c} Ri \rightarrow Ri} W

Case 3:

Assume that WW' is obtained from WW by replacing a row by the sum of itself and a multiple of another row Ri+cRjRiRi + c Rj \rightarrow R_i;

WRi+cRjRiWRi+(c)RjRiWW \xrightarrow{Ri + c Rj \rightarrow Ri} W' \xrightarrow{Ri + (-c) Rj \rightarrow Ri} W

Corollary: If WW' is obtained from WW by a finite sequence of row operations, then WW can be obtained from WW' by a finite sequence of row operations.

Proposition 2

Let [AB][A|B] be a linear system of mm equations in nn variables: AX=BAX=B.

Let S=[s1 s2  sn]S=\begin{bmatrix} s1 \ s2 \ … \ s_n \end{bmatrix} be a solution to the system [AB][A|B].

Assume that [AB][A'|B'] is obtained from [AB][A|B] by one elementary row operation. Then SS is a solution to [AB][A'|B'].

Proof:

We have that

a<em>k1S1+a</em>k2S2++a<em>knSn=b</em>kfor all k=1,ma<em>{k1}S1 + a</em>{k2}S2+ … +a<em>{kn}Sn=b</em>k\quad for\space all\space k=\overline{1,m}

Case 3:

Assume [AB][A'|B'] is obtained from [AB][A|B] by replacing a row sum by a multiple of another row, RiRi+cRjRi \rightarrow Ri+cRj

For equation of [AB][A'|B'], we get

(a{i1}+ca{j1})S1+(a{i2}+ca{j2})S2+…+(a{in}+ca{jn})Sn=
=(a{i1}S1+a{i2}S2+…+a{in}Sn)+c(a{j1}S1+a{j2}S2+…+a{jn}Sn)=
=bi+cbj

Hance S satisfies equality of [AB][A'|B']

Consequences:

If [AB][A'|B'] is obtained from [AB][A|B] by one elementary row operation, then

SS is a solution to [AB][A|B] if and only if

SS is a solution to [AB][A'|B'].

If [AB][A'|B'] is obtained from [AB][A|B] by a finite sequence of row operations, then the solution set of [AB][A'|B'] is equal to/same as the solution set of [AB]][A|B]].

Proving that RREF can be obtained from any matrix by elementary operations::

Lemma 3 : Let WW be an mxn matrix. Then there exists WW' RREF such that WW' obtained from WW by elementary operations. Also, given column equal to 00 implies columns in WW' is 00.

Proof: With indication in number of nonzero rows in WW.

  1. If WW is an zero matrix, then is already is RREF

  2. if WW not a zero matrix, there exits lkhl \leq k \leq h, W<em>ik0W<em>{ik}\neq0 choose kk to be with W</em>ik0W</em>{ik}\neq0, and all coefficients left of column kk is zero(0):

    Then operations cRi+ Ri- \rightarrow> Ri, W<em>ik0W<em>{ik}\neq0. We call W</em>ik=1W</em>{ik}=1 via 1W<em>ik.\frac {1}{W<em>{ik}}.Then R1Ri=>W</em>jk=0R1 \leftrightarrow Ri => W</em>{jk}=0 for all 2im2 \leq i \leq m.

    Consider matrix VV, then (m1)xn(m-1)xn matrix obtain from WW' by deleting the first row. With indicate hypothesis exits matrix VV' in RREF. Putting row 1 WW' of matrix W3W3 as row 1 of matrix VV' the entries W3k=1W_{3k} =1 for all. Entries in leading columns of vv' are zero 1.

Vector Spaces(section 1.2)

Set VV with two operations is a vector space if the 8 axioms:

Axiom1: \forall X1X1, X2X2**\in V, X1+X2=X2+X1
Axiom2: \forallX1,,X2,,\X3** V,(X1+X2)+X3=X1+(X2+X3)\in V, (X1+X2)+X3=X1+(X2+X3)
Axiom3: uVsitXV,u+X=X\exists u\in V sit \forall X\in V, u+X=X
Axiom4: XV,yV,X+y=u\forall X\in V, \exists y \in V, X+y=u uu comes from Axiom3
Axiom5: XV,</p><p>Axiom1:\forall X\in V,</p><p>Axiom1:\forallX1,,X2\in V, X1+X2=X2+X1

Axiom2: \forallX1,,X2,,
X3\in V, (X1+X2)+X3=X1+(X2+X3)

Axiom3: \exists u\in V sit \forall X\in V, u+X=X

Axiom4: \forall X\in V, \exists y \in V, X+y=uu comes from Axiom3

Axiom5: \forall X\in V, 1X=X

Axiom6: \forall a,b \in F, X \in V, (ab)X=a(bX)

Axiom7: \forall a \in F, X,Y \in V, a(X+Y)=aX+aY

Axiom8: \forall a,b \in F, X \in V, (a+b)X=aX+bX$$