I am trying to change the order of integration for the double integral below using the Heaviside step function. I'm following the example given in this answer.
So far:
\begin{eqnarray*} \int_{\frac{1}{4}}^{\frac{1}{2}}\int_{\frac{1}{4}}^{y_1}f\left(y_1, y_2\right)\,{\rm d}y_2\,{\rm d}y_1 & = & \int_{\frac{1}{4}}^{\frac{1}{2}}\left\lbrack\int_{\frac{1}{4}}^{1}\Theta\left(y_1 - y_2 \right) {\rm f}\left(y_1, y_2\right)\,{\rm d}y_2\right\rbrack{\rm d}y_1 \\ & = & \int_{\frac{1}{4}}^{1}\left\lbrack\int_{\frac{1}{4}}^{\frac{1}{2}}\Theta\left(\_\_\_\_\right) {\rm f}\left(y_1, y_2\right)\,{\rm d}y_1\right\rbrack{\rm d}y_2 \end{eqnarray*}
I am not sure what to do with $\Theta\left(y_1 - y_2 \right)$ at this point.