Source: https://www-fourier.ujf-grenoble.fr/~rjoly/Documents/Pedago/MAT302/cours-MAT302-chapitre-integrales-impropres.pdf