A quantitative MHD study of the relation among arcade shearing, flux rope formation, and eruption due to the tearing instability