The moment of inertia $I$ for a rectangular cross section is given by the formula $I = \frac{1}{12}bh^3 - \frac{1}{12}b_1h_1^3$, where $b$ and $h$ are the base and height of the whole rectangle, and $b_1$ and $h_1$ are the base and height of the cut-out rectangle.
Show more…