Prove $\left| \int_a^b f(t) dt \right| \leq \int_a^b \left| f(t) \right| dt$
I've been given a proof that shows the following:
If $f:[a,b]\to \mathbb C$ is a continuous function and $f(t)=u(t)+iv(t)$ then $$\left| \int_a^b f(t) dt \right| \leq \int_a^b \left| f(t) \right| dt$$ The proof begins by letting $\theta$ be the principle argument of the complex number $\int_a^b f(t)dt$ and there is one step in the proof I don't understand; can anyone explain to me why $$\int_a^b e^{-i\theta}f(t) dt=\Re\bigg(\int_a^be^{-i\theta}f(t)dt\bigg)$$
Would this not imply that the imaginary part of the left hand side is equal to $0$? I'm not sure why the LHS and RHS would be equal here.
Solution 1:
If $A = \int_a^b f(t)dt$, notice that, since $\theta$ is the principal argument of $A$,
$$A = |A| e^{i \theta}$$
Which gives:
$$|A| = Ae^{-i\theta} = \left(\int_a^b f(t)dt \right) e^{-i\theta} = \int_a^b e^{-i\theta} f(t)dt$$
Hence $\int_a^b e^{-i\theta} f(t) dt = |A| \in \Bbb R$