Area and Cg for a rectangle by integration