If we draw a rectangle under the graph, we can find that the width w of the rectangle is 2x and the height h is 25 - x^2.
So, the area of the rectangle is,
Differentiate the function to find maxiumum.
Putting A'=0,
x should be positive So,
Differentiate A' with respect to x to find if it is a maximum.
It confirms that area is a maximum for x.
So, the width of the rectangle with largest area is ,