Show that $\left|\int_C \frac{1}{z^2+1}\le\frac{1}{2\sqrt{5}}\right|$, where $C$ is the straight line segment from $z=2$ to $z=2+i$.
The contour length here is 1, so all we have to worry about is the M's value to get ML. We have to maximise the thing so we have to minimise the denominator using triangle inequality.
but when I do it, the answer is not matching with what I have to prove.
|z^2+1|≥||z^2|-1|
and since we need the minimum value we use z=2.
so 4-1 = 3.
I am getting 1/3, but the answer I have to prove is different.
Hint 1 For two complex numbers $z$ and $w$ (with $|z+w|>0$), we have $$\dfrac{1}{|z+w|}\le\dfrac{1}{||z|-|w||}.\tag{1}$$
Hint 2 Split $C$ into two straight line segments: $C_1$ from $2$ to the midpoint $m=2+i/2$ and $C_2$ from $m$ to $2+i$.
Added. For $z_1=x_1+iy_1\in C_1$, we have $|z_1|>2 $ and for $z_2=x_2+iy_2\in C_2$, we have $|z_2|>\frac{\sqrt{17}}{2} $. Now use $(1)$, for $w=1,z=z_1^2$:
$$\frac{1}{|z_1^2+1|} \le \frac{1}{||z_1^2|-1 |}=\frac{1}{||z_1|^2-1| |}\le \frac{1}{3},\tag{2}$$
and similarly to $$\frac{1}{|z_2^2+1|} \le\frac{4}{13}.\tag{3}$$ Finally, apply ML inequality to each integral (with $L=1/2$): $$\left|\int_{C_1} \frac{1}{z_1^2+1}\right|\le\frac{1}{6} \qquad\text{ and }\qquad\left|\int_{C_2} \frac{1}{z_2^2+1}\right|\le\frac{2}{13}.\tag{4}$$
Hence $$\left|\int_{C} \frac{1}{z^2+1}\right|\le\frac{1}{6}+\frac{2}{3}\le\frac{1}{2\sqrt{5}}.\tag{5}$$