The key is this formula of Trigonometry: (see the lesson Addition and subtraction of trigonometric functions in this site). Apply it for the first parentheses. Then apply it again for the second parentheses.