Row Echelon Form

General Case

Ax=b,A∈Mm×n,b∈Rm
Any matrix A can be reduced to row echelon form by elementary row operations.
Definition: An m×n matrix is said to be in the row echelon form if it has a "staircase structure":

U=[0x∗∗00x∗000x]

where x≠0 are called pivots and ∗ are anything. The row echelon form U of matrix A is not unique, but the number of pivots is unique. This motivates the following definition.

Info

If A is a square nonsingular, then this is a special case of row echelon form: U=[x∗∗0x∗00x]. If x=1 and all entries above the pivots are 0, it is in reduced echelon form and is unique.

Definition:

The rank of a matrix A is the number of points in A's echelon form.

Rank is one of the most important numerical quantities associated with a matrix. Since there is at most one pivot per row and one pivot per column, 0≤rankA≤min{m,n}. If A∈Mn×n is nonsingular, rankA=n.

In matrix language, the above key fact can be formulated as follows: there exists an m×m permutation matrix P and an m×m special lower triangular such that: PA=LU, to solve Ax=b, we therefore proceed as follows:

  1. Ax=b⟺PAx=Pb=b~⟺LUx=b~ where Ux=y
  2. Solve Ly=b~ for y using forward substitution.
  3. Now we need to solve Ux=y for x.
    1. If the last (m−r) entries of y are nonzeros ⇒ no solution.
    2. Otherwise, we modify the back substitution procedure:
      • Solve for the basic variable (associated with its pivot) ⇒ r basic variables will be expressed in terms of (n−r) free variables (correspond to columns without pivots)
      • Substitute the result into the previous equation

Free and Basic Variables:

Let x=[x1,⋯,xr,xr+1,xn] where [x1,⋯,xr] are basic and [xr+1,⋯,xn] are free. (Free and basic variables are "mixed" in x, but we use this notation for simplicity).

Then {x1=x1(xr+1,⋯,xn)⋮xr=xr(xr+1,⋯,xn) which is the general solution. Free variables can take any values while basic variables are determined by free ones. So, the general solution depends on (n−r) parameters. The following theorem summarizes the above discussion.

Theorem:

A system Ax=b of m equations with n unknowns has either:
Inconsistent: 1. No solution ⟺ rank[A|b]>rankA
Consistent: 2. Exactly one solution ⟺rank[A|b]=rankA and rankA=n
3. Infinitely many solutions ⟺rank[A|b]=rankA and rankA<n

Remark 1: Since rankA≤m, the system can have only one solution if n≤m (only "tall" systems can have unique solution; "flat" systems cannot)

Remark 2: Number of solutions is 0, 1, or ∞. Below is a geometric interpretation for systems of m=3 equations with n=2 unknowns:
Pasted image 20231002120529.png