I'm studying for an admission test. One of the problem asked in a previous exam I'm looking at asks to find the sum of the series $$\sum_{k = 0}^{\infty} \frac{(-1)^k \cos(x + 2ky)}{(2k+1)!}.$$
This is not related to anything I have studied very recently and would appreciate if someone can help me with this. Thank you.
$$(-1)^k\dfrac{\cos(x+2ky)}{(2k+1)!}$$
is the Real part of
$$=\dfrac{i^{2k}e^{i(x+2ky)}}{(2k+1)!}=\dfrac{e^{ix}}{ie^{iy}}\cdot\dfrac{(ie^{iy})^{2k+1}}{(2k+1)!}$$
Now $$2\sum_{k=0}^\infty\dfrac{a^{2k+1}}{(2k+1)!}=e^a-e^{-a}$$
How to prove Euler's formula: $e^{it}=\cos t +i\sin t$? should be handy