I am stuck on a math problem. The problem is
On the ellipse $x^2 + 4y^2 =4$ a point is selected $(a,b)$ in the first quadrant. Draw the ellipse in the $xy$-plane. Also draw a triangle with corners in $(2,0)$, $(0,1)$, and $(a,b)$. The triangle's area is $\frac12a + b-1$.
How should the point $(a,b)$ be selected to reach maximum area of the triangle? Also, motivate why the triangle's area is $\frac12a + b-1$.
I have both drawn the ellipse and the triangle. And now I don't know the next step.
I am not either sure that the drawing is right. It would be much appreciated if I could get any tips to help me solve this problem.


From the base of the triangle, we have to find the point which, if we let a line parallel to the base pass through that point, that line is the farthest away from the base. Obviously, the farthest line is tangent to the ellipse and parallel to the base. The equation of the base is $y=-\frac{1}{2}x+1$, so any parallel line will have the form $y=-\frac{1}{2}x+q$. If we transform the ellipse function into a function and consider the positive side only, we get $y=\sqrt{1-\frac{x^2}{4}}$. Let the two be equal and we get a 2nd degree polynomial in $x$ (and $q$). Solving for $x$, the root's argument in the solution, in order to let the line be a tangent, must be equal to $0$ (the solution for $x$ must be unique). Under the root there is $2-q^2$ and so $q=\sqrt{2}$ since, by looking at the graph, we are only interested in the positive values of $q$. The line we are interested in is then $y=-\frac{1}{2}x+\sqrt2$, and the point is $(\sqrt2,\frac{\sqrt2}{2})$. The distance between two lines of the form $y=mx+q_{1/2}$ is $$d=\frac{\left|q_1-q_2\right|}{\sqrt{m^2+1}}$$. Plugging in the numbers we get $d=\frac{-2+2\sqrt2}{\sqrt5}$ which is the height of the triangle, and the base is $\sqrt5$. Use the triangle area formula and get $-1+\sqrt2$, which is coherent with the formula. The same reasoning can be applied for any $(a,b)$, changing $q$ accordingly to the new coordinates.