i am a little confused by the idea of "independence of path" in complex analysis. i understand that certain functions, when integrated over simple paths with the same endpoints a and b yield the same value. however i do not understand how to determine whether the function is independent of the path (without calculating over arbitrary simple paths).

can anyone help enlighten me? thanks in advance!