I have a problem understanding a technique that is being applied in virtually all of my excercises on solving integrals using the residue theorem. An example is the integral
$$\int^\infty_0dx \frac{x^\frac{1}{3}}{1 + x^2}$$
In class we solve this integral by instead integrating a complex integral $$\int dz \frac{z^\frac{1}{3}}{1 + z^2} $$ over a closed contour with a branch cut using the residue theorem, and then calculating each part of the contour separately as to be able to find the original integral.
This is the contour I am using. I have already found the integral over the total contour using the residue theorem, but I'm having trouble showing that the integrals over the black and blue parts of the curve vanish. In class this is the method applied for the blue curve with a radius $r \rightarrow 0$.
$$|zf(z)| = \left | \frac{z^{4/3}}{1+z^2} \right| \leq \frac{r^{4/3}}{1-r^2}$$
Where $r$ is the modulus of z on the blue contour. Because our final term goes to zero then we have shown this integral vanishes. I didn't understand how the upper bound was chosen, and it was explained to me that we are trying to maximize the total fraction by separately maximizing the nominator and minimizing the denumerator. Then due to the fact that z can be anywhere on the blue contour, and the triangle inequality, the denominator will be smallest for $z$ that has a phase $\pi$. While I understand the logic behind $ 1 - r^2$ for r on the real axis being the smallest possible value on the contour, I don't understand how we acquire $-r^2$ instead of just $r^2$, I thought the modulus was an absolute value. And why would one have to maximize the total fraction to show it vanishes in the first place?
Additionally for the black curve the following explanation was given:
$$|zf(z)| = \left | \frac{z^{4/3}}{1+z^2} \right| \leq \frac{R^{4/3}}{R^2 - 1}$$
Where again the final term goes to 0, proving the vanishing of the integral. And this I don't understand at all because in what way is $R^2 - 1$ the minimal value of the modulus of z on the black curve if $R \rightarrow \infty$, and how would $|1|$ change signs all of a sudden?
This method of finding an upper bound for the modulus of an expression is used in every single one of my excercises concerning this topic (this being the easiest example), so I'm guessing the use of this method is required to show the vanishing. I would like some help understanding the reason behind using this method because I'm a bit confused on why we are looking for an upper bound in the first place, and of course how does one get the final terms?