Simplify expressions using trigonometric identities