I'm working on the following problem, but I don't know if my proof is correct, so I'm looking for some feedback. Also, my approach seems quite tedious, so I'm curious whether anyone can think of a simpler proof. Thanks in advance!
Suppose $f$ is continuous on $(a,b)$ and $\int_a^b |f(x)| \mathrm{d}x < \infty$; $a$ can be $-\infty$ and $b$ can be $+\infty$. Show the integral $\int_b^a f(x)\mathrm{d}x$ exists and is finite.
So I tried the following: $$0\leq\left|\int_a^bf(x)\mathrm{d}x\right|\leq\int_a^b|f(x)|\mathrm{d}x<\infty,$$ so $\left|\int_a^bf(x)\mathrm{d}x\right|\leq M$, for an $M\in\mathbb{R}$, given that $\int_a^bf(x)\mathrm{d}x$ exists. Thus in that case $\int_a^bf(x)\mathrm{d}x$ is indeed finite. (i)
What's left is to proof that $\int_a^bf(x)\mathrm{d}x$ indeed exists.
In the case that the integral is a 'normal' (that is non-improper) Riemann integral, the continuity of $f$ directly implies the existence of $\int_a^bf(x)\mathrm{d}x$. So we consider the case the the integral is improper. I assume that for every $c\in(a,b)$, $f$ is integrable on $[a,c]$. The case where either $a=-\infty$ or $f$ is non-integrable on $[a,c]$ follows analogously. If both the following case and the case that either $a=-\infty$ or $f$ is non-integrable on $[a,c]$ occur, then apply the following argument twice.
So $b$ is either $\infty$ (ii) or $f$ is not integrable on $(a,b]$ (iii).
First assume that $b=\infty$. We know that $\int_a^b|f(x)|\mathrm{d}x<\infty$, so $$\lim_{d\to\infty}\int_a^d|f(x)|\mathrm{d}x=L,$$ for an $L\in\mathbb{R}$. Thus, given $\epsilon>0$ for certain $y>0$, $d>y$ implies $$\left|\int_a^d|f(x)|\mathrm{d}x-L\right|<\epsilon\\\left|\int_a^d|f(x)|\mathrm{d}x-\int_a^{\infty}|f(x)|\mathrm{d}x\right|=\left|\int_d^{\infty}|f(x)|\mathrm{d}x\right|<\epsilon$$ So from here, there exists a partiton $P$ such that $M(f,P)-m(f,P)<\epsilon$, or $\int_a^{d}f(x)\mathrm{d}x+(M(f,P_{(d,\infty)})-m(f,P_{(d,\infty)}))<\int_a^{d}f(x)\mathrm{d}x+\epsilon$, and thus the integral exists.
Now, since $f$ is continuous on $(a,b)$, we know that $\int_a^df(x)\mathrm{d}x$ exists. Thus we conclude that $\int_a^bf(x)\mathrm{d}x=\int_a^df(x)\mathrm{d}x+\int_d^{\infty}f(x)\mathrm{d}x<\int_a^df(x)\mathrm{d}x+\epsilon$. Thus $$\left|\int_a^bf(x)\mathrm{d}x-\int_a^df(x)\mathrm{d}x\right|<\epsilon,$$ and we can conclude that $\lim_{d\to\infty}\int_a^df(x)\mathrm{d}x=\int_a^{\infty}f(x)\mathrm{d}x$ exists. (ii)
Now assume that $f$ is not integrable on $(a,b]$, with $b<\infty$. Again, $\int_a^b|f(x)|\mathrm{d}x$ exists and is finite, say $\int_a^b|f(x)|\mathrm{d}x=L$, for an $L\in\mathbb{R}$. Thus $\int_a^b|f(x)|\mathrm{d}x=\lim_{d\to b^-}\int_a^d|f(x)|\mathrm{d}x=L$. Thus given $\epsilon>0$, $\exists\delta>0$ such that $$\left|\int_a^{b-\delta}|f(x)|\mathrm{d}x-L\right|<\epsilon\\\left|\int_a^{b-\delta}|f(x)|\mathrm{d}x-\int_a^{b}|f(x)|\mathrm{d}x\right|=\left|\int_{b-\delta}^{b}|f(x)|\mathrm{d}x\right|<\epsilon$$
So from here, there exists a partiton $P$ such that $M(f,P)-m(f,P)<\epsilon$, or $\int_a^{b-\delta}f(x)\mathrm{d}x+(M(f,P_{(d,b-\delta)})-m(f,P_{(d,b-\delta)}))<\int_a^{b-\delta}f(x)\mathrm{d}x+\epsilon$, and thus the integral exists.
From this we conclude that $$\left|\int_{a}^{b}f(x)\mathrm{d}x-\int_{a}^{b-\delta}f(x)\mathrm{d}x\right|<\epsilon,$$ and thus that $\lim_{d\to b^-}\int_{a}^{d}f(x)\mathrm{d}x$ exists. (iii)
From (ii) and (iii) we conclude that $\int_{a}^{b}f(x)\mathrm{d}x$ exists. The case that the integral $\int_{a}^{c}f(x)\mathrm{d}x$ for $c\in(a,b)$ is also improper follows analogously. From (i), we now coclude that $\int_{a}^{b}f(x)\mathrm{d}x$ is finite.