Dr. Andy T. answered 08/23/20
UT Austin Ph.D. in Physics and Certified Math Teacher at Top STEM HS
(a) Recall that any orthogonal matrix M has determinant det M = 1 or -1. Let A be an orthogonal matrix with det A = 1 and B an orthogonal matrix with det B = -1. Suppose there exists a path P from A to B in S1. Then for each P(t) with 0 ≤ t ≤ 1, we have det P(t) = 1 or -1. Since det: S1→ {-1,1} is a continuous function, det P(t) must also be a continuous function of t (since it is the composition of two continuous functions). However, this is not possible since at some point between t = 0 and t = 1, det P(t) discontinuously changes from 1 to -1. Hence, there cannot exist a path from A to B. This shows that S1 is not connected.
(b) We will show that, given any unitary matrix U, there exists a path from the identity matrix I (note that I is unitary) to U in S2. This will imply that there exists a path between any U1 and U2 in S2 since the composition of two paths such that the terminal point of the first is the initial point of the second is another path, proving that S2 is connected. By the Spectral Theorem applied to unitary matrices, U can be unitarily diagonalized and the eigenvalues of U all have absolute value 1. This means there exists a unitary matrix V such that U takes the form U = V diag{exp[iθ1], ..., exp[iθn]}V-1. Now define P(t) for 0 ≤ t ≤ 1 by
P(t) = V diag{exp[itθ1], ..., exp[itθn]}V-1. This is a continuous function of t such that P(0) = I and P(1) = U, hence P(t) is a path from I to U.