The sine is positive in QI and QII which means that there are two possible arguments for the function that have a positive sine value, but the cosine is positive in QI and negative in QII. So, as posed the question has two answers as indicated by the
in the formula.
The formula is a consequence of the Pythagorean Identity:
Let's say that
. We square both sides of this equation to obtain:
Applying the Pythagorean Identity:
A little algebra music, Maestro:
Taking the square root (remembering to account for positive and negative roots):
But we know from earlier that
we can substitute to get the desired formula.
Further, given the symmetrical nature of the Pythagorean Identity, it should be intuitively obvious that the following formula holds as well:
The following will help you choose which sign to affix based on your knowledge of the Quadrant location of the function argument:
Quadrant Sine Cosine Tangent
I + + +
II + - -
III - - +
IV - + -
Also, secant has the same sign as cosine and cosecant has the same sign as sin.
John

My calculator said it, I believe it, that settles it
From
I > Ø