The centre of mass of two bodies sits at xcm = (m₁x₁ + m₂x₂)/(m₁+m₂) — always nearer the heavier one, dividing the gap in the inverse ratio of the masses. Slide the masses or re-weight them and watch the balance point shift.
Cut a piece out of a uniform body and you needn't integrate again. Treat the missing piece as a body of negative mass sitting at its own centre: rcm = (Afull rfull − Ahole rhole)/(Afull − Ahole). The balance point always slides away from the hole. Move the cut and watch.
For a continuous body the discrete sum becomes an integral, rcm = (1/M)∫ r dm. Slice the body into elements whose position and mass can both be written in one variable, then integrate. Choose a body and watch the balance point emerge.