The line integral of the scalar along a path described parametrically by , , is given by
where is arc length, so = , with being the vector form of the parametric representation of the path.
A parametric representation of the given line segment is
=
so that
=
and the line integral is given by