shortcut method of solving definite integral