The line integral is a way of extending the ordinary Riemann integral from its natural home on the Cartesian plane into the wide world of Euclidean space. Instead of integrating over a function, the line integral works over a contour, also known as a vector-valued function that is piecewise differentiable.
In order to reduce something complicated like a line integral into something easier to do, like a regular integral, we parameterize the contour with a single real argument, t. If we were to think of the contour as the path a little bit of something travels along in some cheap physics experiment, then it would be convenient to choose time as the parameter.
In place of the function f(x), the new integrating function becomes a scalar field, f(X). This looks like a surface, a membrane, hanging in space. In physical applications, this could be a heat gradient, or a potential energy function, or some other scalar-valued phenomena. This will serve the same purpose in the new line integral that f(x) had.
And the transition: γ: [a, b) → En
Typically, space curves are represented as a function γ from the interval [a, b) onto one of the many n-dimensional Euclidean spaces, En. This function will be our transition between the many-splendored fabric of space and the pristine flatness of the plane we've all come to know and love.
Working with work
From high school physics, we know that work is the product of force and displacement. Lets say we have a force that can easily be expressed in terms of position (like an electric or gravitational field). This force will be our scalar field, and the applied force at a position X will be given by f(X).
For displacement, we look at the path that the force field moved the object through, and attempt to parameterize it. This could be difficult, but physical phenomena in idealized conditions like these tend to follow easily calculated paths like parabolas or helices. Even if it doesn't follow an easy path, at worst we can use bezier curves to approximate it. This will give us a relationship between the position of the particle and the time it reached that position. That's our contour γ:[t0, tf). t0 is our start time, and tf is our finish time.
Now we have everything we need to employ the integral calculus method of subdividing the displacement into small pieces and adding up all the products of force and displacement:
W = ∫γ F ds
But we don't have enough yet to actually calculate the integral! There's so many problems with this: Our lower and upper bounds are with respect to time, the integral is with respect to displacement, and our force is with respect to position. It's clear we'll have to use some substitution magic to get something that can be evaluated.
First things first: we use the chain rule to perform a change in variables between displacement and time, so we can establish proper bounds.
W = ∫t0tf F ds/dt dt
But now we need to iron out our forces. We know the field (position → force) and the path (time → position), so we compose the two and obtain F(γ(t)), (time → force)!
W = ∫t0tf F(γ(t)) ds/dt dt
To make ds/dt more palatable, we resurrect the old arc length formula:
s(t) = ∫t0t √(x'12 + x'22 + ...) dt
Those little x'is are the time derivatives of the separate components of γ(t). Now, we take the derivative of both sides:
s'(t) = d/dt ∫t0t √(x'12 + x'22 + ...) dt
And unleash the fundamental theorem of calculus on the right hand side.
ds/dt = ||dγ/dt|| = √(x'12 + x'22 + ...)
Combining this with all the work we did above, we find a calculable form of the naive equation:
W = ∫t0tf F(γ(t)) ||dγ/dt|| dt
... *phew*
Vector Fields and encounters of the second kind
For all the stuff above, we used a scalar field, f(X). Well, it could be that our field was a vector field, in which case we break the line integral into component parts and do it that way:
∫γ F(X) • dX = ∫ab F(X) • X'(t) dt
Essentially, we find each vector component's ribbon and add all the areas together. If we unpacked the dot product, it would look like this:
∫γ F1(X) dX1 + &intγ F2(X) dX2 + ...
The only time the parametrization of the contour matters is when the integral is a loop integral and ends at the same point it started. In this case, there's a problem with orientation. A positively oriented curve will have its interior region on the left as its parameter increases; whereas a negatively oriented curve will have its exterior on the left.
The following identity sums up all the important features of the line integral and orientation; -γ is the path formed by following γ backwards:
∫γF•dX = -∫-γF•dX
Places to go from here: