Linear Equations in Linear Algebra Academic Study Notes

Linear Equations and Systems of Linear Equations

  • A linear equation is an equation that can be written in the form:   a1x1+a2x2++anxn=ba_1 x_1 + a_2 x_2 + \dots + a_n x_n = b   where a1,,ana_1, \dots, a_n and bb are real or complex numbers.

  • The variables x1,,xnx_1, \dots, x_n represent the unknowns of the linear equation.

  • An equation is non-linear if any variable is modified by non-linear operations, such as being enclosed inside a square root (for example, x1\sqrt{x_1}).

  • A system of linear equations (or linear system) is a collection of one or more linear equations involving the same set of variables x1,x2,,xnx_1, x_2, \dots, x_n.

  • A real-life application of linear systems includes determining unknown quantities when several simultaneous conditions must be satisfied, such as calculating the amounts of different ingredients in a mixture when total quantities of specific constituent elements are known.

  • A solution of a system of linear equations is a set of specific values assigned to the variables x1,x2,,xnx_1, x_2, \dots, x_n that satisfies every equation in the system simultaneously.

  • A linear system is classified according to the existence and number of its solutions:

    • Consistent system: A linear system that has either a unique solution or infinitely many solutions.

    • Inconsistent system: A linear system that has no solution.

Echelon Form and Row Reduced Echelon Form (RREF)

  • A matrix is in Echelon Form if it satisfies the following three conditions:

    1. All non-zero rows are located above any all-zero rows (all zero rows are grouped at the bottom of the matrix).

    2. The leading entry (the first non-zero element from the left) of each non-zero row is in a column strictly to the right of the leading entry of the row directly above it.

    3. All entries in a column below a leading entry are equal to 00

  • A matrix is in Row Reduced Echelon Form (RREF) if it satisfies all three conditions of Echelon Form plus the following two additional conditions:

    1. The leading entry in every non-zero row is equal to 11

    2. Each leading entry 11 is the only non-zero entry in its column (all other entries in that column are 00

  • Key Definitions:

    • Pivot Element (or Pivot): The first non-zero entry in a non-zero row of a matrix in echelon form.

    • Pivot Column: A column in a matrix that contains a pivot element.

    • Basic Variable: A variable corresponding to a pivot column in the matrix.

    • Free Variable: A variable corresponding to a non-pivot column in the matrix.

Elementary Row Operations and Matrix Reduction

  • Three elementary row operations can be performed on a matrix to transform it into echelon form or row reduced echelon form without altering the solution set of the corresponding linear system:

    1. Interchange: Swap the positions of any two rows RiR_i and RjR_j (denoted RiRjR_i \leftrightarrow R_j).

    2. Scaling: Multiply all entries of a row RiR_i by a non-zero scalar kk (denoted kRiRik R_i \rightarrow R_i).

    3. Replacement: Replace a row RiR_i with the sum of itself and a scalar multiple of another row RjR_j (denoted Ri+kRjRiR_i + k R_j \rightarrow R_i).

  • Two matrices are row equivalent if one can be transformed into the other via a sequence of elementary row operations. Row equivalent augmented matrices represent linear systems with identical solution sets.

Step-by-Step Matrix Reduction Example

  • Consider the matrix reduction process to obtain Echelon Form and Row Reduced Echelon Form:

  • Initial Matrix:   [0148232158713415]\begin{bmatrix} 0 & 1 & -4 & 8 \\ 2 & -3 & 2 & 1 \\ 5 & -8 & 7 & 1 \\ 3 & -4 & 1 & 5 \end{bmatrix}

  • Step 1: Interchange row 33 and row 44 (R3R4R_3 \leftrightarrow R_4):   [0148232134155871]\begin{bmatrix} 0 & 1 & -4 & 8 \\ 2 & -3 & 2 & 1 \\ 3 & -4 & 1 & 5 \\ 5 & -8 & 7 & 1 \end{bmatrix}

  • Step 2: Interchange row 11 and row 22 (R1R2R_1 \leftrightarrow R_2):   [2321014834155871]\begin{bmatrix} 2 & -3 & 2 & 1 \\ 0 & 1 & -4 & 8 \\ 3 & -4 & 1 & 5 \\ 5 & -8 & 7 & 1 \end{bmatrix}

  • Step 3: Eliminate lower entries in column 11 using replacement operations R3R332R1R_3 \rightarrow R_3 - \frac{3}{2} R_1 and R4R452R1R_4 \rightarrow R_4 - \frac{5}{2} R_1:   [23210148012272012232]\begin{bmatrix} 2 & -3 & 2 & 1 \\ 0 & 1 & -4 & 8 \\ 0 & \frac{1}{2} & -2 & \frac{7}{2} \\ 0 & -\frac{1}{2} & 2 & -\frac{3}{2} \end{bmatrix}

  • Step 4: Eliminate lower entries in column 22 using replacement operations R3R312R2R_3 \rightarrow R_3 - \frac{1}{2} R_2 and R4R4+12R2R_4 \rightarrow R_4 + \frac{1}{2} R_2:   [232101480001200052]\begin{bmatrix} 2 & -3 & 2 & 1 \\ 0 & 1 & -4 & 8 \\ 0 & 0 & 0 & -\frac{1}{2} \\ 0 & 0 & 0 & \frac{5}{2} \end{bmatrix}

  • Step 5: Eliminate lower entries in column 44 using replacement operation R4R4+5R3R_4 \rightarrow R_4 + 5 R_3:   [23210148000120000]\begin{bmatrix} 2 & -3 & 2 & 1 \\ 0 & 1 & -4 & 8 \\ 0 & 0 & 0 & -\frac{1}{2} \\ 0 & 0 & 0 & 0 \end{bmatrix}   This matrix is in Echelon Form.

  • Step 6: Scale row 33 by 2-2 (2R3R3-2 R_3 \rightarrow R_3):   [2321014800010000]\begin{bmatrix} 2 & -3 & 2 & 1 \\ 0 & 1 & -4 & 8 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 0 \end{bmatrix}

  • Step 7: Eliminate non-zero entries above the third pivot in column 44 using R1R1R3R_1 \rightarrow R_1 - R_3 and R2R28R3R_2 \rightarrow R_2 - 8 R_3:   [2320014000010000]\begin{bmatrix} 2 & -3 & 2 & 0 \\ 0 & 1 & -4 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 0 \end{bmatrix}

  • Step 8: Eliminate non-zero entries above the second pivot in column 22 using R1R1+3R2R_1 \rightarrow R_1 + 3 R_2:   [20100014000010000]\begin{bmatrix} 2 & 0 & -10 & 0 \\ 0 & 1 & -4 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 0 \end{bmatrix}

  • Step 9: Scale row 11 by 12\frac{1}{2} (12R1R1\frac{1}{2} R_1 \rightarrow R_1):   [1050014000010000]\begin{bmatrix} 1 & 0 & -5 & 0 \\ 0 & 1 & -4 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 0 \end{bmatrix}   This matrix is in Row Reduced Echelon Form (RREF), where all pivot entries equal 11 and all other entries in the pivot columns equal 00

General Procedure for Solving Systems of Linear Equations

  • Step 1: Construct the augmented matrix [Ab][A \mid \mathbf{b}] representing the system of linear equations.

  • Step 2: Perform elementary row operations (interchange, scaling, and replacement) to reduce the augmented matrix to echelon form.

  • Step 3: Test for consistency:

    • If the rightmost column (the column of constants) contains a pivot position, the system contains an equation of the form 0=b0 = b where b0b \neq 0, so no solution exists (inconsistent).

    • Otherwise, no pivot exists in the rightmost column, so a solution exists (consistent).

  • Step 4: Continue row reduction until the matrix is in Row Reduced Echelon Form (RREF).

  • Step 5: Write the simplified system of equations corresponding to the RREF matrix. Express basic variables in terms of any free variables to determine the general solution.

Systems of Linear Equations Solved Examples

  • Example 1: System with a Unique Solution

    • Consider solving a linear system via augmented matrix reduction:     [028812104599]\begin{bmatrix} 0 & 2 & -8 & 8 \\ 1 & -2 & 1 & 0 \\ -4 & 5 & 9 & -9 \end{bmatrix}

    • Interchange row 11 and row 22 (R1R2R_1 \leftrightarrow R_2):     [121002884599]\begin{bmatrix} 1 & -2 & 1 & 0 \\ 0 & 2 & -8 & 8 \\ -4 & 5 & 9 & -9 \end{bmatrix}

    • Apply R3R3+4R1R_3 \rightarrow R_3 + 4 R_1:     [1210028803139]\begin{bmatrix} 1 & -2 & 1 & 0 \\ 0 & 2 & -8 & 8 \\ 0 & -3 & 13 & -9 \end{bmatrix}

    • Scale row 22 by 12\frac{1}{2} (12R2R2\frac{1}{2} R_2 \rightarrow R_2):     [1210014403139]\begin{bmatrix} 1 & -2 & 1 & 0 \\ 0 & 1 & -4 & 4 \\ 0 & -3 & 13 & -9 \end{bmatrix}

    • Apply R3R3+3R2R_3 \rightarrow R_3 + 3 R_2:     [121001440013]\begin{bmatrix} 1 & -2 & 1 & 0 \\ 0 & 1 & -4 & 4 \\ 0 & 0 & 1 & 3 \end{bmatrix}

    • Eliminate entries above pivot 33 (R2R2+4R3R_2 \rightarrow R_2 + 4 R_3 and R1R1R3R_1 \rightarrow R_1 - R_3):     [1203010160013]\begin{bmatrix} 1 & -2 & 0 & -3 \\ 0 & 1 & 0 & 16 \\ 0 & 0 & 1 & 3 \end{bmatrix}

    • Eliminate entry above pivot 22 (R1R1+2R2R_1 \rightarrow R_1 + 2 R_2):     [10048010160013]\begin{bmatrix} 1 & 0 & 0 & 48 \\ 0 & 1 & 0 & 16 \\ 0 & 0 & 1 & 3 \end{bmatrix}

    • The system yields a unique solution:     x1=48x_1 = 48     x2=16x_2 = 16     x3=3x_3 = 3

  • Example 2: System with Infinitely Many Solutions

    • Consider solving a linear system with augmented matrix:     [12133622]\begin{bmatrix} 1 & -2 & -1 & 3 \\ 3 & -6 & -2 & 2 \end{bmatrix}

    • Apply R2R23R1R_2 \rightarrow R_2 - 3 R_1:     [12130017]\begin{bmatrix} 1 & -2 & -1 & 3 \\ 0 & 0 & 1 & -7 \end{bmatrix}

    • Apply R1R1+R2R_1 \rightarrow R_1 + R_2 to reach RREF:     [12040017]\begin{bmatrix} 1 & -2 & 0 & -4 \\ 0 & 0 & 1 & -7 \end{bmatrix}

    • Corresponding linear equations:     x12x2=4    x1=2x24x_1 - 2x_2 = -4 \implies x_1 = 2x_2 - 4     x3=7x_3 = -7

    • The variable x2x_2 is a free variable.

    • The general solution is:     (x1x2x3)=(2x24x27)\begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix} = \begin{pmatrix} 2x_2 - 4 \\ x_2 \\ -7 \end{pmatrix}

    • Since x2x_2 can take any value, the system has infinitely many solutions.

  • Example 3: Homogeneous System with Infinitely Many Solutions

    • Consider a homogeneous system Ax=0A \mathbf{x} = \mathbf{0} with 4 variables x1,x2,x3,x4x_1, x_2, x_3, x_4

    • After performing row operations, the augmented matrix reduces to RREF:     [100200103000110]\begin{bmatrix} 1 & 0 & 0 & 2 & 0 \\ 0 & 1 & 0 & -3 & 0 \\ 0 & 0 & 1 & 1 & 0 \end{bmatrix}

    • Columns 11, 22, and 33 are pivot columns, corresponding to basic variables x1,x2,x3x_1, x_2, x_3

    • Column 44 has no pivot, so x4x_4 is a free variable.

    • Corresponding equations:     x1+2x4=0    x1=2x4x_1 + 2x_4 = 0 \implies x_1 = -2x_4     x23x4=0    x2=3x4x_2 - 3x_4 = 0 \implies x_2 = 3x_4     x3+x4=0    x3=x4x_3 + x_4 = 0 \implies x_3 = -x_4

    • Vector form of the general solution:     x=(x1x2x3x4)=(2x43x4x4x4)=x4(2311)\mathbf{x} = \begin{pmatrix} x_1 \\ x_2 \\ x_3 \\ x_4 \end{pmatrix} = \begin{pmatrix} -2x_4 \\ 3x_4 \\ -x_4 \\ x_4 \end{pmatrix} = x_4 \begin{pmatrix} -2 \\ 3 \\ -1 \\ 1 \end{pmatrix}

    • Because x4x_4 is free, the homogeneous system has infinitely many solutions.

Homogeneous and Non-Homogeneous Linear Systems

  • A system of linear equations written in matrix form as Ax=bA \mathbf{x} = \mathbf{b} is classified based on the vector of constants b\mathbf{b}:

    • Homogeneous System: A system where b=0\mathbf{b} = \mathbf{0}, giving Ax=0A \mathbf{x} = \mathbf{0}

    • Non-Homogeneous System: A system where b0\mathbf{b} \neq \mathbf{0}

  • Properties of Homogeneous Systems:

    • Every homogeneous system Ax=0A \mathbf{x} = \mathbf{0} is consistent because x=0\mathbf{x} = \mathbf{0} is always a solution. This solution is called the trivial solution.

    • A solution vector x\mathbf{x} with at least one non-zero component (x0\mathbf{x} \neq \mathbf{0}) is called a non-trivial solution.

    • A homogeneous system has a non-trivial solution if and only if the system has at least one free variable.

Application of Linear Systems: Balancing Chemical Reactions

  • Systems of linear equations can be used to balance chemical reactions by ensuring atom conservation across all elements.

  • General Balancing Method:

    1. Assign variables x1,x2,x_1, x_2, \dots to represent the number of molecules of each reactant and product.

    2. Represent each molecule as a vector of atom counts for each element.

    3. Set up a vector equation equating reactants to products, forming a homogeneous linear system.

    4. Construct the augmented matrix and reduce it to RREF.

    5. Select the smallest positive integer for the free variable to yield whole-number stoichiometric coefficients.

  • Reaction 1: Synthesis of Water (H2+O2H2OH_2 + O_2 \rightarrow H_2O)

    • Assign variables: x1H2+x2O2x3H2Ox_1 H_2 + x_2 O_2 \rightarrow x_3 H_2O

    • Atom vectors ordered as (HydrogenOxygen)\begin{pmatrix} \text{Hydrogen} \\ \text{Oxygen} \end{pmatrix}:

    • Hydrogen (H2H_2): (20)\begin{pmatrix} 2 \\ 0 \end{pmatrix}

    • Oxygen (O2O_2): (02)\begin{pmatrix} 0 \\ 2 \end{pmatrix}

    • Water (H2OH_2O): (21)\begin{pmatrix} 2 \\ 1 \end{pmatrix}

    • Vector Equation:     x1(20)+x2(02)x3(21)=(00)x_1 \begin{pmatrix} 2 \\ 0 \end{pmatrix} + x_2 \begin{pmatrix} 0 \\ 2 \end{pmatrix} - x_3 \begin{pmatrix} 2 \\ 1 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix}

    • Augmented Matrix:     [20200210]\begin{bmatrix} 2 & 0 & -2 & 0 \\ 0 & 2 & -1 & 0 \end{bmatrix}

    • Scale rows by 12\frac{1}{2}:     [101001120]\begin{bmatrix} 1 & 0 & -1 & 0 \\ 0 & 1 & -\frac{1}{2} & 0 \end{bmatrix}

    • Equations:     x1=x3x_1 = x_3     x2=12x3x_2 = \frac{1}{2} x_3

    • Choose x3=2x_3 = 2 to secure whole numbers, yielding x1=2x_1 = 2, x2=1x_2 = 1, x3=2x_3 = 2

    • Balanced Reaction:     2H2+O22H2O2 H_2 + O_2 \rightarrow 2 H_2 O

  • Reaction 2: Aluminum Oxidation (Al+O2Al2O3Al + O_2 \rightarrow Al_2O_3)

    • Assign variables: x1Al+x2O2x3Al2O3x_1 Al + x_2 O_2 \rightarrow x_3 Al_2 O_3

    • Atom vectors ordered as (AluminumOxygen)\begin{pmatrix} \text{Aluminum} \\ \text{Oxygen} \end{pmatrix}:

    • Aluminum (AlAl): (10)\begin{pmatrix} 1 \\ 0 \end{pmatrix}

    • Oxygen (O2O_2): (02)\begin{pmatrix} 0 \\ 2 \end{pmatrix}

    • Aluminum Oxide (Al2O3Al_2 O_3): (23)\begin{pmatrix} 2 \\ 3 \end{pmatrix}

    • Vector Equation:     x1(10)+x2(02)x3(23)=(00)x_1 \begin{pmatrix} 1 \\ 0 \end{pmatrix} + x_2 \begin{pmatrix} 0 \\ 2 \end{pmatrix} - x_3 \begin{pmatrix} 2 \\ 3 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix}

    • Augmented Matrix:     [10200230]\begin{bmatrix} 1 & 0 & -2 & 0 \\ 0 & 2 & -3 & 0 \end{bmatrix}

    • Scale row 2 by 12\frac{1}{2}:     [102001320]\begin{bmatrix} 1 & 0 & -2 & 0 \\ 0 & 1 & -\frac{3}{2} & 0 \end{bmatrix}

    • Equations:     x1=2x3x_1 = 2 x_3     x2=32x3x_2 = \frac{3}{2} x_3

    • Choose x3=2x_3 = 2 to avoid fractional coefficients, yielding x1=4x_1 = 4, x2=3x_2 = 3, x3=2x_3 = 2

    • Balanced Reaction:     4Al+3O22Al2O34 Al + 3 O_2 \rightarrow 2 Al_2 O_3

Linearly Dependent and Independent Vectors

  • Linearly Dependent Vectors:

    • A set of vectors {v1,v2,,vn}\{\mathbf{v_1}, \mathbf{v_2}, \dots, \mathbf{v_n}\} in a vector space VV is linearly dependent if their linear combination can equal zero while at least one scalar cic_i is non-zero (ci0c_i \neq 0):     c1v1+c2v2++cnvn=0c_1 \mathbf{v_1} + c_2 \mathbf{v_2} + \dots + c_n \mathbf{v_n} = \mathbf{0}

    • Equivalently, a set is linearly dependent if there exists a non-trivial solution to the vector equation c1v1++cnvn=0c_1 \mathbf{v_1} + \dots + c_n \mathbf{v_n} = \mathbf{0}

  • Linearly Independent Vectors:

    • A set of vectors {v1,v2,,vn}\{\mathbf{v_1}, \mathbf{v_2}, \dots, \mathbf{v_n}\} in a vector space VV is linearly independent if their linear combination equals zero only when every scalar is zero:     c1v1+c2v2++cnvn=0    c1=c2==cn=0c_1 \mathbf{v_1} + c_2 \mathbf{v_2} + \dots + c_n \mathbf{v_n} = \mathbf{0} \implies c_1 = c_2 = \dots = c_n = 0

  • Key Principles of Linear Dependence and Independence:

    • A set consisting of a single zero vector {0}\{\mathbf{0}\} is always linearly dependent.

    • A set containing two or more vectors is linearly dependent if and only if at least one vector in the set can be expressed as a linear combination of the remaining vectors.

    • Introducing (including) a zero vector into any set of vectors makes the entire set linearly dependent.

    • The central test for linear dependence or independence is determining whether c1v1++cnvn=0c_1 \mathbf{v_1} + \dots + c_n \mathbf{v_n} = \mathbf{0} permits a non-trivial solution.

  • Examples:

    • Example 1: Consider vectors v1=(12)\mathbf{v_1} = \begin{pmatrix} 1 \\ 2 \end{pmatrix} and v2=(24)\mathbf{v_2} = \begin{pmatrix} 2 \\ 4 \end{pmatrix}. Setting up the combination:     2v1v2=2(12)(24)=(00)2 \mathbf{v_1} - \mathbf{v_2} = 2 \begin{pmatrix} 1 \\ 2 \end{pmatrix} - \begin{pmatrix} 2 \\ 4 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix}     Since non-zero scalars c1=2c_1 = 2 and c2=1c_2 = -1 produce the zero vector, the vectors are linearly dependent.

    • Example 2: Consider a set containing a zero vector, such as {v1,v2,0}\{\mathbf{v_1}, \mathbf{v_2}, \mathbf{0}\}. Choosing c1=0c_1 = 0, c2=0c_2 = 0, and c3=10c_3 = 1 \neq 0 gives:     0v1+0v2+10=00 \mathbf{v_1} + 0 \mathbf{v_2} + 1 \mathbf{0} = \mathbf{0}     The zero vector itself allows a non-trivial coefficient choice, making the set linearly dependent.