Why are you in a calculus text without a sufficient background in trigonometry. You should fix that.
Is the cosine argument as you have written it, [math]a + \dfrac{b}{2}[/math], or was [math]\dfrac{a+b}{2}[/math] intended?
Expand sine and cosine of sums and see if anything strikes you.