Problem: Let $a, b$ be positive real constants. Calculate the area of the set $$\mathcal{E} = \left\{ (x,y) \in \mathbb{R}^2 : \frac{x^2}{a^2} + \frac{y^2}{b^2} \leq 1 \right\}$$
I am able to approach the problem with logical thinking like that:
For $a=b=1$ the set describes an unit circle. We can write the condition as $$ \left(\frac{x}{a}\right)^2 + \left(\frac{y}{b}\right)^2 $$ which makes clear that the constants $a,b$ stretch the circle in $x,y$ direction. Thus we have an ellipse with the axis $a$ and $b$. The equation for the area of an ellipse is know to be $A = \pi a b$.
However, I guess that I am supposed to apprach the problem with some more general method (e.g. integrals, etc.). So how would I solve this problem in a more formal way? E.g. for sets with conditions like that in general?
The area that you want to compute is$$2b\int_{-a}^a\sqrt{1-\frac{x^2}{a^2}}\,\mathrm dx.$$Doing the substitution $x=at$ and $\mathrm dx=a\,\mathrm dt$, you get the integral$$2ab\int_{-1}^1\sqrt{1-t^2}\,\mathrm dt.$$But a primitive of $\sqrt{1-t^2}$ is $\frac12\left(t\sqrt{1-t^2}+\arcsin t\right)$. So,$$\int_{-1}^1\sqrt{1-t^2}\,\mathrm dt=\frac12\left(\arcsin(1)-\arcsin(-1)\right)=\frac\pi2$$and therefore your area is $\pi ab$, as you guessed.