Line integral examples
Example 1
If a force is given by
compute the work done by the force field on a particle that moves along the curve that is the counter-clockwise quarter unit circle in the first quadrant. In the below picture, the curve is plotted by the long green curved arrow. The vector field is represented by the vertical black arrows.

Solution: First, can you see what the sign of the integral should be? Notice that curve and the vector field are mostly going in the same direction. The tangent vector to the curve and the vector field always make an angle less that . So, their dot product must be positive everywhere along the curve, which means the integral must be positive.
The first step to computing the integral is to parametrize the curve . We’ll parametrize it by
so that the derivative is
The work is the line integral
It’s a good thing the answer is positive, so it agrees with what we read off the picture.
Example 1’
The integral does not depend on parameterization, as long as we parametrize to go in the counter-clockwise direction. To see this, calculate the integral using the parametrization
Solution: Since
the work is
To complete this integral, use the -substitution , so that . Since goes from 0 to 1, must go from 0 to . Thus, the integral becomes
This is exactly the same integral we had for Example 1 (if replace with in the third line from the bottom of Example 1). So we immediately see that the work is, again, .
Example 2
The line integral does, in general depend on the path. The path for Example 1 started at (1,0) and ended at (0,1). What is the integral
if is the following different path (shown in blue) from (1,0) to (0,1)?

Solution: We can find this answer without doing any computations.
The first part of the path is moving left along the -axis. In that case, the path is orthogonal to the vector field, which points up. Therefore, the dot product between the vector field and the tangent vector is always zero. The force does no work on the particle during this first segment.
The second part of the path is moving straight up along the -axis. Along the -axis, , so that . The vector field is zero, and the integral of zero is zero. We can conclude that