Artificial intelligent assistant

Integral of $\tan(x)$ from $0$ to $2\pi$ I had a disputation with my friend. He said that $$ \int_0^{2\pi} \tan(x) \ dx $$ is undefined. While I admit that the Integral from $0$ to $\frac{\pi}{2}$ goes to infinity, I don't know if the Integral from 0 to $2\pi$ is a real number or not. Could I also say that because the symmetry of $\tan$, the expression above is just $0$?

This is an improper integral, and the usual way these are handled is by taking limits at each point of discontinuity (in this case, at $\pi/2$ and $3\pi/2$, from both sides at each).

The result in this case is that the integral does not converge.

There is good reason to do this, even if there is symmetry in the problem. For example, consider $\int_{-1}^1 \frac{1}{x} dx$. There is symmetry there, but you get different answers with the following:

1. $\lim_{e\to 0+} \int_{-1}^{-e}\frac{dx}{x}+\int_{e}^1\frac{dx}{x}$

2. $\lim_{e\to 0+} \int_{-1}^{-e^2}\frac{dx}{x}+\int_{e}^1\frac{dx}{x}$

3. $\lim_{e\to 0+} \int_{-1}^{-e}\frac{dx}{x}+\lim_{f\to 0+}\int_{f}^1\frac{dx} {x}$




However if the third expression exists (it doesn't in this case), then it agrees with the first two. That is the definition that is in standard use.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 3fbddf7bcd52792cbd8bc05c6c0b1140