Consider the collection of rectangles with a vertex at $(1,0)$ and the other lying on $ y = cx^2 $ for some $c > 0$ and $0 \leq x \leq 1$. Find the rectangle with maximal area.
So I named the height as $y$ and width as $x$ and the area formula became $ A = xy$. Then I use the given equation $y=cx^2$ to sub in y in the area formula and I got $A = x\cdot cx^2$ which became $A = cx^3$. Then I took the derivative to find the max area and I got $A' = 3cx^2$. When I tried to make it equal to $0$, only critical point is $x = 0$ and it doesn't make sense since a rectangle's width cannot be $0$.
I don't know where I am making a mistake, so please help me. Thank you in advance.