I'm trying to find the area of the region bounded by $r =|\sin \theta | $ in the $xy$-plane using the formula: \begin{align*} A &= \frac{1}{2}\int_{0}^{\pi} (|\sin \theta|)^2 d\theta \\ &=\frac{1}{2}\int_{0}^{\pi} (1-\cos2\theta)^2 d\theta \\ &= \frac{1}{2}\int_{0}^{\pi} (1-2\cos\theta + \cos^22\theta)^2 d\theta \\ \end{align*}
which I get $\frac{\pi}{4}$ as the answer but I got it wrong on a test.
The other options are:
$\frac{\pi}{2}$
$\frac{\pi}{4}$
$\pi$
$1$
$2$
Could there have been a mistake on the test or did I miss something?
Note the area integral is
$$A=\int_0^{2\pi} \int_0^{|\sin(\theta)|} rdrd\theta =\frac12 \int_0^{2\pi} \sin^2\theta d\theta =\frac14 \int_0^{2\pi} (1-\cos2\theta )d\theta=\frac\pi2$$