$${I = \int (x^2 + y^2)\, dm - 2a \int x\, dm - 2b \int y\, dm + \int (a^2 + b^2)\, dm}$$