MATH347.SP.25 Midterm Examination

Instructions. Answer the following questions. Provide concise motivation of your approach. Illegible answers are not awarded any credit. Presentation of calculations without mention of the motivation and reasoning are not awarded any credit. Each correct question answer is awarded 2 course points.

1. Prove the trigonometric identity

cos(3θ)=cos3(θ)-3cos(θ)sin2(θ).

Notation: cos2(θ)=[cos(θ)]2, sin2(θ)=[sin(θ)]2.

Solution. The matrix

𝑹θ=[ cosθ -sinθ sinθ cosθ ]

describes rotation by angle θ in 2. Rotation by angle 3θ is obtained by repeated application

𝑹θ3=𝑹3θ[ cosθ -sinθ sinθ cosθ ][ cosθ -sinθ sinθ cosθ ][ cosθ -sinθ sinθ cosθ ]=[ cos3θ -sin3θ sin3θ cos3θ ]

Carrying out the multiplications gives

𝑹θ3=[ cosθ -sinθ sinθ cosθ ][ cos2θ-sin2θ -2sinθcosθ 2sinθcosθ cos2θ-sinθ ]=[ cos3θ-cosθsin2θ-2sin2θcosθ - - - ]

and equality of the 1,1 component gives

cos(3θ)=cos3θ-3cosθsin2θ,

as requested.

2. Determine the standard matrix 𝑷 of the orthogonal projection of a vector 𝒗3 onto the line x1=x2=x3.

Solution. The unit vector along the line x1=x2=x3 is

𝒒=13[ 1 1 1 ],

and the projection matrix along this direction is

𝑷=𝒒𝒒T=13[ 1 1 1 ][ 1 1 1 ]=13[ 1 1 1 1 1 1 1 1 1 ].

3. Determine bases for the fundamental subspaces of the matrix 𝑷 defined above.

Solution. For 𝒖3, 𝒗=𝑷𝒖=(𝒒𝒒T)𝒖=(𝒒T𝒖)𝒒 is in the direction of 𝒒 hence a basis for C(𝑷) is {𝒒}and r=rank(𝑷)=1. The left null space contains vectors orthogonal to 𝒒, for example

𝒚=[ 1 -1 0 ],𝒛=[ 1 0 -1 ],

that verify 𝒚T𝒒=0, 𝒛T𝒒=0, and linearly independent, hence {𝒚,𝒛} is a basis. Note that 𝑷T=𝑷 such that {𝒒} is a basis for the row space C(𝑷T), and {𝒚,𝒛} is a basis for N(𝑷).

4. Find the inverse of the standard matrix 𝑴3×3 of the linear mapping, L=FG with

  1. F:33 denoting reflection across the vector 𝒖=[ 1 1 0 ]T;

  2. G:33 denoting scaling by λ1,λ2,λ3 along directions x1,x2,x3, respectively.

Solution. Consider 𝒗,𝒘,𝒛3 and diagram in Fig. 1, with 𝒘 the projection of 𝒗 onto the direction of 𝒖. Let

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

The projection matrix is then

𝑷=𝒒𝒒T=12[ 1 1 0 ][ 1 1 0 ]=12[ 1 1 0 1 1 0 0 0 0 ],

leading to 𝒘=𝑷𝒗. The vector 𝒘 is also the sum

𝒘=𝒗+𝒛.

The reflection of 𝒗 across 𝒖 is reached by traveling from endpoint of 𝒗 by 2𝒛

𝒚=𝒘+2𝒛=𝒘+2(𝒘-𝒗)=2𝒘-𝒗=2𝑷𝒗-𝒗=(2𝑷-𝑰)𝒗.

From the above deduce the standard matrix for reflection across 𝒖 is

𝑨=2𝑷-𝑰=[ 1 1 0 1 1 0 0 0 0 ]-[ 1 0 0 0 1 0 0 0 1 ]=[ 0 1 0 1 0 0 0 0 -1 ].

The matrix for scaling is

𝑩=[ λ1 0 0 0 λ2 0 0 0 λ3 ].

The matrix for the composite transformation is

𝑴=𝑨𝑩,

with inverse

𝑴-1=𝑩-1𝑨-1.

The inverse of 𝑩 is

𝑩-1=[ 1/λ1 0 0 0 1/λ2 0 0 0 1/λ3 ],

assuming non-zero λ1,λ2,λ3. Note that reflection of 𝒚 across 𝒖 gives the original vector 𝒗. Stated in matrix terms

𝑨𝑨=𝑰,

𝑨 is its own inverse. Then

𝑴=𝑩-1(2𝑷-𝑰)=[ 1/λ1 0 0 0 1/λ2 0 0 0 1/λ3 ](212[ 1 1 0 1 1 0 0 0 0 ]-[ 1 0 0 0 1 0 0 0 1 ])

𝑴-1=[ 1/λ1 0 0 0 1/λ2 0 0 0 1/λ3 ][ 0 1 0 1 0 0 0 0 -1 ]=[ 0 1/λ1 0 1/λ2 0 0 0 0 -1/λ3 ].

Figure 1.

5. Compute the LU factorization without permutations of

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

Explicitly state the elementary matrices used at each stage of the process.

Solution. The stage 1 operation is

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

The stage 2 operation is

𝑳2(𝑳1𝑨)=[ 1 0 0 0 1 0 0 2 1 ][ 1 2 3 0 4 5 0 -8 -4 ]=[ 1 2 3 0 4 5 0 0 6 ]=𝑼.

Multiply by inverse to obtain

𝑨=𝑳1-1𝑳2-1𝑼=𝑳𝑼,

with

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