Thank you so much! This really helped me! :D

In a) I didn't think of squaring both sides to get cos^2x = 1 - sin^2x, so thank you!

In b) I didn't think of that cos(pi/2 - x) = sin x !!! So thank you, this is what helped me the most.

Thanks!!! Much love from Sweden.