We have the following trigonometric identities:
a)
From the first identity above we have that:
Plugging this in the expression given we have:
Therefore:
b)
From the second identity given at the beginning we have:
Plugging this in the second expression we have:
Therefore: