MATH 661.FA21 Midterm Examination 1 - Solution

Solve the problems for your appropriate course track. Problems probe understanding of the definitions and results from the module on floating point arithmetic and linear algebra. Formulate your answers clearly, cogently, and include a concise description of your approach. Each question is meant to be completely answere within five minutes. Allowed test time is 50 minutes.

1Common problems

  1. Prove that the inverse of a rank-1 perturbation of 𝑰 is itself a rank-1 perturbation of 𝑰, namely

    (𝑰+𝒖𝒗)-1=𝑰+θ𝒖𝒗.

    Determine the scalar θ.

    Solution. Self-evident for 𝒖=𝟎 or 𝒗=𝟎. Carry out multiplication

    (𝑰+𝒖𝒗)(𝑰+𝒖𝒗)-1=(𝑰+𝒖𝒗)(𝑰+θ𝒖𝒗)=𝑰+(1+θ)𝒖𝒗+θ𝒖𝒗𝒖𝒗.

    Note that 𝒖𝒗𝒖𝒗=(𝒗𝒖)𝒖𝒗, 𝒗𝒖. Impose condition

    𝑰+(1+θ+θ𝒗𝒖)𝒖𝒗=𝑰θ=-11+𝒗𝒖.
  2. Determine the rank of 𝑩=𝑨-1𝒖𝒗.

    Solution. Denote 𝒘=𝑨-1𝒖 to obtain 𝑩=𝒘𝒗, and rank(𝑩)=1, C(𝑩)=𝒘.

  3. Write the inverse (𝑰+𝑨-1𝒖𝒗)-1 as a rank-1 perturbation of 𝑰.

    Solution. Apply above to obtain

    𝑰=𝑰-𝒘𝒗1+𝒗𝒘=𝑰-𝑨-1𝒖𝒗1+𝒗𝑨-1𝒖
  4. Consider 𝑪=𝑨+𝒖𝒗=𝑨(𝑰+𝑨-1𝒖𝒗). Write 𝑪-1 as a rank-1 perturbation of 𝑨-1.

    Solution. Apply above to obtain

    𝑪=(𝑰+𝑨-1𝒖𝒗)-1𝑨-1=𝑨-1-𝑨-1𝒖𝒗𝑨-11+𝒗𝑨-1𝒖.

2Track 1

  1. A procedure is available to compute 𝒚=𝑨-1𝒙 in 𝒪(m) operations, 𝑨m×m. Write an efficient algorithm to compute 𝒛=(𝑨+𝒖𝒗)-1𝒙.

    Solution. In the following solveA(x) computes 𝒚=𝑨-1𝒙 in 𝒪(m) operations. Write 𝒛 as

    𝒛=𝑨-1𝒙-𝑨-1𝒖𝒗𝑨-1𝒙1+𝒗𝑨-1𝒖.

    Algorithm with operation count for each step

    Algorithm

    Input: 𝒙,𝒖,𝒗

    𝒔=solveA(𝒙)

    𝒪(m)

    a=𝒗𝒔

    𝒪(m)

    𝒕=solveA(𝒖)

    𝒪(m)

    b=𝒗𝒕

    𝒪(m)

    𝒛=𝒔-

    𝒪(m)

  2. Determine the operation count for the above algorithm.

    Solution. From above total operation count is 𝒪(5m), i.e., rank-1 perturbation of a known coordinate transformation costs 5m FLOPS.

3Track 2

  1. Let 𝑨m×m. Determine the relationship between the singular values of 𝑨 and the eigenvalues of

    𝑿=[ 𝟎 𝑨 𝑨T 𝟎 ].

    Solution. SVD of 𝑨=𝑼𝚺𝑽T. Since 𝑿 is symmetric, it is unitarily diagonalizable, 𝑸2m×2m orthogonal such that

    𝑿=𝑸𝚲𝑸T

    Consider simplest case when m=1, 𝑨=[1] with SVD 𝑨=[1][1][1]

    𝑿=[ 0 1 1 0 ].

    Compute eigendecomposition

    p𝑿(λ)=det(λ𝑰-𝑿)=| λ -1 -1 λ |=λ2-1
    𝑿=12[ -1 1 1 1 ][ -1 0 0 1 ]12[ -1 1 1 1 ]

    The above suggests for m>1

    𝑸=12[ -𝑼 𝑽 𝑽 𝑼 ].

    Verify orthogonality of 𝑸

    𝑸T𝑸=12[ -𝑼T 𝑽T 𝑼T 𝑽T ][ -𝑼 𝑼 𝑽 𝑽 ]=12[ 𝑼T𝑼+𝑽T𝑽 -𝑼T𝑼+𝑽T𝑽 -𝑼T𝑼+𝑽T𝑽 𝑼T𝑼+𝑽T𝑽 ]=[ 𝑰 𝟎 𝟎 𝑰 ],

    since 𝑼T𝑼=𝑽T𝑽=𝑰 (orthogonal matrices in SVD). Verify eigenvalue relationship

    𝑿=12[ -𝑼 𝑼 𝑽 𝑽 ][ -𝚺 𝟎 𝟎 𝚺 ][ -𝑼T 𝑽T 𝑼T 𝑽T ]
    𝑿=12[ -𝑼 𝑼 𝑽 𝑽 ][ 𝚺𝑼T -𝚺𝑽T 𝚺𝑼T 𝚺𝑽T ]=[ 𝟎 𝑼𝚺𝑽T 𝑽𝚺𝑼T 𝟎 ]

    It results that eigenvalues of 𝑿 are λi=±σi, with σi the singular values of 𝑨

  2. Determine the relationship between the singular vectors of 𝑨 and the eigenvectors of 𝑿.

    Solution. From above, eigenvectors are

    𝑸=12[ -𝑼 𝑽 𝑽 𝑼 ].