you are superb , but are the the second and third methods rectangular techniques and could we do it using a fourth method spherical method. Go on man you are doing all in one ........ big sales new follower from Saudi Arabia
For a 1d object (eg: rod) you would integrate over the length, for a 2d object you need to integrate over the entire Area and for 3D over the entire volume.