# Limits of integration to find area with polar coordinates

I am having trouble with this area problem, I need to find the area of the region bounded by the curve:

$$r=\theta^2;0\leq\theta\leq \pi/4$$.

The area of the region is given by the equation $A=\displaystyle \int_a^b \frac{1}{2}r^2 d\theta$. Now I'm stuck finding the a and b i.e the limits of integration. Looking at the graph is clear the $a=0$, What I tried to do to find b: $$\theta^2=arctan(\frac{\pi}{4})$$ $$\therefore \theta=\sqrt{arctan(\frac{\pi}{4})}\approx0.82$$ How do I figure out the limits of integration for areas in polar coordinates ?

$r$ at the boundary of the bounded region depends on $\theta$.
$\theta$ takes value from $0$ to $\frac{\pi}{4}.$
$$\int_0^\frac\pi4 \int_0^{\theta^2} r\,dr\,d\theta$$
Remark about your expression: It seems to suggest that the final answer should still contain $r$ which should not be the case.