When is $\int \int_D f(r, \theta) dD = \int h(\theta) d \theta \int g(r) dr$?
where $g(r) h(\theta) = f$, i.e. the integral has been split because $f(r, \theta)$ contains a multiplication in $r$s and $\theta$s.
When is $\int \int_D f(r, \theta) dD = \int h(\theta) d \theta \int g(r) dr$?
where $g(r) h(\theta) = f$, i.e. the integral has been split because $f(r, \theta)$ contains a multiplication in $r$s and $\theta$s.
If $f(r, \theta)$ can be written as $f(r, \theta) = g(r) \cdot h(\theta)$ and if $D$ is a polar rectangle $$ D = \left\{ (r, \theta) \, \big| a \leq r \leq b, \, \alpha \leq \theta \leq \beta \right\}, $$ then you have $$ \iint\limits_D f(r, \theta) \, dA = \int_\alpha^\beta \int_a^b g(r) \cdot h(\theta) r \, dr \, d\theta = \int_\alpha^\beta h(\theta) \, d\theta \, \cdot \, \int_a^b g(r) r \, dr. $$ Where you run into trouble in trying to write the integral like this is if the function can't be factored in this way (e.g., $f(r, \theta) = r + \theta$), or if the region you want to integrate over is more complicated than a polar rectangle and so your limits of integrations for $r$ are functions of $\theta$, or vice versa.