To determine whether the integral diverges, you need to look at the ratio of the maximum powers of the numerator and denominator. If the ratio is greater than 1, then the integral is divergent.
I apply this rule to my example, where you need to find the second moment of a random variable:
\begin{align} I &= \int\limits_{-\infty}^{\infty} x^2 \cdot \frac{\mu \cdot k}{2 \cdot (1+\mu^2 \cdot ((x-m) \cdot k)^2)^{3/2}} dx. \end{align}
The ratio of the maximum powers of the numerator and denominator is: \begin{align} \frac{x^2}{x^3} = \frac{1}{x} \\ \left.\int\limits_{-\infty}^{\infty} \frac{1}{x} dx = \ln \left| x \right| \right\vert_{-\infty}^{\infty} = \ln (\infty) - \ln (\infty) = 0 \end{align}
However, in order for the integral to converge, each of the limits must converge separately, in this case this is not the case, therefore, the integral is divergent.
Now I want to reduce the limits of integration and investigate when it starts to diverge. To do this, I will set some variables: $m = 0, \mu = 1, k = 1$.
Now I will change the limits of integration and calculate the value of the integral each time: $$\int\limits_{-1}^{1} (), \int\limits_{-11}^{11} (), ..., \int\limits_{-91}^{91} ()$$
I see that the integral does not increase to infinity, but on the contrary, tends to a constant value. Then at what point does it start to diverge?

log(x)also "seems" to "converge" like that graph, but ultimately diverges on $x \rightarrow \infty$. Likely the same error here. – Abastro Jan 11 '23 at 07:43