<s>[INST] Area of ellipse using double integral I am trying to find the area of a quadrant of an ellipse by double integrating polar coordinates but the answer I'm getting is incorrect. 
ellipse : $ x^2/a^2 + y^2/b^2 =1 $
Any point on ellipse : $ ( a\cos(\theta), b\sin(\theta)) $
At $ \theta$, taking $ d\theta $ segment, Thus $ r^2 = a^2\cos^2(\theta) + b^2\sin^2(\theta) $ [Using pythagoras theorem] 
$$ Area = \int_{0}^{\pi/2} \int_{0}^{\sqrt{a^2\cos^2(\theta) + b^2\sin^2(\theta)}} rdrd\theta $$
$$ = 1/2 \int_{0}^{\pi/2}  r^2  \Big|_{0}^{\sqrt{a^2\cos^2(\theta)+b^2\sin^2(\theta)}}  d\theta $$
$$ = 1/2 \int_{0}^{\pi/2} (a^2\cos^2(\theta)+b^2\sin^2(\theta))  d\theta $$
$$ = 1/2 \int_{0}^{\pi/2} ((a^2 - b^2)\cos^2(\theta)+b^2)  d\theta $$
$$ = 1/4 \int_{0}^{\pi/2} (a^2 - b^2)(1+ \cos(2\theta))  d\theta  +2b^2  d\theta $$
I am getting $$ \pi/8 (a^2 + b^2).$$ But the correct answer is $ \pi ab/4 $
 [/INST] You can also use green's theorem.
Set x=acos($\theta$), y=bsin($\theta$). Now we can set up the intergal.
$A=\frac{1}{2}\int_{c} xdy-ydx. \\
dy=bcos(\theta), dx=-asin(\theta) \\
A=\frac{1}{2}\int_{0}^{\frac{\pi}{2}}abcos^2(\theta)+absin^2(\theta)\text{ }d\theta=\frac{1}{2}\int_{0}^{\frac{\pi}{2}}ab \text{ }d\theta=\frac{\pi ab}{4}. \\
$
</s>