I am trying to solve the integral below (equation 1) by changing the integration order from dydx to dxdy:
$$ I = \int_{\frac{2}{\sqrt{5}}}^1\int_{\sqrt{1-x^2}}^{\frac{x}{2}}f(x,y) \mathrm dy \mathrm dx + \int_1^{\frac{4}{\sqrt{5}}}\int_0^{\frac{x}{2}} f(x,y) \mathrm dy \mathrm dx+\int_{\frac{4}{\sqrt{5}}}^2\int_0^{\sqrt{4-x^2}} f(x,y) \mathrm dy \mathrm dx\tag{1} $$
This is the plot of the integration region:
The function f(x) may be considered arbitrary. I was trying to rewrite the integration boundaries but I have not managed to do it correctly. I would be most grateful if you may help me.


Please see the shaded region for integration in the diagram.
As you can see, bounds are easier in polar coordinates.
$1 \leq r \leq 2$
$x \geq 2 y \implies 0 \leq \theta \leq \arctan \left(\frac{1}{2}\right)$
$\displaystyle \int_0^{\arctan \left(\frac{1}{2}\right)} \int_1^2 r \ f(x = r \cos\theta, y = r \sin\theta) \ dr \ d\theta$
But if you have to change the order of integral from $dy \ dx$ to $dx \ dy$,
Line $x = 2y$ intersects with $x^2+y^2 = 1$ at $A \left (\cfrac{2}{\sqrt5}, \cfrac{1}{\sqrt5} \right)$ and with $x^2 + y^2 = 4$ at $B \left (\cfrac{4}{\sqrt5}, \cfrac{2}{\sqrt5} \right)$.
In the order $dy \ dx$,
i) for $0 \leq y \leq \cfrac{1}{\sqrt5}$, $x$ is bound between circles $r = 1$ and $r = 2$ i.e. $\sqrt{1-y^2} \leq x \leq \sqrt{4-y^2}$.
ii) for $\cfrac{1}{\sqrt5} \leq y \leq \cfrac{2}{\sqrt5}$, $x$ is bound between line $x = 2y$ and circle $r = 2$ i.e. $2y \leq x \leq \sqrt{4-y^2}$