A line integral is path independent when its value depends only on the two endpoints. On a connected domain, this holds for the line integral of every exact differential.
For a vector-field line integral, this condition is equivalent to the field being a conservative vector field.
New to topics? Read the docs here!