By drawing the graph of the parabola and the rectangle,
we can see that the length of the the base is and that of the height is .
The base is positive if and the height is positive when . (See the graph of the parabola.) Therefore, we consider on .
Since the area of a rectangle is the length of its base times that of its height, the area function can be defined as
To find the maximum of on the interval , we find the critical points first.
By the product rule for a derivative, the derivative of is
Then, solving , we get
Since is outside of the interval , we only consider . Observing that on , is increasing on . On the other hand, since on , is decreasing on . Therefore, we obtain the maximum value of the area at .
Calculating the length of the base and height at , we have
and .
Answer: The length of the base and height are .