Back to: Mathematics – Linear Algebra
System of Linear Equations
π Hello, students! Linear systems are the backbone of applied mathematics β from engineering to economics, from computer graphics to machine learning. Today, weβll explore them deeply: how to represent them, solve them, and understand when solutions exist β and how many!
1. What Is a Linear Equation?
A linear equation in variables \( x_1, x_2, \dots, x_n \) is an equation of the form: \[ a_1 x_1 + a_2 x_2 + \cdots + a_n x_n = b \] where \( a_1, \dots, a_n, b \in \mathbb{R} \) are constants.
It has no products, powers, or nonlinear functions (like \( x^2 \), \( \sin x \), \( xy \)).
Linear: \( 2x – 3y + z = 5 \)
Not linear: \( x^2 + y = 1 \), \( xy = 2 \), \( \sin(x) + y = 0 \)
2. System of Linear Equations
A system of linear equations is a finite set of linear equations in the same variables. For example, a system of \( m \) equations in \( n \) unknowns: \[ \begin{aligned} a_{11}x_1 + a_{12}x_2 + \cdots + a_{1n}x_n &= b_1 \\ a_{21}x_1 + a_{22}x_2 + \cdots + a_{2n}x_n &= b_2 \\ &\vdots \\ a_{m1}x_1 + a_{m2}x_2 + \cdots + a_{mn}x_n &= b_m \end{aligned} \]
3. Matrix Representation
We can write the system compactly as:
where:
- \( A = (a_{ij})_{m \times n} \) is the coefficient matrix
- \( \mathbf{x} = \begin{bmatrix} x_1 \\ \vdots \\ x_n \end{bmatrix} \) is the unknown vector
- \( \mathbf{b} = \begin{bmatrix} b_1 \\ \vdots \\ b_m \end{bmatrix} \) is the constant vector
System:
Matrix form:
4. Augmented Matrix
The augmented matrix combines \( A \) and \( \mathbf{b} \): \[ [A \mid \mathbf{b}] \] It fully encodes the system.
For the system above:
5. Homogeneous vs. Non-Homogeneous
Homogeneous system: \( \mathbf{b} = \mathbf{0} \)
β Always has at least the trivial solution \( \mathbf{x} = \mathbf{0} \).
Non-homogeneous system: \( \mathbf{b} \ne \mathbf{0} \)
β May have no solution, one, or infinitely many.
6. Consistency and Number of Solutions
A system is:
- Consistent if it has at least one solution.
- Inconsistent if it has no solution.
If consistent, it has either:
- Exactly one solution (unique), or
- Infinitely many solutions.
- Two lines intersect β unique solution
- Parallel lines β no solution
- Coincident lines β infinitely many solutions
7. Rank and Consistency
Let \( A \) be the coefficient matrix and \( [A \mid \mathbf{b}] \) the augmented matrix.
The system \( A\mathbf{x} = \mathbf{b} \) is consistent if and only if:
If consistent and \( A \) is \( m \times n \):
- Unique solution β \( \text{rank}(A) = n \)
- Infinitely many solutions β \( \text{rank}(A) < n \)
8. Solving Systems: Gaussian Elimination
Gaussian elimination uses elementary row operations to reduce the augmented matrix to row echelon form (REF) or reduced row echelon form (RREF).
Steps:
- Form the augmented matrix \( [A \mid \mathbf{b}] \)
- Use row ops to get REF
- Check for consistency (look for a row \( [0\ \cdots\ 0 \mid c] \) with \( c \ne 0 \))
- If consistent, use back-substitution (or go to RREF for direct read-off)
Example: Solve \[ \begin{cases} x + y + z = 6 \\ 2x + 3y + z = 10 \\ x + y + 2z = 8 \end{cases} \]
Augmented matrix:
Back-substitute:
- \( z = 2 \)
- \( y – z = -2 \Rightarrow y = 0 \)
- \( x + y + z = 6 \Rightarrow x = 4 \)
β Unique solution: \( (4, 0, 2) \)
9. Infinitely Many Solutions: Parametric Form
System: \[ \begin{cases} x + y = 2 \\ 2x + 2y = 4 \end{cases} \]
Augmented matrix β RREF:
Let \( y = t \) (free variable). Then \( x = 2 – t \).
General solution: \[ \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 2 \\ 0 \end{bmatrix} + t \begin{bmatrix} -1 \\ 1 \end{bmatrix}, \quad t \in \mathbb{R} \]
10. Summary Table
| Condition | Consistent? | Solutions |
|---|---|---|
| \( \text{rank}(A) \ne \text{rank}([A \mid \mathbf{b}]) \) | No | None |
| \( \text{rank}(A) = \text{rank}([A \mid \mathbf{b}]) = n \) | Yes | Unique |
| \( \text{rank}(A) = \text{rank}([A \mid \mathbf{b}]) < n \) | Yes | Infinitely many |
11. Self-Check: Test Your Understanding
- Can a homogeneous system be inconsistent?
- What does a row \( [0\ 0\ 0 \mid 0] \) mean in RREF?
- Solve: \[ \begin{cases} x + 2y = 5 \\ 2x + 4y = 10 \end{cases} \]
Answers: (1) No β always has \( \mathbf{0} \); (2) dependent equation; (3) infinitely many: \( x = 5 – 2t,\ y = t \)
System of Linear Equations β Questions & Full Solutions
π Hello, students! Below are all the system of linear equations questions from your documents, each with a complete, detailed solution using Gaussian elimination, RREF, and rank criteria. Use this to master consistency, uniqueness, and solution methods!
Q1. Determine if the following system is consistent. If so, how many solutions does it have?
Solution:
Augmented matrix:
Row reduce:
- \( R_2 \to R_2 – 3R_1 \), \( R_3 \to R_3 – 2R_1 \)
Last row: \( 0 = 3 \) β **inconsistent**.
β No solution.
Q2. Solve the system:
Solution:
Augmented matrix:
Row reduce to RREF:
Let \( z = t \) (free variable). Then:
- \( y = 2 – t \)
- \( x = -1 + t \)
β General solution: \[ \begin{bmatrix} x \\ y \\ z \end{bmatrix} = \begin{bmatrix} -1 \\ 2 \\ 0 \end{bmatrix} + t \begin{bmatrix} 1 \\ -1 \\ 1 \end{bmatrix}, \quad t \in \mathbb{R} \]
Q3. Solve:
Solution:
Augmented matrix β RREF:
β Unique solution: \( x = 2,\ y = 1,\ z = 0 \).
Q4. Express as \( A\mathbf{x} = \mathbf{b} \):
Solution:
So the system is \( A\mathbf{x} = \mathbf{b} \).
Q5. Solve the homogeneous system:
Solution:
All equations are multiples of the first.
RREF of coefficient matrix:
Let \( y = s,\ z = t \). Then \( x = -s + t \).
β General solution: \[ \begin{bmatrix} x \\ y \\ z \end{bmatrix} = s \begin{bmatrix} -1 \\ 1 \\ 0 \end{bmatrix} + t \begin{bmatrix} 1 \\ 0 \\ 1 \end{bmatrix}, \quad s,t \in \mathbb{R} \]
Q6. For what value of \( \lambda \) is the system consistent?
Solution:
Augmented matrix:
For consistency, we must not have \( 0 = \text{non-zero} \).
If \( \lambda = 1 \), last row becomes \( [0\ 0\ 0\ |\ 2] \) β inconsistent.
β So the system is consistent for all \( \lambda \ne 1 \).
(When \( \lambda \ne 1 \), unique solution exists.)
Q7. Solve:
Solution:
Second equation is \( 2 \times \) first β dependent.
RREF:
Let \( y = t \), then \( x = 5 – 2t \).
β Solution: \( (x, y) = (5, 0) + t(-2, 1),\ t \in \mathbb{R} \).
Q8. Show the system has no solution:
Solution:
Augmented matrix:
Last row: \( 0 = 1 \) β **inconsistent**.
β No solution.
π Key Takeaways:
- Use RREF of augmented matrix to determine consistency.
- System is consistent β no row of form \( [0\ \cdots\ 0\ |\ c],\ c \ne 0 \).
- Free variables β infinitely many solutions.
- Homogeneous systems always have at least the trivial solution.