Definition (line integral of a scalar field)

For a scalar field $\phi: \R^n\to\R$, the line integral of $\phi(\v x)$ along a curve $C: \v x(t)$ from $\v x(t_a) = \v a$ to $\v x(t_b) = \v b$ where $t_a < t_b$ is $$ \int_C\phi\,ds = \int_{t_a}^{t_b} \phi\big(\v x(t)\big)\,|\dv x|\,dt. $$

In particular for parametrisation using arc length, $$\int_C\phi\, ds = \int_{s_a}^{s_b} \phi\big(\v x(s)\big)\,ds. $$