Path Independence for Line Integrals