First off, I simplified the equation of the ellipse to get it to
$$9x^2 + 16y^2 = 144$$
And then did further simplification to get it in terms of:
$$y= \bigg(9 - \frac{9 x^2}{16}\bigg)^{\frac{1}{2}}$$
So I then plug in $y$ to the equation of the area of a rectangle:
$$A = xy = x(9 - \frac{9x^2}{16})^{\frac{1}{2}}$$
And then I proceeded to differentiate the expression with respect to $x$ and derived:
$$\frac{dA}{dx} = (9-\frac{9x^2}{16})^{\frac12} + 9x^2\cdot(16(9-\frac{9x^2}{16})^{-1})$$
After I attempted to find the critical points of $\frac{dA}{dx}$, I multiplied both sides of the equation by:
$$16(9-\frac{9x^2}{16})^{-1}$$
And then got:
$$144 - 9x^2 + 9x^2 = 0$$
And this is where I knew all this work had been done wrong, as my relation of the area of a rectangle and the ellipse was wrong. Can anyone Show me the right way to start of the problem to solve it?