Integration using trigonometric identities