Two acute angles are complementary when they add to \(90^\circ\). The complement of \(\theta\) is \(90^\circ-\theta\).
In a right triangle, the opposite leg for one acute angle is adjacent to the other. So \(\sin\theta=\cos(90^\circ-\theta)\) and \(\cos\theta=\sin(90^\circ-\theta)\).
Swapping the two legs replaces \(\tan\theta\) with the cotangent of its complement. Similarly, secant and cosecant exchange roles.