Step by step
The question
Question: find the work done by F = ⟨x, 1⟩ along the segment from (0, 0) to (2, 2).
1 Write the path in t
A segment: start, plus t times the step from start to end.
t goes from 0 to 1.
So x = 2t
and y = 2t, with t from 0 to 1.
Then dx is the derivative of x, times dt,
and dy the same for y.
Here is the path on the grid.
It goes from (0, 0) to (2, 2).
The blue arrows show F at a few points on the path.
2 Put the path in
Put x and y in t into F: P = 2t and Q = 1.
The line integral is P dx plus Q dy, added along the path.
So P dx + Q dy is 2t times 2, plus 1 times 2, all times dt.
Multiply out and add the like terms: 4t + 2.
Careful!
Many people put t into F but forget dx and dy.
They carry the derivatives 2 and 2.
3 Integrate
Integrate each term: the power goes up by 1, and we divide by the new power.
Put in the top t = 1, then take away the bottom t = 0.
The bottom part is 0.
So it is 4.
4 Check
Let's check another way.
Here ∂P/∂y equals ∂Q/∂x, so F has a potential: f = x² over 2 + y.
Then the answer is f at the end minus f at the start: 4.
The same.
Right!
Let's look back.
First: write the path in t.
Then: put the path in.
Then: integrate.
Last: check.