The purpose and definition of integration