Recall that the value of the sine function is positive on \((0,\pi)\) and negative on \(\left(\pi,\frac{3\pi}{2}\right)\) (if this fact doesnβt click instantly, graphing out the sine function on \(\left[0,\frac{3\pi}{2}\right]\) and observe the graph). Then we can remove the absolute value by rewriting the integrand as a piecewise function as follows:
\begin{equation*}
\left|\sin(x)\right| =
\begin{cases}
\sin(x) & \text{when } 0 \leq x \leq \pi \\
-\sin(x) & \text{when } \pi < x < \frac{3\pi}{2}
\end{cases}
\end{equation*}
Then we can split up the integral at this transition point of \(x = \pi\) and plug in the corresponding function formulas. The FTC will do the rest!
\begin{align*}
\int_0^\frac{3\pi}{2} \left|\sin(x)\right|\, dx \amp= \int_0^\pi \left|\sin(x)\right|\, dx + \int_\pi^\frac{3\pi}{2} \left|\sin(x)\right|\, dx\\
\amp= \int_0^\pi \sin(x)\, dx + \int_\pi^\frac{3\pi}{2} -\sin(x)\, dx \\
\amp= -\cos(x)\bigg|_0^\pi + \cos(x)\bigg|_\pi^\frac{3\pi}{2} \\
\amp= -\cos(\pi) - \left(-\cos(0)\right) + \cos\left(\frac{3\pi}{2}\right) - \cos(\pi) \\
\amp= 1 + 1 + 0 + 1 \\
\amp= 3
\end{align*}