I'm having a hard time figuring how the following integral converges: $$ \int_{-∞}^{∞} \frac{x}{x^2 + 1}dx $$
When I try to calculate the same integral as $\int_{-∞}^{0} \frac{x}{x^2 + 1}dx + \int_{0}^{∞} \frac{x}{x^2 + 1}dx$, I get that it diverges. But I know that this is an odd function, and symbolab shows that the areas are cancelled out, i.e. the integral is 0. How can I show that it converges?
You can't. It doesn't converge. By definition, we say that the integral $\int_{-\infty}^{+\infty}\frac x{x^2+1}\,\mathrm dx$ converges if, given $a\in\mathbb R$, both integrals$$\int_{-\infty}^a\frac x{x^2+1}\,\mathrm dx\text{ and }\int_a^{+\infty}\frac x{x^2+1}\,\mathrm dx$$converge (if this happens for some $a$, then it happens for every $a$). But, as you noted, this doesn't happen when $a=0$.