Elementary definite integral problem

64 Views Asked by At

I was evaluating the elementary integral: $$\int_0^{2\pi} \sec^2\frac{x}{2}dx$$ Evaluating the expression and substituting limits, we get, $$2\bigg[\tan\frac{x}{2}\bigg]_0^{2\pi}=2\bigg[\tan \frac{2\pi}{2}-\tan\frac{0}{2}\bigg]=2\bigg[0-0\bigg]=0$$ This seems like a valid solution, except, when I run it on Wolfram or Integral Calculator, it says the integral is divergent.

Where am I going wrong? How is the integral divergent?

2

There are 2 best solutions below

0
On BEST ANSWER

Note that $\sec$ is not defined at $\pi$. So, your integral is really the sum of several improper integrals, the first one of which is$$\lim_{u\to\pi^-}\int_0^u\sec^2\left(\frac x2\right)\,\mathrm dx.$$This integral diverges.

0
On

The integral is not defined at $x = \pi$. You can however calculate the principal value:

$$\text{PV} = \lim_{\epsilon \to \pi} \left(\int_{0}^{\epsilon} + \int_{\epsilon}^{2\pi}\right) \sec^2\left(\frac{x}{2}\right)\ dx$$