I have been trying to do the moment of inertia of a rectangle and I have it figured out when we have the center of the rectangle as the center of the rotation. The equation is ∫∫ρ(x^2+y^2)dy dx where the first integral is from -b/2 to b/2 (if b is the height) and the second integral is -a/2 to a/2 (if a is the width). I can't seem to figure out how to change the parameters of the integrals for if the rotation of the rectangle is at any other point, say a corner. Or what if it was on the bottom but still in the center of width, but the bottom of height. How do I adjust the integrals for these parameters?