How line integral generalizes definite integral?