Here's the basic premise of the Integral Test:
It's that simple.
Let ${a_n}$ be a sequence of positive terms.
Suppose that $a_n = f(n)$, and $f$ is a continuous, positive, decreasing function of $x$ for all $x \ge N$ (an arbitrary positive integer).
Then:
the series $\sum_{n=N}^{\infty} a_n$ and the (improper) integral $\int_N^{\infty} f(x) dx$ both converge or diverge.
In [8]:
from IPython.display import SVG
SVG(filename="integral_test_visualization.svg")
Out[8]:
In [ ]: