I saw this integral in a competitive exam which I donot recall, but I found this problem in my notebook which has to be shown without using Cauchy integral theorem, Poisson integral formula over circle -
$$\int_{0}^{2\pi} \frac{e^{\cos(\phi)} \cos(\sin \phi)}{5 - 4\cos(\theta - \phi)} d\phi = \frac{2\pi}{3} e^{\cos(\theta)} \cos(\sin(\theta))$$
and
$$\int_{0}^{2\pi} \frac{e^{\cos(\phi)} \sin(\sin \phi)}{5 - 4\cos(\theta - \phi)} d\phi = \frac{2\pi}{3} e^{\cos(\theta)} \sin(\sin(\theta))$$
I think these are two beautiful and smart integrals(by comparing the two integrals which just differ by a trigonometric function), but I have no idea how to start with?. There may be some great idea involved in here.
I thought of multiplying $i$ to the second integral and adding to the first integral which reduces to a term $e^{e^{i\phi}}$ but I think that will not help much.
Any clever approaches to this problem?
Hint using residue theorem (and a bit of sweat) we can extend your idea of multiplying $i$ to the second integral and adding...: $$\int_{0}^{2\pi} \frac{e^{\cos{\phi}} \cos(\sin{\phi})}{5 - 4\cos(\theta - \phi)} d\phi + i\int_{0}^{2\pi} \frac{e^{\cos{\phi}} \sin(\sin{\phi})}{5 - 4\cos(\theta - \phi)} d\phi = \\ \int_{0}^{2\pi} \frac{e^{\cos{\phi}} \left(\cos({\sin \phi})+i\sin(\sin{\phi})\right)}{5 - 4\cos(\theta - \phi)} d\phi =\\ \int_{0}^{2\pi} \frac{e^{\cos{\phi}} e^{i\sin{\phi}}}{5 - 4\cos(\theta - \phi)} d\phi = \int_{0}^{2\pi} \frac{e^{e^{i \phi}}}{5 - 4\cos(\theta - \phi)} d\phi =\\ \int_{0}^{2\pi} \frac{e^{e^{i \phi}}}{5 - 4\frac{e^{i(\theta - \phi)}+e^{-i(\theta - \phi)}}{2}} d\phi= \int_{0}^{2\pi} \frac{e^{e^{i \phi}}}{5 - 2\left(e^{i(\theta - \phi)}+e^{-i(\theta - \phi)}\right)} d\phi=\\ -i \int_{0}^{2\pi} \frac{e^{e^{i \phi}}}{e^{i \phi}\left(5 - 2\left(e^{i(\theta - \phi)}+e^{-i(\theta - \phi)}\right)\right)} d\left(e^{i \phi}\right)=\\ -i \int_{0}^{2\pi} \frac{e^{e^{i \phi}}}{5e^{i \phi} - 2\left(e^{i\theta}+e^{i 2\phi}e^{-i\theta}\right)} d\left(e^{i \phi}\right)=\\ -i \int\limits_{|z|=1} \frac{e^{z}}{5z - 2\left(e^{i\theta}+z^2e^{-i\theta}\right)} dz= i \int\limits_{|z|=1} \frac{e^{z}}{e^{-i \theta} \left(z-2 e^{i\theta}\right) \left(2z-e^{i \theta}\right)} dz=\\ i 2\pi i \operatorname {Res} \left(\frac{e^{z}}{e^{-i \theta} \left(z-2 e^{i\theta}\right) \left(2z-e^{i \theta}\right)},\frac{e^{i \theta}}{2}\right)=\\ -2\pi \operatorname {Res} \left(\frac{e^{z}}{e^{-i \theta} \left(z-2 e^{i\theta}\right) \left(2z-e^{i \theta}\right)},\frac{e^{i \theta}}{2}\right)=\\ -2\pi \cdot \lim\limits_{z\rightarrow \frac{e^{i \theta}}{2}} \left(z-\frac{e^{i \theta}}{2}\right)\cdot \frac{e^{z}}{e^{-i \theta} \left(z-2 e^{i\theta}\right) \left(2z-e^{i \theta}\right)}=\\ -\pi \cdot \lim\limits_{z\rightarrow \frac{e^{i \theta}}{2}} \frac{e^{z}}{e^{-i \theta} \left(z-2 e^{i\theta}\right)}= -\pi \frac{e^{\frac{e^{i \theta}}{2}}}{e^{-i \theta} \left(\frac{e^{i \theta}}{2}-2 e^{i\theta}\right)}=\frac{2\pi}{3} e^{\frac{e^{i \theta}}{2}}$$
Also, I think there is a typo in the original question, let's say $\theta=1$ we have