We apply the method of elimination to all matrices, invertible or not. Counting the pivots gives us the rank of the matrix. Further simplifying the matrix puts it in reduced row echelon form R and improves our description of the null space.
Solving Ax = 0: Pivot Variables, Special Solutions
Work the problems on your own and check your answers when you're done.