Trigonometric identities and quadrant analysis