Let b be the length of OA, and h be the length of AB
Since the area of a rectangle is base multiplied by height, Area = OA * AB
Since OA is the length of the rectangle, the area of the rectangle is equal to b * AB, but as the length of OA is x units from the point (0,0), area is x * AB
To find AB, we have to find the point at which the rectangle touches the curve y = e-x, which is when the x-co-ordinate is b.
So when x = b, y = e-b, but as x = b, y = e-x, which gives us the height of the rectanlge.
So the area of the rectangle is x * e-x = xe-x units2