Cut off the semi-circular ends and join them along the cut. Now you have a square of side 2r and a circle of radius r.

Hence the area of the firgue is equal to the sum of the areas of a square of side 2r and a circle of radius r. Write this out, take out the common factor and you are done.

.