The p-Test for Improper Integrals

The p-test for improper integrals with a problem spot at $\infty$ is virtually the same as the p-test for non-negative infinite series.

$$\int_{1}^{\infty} \frac{1}{x^p} dx$$
$p > 1$ Converges
$p \le 1$ Diverges

In [ ]:
import sympy as sp
import matplotlib.pyplot as plt
%matplotlib inline