Find the area function of the rectangle and the range of x {\displaystyle x} for which the lengths of the base and height are positive.