I am given the formula ${x^2/a^2}+{y^2/b^2}=1$ and a diagram with an ellipse that is symmetrical about the $x$ and $y$ axes.
I able to get the area formula of the ellipse which is $4 \int_0^a (b/a) \sqrt{a^2-x^2}\ dx $
Then substituting $x=a\sin(\theta)$ and $dx=a\cos(\theta)\,d\theta$ to get:
$A=4\int^a_0(b/a)(a\cos\theta)(a\cos\theta)\,d\theta$
Then: $A=4\int^a_0ba(\cos^2\theta)\,d\theta= 4ab \int(1/2)(1+ \cos(2\theta) d\theta$
$(a=\pi/2)$
The total area should equal $\pi ab$
What I am confused on is how do you get the limit of $a$ and how do you go from $\frac ba$ to $(ab)$

Second, you have an $a$ before each of your $\cos \theta$'s, so that multiplies $\frac{a}{b}$ by $a^2$, giving $ab$.
First, you're using $a$ for two different things. The reason your second $a$ is $\frac{\pi}{2}$ is that when you change variables to $\theta$ the range for $\theta$ is $0$ to $\frac{\pi}{2}.$ It draws $1/4$ of the ellipse.
Third, please read the tutorial on MathJax.