I'm having some trouble developing an equation to differentiate for this problem. Any help would be appreciated.

Consider a symmetric cross inscribed in a circle with radius r. Determine the value x, where x is the length from the center of the cross to one of its ends, such that the value of x maximizes the area of the cross.

Thanks