Line Integrals
Contents
6. Line Integrals#
If we apply the total differential expression:
and now try to integrate this:
we see that this can be thought of doing the scalar product between two vectors \({\bf F}\) and \(\mathrm{d}{\bf r}\) before finally integrating:
We call integrals of this kind line integrals or otherwise called contour integrals.
Definition
We can define:
which we call a vector line integral. This is an integral through coordinate space along a contour, here denoted \(\mathcal{C}\).
For some vector field:
this simplifies to:
We notice that that this is a scalar, found from scalar product of \(\bf F\) with the differential line element \(\mathrm{d}{\bf r}\) along the path \(\mathcal{C}\).
We can also think about a scalar line integral:
where \(\mathrm{d}s\) is the infinitesimal arc length element, which is given by:
If we pick a closed path through the vector field, we call this a loop integral:
What does a line integral actually do? We can think about moving along some line which we denoted \(\mathcal{C}\), broken up into infintesimal sections \(\mathrm{d} r\), as depicted in Fig. 6.1.
6.1. Parameterising and evaluating integrals#
Whilst our expressions for line integrals are powerful, they also do not really explain how we can go about calculating integrals.
To see how we can go about this, we need to think about how to parameterise our paths (contours) through coordinate space. Once
we have a good way to think about parameterising our contours, we will aim to use a change of variable to evaluate the integrals.
6.1.1. Parameterising contours#
Lets think about different contours between the points \(A(-1,\,1)\) and \(B(1,\,1)\), as depicted in Fig. 6.2.
If we travel along contour \(C_1\) which follows \(y = x^2\) for \(-1\leq x \leq 1\), whilst we can also travel along contour \(C_2\) which takes \(y = 1\) for \(-\ leq x \leq 1\) and \(C_3\) which is a contour with theopposite direction. These sorts of contours are problematic to describe using just \(x,\,y\) variables and the orientation of the contours is also not well captured.
We can use some standard parameterisation schemes to capture all the relevant details here:
For straight lines over points \((x_0,\, y_0,\, z_0)\) to \((x_1,\, y_1,\, z_1)\), we can parameterise this contour using:
where \(0 \leq t \leq 1\).
Worked example
For the contour \(C_2\) between \(A(-1,\,1)\) and \(B(1,\,1)\), we can see that with \(0 \leq t \leq 1\):
and for the contour \(C_3\) between \(B(1,\,1)\) and \(A(-1,\,1)\), we can see that with \(0 \leq t \leq 1\):
For functions \(y = f(x)\) over range \(a \leq x \leq b\), i.e. over \((a,\, f(a)) \rightarrow b,\, f(b)\), we can parameterise using \(a \leq t \leq b\):
We note that here we can also go in the opposite orientation \((b,\, f(b)) \rightarrow (a,\, f(a))\) by switching \(x = t \rightarrow x = -t\).
Worked example
For the contour \(C_1\) between \(A(-1,\,1)\) and \(B(1,\,1)\), we can see that with \(-1 \leq t \leq 1\):
and in order to reverse the contour direction we can just switch \(x = t \rightarrow x = -t\).
For a circular path (or circular arc) between points \((a,\, b)\) and \((c,\, d)\) such that \(a^2 + b^2 = c^2 + d^2 = r^2\), we can parameterise using \( t_i \leq t \leq t_f\):
For scalar line integrals, the direction we travel along the contour does not change the result:
this is because the length element \(\mathrm{d}s = |\mathrm{d}{\bf r}|\) is taken from the magnitude of a vector, so any changes in the orientation are washed out in this.
For vector line integrals, the direction we travel along the contour does change the result:
and given that for \(Q = R = 0\), we can do a line integral in \(x\), or similarly for \(y\) \(z\):
6.1.2. Evaluating line integrals#
If we can find one variable \(t\) which will effectively parameterise the path through the (scalar or vector) field, then our expression simplify:
where the infinitesimal coordinate vector derivatives are given by:
Worked examples
1. Evaluate the scalar line integral \(\int_{\mathcal{C}} (x^2 + y^2)\,\mathrm{d}s\) over the contours:
a. A straight line linking \((1,\,0) \rightarrow (-1,\,0)\).
Here we can use the straight line parametrisation for \(0 \leq t \leq 1\):
Then we can rewrite the integrand in this parameterisation:
Finally lets evaluate the integral:
b. A semi-circular arc linking \((1,\,0) \rightarrow (-1,\,0)\) in the top half of the plane.
Here we can use polar coordinates, with \(r=1\)
with \(0 \leq \theta \leq \pi\).
Rewriting the integrand in this parameterisation:
Finally lets evaluate the integral:
We can picture this system by plotting the surface \(z = x^2 + y^2\):
We can see that the distance for contour (a) is shorter than for contour (b) and since the scalar function is \(x^2\) along both contours, the integral is the weighted sum of \(x^2\) along each of these lengths, hence it makes sense that \(I_a < I_b\).
2. Evaluate the vector line integral \(\int_{\mathcal{C}} {\bf F}\cdot \mathrm{d}{\bf r}\) for \({\bf F} = xz\,\hat{\bf x} - yz\,\hat{\bf z}\) along the line linking \((-1,\,2,\,0) \rightarrow (3,\,0,\,1)\).
Here we need a parameterise the line over \(0 \leq t \leq 1\):
Using this we can rewrite the variables in terms of \(t\):
and so we can find the dot product:
which we can then just integrate:
Further worked examples
1. Find the line integral of the vector field:
over the following contours:
a. Straight line path \((0,\,0) \rightarrow (1,\, 2)\)
The path followed can be parameterised over \(0\ leq t \leq 1\) by:
Thus \({\bf G}({\bf r}(t))\) will be:
and \({\bf r'}(t)\) is given by:
so the line integral is found by:
b. Curved path following \(y = x^2\) for \(0 \leq x \leq 1\)
So the parameterisation for \(0 \leq t \leq 1\) is:
Thus \({\bf G}({\bf r}(t))\) will be:
and \({\bf r'}(t)\) is given by:
so the line integral is found by:
c. Curved path following \(y = x^{1/2}\) over \(0 \leq x \leq 1\)
So the parameterisation for \(0 \leq t \leq 1\) is:
Thus \({\bf G}({\bf r}(t))\) will be:
and \({\bf r'}(x)\) is given by:
so the line integral is found by:
6.2. Conservative vector fields#
In the case of a conservative vector field \({\bf F} = \nabla f\), then we find that the line integral is actually path independent, something which allows us to dramatically simplify calculating it in some cases. To see this fact, go back to the total derivative:
If this is true, then when we calculate the line integral of a conservative vector field:
over some points \(f_{initial} \rightarrow f_{final}\) which correspond to the points \(a \leq t \leq b\) in the parameterised version of the line integral.
Hence this answer only depends on the starting/ending values of the path integral, not the path taken.