1.
up
2.
This page in PDF

HW3, MAE 270A. Linear systems I. Fall 2005. UCI

Nasser M. Abbasi

June 21, 2014

Contents

1 Problem 3.5
2 Problem 3.6
3 Problem 3.7
4 Problem 3.38

1 Problem 3.5

Find the rank and nullities of the following matrices

     (        )          (          )        (               )
     | 0  1  0|          | 4  1  − 1|        | 1   2    3   4|
     |        |          |          |        |               |
A1 = || 0  0  0||    A2 =  || 3  2   0 ||   A3 = || 0  − 1  − 2  2||
     |        |          |          |        |               |
     (        )          (          )        (               )
       0  0  1             1  1   0            0   0    0   1

Solution

Solution method: First find the rank of the matrix, then to find the nullity, use the relation

η(A ) =  number  of columns  of A  − Rank (A )

The rank of a matrix can be found using one of the following methods

1.
By inspection (works for small matrices), look at the rows (or columns) of the matrix, whichever is smaller, and see if there is any linear dependence between any pair of rows (or columns).
2.
Find the largest non-zero square minor. The dimension of this minor is the rank of the matrix.
3.
Find the eigenvalues (λ)  of the matrix. The number of unique λ  is the rank of the matrix. This works only on square matrices.

Hence for A1   using the second method above, we see that the minor found by omitting the first columns and the second row is |    |
|    |
||1  0 ||
|    |⁄= 0
||    ||
|0  1 |  but the full determinant is clearly zero (since A1   has one columns which is all zeros, since any square matrix which has all zero's in one of its rows or columns must have zero determinant). Hence the largest size of a minor which is not zero is 2, hence the rank is 2

Since the rank is 2, then η (A) = 3 − 2 = 1

For A2   , |         |
|         |
||4  1  − 1||
||         ||
|3  2   0 | = 4(0) − 1 (0 ) − 1 (3 − 2) = − 1 ⁄= 0
||         ||
|         |
|1  1   0 |   hence the rank is 3

Therefor η(A ) = 3 − 3 = 0

For A
 3   , the rank can not be more than 3, and since the last row contains zeros in the first 3 elements, I will select the minor to test on as the last 3 columns, hence |        |
||        ||
|2   3  4|
||        ||
|− 1  2  2| = 2 (2) − 3 (− 1 ) + 4 (0) = 4 + 3 = 7
||        ||
||0   0  1||  ⁄= 0  , hence the rank is 3

Hence η (A) = 4 − 3 = 1

2 Problem 3.6

question: Find bases of the range spaces and the null spaces of the matrices in problem 3.5

solution method: To find the bases for the range space, all what we need to do is to find n  linearly independent vectors where n  is the rank of A found above. To find bases for the null space of A, since we know the rank of the null space, and the dimension of the rank space, we need to find m linearly independent vectors where m  is the rank of the null space of A.

A1: Since A1   has rank of 2, this means that range(A) has dimension 2. In other words A maps a 'point' in a 3D volume to a 'point' of in a 2D flat plane. Hence we can use either i,j  or i,k  or j,k  as the basis of the range of A. But since A  has zeros in its second row, this means that there are no points in the range of A which has a component along the j  dimension. Hence the only plane left is the one spanned by i,k  or (  )  (   )

| 1|  |  0|
||  ||  ||   ||
|| 0|| ,||  0||
(  )  (   )
  0      1 . This is illustrated by the following diagram

PIC

since the rank of the null space is 1, then we need to find one vector x  s.t. Ax  = 0

Hence (        ) (    )    (  )
  0  1  0    x1        0
||        || ||    ||    ||  ||
|        | |    | =  |  |  =⇒  x  = 0,x  = 0
|| 0  0  0|| || x2 ||    || 0||       2      3
(        ) (    )    (  )
  0  0  1    x3        0  , hence a basic is (     )
   any
||     ||
|     |
||   0 ||
(     )
    0 where 'any' could be any number. select 1 to make it normalized, hence  a basis is for the null space is (  )

| 1|
||  ||
|| 0||
(  )
  0

A2: Since A2   has rank of 3, and this is equal to the number of columns in A, then A maps a point in 3D vector space (R3)  to a point in 3D vector space (R3 )  . Then we can use i,j,k  as its bases. i.e. (  )  (   )  (  )
| 1|  | 0 |  | 0|
|  |  |   |  |  |
||  || ,||   || ,||  ||
| 0|  | 1 |  | 0|
(  )  (   )  (  )
  0     0      1

Since the rank of the null space of A is zero, then the null space of A is (  )
  0
||  ||
|  |
|| 0||
(  )
  0 , hence no basis for the null space as it is empty.

A3: Since A3   has rank of 3, then we need to find 3 linearly independent vectors to span the range of A. Select i,j,k  as its bases. i.e. (  )   (  )  (  )
| 1|   | 0|  | 0|
|  |   |  |  |  |
|| 0||  ,|| 1|| ,|| 0||
|  |   |  |  |  |
(  )   (  )  (  )
  0      0     1

The null space of A
  3   is 1, then we need to find one vector such Ax  = 0  and normalize it as needed.

                  (    )
(               )   x       (  )      (                         )
                  ||   1||                                               (                    )
| 1   2    3   4| |    |    | 0|      | x1 + 2x2 + 3x3 + 4x4 = 0|
||               || || x2 ||    ||  ||      ||                         ||      | x1 + 2x2 + 3x3 =  0|
|| 0  − 1  − 2  2|| ||    || =  || 0||  =⇒  ||   − x2 − 2x3 + 2x4 = 0  ||  =⇒  |(                    |)
(               ) | x3 |    (  )      (                         )           − x2 − 2x3 = 0
  0   0    0   1  |(    |)      0                  x  = 0
                                                  4
                    x4

Hence x3 = − x2
        2   and so             (    )
x1 + 2x2 + 3 − x2  = 0 = ⇒ x1 +  1x2 =  0 = ⇒ x1 = − 1x2
                2                2                   2

Hence if we take x1 =  1  , then x2 = − 2x1 = − 2  and then x3 = 1

Hence a basis is (    )

||  1 ||
|    |
|| − 2||
|    |
||  1 ||
|    |
(    )
   0

3 Problem 3.7

Consider the linear algebraic equation (        )      (  )
|  2  − 1|      | 1|
|        |      |  |
||        ||  x = ||  ||  = y
| − 3  3 |      | 0|
(        )      (  )
  − 1  2          1  , it has 3 equations and 3 unknowns. Does a solution exist in the equation? Is this solution unique, Does a solution exist if     (   )
       1
    ||   ||
    |   |
y = ||  1||
    (   )
       1

Solution

A solution exist if A spans a space which contains y.  Since A  has 2 columns we see that it takes points from 2D space and send these points to its range space. Since the rank of A is 2 (since |       |
|       |
||2   − 1||
|       | = 3 ⁄= 0
||       ||
|− 3   3 |  ) then the dimension of its range space is 2, i.e. it maps points from 2D space to 2D space. Solve this is by solving for Ax =  y  and to see if we can find a vector x  to satisfy this equation as follows

(         )           (  )      (                )
   2   − 1  (   )       1          2x  − x  =  1
||         ||           ||  ||      ||     1    2     ||
|         | || x1||     |  |      |                |
|| − 3   3 || (   )  =  || 0||  =⇒  || − 3x1 + 3x2 = 0||
(         )   x2      (  )      (                )
  − 1   2               1         − x1 + 2x2 = 1

From second equation we see that x1 = x2   , substitute this in either equation 1, we get that x1 = 1  , hence x2 = 1.  Sub this solution in equation 3 we see that is also satisfy it.

Hence we found a point      (  )

     | 1|
x =  |  |
     (  )
       1 , which is mapped by A to point (  )

| 1|
|  |
|| 0||
|(  |)

  1 hence a solution exist.

η(A ) = 2 − Rank (A ) = 2 − 2 = 0

Since the null space is empty, then this solution is unique.

When     (   )

    | 1 |
    ||   ||
y = || 1 ||
    (   )
      1 , we need to try to see if there is an x  such that Ax  = y

(         )           (  )      (                )
            (   )
|  2   − 1|           | 1|      |  2x1 − x2 =  1 |
|         | | x1|     |  |      |                |
|| − 3   3 || |   |  =  || 1||  =⇒  || − 3x1 + 3x2 = 1||
|(         |) (   )     |(  |)      |(                |)
              x2
  − 1   2               1         − x1 + 2x2 = 1

From first equation, x2 = 2x1 −  1  sub into second equation we get − 3x  + 3 (2x  −  1) = 1 = ⇒ − 3x + 6x  −  3 = 1 = ⇒ 3x  = 4 =⇒  x  = 4
    1        1                  1     1               1          1   3

Hence        (4)               5
x2 = 2  3  − 1 =⇒  x2 =  3

Now sub this solution into the third equation we get   ( )     ( )
−  43  + 2  53  = 1 =⇒  − 43 + 103 = 1 =⇒  2 = 1  which is not valid. Hence no solution exist.

4 Problem 3.38

Problem: Consider Ax  = y  , where A  is an m ×  n  and has rank m.  is (AT A )−1AT y  a solution? if not, under what condition will it be a solution? is     (    )− 1
AT   AAT     y  a solution?

Solution

First we need to determine if (     )
 AT A  −1   exist.

Since A  is an m × n  then   T
A  A  is (n ×  m ) × (m × n) →  n × n  matrix.

Hence   T
A  A  is a square matrix of dimension n  . Since we are told the rank is m,  and the rank of a matrix is the smaller of its dimensions (the smaller of its rows or columns if they are not the same), hence there exist only m  linearly independent rows, and not n  linearly independent rows. hence ( T  )
 A  A is NOT invertible (  T  )−1  T
 A  A     A  y  is not a solution.

It will be a solution under the condition that m  = n

. Since in this case ATA  can be inverted.

Second part:   is AT (AAT  )− 1y  a solution?

Since A  is an m × n  then    T
AA  is (m  × n ) × (n × m ) → m × m  matrix.

Hence, since we are told the rank is m  then there exist m  linearly independent rows, hence (    )
 AAT is invertible. Hence (    ) −1
 AAT   exist, and so (   T)− 1  T
 AA      A  y  can be computed. And in addition, if we multiply this by A  we get  1   1  T    T −1
y     AA  (AA  )  y = Iy = y  hence it is a solution.