Recall that
sin(<em>x</em> ± <em>y</em>) = sin(<em>x</em>) cos(<em>y</em>) ± cos(<em>x</em>) sin(<em>y</em>)
cos(<em>x</em> ± <em>y</em>) = cos(<em>x</em>) cos(<em>y</em>) ∓ sin(<em>x</em>) sin(<em>y</em>)
Then
cos(<em>ax</em> - <em>b</em>) = cos(<em>ax</em>) cos(<em>b</em>) + sin(<em>ax</em>) sin(<em>b</em>)
When you differentiate <em>y</em> with respect to <em>x</em>, you only need to focus on the the cos(<em>ax</em>) and sin(<em>ax</em>) terms.
We have






Now, recall these useful known limits: for <em>c</em> ≠ 0,

Then the limits involving cosine vanish, and the derivative simplifies to

For the remaining limits, introduce a factor of <em>a</em> in the denominators:


and using the first identity listed above, we can write this as
