5.4. EXERCISES 113

Now recall that u3 is a unit vector and so the above equals

1√(a2 +b2)

(−ac,−bc,a2 +b2)

Then from the above, A is given by−ac√(a2+b2)

b√a2+b2

a

−bc√(a2+b2)

−a√a2+b2

b√

a2 +b2 0 c

 cosθ −sinθ 0

sinθ cosθ 00 0 1



−ac√(a2+b2)

b√a2+b2

a

−bc√(a2+b2)

−a√a2+b2

b√

a2 +b2 0 c

−1

It is easy to take the inverse of this matrix on the left. You can check right away that its in-verse is nothing but its transpose. Then doing the computation and then some simplificationyields

=

 a2 +(1−a2

)cosθ ab(1− cosθ)− csinθ ac(1− cosθ)+bsinθ

ab(1− cosθ)+ csinθ b2 +(1−b2

)cosθ bc(1− cosθ)−asinθ

ac(1− cosθ)−bsinθ bc(1− cosθ)+asinθ c2 +(1− c2

)cosθ

 .

(5.7)With this, it is clear how to rotate clockwise about the unit vector, (a,b,c) . Just rotate

counter clockwise through an angle of −θ . Thus the matrix for this clockwise rotation isjust

=

 a2 +(1−a2

)cosθ ab(1− cosθ)+ csinθ ac(1− cosθ)−bsinθ

ab(1− cosθ)− csinθ b2 +(1−b2

)cosθ bc(1− cosθ)+asinθ

ac(1− cosθ)+bsinθ bc(1− cosθ)−asinθ c2 +(1− c2

)cosθ

 .

In deriving 5.7 it was assumed that c ̸=±1 but even in this case, it gives the correct an-swer. Suppose for example that c = 1 so you are rotating in the counter clockwise directionabout the positive z axis. Then a,b are both equal to zero and 5.7 reduces to 5.6.

5.4 Exercises1. If A,B, and C are each n× n matrices and ABC is invertible, why are each of A,B,

and C invertible?

2. Give an example of a 3× 2 matrix with the property that the linear transformationdetermined by this matrix is one to one but not onto.

3. Explain why Ax= 0 always has a solution whenever A is a linear transformation.

4. Recall that a line inRn is of the form x+tv where t ∈R. Recall that v is a “directionvector”. Show that if T : Rn→ Rm is linear, then the image of T is either a line or apoint.

5. In the following examples, a linear transformation, T is given by specifying its actionon a basis β . Find its matrix with respect to this basis.

5.4. EXERCISES 113Now recall that w3 is a unit vector and so the above equals124 peTanpy ae Pea +b*)Then from the above, A is given by—ac b a =ac b(e+e) ve+e cos@ —sin@ 0 V(err) Ve+0—bec —a . —be —a(ler) eve 4 ") 9 a 9 : (ese) VeeVa? +b 0 c a+b 0 cIt is easy to take the inverse of this matrix on the left. You can check right away that its in-verse is nothing but its transpose. Then doing the computation and then some simplificationyieldsa’+(1—a*)cos@ —ab(1—cos@)—csin@ ac(1—cos@)+bsin@=| ab(1—cos@)+csin@ b*+(1—b*?)cos@ —be(1—cos@) —asin@ac(1—cos@)—bsin@ be(1—cos@)+asin@ —c* + (1—c”) cos(5.7)With this, it is clear how to rotate clockwise about the unit vector, (a,b,c). Just rotatecounter clockwise through an angle of —@. Thus the matrix for this clockwise rotation isjusta’+(1—a’)cos@ —ab(1—cos@)+csin@ ac(1—cos@) —bsin®@=| ab(1—cos@)—csin@ b*+(1—b*)cos@ —_be(1—cos@)+asin@ac(1—cos@)+bsin@ bc(1—cos@)—asin@ c* + (1—c*) cosIn deriving 5.7 it was assumed that c ~ +1 but even in this case, it gives the correct an-swer. Suppose for example that c = | so you are rotating in the counter clockwise directionabout the positive z axis. Then a,b are both equal to zero and 5.7 reduces to 5.6.5.4 Exercises1. If A,B, and C are each n x n matrices and ABC is invertible, why are each of A,B,and C invertible?2. Give an example of a 3 x 2 matrix with the property that the linear transformationdetermined by this matrix is one to one but not onto.3. Explain why Aa = 0 always has a solution whenever A is a linear transformation.4. Recall that a line in R” is of the form x +tv where t € R. Recall that v is a “directionvector’. Show that if T : R” + R” is linear, then the image of T is either a line or apoint.5. In the following examples, a linear transformation, T is given by specifying its actionon a basis B. Find its matrix with respect to this basis.