Follow a step-by-step walkthrough evaluating the integral of a scalar function along a piecewise linear path by parameterising each straight segment and combining the results.