MATH347: Linear algebra for applicationsApril 28, 2024

Practice 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. State the matrix product to obtain 3 linear combinations of vectors

    𝒖=[ 1 0 1 ],𝒗=[ -1 0 1 ],

    with scaling coefficients (α1,β1)=(1,1), (α2,β2)=(-1,1), (α3,β3)=(1,-1).

    Solution. The matrix product is 𝑪=𝑨𝑩, 𝑪3×3 (3 linear combinations, each with 3 components), 𝑨=[ 𝒖 𝒗 ]3×2 (vectors entering into linear combination), 𝑩2×3 (scaling coefficients of each linear combination)

    𝑨=[ 1 -1 0 0 1 1 ],𝑩=[ 1 -1 1 1 1 -1 ].

  2. Orthonormalize the vectors

    𝒖=[ 1 0 1 ],𝒗=[ -1 0 1 ],𝒘=[ 1 1 -1 ].

    Solution. Note that 𝒖T𝒗=𝒖T𝒘=0, such that these vector pairs are already orthogonal. Also note that the vector 𝒆2=[ 0 1 0 ]T is orthogonal to both 𝒖 and 𝒗. Scale vectors to have unit norm

    𝑸=[ 𝒒1 𝒒2 𝒒3 ]=[ 𝒖/2 𝒗/2 𝒆2 ].

  3. For x,y, expansion of (x-y)3 leads to (x-y)3=x3-3x2y+3xy2-y3. Find the corresponding expansion of (𝑨-𝑩)3 for 𝑨,𝑩m×m.

    Solution. Compute, recalling that matrix multiplication is not commutative

    (𝑨-𝑩)3=(𝑨-𝑩)(𝑨2-𝑨𝑩-𝑩𝑨+𝑩2)=𝑨3-𝑨2𝑩-𝑨𝑩𝑨+𝑨𝑩2-𝑩𝑨2+𝑩𝑨𝑩+𝑩2-𝑩3.

  4. Find the projection of 𝒃 onto C(𝑨) for

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

    Solution. With 𝑨=[ 𝒂1 𝒂2 ] note that 𝒃=2𝒂1+𝒂2, hence 𝒃C(𝑨), and the projection of 𝒃 onto C(𝑨) is 𝒃 itself.

    Alternatively, orthonormalize 𝑨=[ 𝒂1 𝒂2 ] to obtain

    𝑸=[ 𝒒1 𝒒2 ]=[ 𝒂1/3 𝒂2/2 ].

    The projection onto C(𝑨) is

    𝒄=𝑸𝑸T𝒃=𝑸(𝑸T𝒃)=[ 1/3 -1/2 1/3 0 1/3 1/2 ]([ 1/3 1/3 1/3 -1/2 0 1/2 ][ 1 2 3 ])

    𝒄=[ 1/3 -1/2 1/3 0 1/3 1/2 ][ 23 2 ]=[ 1 2 3 ].

  5. Find the LU decomposition of

    𝑨=[ 1 1 1 2 3 3 3 5 6 ].

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

    𝑳1𝑨=[ 1 0 0 -2 1 0 -3 0 1 ][ 1 1 1 2 3 3 3 5 6 ]=[ 1 1 1 0 1 1 0 2 3 ].
    𝑳2𝑳1𝑨=[ 1 0 0 0 1 0 0 -2 1 ][ 1 1 1 0 1 1 0 2 3 ]=[ 1 1 1 0 1 1 0 0 1 ]=𝑼.

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

    𝑳=𝑳1-1𝑳2-1=[ 1 0 0 2 1 0 3 0 1 ][ 1 0 0 0 1 0 0 2 1 ]=[ 1 0 0 2 1 0 3 2 1 ].

    Verify

    𝑳𝑼=[ 1 0 0 2 1 0 3 2 1 ][ 1 1 1 0 1 1 0 0 1 ]=[ 1 1 1 2 3 3 3 5 6 ].?
  6. State the eigenvalues and eigenvectors of 𝑹2×2, the matrix describing reflection across the vector 𝒘=[ 1 2 ]T.

    Solution. From eigenvalue relation 𝑹𝒙=λ𝒙 note that directions not changed by reflection are along 𝒘 and orthogonal to 𝒘. Deduce

    𝒙1=𝒘=[ 1 2 ],λ1=1

    𝒙2=𝒘=[ -2 1 ],λ2=-1.

  7. Compute the eigendecomposition of

    𝑨=[ 5/2 0 1/2 0 1 0 1/2 0 5/2 ].

    Solution. Eigenvalue problem is 𝑨𝒙=λ𝒙. Observe that 𝒙2=𝒆2=[ 0 1 0 ]T, λ2=1 is an eigenvector, value pair. Compute characteristic polynomial by

    p(λ)=det(λ𝑰-𝑨)=| λ-5/2 0 -1/2 0 λ-1 0 -1/2 0 λ-5/2 |=(λ-1)| λ-5/2 -1/2 -1/2 λ-5/2 |
    p(λ)=(λ-1)(λ2-5λ+(52)2-(12)2)=(λ-1)(λ2-5λ+6)=(λ-1)(λ-2)(λ-3).

    The other eigevalues are λ1=2, λ3=3. Find eigenvectors by computing bases for eigenspaces N(𝑨-λ1𝑰) and N(𝑨-λ3𝑰).

    𝑨-λ1𝑰=[ 1/2 0 1/2 0 1 0 1/2 0 1/2 ][ 1/2 0 1/2 0 1 0 0 0 0 ]𝒙1=[ 1 0 -1 ]

    𝑨-λ3𝑰=[ -1/2 0 1/2 0 1 0 1/2 0 -1/2 ][ -1/2 0 1/2 0 1 0 0 0 0 ]𝒙3=[ 1 0 1 ].

  8. Find the SVD of

    𝑨=[ 1 -1 0 0 1 1 ].

    Solution. Matrix has orthogonal columns that are not of unit norm. Construct SVD as

    𝑨=[ 1/2 -1/2 0 0 1/2 1/2 ][ 2 0 0 2 0 0 ][ 1 0 0 1 ].

  9. Find the matrix of the reflection of 2 vectors across the vector 𝒖=[ 1 2 ]T.

    Solution. Let 𝒘 be the reflection of 𝒗 across 𝒖, 𝒘=𝑹𝒗. Let

    𝒒=1||𝒖||𝒖=15[ 1 0 ].

    The projection of 𝒗 onto the direction of 𝒖 is 𝒛=𝒒𝒒T𝒗. The travel from 𝒗 to 𝒛 is 𝒛-𝒗

    𝒛=𝒗+(𝒛-𝒗).

    The reflection is obtained by doubling the travel distance

    𝒘=𝒗+2(𝒛-𝒗)=2𝒛-𝒗=(2𝒒𝒒T-𝑰)𝒗.

    Deduce that the reflection matrix is

    𝑹=2𝒒𝒒T-𝑰.

    Figure 1.

  10. Find bases for the four fundamental spaces of

    𝑨=[ 1 -1 0 0 1 1 ].

    Solution. With 𝑨=[ 𝒂1 𝒂2 ]3×2, the bases are:

    C(𝑨): {𝒂1,𝒂2}

    N(𝑨T): {𝒆2} since 𝒆2 is orthogonal to both 𝒂1 and 𝒂2

    C(𝑨T): {𝒂1T,𝒂2T}

    N(𝑨): {𝟎}