System of Linear Equations Notes
System of Linear Equations
1.1 Definition of Equation
An equation is a statement of equality containing one or more variables.
Solving the equation means determining which values of the variables make the equality true.
Variables are called unknowns, and the values satisfying the equality are called solutions.
General form:
Expressions on the left and right-hand sides are separated by an equal sign "=".
1.2 Linear and Non-linear Equations
Linear Equation: Unknown variables occur only to the first power and are multiplied by constants.
Example: , where and are real numbers.
Non-linear Equation: Involve products of unknown variables or variables as arguments of trigonometric, logarithmic, exponential, or other functions.
Examples: , , , ,
1.3 System of 2 Linear Equations
One-dimensional real space
If in the linear equation , there is a unique solution: .
Two-dimensional real space
Consider the system: , where , and are real numbers.
Geometric Interpretation
The equations and represent lines in the -plane.
The solution to the system is the intersection point(s) of these lines.
Consistent System: At least one solution exists.
Exactly One Solution: The lines intersect at one point.
Infinitely Many Solutions: The lines coincide.
Inconsistent System: No solution exists.
No Solution: The lines are parallel.
Algebraic Methods
Substitution
Given the system:
(1)
(2)
Rearrange (1) to express in terms of : (3)
Substitute (3) into (2).
If , there is a unique solution (consistent).
If and , there are infinitely many solutions (consistent).
If and , there is no solution (inconsistent).
Gaussian Elimination
Based on elementary row operations:
(Interchange): Swap two equations.
(Scaling): Multiply an equation by a non-zero constant.
(Replacement): Add a multiple of one equation to another.
Example:
1.4 System of 3 Linear Equations
How to find three unknowns from three linear equations.
1.5 General System of Linear Equations
An equation in variables can be written in the form:
where and are real or complex numbers.
The constants are coefficients, and is the right-hand side.
A system of linear equations in variables:
and are real or complex numbers.
and are positive integers.
Cases:
Case m = n (same number of equations and variables)
High chance of having one set of solutions.
Case m > n (more equations than variables)
High chance of having no solutions.
Case m < n (fewer equations than variables)
High chance of having many solutions.
to can be free variables.
Questions:
How to solve the system when and are large?
How to determine if the system has one solution, no solution, or multiple solutions?
1.6 Matrix Notation
Example:
System:
Vector form:
Matrix form:
Augmented matrix form:
The size of a matrix is given by the number of rows and columns (e.g., a 3 × 4 matrix has 3 rows and 4 columns).
1.7 Solving a Linear System
Example:
Augmented Matrix:
Row Operations to Eliminate $x_1$ from equations 2 and 3:
Back Substitution to Solve for the Variables:
1.8 Existence and Uniqueness Questions
Two Fundamental Questions:
Is the system consistent (does at least one solution exist)?
If a solution exists, is it the only one (is the solution unique)?
Existence and Uniqueness Theorem
A linear system is consistent if and only if an echelon form of the augmented matrix has no row of the form:
, with nonzero.
If a linear system is consistent, then the solution set contains either:
(i) a unique solution when there are no free variables, or
(ii) infinitely many solutions when there is at least one free variable.
Numerical Note
In real-world problems, computers solve systems of linear equations using elimination algorithms.
Floating-point arithmetic represents numbers as decimals with a finite number of digits, leading to round-off errors.
Inaccuracies seldom cause problems, but numerical notes warn of potential issues.
2.1 Echelon ("steplike") Forms
Triangular form is a special case of echelon form.
A leading entry of a row refers to the leftmost nonzero entry.
Any nonzero matrix may be row-reduced (by elementary row operations) into more than one matrix in echelon form, using different sequences of row operations. However, the reduced echelon form for a matrix is unique.
2.2 The Row Reduction Algorithm
Write the augmented matrix of the system.
Use row reduction to obtain an equivalent augmented matrix in echelon form.
Decide whether the system is consistent. If there is no solution, stop; otherwise, go to the next step.
Continue row reduction to obtain the reduced echelon form.
Write the system of equations corresponding to the matrix obtained in step 3.
Rewrite each nonzero equation from step 4 so that its one basic variable is expressed in terms of any free variables appearing in the equation.
Elementary row operations:
(Interchange): Swapping two rows.
(Scaling): Multiplying all entries in a row by a non-zero constant.
(Replacement): Replacing one row by the sum of itself and a multiple of another row.
2.3 Existence and Uniqueness Theorem
A linear system is consistent if and only if an echelon form of the augmented matrix has no row of the form [0…0 b] with b nonzero.
If a linear system is consistent, then the solution set contains either:
(i) a unique solution, when there are no free variables, or
(ii) infinitely many solutions, when there is at least one free variable.
2.4 An Example
To find the solution of the system of linear equations with the following augmented matrix representation:
\begin{pmatrix} 1 & 4 & 5 & -9 & -7 \ 0 & 2 & 4 & -6 & -6 \ 0 & 5 & 10 & -15 & -15\0&-3&-6&4&9 \end{pmatrix}
After row operations the matrix transforms to:
\begin{pmatrix} 1 & 4 & 5 & -9 & -7 \ 0 & 2 & 4 & -6 & -6 \ 0 & 0 & 0 & 0 & 0\0&0&0&0&0 \end{pmatrix}
And the equations are given as:
Explicit Equations
From the equations (2) and (3), we have
From the equations (1), (2) and (3), we have
There is no constraint on , so it can be treated as a free variable.
We have more than one solution.
The solution can be written as:
3.1 A Simple Economy
Suppose an economy consists of the Coal, Electric (power), Steel, and the output of each sector is distributed among the various sectors.
Denote the prices of the total annual outputs of the Coal, Electric, and Steel sectors by pC, pE, and pS, respectively.
If possible, find equilibrium prices that make each sector’s income match its expenditures.
The total expenses used by Coal company are .
The total value produced by Coal company is .
Therefore, we have .
The total expenses used by Electric company are
The total value produced by Electric company is
Therefore we have
The total expenses used by Steel company are
The total value produced by Steel company is
Therefore we have
The general solution is pc = .94ps, PE = .85ps, and ps is free. The equilibrium price vector for the economy has the form
3.2 Traffic flow
Suppose the vehicles per hour over several streets are given on the map. We want to determine the unknowns x1, x2, x3, x4 , x5.
Write equations that describe the flow, and then find the general solution of the system.
We make use of the fact that at each intersection, the traffic flow in must be equal to the flow out.
Putting all the equations together, we have
3.3 Balancing chemical equation
We want to determine x1, x2, x3, x4 such that the number of atoms of each type will be the same on both sides.
For carbon C, we have 3x1 = x3
For hydrogen H, we have 8x1 = 2x4
For oxygen O, we have 2x2 = 2x3+x4
We have a system of linear equations
Solution in mathematics
The numbers of atoms of C, H and O for this chemical reaction have to be integers.
So, x1, x2, x3, x4 have to be integer, the minimum x4 = 4. so that x3 = 3; x2 = 5; x1 = 1.
Solution in Chemistry