i have a calculating question
i want to calculate this integral
$$\int\_{-\pi}^{\pi} |\sin(x)|e^{-inx} \mathrm{d}x$$
i tried to use integration by parts but it just made it more complicated.
i already have the answer (USING MAPLE)

but i would appreciate if someone could take the time to explain the steps to me.
[![enter image description here](https://i.stack.imgur.com/R7Btg.png)](https://i.stack.imgur.com/R7Btg.png)