For example, I want to evaluate $$ \displaystyle \int_{0}^{2\pi} \left| \sin x \right| \text{ d}x $$ and I already know that: $$ \displaystyle \begin{aligned} \int \left| \sin x \right| \text{ d}x & = \int \sin x \text{ sgn}\left( \sin x \right) \text{ d}x \\ & = -\cos x \text{ sgn}\left( \sin x \right) + \mathcal{C} \end{aligned}$$ How would I evaluate the definite integral involving the signum function?
2026-05-16 13:02:09.1778936529
On
On
How do I evaluate integrals that involve the signum ($\text{sgn}$) function?
3.6k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
There are 3 best solutions below
0
On
HINT : $$ \int_{0}^{\large 2\pi} \left| \sin x \right|\ dx=\int_{0}^{\large\pi}\sin x\ dx-\int_{\large\pi}^{\large2\pi}\sin x\ dx. $$
0
On
Let $x = u + \pi \to dx = du$, and $sinx = -sinu$. Thus:
$\displaystyle \int_{0}^{2\pi} |sinx|dx = \displaystyle \int_{-\pi}^{\pi} |sinu|du$.
Observe that $f(u) = |sinu|$ is an even function, so:
$\displaystyle \int_{-\pi}^{\pi} |sinu|du = 2\displaystyle \int_{0}^\pi |sinu|du = 2\displaystyle \int_{0}^\pi sinudu = (-2cosu)|_{u=0}^\pi = 4$.
Hint: Instead of trying to use the sign function, break up the integral into intervals where $\sin x \geq 0$ and $\sin x < 0$. On such intervals, $|\sin x|$ is particularly simple and easier to integrate.