I'm currently studying complex analysis. My current thinking is as follows:
Let $f(t)=x(t)+iy(t)$. By definition, $$\int_{\gamma} f(t) \, \mathrm{d}t = \int_{a}^{b} f(\gamma(t)) \gamma'(t) \, \mathrm{d}t$$ and so by substitution, $$\int_{\gamma} f(t) \, \mathrm{d}t = \int_{a}^{b}x(\gamma(t))\gamma'(t) \, \mathrm{d}t + i \int_{a}^{b} y(\gamma(t))\gamma'(t) \, \mathrm{d}t.$$ Thus, $$Re\left( \int_{\gamma} f \right) =\int_{a}^{b}x(\gamma(t))\gamma'(t) \, \mathrm{d}t.$$ Now, $$\int_{\gamma} Re(f(t))\, \mathrm{d}t = \int_{\gamma}x(t) \, \mathrm{d}t = \int_{a}^{b} x(\gamma(t))\gamma'(t) \, \mathrm{d}t.$$ We see that these expressions are indeed the same, and so $Re\left( \int_{\gamma} f \right) = \int_{\gamma} Re(f)$. This seems so straightforward, and I've been trying for ages to come up with a counter example, but I haven't been able to find one. What are your thoughts?