This crosses the x-axis at

It is symmetrical about the y-axis so we can maximise the half of the rectangle that lies on the positive side of the x-axis.

The entire rectangle area A is

This is a maximum when the tangent to the graph is horizontal, hence differentiate A and set the derivative to zero to find x.