Solving Ax = 0: Pivot Variables, Special Solutions
May 25, 2019
This lecture we continue to talk about null space and the case where there’re free variables.
Free Variables
Remember a pivot is the first non-zero value in each row. But sometimes there can be a row without a pivot, when a row is all zeros.
Let
A=[1222246836810 ]be the example. What comes out right away is the r3 of A is r1 + r2 of A. This will be more obvious when we do elimination on it. When we are doing eliminations, we are not changing the nullspace. When we subtract one row from the other on A, we are not changing the solution to Ax=b (but they do affect the column space). Do the elimination:
[1222246836810 ]→[1222002436810 ]→[122200240024 ]→[122200240000 ]=UWe see that the third row is all zeros. In other words, we only have 2 pivots for this matrix. We say the matrix U is in echelon (staircase) form because it only contains values in “upper” side of the matrix, similar to the upper triangular form but that naming requires the matrix to be squareA matrix is said to be in row-echelon form if (1) any rows made completely of zeroes lie at the bottom of the matrix and (2) the first nonzero entries of the various rows form a staircase pattern: the first nonzero entry of the k + 1st row is to the right of the first nonzero entry of the k th row. (https://web.ma.utexas.edu/users/sadun/S08/427K/matrix.pdf) . The rank of a matrix is equal to the # of pivots in the echelon form.
Once we’ve found U we can use back-substitution to find the solutions x to the equation Ux=0. Now comes the important step:
U=[122200240000 ]c1c2c3c4We see that c1 and c3 are pivot columns. c2 and c4 are the free columns, corresponding to x2 and x4. We call it free because we can assign the 2nd and 4th unknown variable to any number we want. Since we can assign whatever values we want, one particular solution is to make x2=1 and x4=0 (convenienet for now), now we have:
2x3+4x4=0⇒x3=0x1+2x2+2x3+2x4=0⇒x1=−2by back-substitution. As we have shown before, a multiple of this solution x can also work. So
x=c[−2100]is in our null space. But this is not the complete null space yet. Let’s make another choice on the free variable: x2=0, x4=1. Do the back-substitution to get x1, x3 again, we get
x=d[20−21]The complete null space is the linear combination of the two special solutions where we make x2=1, x4=0 and x2=0, x4=1,
x=c[−2100]+d[20−21]In general, when we have a A∈Rm×n, we have n−r free variabels, where r is the number of rank or pivot variables (consider the number of pivot variables are those we cannot choose freely). Here we have 4−2=2 free variables and the null space is a 2-d plane in R4.
Reduced-row echelon form
The matrix U in equation (1) is in row echelon form, now we want to further simplify it to row-reduced echelon form (rref) R.
U=[122200240000 ]→[120−200240000 ]→[120−200120000 ]=RThis form requires an echelon-form matrix to (1) have 1 in the pivots, (2) have zeros above and below the pivots. Exchange the c2 and c3 of R:
R=[102−201020000 ]=[IF00]we see an identity matrix, a “free matrix”(containing the free variables), and a/some row(s) of zeros (when there’re linearly dependent rows in A). Right now to solve the system of equations where the righthand side is all zeros:
Rx=b[IF00]x=[00]Let’s set the particular solution of x=N Remember the row operations on matrix. To offset the effect of R, we have
N=[−FI]=[−220−21001]The columns of N are the special solutions (remember we have exchanged the columns of R). Note the dimension of I in N is (n−r)×(n−r), the number of free variables multiply the number of free variables.