It's impossible to answer the general question you ask; too general.
For the specific example of $f(x)=\frac{1}{1+x^2}$ being in $L^1([0,\infty))$ you could give a detailed proof as below. Note that what's below is much more detail than anyone would actually write, except in a first-semester measure theory class. Also note that I'm not going to use that $\arctan$ thing; I'm not going to calculate the integral exactly. What I do below is better because the sort of thing I do below would also let you show that a function like $1/(1+x^6)$ was Lebesgue integrable, when you don't know an explicit antiderivative. So:
First, $f$ is measurable since it's continuous.
Now $$\int_0^1 f\le\int_0^1 1=1.$$
For every $A$ with $1<A<\infty$ the theorem that the Lebesgue integral of a continuous function on $[a,b]$ equals its Riemann integral shows that $$\int_1^A f\le\int_1^A\frac{dt}{t^2}=1-A^{-1}\le 1.$$So the Monotone Convergence Theorem shows that $$\int_1^\infty f\le 1.$$
(You should think about how I'm applying MCT here; what increasing sequence of positive functions am I talking about?)
So $\int_0^\infty|f|=\int_0^\infty f\le 1+1<\infty$.