MATH347: Linear algebra for applicationsMay 2, 2024

Final Examination

Solve the following problems (5 course points each). Present a brief motivation of your method of solution. Problems 9 and 10 are optional; attempt them if you wish to improve your midterm examination score.

  1. Form the matrix product corresponding to the following linear combinations

    𝒃1=x1𝒂1+x2𝒂2++xn𝒂n,
    𝒃2=y1𝒂1+y2𝒂2++yn𝒂n,
    𝒃3=z1𝒂1+z2𝒂2++zn𝒂n.

    Specify all matrix dimensions and column vectors.

    Solution. Consider 𝒂1m. Consistency of vector addition then implies 𝒂2,,𝒂n,𝒃1,𝒃2,𝒃3m. Form

    𝑩=[ 𝒃1 𝒃2 𝒃3 ]=𝑨𝑪m×p,p=3.

    The vectors entering into the linear combinations are

    𝑨=[ 𝒂1 𝒂2 𝒂n ]m×n.

    The scaling coefficients of the three linear combinations are

    𝑪=[ 𝒄1 𝒄2 𝒄3 ]=[ x1 y1 z1 x2 y2 z2 xn yn zn ]n×p,p=3.

  2. For 𝑨m×m let 𝒃=𝑨𝒙 and 𝒚𝟎 be a solution of the linear system 𝑨T𝒚=𝟎. Compute the angle between 𝒃 and 𝒚.

    Solution. From 𝒃=𝑨𝒙 deduce 𝒃C(𝑨). From 𝑨T𝒚=𝟎, deduce that 𝒚N(𝑨T). The FTLA states C(𝑨)N(𝑨T), hence 𝒃𝒚, and the angle between the two vectors is θ=π/2 (orthogonal).

  3. With 𝑸m×m known to be orthogonal, carry out the following block matrix multiplication. Identify dimensions of all blocks, and the blocks and the dimensions of the resulting 𝑪 matrix

    𝑪=[ 𝑸 𝑰 𝟎 𝑸 ][ 𝑨 𝑰 𝟎 𝑨 ][ 𝑸 𝑰 𝟎 𝑸 ]T.

    Solution. Consistency of multiplication requires 𝑰,𝟎m×m, thereby leading to 𝑪2m×2m. Apply “row-over-columns” for matrix blocks, noting that 𝑰T=𝑰, 𝟎T=𝟎, 𝑸𝑸T=𝑰

    𝑪=[ 𝑸 𝑰 𝟎 𝑸 ][ 𝑨 𝑰 𝟎 𝑨 ][ 𝑸T 𝟎 𝑰 𝑸T ]=[ 𝑸 𝑰 𝟎 𝑸 ][ 𝑨𝑸T+𝑰 𝑸T 𝑨 𝑨𝑸T ]=[ 𝑸𝑨𝑸T+𝑸+𝑨 𝑰+𝑨𝑸T 𝑸𝑨 𝑸𝑨𝑸T ].

  4. Compute 𝒄=𝑨T𝒃 and the projection of 𝒃 onto C(𝑨) for

    𝑨=[ 2 3 -1 1 -1 2 -4 0 ],𝒃=[ 1 -1 -1 1 ].

    Solution. Apply “row-over-columns” rule to obtain

    𝒄=[ 2 3 -1 1 -1 2 -4 0 ]T[ 1 -1 -1 1 ]=[ 2 -1 -1 -4 3 1 2 0 ][ 1 -1 -1 1 ]=[ 0 0 ].

    The above implies 𝒃N(𝑨T), and by the FTLA the projection of 𝒃 onto C(𝑨) is the zero vector.

  5. Find the LU decomposition of

    𝑨=[ 1 1 1 2 5 5 4 9 15 ].

    Solution. Carry out reduction to upper triangular form, noting multipliers used in the process

    𝑳1𝑨=[ 1 0 0 -2 1 0 -4 0 1 ][ 1 1 1 2 5 5 4 9 15 ]=[ 1 1 1 0 3 3 0 5 11 ].
    𝑳2𝑳1𝑨=[ 1 0 0 0 1 0 0 -5/3 1 ][ 1 1 1 0 3 3 0 5 11 ]=[ 1 1 1 0 3 3 0 0 6 ]=𝑼.

    Find 𝑨=𝑳1-1𝑳2-1𝑼=𝑳𝑼. Compute

    𝑳=𝑳1-1𝑳2-1=[ 1 0 0 2 1 0 4 0 1 ][ 1 0 0 0 1 0 0 5/3 1 ]=[ 1 0 0 2 1 0 4 5/3 1 ].

    Verify

    𝑳𝑼=[ 1 0 0 2 1 0 4 5/3 1 ][ 1 1 1 0 3 3 0 0 6 ]=[ 1 1 1 2 5 5 4 9 15 ].?

  6. State the eigenvalues and eigenvectors of 𝑪=𝑩𝑨,𝑨,𝑩2×2, with 𝑪 the matrix describing: (a) rotation by θ=π/2 (𝑨 matrix) followed by reflection across the x1 axis (𝑩 matrix).

    Solution. Let 𝒚=𝑨𝒒, 𝒛=𝑩𝒚=𝑪𝒒. From sketch below, note that 𝒒1=[ 1 -1 ]T rotated by π/2 becomes 𝒚1=[ 1 1 ]T, which when reflected acorss the horizontal axis is again 𝒒1=[ 1 -1 ]T, thus an eigenvector with associated eigenvalue λ1=1. Similarly, vector 𝒒2=[ 1 1 ]T rotated by π/2 becomes 𝒚2=[ -1 1 ]T, which when reflected acorss the horizontal axis is [ -1 -1 ]T=-𝒒2, thus an eigenvector with eigenvalue λ2=-1.

    Figure 1.

  7. Compute the eigendecomposition of

    𝑨=[ 1 1 1 1 ].

    Solution. The characteristic polynomial is

    p(λ)=det(λ𝑰-𝑨)=| λ-1 -1 -1 λ-1 |=λ(λ-2),

    with resulting eigenvalues λ1=0, λ2=2. For λ1=0 perform row reduction to find eigenvector 𝒙1

    𝑨-λ1𝑰=[ 1 1 1 1 ][ 1 1 0 0 ]𝒙1=[ 1 -1 ],𝒒1=𝒙1/||𝒙1||=12[ 1 -1 ].

    Similarly, for λ2=2

    𝑨-λ2𝑰=[ -1 1 1 -1 ][ -1 1 0 0 ]𝒙2=[ 1 1 ],𝒒2=𝒙2/||𝒙2||=12[ 1 1 ].

    Since 𝑨=𝑨T, the eigendecomposition exists and is orthogonal

    𝑨=𝑸𝚲𝑸T=12[ 1 1 -1 1 ][ 0 0 0 2 ]12[ 1 -1 1 1 ].

  8. Find the SVD of

    𝑨=[ 4 0 4 0 ].

    Solution. Recall SVD 𝑨=𝑼𝚺𝑽T, with 𝑨,𝚺m×n, 𝑼m×m orthogonal, 𝑽n×n orthogonal. For this problem m=n=2. Further recall 𝑼=[ 𝒖1 𝒖r 𝒖r+1 𝒖m ],𝑽=[ 𝒗1 𝒗r 𝒗r+1 𝒗n ]. The matrix 𝑨 has rank r=1, and 𝒖1 can be taken as

    𝒖1=12[ 1 1 ].

    Since 𝑼 is orthogonal take

    𝒖2=12[ 1 -1 ],

    to obtain

    𝑼=12[ 1 1 1 -1 ].

    Take 𝑽=𝑰 to obtain

    𝑨𝑽=𝑨=𝑼𝚺[ 4 0 4 0 ]=12[ 1 1 1 -1 ][ σ1 0 0 0 ]=[ σ1/2 0 σ1/2 0 ].

    Deduce that σ1=42, completing the SVD.

  9. Form the matrices 𝑨,𝑩2×2, 𝑪=𝑩𝑨, where 𝑪 is the matrix describing: (a) rotation by θ=π/2 (𝑨 matrix) followed by reflection across the x1 axis (𝑩 matrix).

    Solution. The matrices are

    𝑨=[ cosθ -sinθ sinθ cosθ ]=[ 0 -1 1 0 ],𝑩=[ 1 0 0 -1 ],𝑪=[ 1 0 0 -1 ][ 0 -1 1 0 ]=[ 0 -1 -1 0 ].

  10. Find bases for the four fundamental spaces of

    𝑨=[ 1 2 3 4 2 -1 -1 -4 3 1 2 0 ].

    Solution. Note that 𝑨m×n with m=3, n=4. Carry out row reduction

    𝑨[ 1 2 3 4 0 -5 -7 -12 0 -5 -7 -12 ][ 1 2 3 4 0 -5 -7 -12 0 0 0 0 ],

    to find r=rank(𝑨)=2.

    C(𝑨): FTLA states dimC(𝑨)=r=2. Take r=2 linearly independent columns as the basis, e.g.,

    {[ 1 2 3 ],[ 2 -1 1 ]}.

    C(𝑨T): FTLA states dimC(𝑨T)=r=2. Take r=2 linearly independent rows as the basis, e.g.,

    {[ 1 2 3 4 ],[ 2 -1 -1 -4 ]}.

    N(𝑨T): FTLA states dimN(𝑨T)=m-r=1. From row reduction of 𝑨T

    𝑨T=[ 1 2 3 2 -1 1 3 -1 2 4 -4 0 ][ 1 2 3 0 -5 -5 0 -7 -7 0 -12 -12 ][ 1 2 3 0 1 1 0 0 0 0 0 0 ],

    consider system

    { x1+2x2+3x3=0 x2+x3=0 ..

    Take x3=λ as a free parameter to obtain

    { x1+2x2=-3λ x2=-λ .,x1=x2=-λ.

    A basis vector for N(𝑨T) is therefore

    {[ 1 1 -1 ]}.

    Verify

    [ 1 2 3 2 -1 1 3 -1 2 4 -4 0 ][ 1 1 -1 ]=[ 0 0 0 0 ]?.

    N(𝑨): FTLA states dimN(𝑨)=n-r=2. Continue above row reduction of 𝑨 to obtain reduced row echelon form

    𝑨[ 1 2 3 4 0 -5 -7 -12 0 0 0 0 ][ 1 2 3 4 0 1 7/5 12/5 0 0 0 0 ][ 1 0 1/5 -4/5 0 1 7/5 12/5 0 0 0 0 ]

    and form system

    { 5x1+x3-4x4=0 5x2+7x3+12x4=0 ..

    Consider x3=λ, x4=μ to be free parameters to obtain

    { x1=-(λ-4μ)/5 x2=-(7λ+12μ)/5 ..

    For x4=μ=0 obtain

    x1=-15λ,x2=-75λ,x3=λ,x4=0,

    For x3=λ=0 obtain

    x1=45μ,x2=-125μ,x3=0,x4=μ.

    Deduce that a basis set for N(𝑨) is

    {[ -1 -7 5 0 ],[ 4 -12 0 5 ]}.

    Verify

    [ 1 2 3 4 2 -1 -1 -4 3 1 2 0 ][ -1 4 -7 -12 5 0 0 5 ]=[ 0 0 0 0 0 0 ]?