You kind of just have to know that cos(90-theta)=sin(theta) and vice versa, BUT there is intuition behind this.
Draw up any right angled triangle and label one of the angles as theta. Since all the angles of a triangle add up to 180, the remaining angle must be 90-theta. Now take notice that if...