## conservative scalar field?

Hello, here is the question: If we want to calculate a line integral of a conservative vector field F we just have to calculate the function we have to derivate to obtain F and evaluate it in the extreme points of the path, but If we want to calculate a line integral of a scalar field, do we have to apply line integral definition or we can do something like with conservative vector field?

Thank you.