This is similar to the Two Rectangles Centroid illustration. There are two rectangles defined by the points A,B and C,D. If the rectangles overlap the overlap rectangle is subtracted from the A,B rectangle. [br][br]In the following description I will use moment of inertia for area moment of inertia or second moment of area. The moment of inertia is useful in rotational dynamics and for calculating bending and twisting.[br][br]Similar to the centroid a table/spreadsheet is a good way to calculate the moment of inertia of a shape made up of simple shapes. The moments of inertia about the centroid of simple shapes is readily available. The moment of inertia is about an axis, the dot dash line represents the axes which are parallel to the x and y axes. Moving point AA will move the axes.[br][br]The mass moment of inertia of a thin flat uniform plate about an axis parallel to the [math]x[/math] axis is related to angular acceleration of the plate about that axis. The moment of inertia is indicated with a capital [math]I[/math] with a subscript indicating the axis. Mathematically, the moments about axes parallel to the [math]x[/math] and [math]y[/math] axes are:[br] [br][math]I_x=I_{xx}=\int\left(AA_y-y\right)^2dA[/math] where [math]AA_y[/math] is the [math]y[/math] location of the axis parallel to the [math]x[/math] axis and [math]y[/math] is the [math]y[/math] value of each [math]dA[/math] element.[br][br]and[br][math]I_y=I_{yy}=\int\left(AA_x-x\right)^2dA[/math] where [math]AA_x[/math] is the [math]x[/math] location of the axis parallel to the [math]y[/math] axis and [math]x[/math] is the [math]x[/math] value of each [math]dA[/math] element.[br][br]Two other moments are the product of inertia, [math]I_{xy}=\int\left(AA_x-x\right)\left(AA_y-y\right)dA[/math] and the moment about an axis parallel to the [math]z[/math] axis through the [math]AA[/math] point, the polar moment of inertia, [math]J_{AA}[/math]. The product of inertia can be used to calculate moments about axes that are rotated. Because of the Pythagorean Theorem the polar moment of inertia is simply [math]I_x+I_y[/math]
When talking about moment of inertia the axis of rotation should be specified. Below is an illustration of different axes of revolution. You can choose an axes parallel to any of the principle [math]x,y,z[/math] axes. The axis goes through the point [math]AA[/math] which you can move. The three dimensional image then animates the thin plate rotating about the axis.[br]Note that parts of the shape further from the axis move faster than parts close to the axis. This is where the [math]x^2[/math] like terms in the integral originate.[br]Note that rotation about the [math]x[/math] axis, [math]I_x[/math] , involves [math]y^2[/math] terms, rotation about the [math]y[/math] axis, [math]I_y[/math] , involves [math]x^2[/math] terms and rotation about the [math]z[/math] axis, [math]J[/math] , involves [math]r^2=x^2+y^2[/math] terms.
In the applet below you can move the corners of the rectangles to change there shape. If the rectangles overlap, the intersection is subtracted from the A,B rectangle instead of adding Area 2. The point AA controls the axis location. Axes parallel to the x and y axes are shown as dash-dot lines. The table shows the calculation results for moments about axes parallel to the principle axes and the product of inertia. The calculations are described below.[br]The orange cross indicates the combined centroid of the two rectangles. Notice how the moments vary as the point AA moves closer to the centroid.
From tables of moments of inertia, the moment of inertia of a rectangle for an axis parallel to the [math]x[/math]-axis through it's centroid is I_{xx}=[math]I_x=\frac{1}{12}h^3b[/math] where [math]h[/math] is the rectangles height in [math]y[/math] direction and [math]b[/math] is the rectangles base width in the [math]x[/math] direction. The height and base of each rectangle are indicate by [math]h[/math] and [math]b[/math] in the applet. Similarly for an axis parallel to the [math]y[/math] axis the moment of inertia through the centroid is I_{yy}=[math]I_y=\frac{1}{12}b^3h[/math].[br][br]To find the moment of inertia about an axis not through the centroid use the Parallel Axis Theorem which adds the distance from the centroid squared times the area to the moment of inertia. It is always the distance from the centroid. In the table d_x is the [math]x[/math] distance of the axis parallel to [math]y[/math] from the centroid and d_{y} is the [math]y[/math] distance of the centroid from the axis parallel to [math]x[/math]. In formula form, d_x=[math]d_x=\left(\left(y-axis\right)_x-centroid_x\right)[/math] and d_{y}=[math]d_y=\left(\left(x-axis\right)_y-centroid_y\right)[/math] where [math]y-axis[/math] indicates the axis parallel to [math]y[/math] and [math]x-axis[/math] indicates the axis parallel to [math]x[/math] and the subscript indicates the coordinate.[br][br]Application of the Parallel Axis Theorem then gives I_{yy}=[math]I_{yy}=I_{yCantroid}+d_x^2\cdot Area[/math] and I_{xx}=[math]I_{xx}=I_{xCentroid}+d_y^2\cdot Area[/math]. The Parallel Axis for Product of Inertia is similar as [math]I_{xy}=I_{xyCentroid}+d_x\cdot d_y\cdot Area[/math] but since a rectangle is symmetric about the axes through the centroid, [math]I_{xyCentroid}=0[/math]. This gives the Product of Inertia for a rectangle as I_{xy}=[math]I_{xy}=d_x\cdot d_y\cdot Area[/math].[br][br]The polar moment of inertia, [math]J_{AA}[/math], through the point AA is the sum of the parallel moments of inertia, [math]J_{AA}=I_{x,AA}+I_{y,AA}[/math].[br][br]For composite shapes the moment of inertia through the same axis can be added. An area subtracted to make the composite shape would have a negative moment of inertia about it's centroidal axes. The calculation is the same with an inverted sign. It is an important point the the moments need to be through the same axis before they can be added.