I'm not sure if this is the right name for it but with the theorem:
Let $f:\sigma \rightarrow \mathbb{R} $ be a smooth scalar field and assume $r: [a,b] \rightarrow \mathbb {R}^n$ is a piecewise parametrisation of a path $C$ whose image is included in $\sigma $. Then $$\int \limits_C (\nabla f) \cdot dr =f(r(b))-f(r(a))$$
Can someone give some examples of when this theorem can and cannot be used please.
Or is it the case of when you can or cannot easily find a scalar field s.t. the gradient of the scalar field is the vector field.