Let $R$ be the triangle defined by $−x\tan(\theta) \le y \le x\tan(\theta)$ and $x \le 1$ where theta is an acute angle. Sketch the triangle and calculate
\begin{equation*} \iint_R(x^2+y^2)\mathrm dA \end{equation*}
using polar coordinates.
I got $r=\frac{1}{\cos(\theta)}=\sec(\theta)$ but I am stuck on how to get the angle to solve this question... :/
Thanks
The triangle's angles are located at $(0,0)$, $(1,\tan\theta)$ and $(-1,\tan\theta)$. Using polar coordinates we have to integrate for a given angle $\theta'$ from the radius $0$ to $r=\sqrt{1^2+\tan^2\theta}=\sec\theta$. This gives $$I=\iint_R(x^2+y^2)\mathrm dA=\int_{-\theta}^{\theta}\mathrm d\theta'\int_0^{\sec\theta'}r^2\,r\mathrm dr=\frac14\int_{-\theta}^\theta\sec^4\theta'\,\mathrm d\theta'.$$ The result of this integral is, setting $t=\tan\theta'$ $$I=\frac14\;2\times\int_0^{\tan\theta}(1+t^2)\mathrm dt=\frac12\left(\tan\theta+\frac13\tan^3\theta\right).$$
Note added in edit (cartesian coordinates) $$\begin{split} I&=\int_0^1\mathrm dx\int_{-x\tan\theta}^{x\tan\theta}(x^2+y^2)\mathrm dy\\ &=\int_0^1\mathrm dx\left[x^2y+\frac13y^3\right]_{y=-x\tan\theta}^{y=x\tan\theta}\\ &=2\int_0^1\mathrm dx\left(x^3\tan\theta+\frac13x^3\tan^3\theta\right)\\ &=2\left(\tan\theta+\frac13\tan^3\theta\right)\int_0^1x^3\mathrm dx\\ &=2\left(\tan\theta+\frac13\tan^3\theta\right)\left[\frac{x^4}4\right]_{0}^1\\&=\frac12\left(\tan\theta+\frac13\tan^3\theta\right).\end{split}$$