so my function is $$f(z)= \frac{e^{iz}}{z^2+a^2} $$
What is getting to me and probably I should've been comfortable with this fact is how they establish this upper bound:
$$\bigg|\int_{0}^{\pi} f(Re^{i\theta})Re^{i\theta} d\theta\bigg| \leq R \int_0^{\pi} \frac{e^{-Rsin\theta}d\theta}{R^2 - a^2} \leq \frac{(\pi)R}{R^2 - a^2}$$
First you parametrize the upper half circle as $z=Re^{i\theta}$ then see this
and
Can you know collect the above inequalities together to find the bound.