4.3: Line Integrals
- Page ID
- 22941
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)We will motivate the mathematical concept of a line integral through an initial discussion of the physical concept of work.
Work
If a force of constant magnitude \(F\) is acting in the direction of motion of an object along a line, and the object moves a distance \(d\) along this line, then we call the quantity \(Fd\) the work done by the force on the object. More generally, if the vector \(\mathbf{F}\) represents a constant force acting on an object as it moves along a displacement vector \(\mathbf{d}\), then
\[ \mathbf{F} \cdot \frac{\mathbf{d}}{\|\mathbf{d}\|} \label{4.3.1} \]
is the magnitude of \(\mathbf{F}\) in the direction of motion (see Figure 4.3.1) and we define
\[ \left(\mathbf{F} \cdot \frac{\mathbf{d}}{\|\mathbf{d}\|}\right)\|\mathbf{d}\|=\mathbf{F} \cdot \mathbf{d} \label{4.3.2} \]
to be the work done by \(\mathbf{F}\) on the object when it is displaced by \(\mathbf{d}\).

We now generalize the formulation of work in (\(\ref{4.3.2}\)) to the situation where an object \(P\) moves along some curve \(C\) subject to a force which depends continuously on position (but does not depend on time). Specifically, we represent the force by a continuous vector field, say, \(F: \mathbb{R}^{n} \rightarrow \mathbb{R}^{n}\), and we suppose \(P\) moves along a curve \(C\) which has a smooth parametrization \(\varphi: I \rightarrow \mathbb{R}^{n}\), where \(I=[a, b]\). See Figure 4.3.2.

To approximate the work done by \(F\) as \(P\) moves from \(\varphi(a)\) to \(\varphi(b)\) along \(C\), we first divide \(I\) into \(m\) equal subintervals of length
\[ \Delta t=\frac{b-a}{m} \nonumber \]
with endpoints \(t_{0}=a<t_{1}<t_{2}<\cdots<t_{m}=b\). Now at time \(t_{k}, k=0,1, \ldots, m-1, P\) is moving in the direction of \(D \varphi\left(t_{k}\right)\) at a speed of \(\left\|D \varphi\left(t_{k}\right)\right\|\), and so will move a distance of approximately \(\left\|D \varphi\left(t_{k}\right)\right\| \Delta t\) over the time interval \(\left[t_{k}, t_{k+1}\right]\). Thus we may approximate the work done by \(F\) as \(P\) moves from \(\varphi\left(t_{k}\right)\) to \(\varphi\left(t_{k+1}\right)\) by the work done by the force \(F\left(\varphi\left(t_{k}\right)\right)\) in moving \(P\) along the displacement vector \(D \varphi\left(t_{k}\right) \Delta t\), which is a vector of length \(\left\|D \varphi\left(t_{k}\right)\right\| \Delta t\) in the direction of \(D \varphi\left(t_{k}\right)\). That is, if we let \(W_k\) denote the work done by \(F\) as \(P\) moves from \(\varphi\left(t_{k}\right)\) to \(\varphi\left(t_{k-1}\right)\), then
\[ W_{k} \approx F\left(\varphi\left(t_{k}\right)\right) \cdot D \varphi\left(t_{k}\right) \Delta t . \]
If we let \(W\) denote the total work done by \(F\) as \(P\) moves along \(C\), then we have
\[ W=\sum_{k=0}^{m-1} W_{k}=\sum_{k=0}^{m-1} F\left(\varphi\left(t_{k}\right)\right) \cdot D \varphi\left(t_{k}\right) \Delta t . \label{4.3.4} \]
As \(m\) increases, we should expect the approximation in (\(\ref{4.3.4}\)) to approach \(W\). Moreover, since \(F(\varphi(t)) \cdot D \varphi(t)\) is a continuous function of \(t\) and the sum in (\(\ref{4.3.4}\)) is a left-hand rule approximation for the definite integral of \(F(\varphi(t)) \cdot D \varphi(t)\) over the interval \([a,b]\), we should have
\[ W=\lim _{m \rightarrow \infty} \sum_{k=0}^{m-1} F\left(\varphi\left(t_{k}\right)\right) \cdot D \varphi\left(t_{k}\right) \Delta t=\int_{a}^{b} F(\varphi(t)) \cdot D \varphi(t) d t . \]
Example \(\PageIndex{1}\)
Suppose an object moves along the curve \(C\) parametrized by \(\varphi(t)=\left(t, t^{2}\right)\), \(-1 \leq t \leq 1\), subject to the force \(F(x, y)=(y, x)\). Then the work done by \(F\) as the object moves from \(\varphi(-1)=(-1,1)\) to \(\varphi(1)=(1,1)\) is
\[ \begin{aligned}
W &=\int_{-1}^{1} F(\varphi(t)) \cdot D \varphi(t) d t \\
&=\int_{-1}^{1} F\left(t, t^{2}\right) \cdot(1,2 t) d t \\
&=\int_{-1}^{1}\left(t^{2}, t\right) \cdot(1,2 t) d t \\
&=\int_{-1}^{1} 3 t^{2} d t \\
&=\left.t^{3}\right|_{-1} ^{1} \\
&=2 .
\end{aligned} \]
Example \(\PageIndex{2}\)
The function \(\psi(t)=\left(\frac{t}{2}, \frac{t^{2}}{4}\right),-2 \leq t \leq 2\), is also a smooth parametrization of the curve \(C\) in the previous example. Using the same force function \(F\), we have
\[ \begin{aligned}
\int_{-2}^{2} F(\psi(t)) \cdot D \psi(t) d t &=\int_{-2}^{2}\left(\frac{t^{2}}{4}, \frac{t}{2}\right) \cdot\left(\frac{1}{2}, \frac{t}{2}\right) d t \\
&=\int_{-2}^{2} \frac{3 t^{2}}{8} d t \\
&=\left.\frac{t^{3}}{8}\right|_{-2} ^{2} \\
&=2 .
\end{aligned} \]
This is the result we should expect: as long as the curve is traversed only once, the work done by a force when an object moves along the curve should depend only on the curve and not on any particular parametrization of the curve.
We need to verify the previous statement in general before we can state our definition of the line integral. Note that in these two examples, \(\psi(t)=\varphi\left(\frac{t}{2}\right)\). In other words, \(\psi(t)=\varphi(g(t))\), where \(g(t)=\frac{t}{2}\) for \(-2 \leq t \leq 2\). In general, if \(\varphi(t)\), for \(t\) in an interval \([a,b]\), and \(\psi(t)\), for \(t\) in an interval \([c,d]\), are both smooth parametrizations of a curve \(C\) such that every point on \(C\) corresponds to exactly one point in \(I\) and exactly one point in \(J\), then there exists a differentiable function \(g\) which maps \(J\) onto \(I\) such that \(\psi(t)=\varphi(g(t))\). Defining such a \(g\) is straightforward: given any \(t\) in \([c,d]\), find the unique value \(s\) in \([a,b]\) such that \(\varphi(s)=\psi(t)\) (such a value \(s\) has to exist since \(C\) is the image of both \(\psi\) and \(\varphi\)). Then \(g(t) = s\). Proving that \(g\) is differentiable is not as easy, and we will not provide a proof here. However, assuming that \(g\) is differentiable, it follows that for any continuous vector field \(F\),
\begin{align}
\int_{c}^{d} F(\psi(t)) \cdot D \psi(t) d t &=\int_{c}^{d} F(\varphi(g(t)) \cdot D(\varphi \circ g)(t)) d t \nonumber \\
&=\int_{c}^{d} F\left(\varphi(g(t)) \cdot D \varphi(g(t)) g^{\prime}(t) d t\right. \label{4.3.6}
\end{align}
Now if we let
\[ \begin{aligned}
u &=g(t) , \\
d u &=g^{\prime}(t) d t ,
\end{aligned} \]
in (\(\ref{4.3.6}\)), then
\[ \int_{c}^{d} F(\psi(t)) \cdot D \psi(t) d t=\int_{a}^{b} F(\varphi(u)) \cdot D \varphi(u) d t \label{4.3.7} \]
if \(g(c)=a\) and \(g(d) = b\) (that is, \(\varphi(a)=\psi(c)\) and \(\varphi(b)=\psi(d)\), and
\[ \int_{c}^{d} F(\psi(t)) \cdot D \psi(t) d t=\int_{b}^{a} F(\varphi(u)) \cdot D \varphi(u) d t=-\int_{b}^{a} F(\varphi(u)) \cdot D \varphi(u) d t \label{4.3.8} \]
if \(g(c)=b\) and \(g(d) = a\) (that is, \(\varphi(a)=\psi(d)\) and \(\varphi(b)=\psi(c)\). Note that the second case occurs only if \(\psi\) parametrizes \(C\) in the reverse direction of \(\varphi\), in which case we say \(\psi\) is an orientation reversing reparametrization of \(\varphi\). In the first case, that is, when \(\varphi(a)=\psi(c)\) and \(\varphi(b)=\psi(d)\), we say \(\psi\) is an orientation preserving reparametrization of \(\varphi\). Our results in (\(\ref{4.3.7}\)) and (\(\ref{4.3.8}\)) then correspond to the physical notion that the work done by a force in moving an object along a curve is the negative of the work done by the force in moving the object along the curve in the opposite direction. From now on, when referring to a curve \(C\), we will assume some orientation, or direction, has been specified. We will then use \(-C\) to refer to the curve consisting of the same set of points as \(C\), but with the reverse orientation.
Line integrals
Now that we know that, except for direction, the value of the integral involved in computing work does not depend on the particular parametrization of the curve, we may state a formal mathematical definition.
Definition \(\PageIndex{1}\)
Suppose \(C\) is a curve in \(\mathbb{R}^n\) with smooth parametrization \(\varphi: I \rightarrow \mathbb{R}^{n}\), where \(I = [a,b]\) is an interval in \(R\). If \(F: \mathbb{R}^{n} \rightarrow \mathbb{R}^{n}\) is a continuous vector field, then we define the line integral of \(F\) along \(C\), denoted
\[ \int_{C} F \cdot d s , \nonumber \]
by
\[ \int_{C} F \cdot d s=\int_{a}^{b} F(\varphi(t)) \cdot D \varphi(t) d t . \label{4.3.9} \]
As a consequence of our previous remarks, we have the following result.
Proposition \(\PageIndex{1}\)
Using the notation of the definition,
\[ \int_{C} F \cdot d s \nonumber \]
depends only on the curve C and its orientation, not on the parametrization \(\varphi\). Moreover,
\[ \int_{-C} F \cdot d s=-\int_{C} F \cdot d s . \label{4.3.10} \]
Example \(\PageIndex{3}\)
Let \(C\) be the unit circle centered at the origin in \(\mathbb{R}^2\), oriented in the counterclockwise direction, and let
\[ F(x, y)=\left(-\frac{y}{x^{2}+y^{2}}, \frac{x}{x^{2}+y^{2}}\right)=\frac{1}{x^{2}+y^{2}}(-y, x) . \nonumber \]
To compute the line integral of \(F\) along \(C\), we first need to find a smooth parametrization of \(C\). One such parametrization is
\[ \varphi(t)=(\cos (t), \sin (t)) \nonumber \]
for \(0 \leq t \leq 2 \pi\). Then
\[ \begin{aligned}
\int_{C} F \cdot d s &=\int_{0}^{2 \pi} F(\cos (t), \sin (t)) \cdot(-\sin (t), \cos (t)) d t \\
&=\int_{0}^{2 \pi} \frac{1}{\cos ^{2}(t)+\sin ^{2}(t)}(-\sin (t), \cos (t)) \cdot(-\sin (t), \cos (t)) d t \\
&=\int_{0}^{2 \pi}\left(\sin ^{2}(t)+\cos ^{2}(t)\right) d t \\
&=\int_{0}^{2 \pi} d t \\
&=2 \pi .
\end{aligned} \]
Note that \(\psi(t)=(\sin (t), \cos (t)), 0 \leq t \leq 2 \pi\), parametrizes \(-C\), from which we can calculate
\[ \begin{aligned}
\int_{-C} F \cdot d s &=\int_{0}^{2 \pi} F(\sin (t), \cos (t)) \cdot(\cos (t),-\sin (t)) d t \\
&=\int_{0}^{2 \pi} \frac{1}{\sin ^{2}(t)+\cos ^{2}(t)}(-\cos (t), \sin (t)) \cdot(\cos (t),-\sin (t)) d t \\
&=\int_{0}^{2 \pi}\left(-\cos ^{2}(t)-\sin ^{2}(t)\right) d t \\
&=-\int_{0}^{2 \pi} d t \\
&=-2 \pi ,
\end{aligned} \]
in agreement with the previous proposition.
A piecewise smooth curve is one which may be decomposed into a finite number of curves, each of which has a smooth parametrization. If \(C\) is a piecewise smooth curve composed of the union of the curves \(C_{1}, C_{2}, \ldots, C_{m}\), then we may extend the definition of the line integral to \(C\) by defining
\[ \int_{C} F \cdot d s=\int_{C_{1}} F \cdot d s+\int_{C_{2}} F \cdot d s+\cdots+\int_{C_{m}} F \cdot d s . \label{4.3.11} \]
The next example illustrates this procedure.
Example \(\PageIndex{4}\)
Let \(C\) be the rectangle in \(\mathbb{R}^2\) with vertices at (0,0), (2,0), (2,1), and (0,1), oriented in the counterclockwise direction, and let \(F(x, y)=\left(y^{2}, 2 x y\right)\). If we let \(C_1\), \(C_2\), \(C_3\), and \(C_4\) be the four sides of \(C\), as labeled in Figure 4.3.3, then we may parametrize \(C_1\) by
\[ \alpha(t)=(t, 0) , \nonumber \]
\(0 \leq t \leq 2, C_{2}\) by
\[ \beta(t)=(2, t) , \nonumber \]
\(0 \leq t \leq 1, C_{3}\) by
\[ \gamma(t)=(2-t, 1) , \nonumber \]
\(0 \leq t \leq 2\), and \(C_4\) by
\[ \delta(t)=(0,1-t) , \nonumber \]
\(0 \leq t \leq 1\).

Then
\[\begin{aligned}
\int_{C} F \cdot d s &=\int_{C_{1}} F \cdot d s+\int_{C_{2}} F \cdot d s+\int_{C_{3}} F \cdot d s+\int_{C_{4}} F \cdot d s \\
&=\int_{0}^{2} F(t, 0) \cdot(1,0) d t+\int_{0}^{1} F(2, t) \cdot(0,1) d t+\int_{0}^{2} F(2-t, 1) \cdot(-1,0) d t \\
&+\int_{0}^{1} F(0,1-t) \cdot(0,-1) d t \\
=& \int_{0}^{2}(0,0) \cdot(1,0) d t+\int_{0}^{1}\left(t^{2}, 4 t\right) \cdot(0,1) d t+\int_{0}^{2}(1,4-2 t) \cdot(-1,0) d t \\
& \quad+\int_{0}^{1}\left((1-t)^{2}, 0\right) \cdot(0,-1) d t \\
=& \int_{0}^{2} 0 d t+\int_{0}^{1} 4 t d t+\int_{0}^{2}(-1) d t+\int_{0}^{1} 0 d t \\
=&\left.2 t^{2}\right|_{0} ^{1}-2 \\
=& 2-2 \\
=& 0 .
\end{aligned} \]
Note that it would be slightly simpler to parametrize \(-C_3\) and \(-C_4\), using
\[ \varphi(t)=(1, t) , \nonumber \]
\(0 \leq t \leq 2\), and
\[ \psi(t)=(t, 0) , \nonumber \]
\(0 \leq t \leq 1\), respectively, than to parametrize \(C_3\) and \(C_4\) directly. We would then evaluate
\[ \int_{C} F \cdot d s=\int_{C_{1}} F \cdot d s+\int_{C_{2}} F \cdot d s-\int_{-C_{3}} F \cdot d s-\int_{-C_{4}} F \cdot d s . \nonumber \]
A note on notation
Suppose \(C\) is a smooth curve in \(\mathbb{R}^n\), parametrized by \(\varphi: I \rightarrow \mathbb{R}^{n}\), where \(I = [a,b]\), and let \(F: \mathbb{R}^{n} \rightarrow \mathbb{R}^{n}\) be a continuous vector field. Our notation for the line integral of \(F\) along \(C\) comes from letting \(s = \varphi (t) \), from which we have
\[ \frac{d s}{d t}=D \varphi(t) , \nonumber \]
which we may write, symbolically, as
\[ d s=D \varphi(t) d t . \nonumber \]
Now suppose \(\varphi_{1}, \varphi_{2}, \ldots, \varphi_{n}\) and \(F_{1}, F_{2}, \ldots, F_{n}\) are the component functions of \(\varphi\) and \(F\), respectively. If we let
\[ \begin{gathered}
x_{1}=\varphi_{1}(t), \\
x_{2}=\varphi_{2}(t), \\
\vdots \\
x_{n}=\varphi_{n}(t),
\end{gathered} \]
then we may write
\[ \begin{align}
\int_{C} F \cdot d s &=\int_{a}^{b} F(\varphi(t)) \cdot D \varphi(t) d t \nonumber \\
&=\int_{a}^{b} F\left(x_{1}(t), x_{2}(t), \ldots, x_{n}(t)\right) \cdot\left(\varphi_{1}^{\prime}(t), \varphi_{2}^{\prime}(t), \ldots, \varphi_{n}^{\prime}(t)\right) d t \nonumber \\
&\left.=\int_{a}^{b}\left(F_{1}\left(x_{1}(t), x_{2}(t), \ldots, x_{n}(t)\right) \varphi_{1}^{\prime}(t)+F_{2}\left(x_{1}(t), x_{2}(t), \ldots, x_{n}(t)\right) \varphi_{2}^{\prime}(t)\right)+\cdots+F_{n}\left(x_{1}(t), x_{2}(t), \ldots, x_{n}(t)\right) \varphi_{n}^{\prime}(t)\right) d t \nonumber \\
&=\int_{a}^{b} F_{1}\left(x_{1}(t), x_{2}(t), \ldots, x_{n}(t)\right) \varphi_{1}^{\prime}(t) d t+\int_{a}^{b} F_{2}\left(x_{1}(t), x_{2}(t), \ldots, x_{n}(t)\right) \varphi_{2}^{\prime}(t) d t+\cdots+\int_{a}^{b} F_{n}\left(x_{1}(t), x_{2}(t), \ldots, x_{n}(t)\right) \varphi_{n}^{\prime}(t) d t . \label{4.3.12}
\end{align} \]
Suppressing the dependence on \(t\), writing \(d x_{k}\) for \(\varphi_{k}^{\prime}(t) d t, k=1,2, \ldots, n\), and using only a single integral sign, we may rewrite (\(\ref{4.3.12}\)) as
\[ \int_{C} F_{1}\left(x_{1}, x_{2}, \ldots, x_{n}\right) d x_{1}+F_{2}\left(x_{1}, x_{2}, \ldots, x_{n}\right) d x_{2}+\cdots+F_{n}\left(x_{1}, x_{2}, \ldots, x_{n}\right) d x_{n} . \label{4.3.13} \]
This is a common, and useful, notation for a line integral.
Example \(\PageIndex{5}\)
We will evaluate
\[ \int_{C} y d x+x d y+z^{2} d z , \nonumber \]
where \(C\) is the part of a helix in \(\mathbb{R}^3\) with parametric equations
\[ \begin{aligned}
&x=\cos (t), \\
&y=\sin (t), \\
&z=t,
\end{aligned} \]
\(0 \leq t \leq 2 \pi\). Note that this is equivalent to evaluating
\[ \int_{C} F \cdot d s , \nonumber \]
where \(F: \mathbb{R}^{3} \rightarrow \mathbb{R}^{3}\) is the vector field \(F(x, y, z)=\left(y, x, z^{2}\right)\). We have
\[ \begin{aligned}
\int_{C} y d x+x d y+z^{2} d z &=\int_{0}^{2 \pi}\left(\sin (t)(-\sin (t))+\cos (t) \cos (t)+t^{2}\right) d t \\
&=\int_{0}^{2 \pi}\left(\cos ^{2}(t)-\sin ^{2}(t)+t^{2}\right) d t \\
&=\int_{0}^{2 \pi}\left(\cos (2 t)+t^{2}\right) d t \\
&=\left.\frac{1}{2} \sin (2 t)\right|_{0} ^{2 \pi}+\left.\frac{1}{3} t^{3}\right|_{0} ^{2 \pi} \\
&=\frac{8 \pi^{3}}{3} .
\end{aligned} \]
Gradient fields
Recall that if \(f: \mathbb{R}^{n} \rightarrow \mathbb{R}\) is \(C^1\), then \(\nabla f\) is a continuous vector field on \(\mathbb{R}^n\). Suppose \(\varphi: I \rightarrow \mathbb{R}^{n}, I=[a, b]\), is a smooth parametrization of a curve \(C\). Then, using the chain rule and the Fundamental Theorem of Calculus,
\[ \begin{aligned}
\int_{C} \nabla f \cdot d s &=\int_{a}^{b} \nabla f(\varphi(t)) \cdot D \varphi(t) d t \\
&=\int_{a}^{b} \frac{d}{d t} f(\varphi(t)) d t \\
&=\left.f(\varphi(t))\right|_{a} ^{b} \\
&=f(\varphi(b))-f(\varphi(a)) .
\end{aligned} \]
Theorem \(\PageIndex{1}\)
If \(f: \mathbb{R}^{n} \rightarrow \mathbb{R}\) is \(C^1\) and \(\varphi: I \rightarrow \mathbb{R}^{n}, I=[a, b]\), is a smooth parametrization of a curve \(C\), then
\[ \int_{C} \nabla f \cdot d s=f(\varphi(b))-f(\varphi(a)) . \label{4.3.14} \]
Note that (\(\ref{4.3.14}\)) shows that the value of a line integral of a gradient vector field depends only on the starting and ending points of the curve, not on which particular path is taken between these two points. Moreover, (\(\ref{4.3.14}\)) provides a simple means for evaluating a line integral if the given vector field can be identified as the gradient of a scalar valued function. Another interesting consequence is that if the beginning and ending points of \(C\) are the same, that is, if \(\mathbf{v}=\varphi(a)=\varphi(b)\), then
\[ \int_{C} \nabla f \cdot d s=f(\varphi(b))-f(\varphi(b))=f(\mathbf{v})-f(\mathbf{v})=0 . \]
We call such curves closed curves. In words, the line integral of a gradient vector field is 0 along any closed curve.
Example \(\PageIndex{6}\)
If \(F(x, y)=(y, x)\), then
\[ F(x, y)=\nabla f(x, y) , \nonumber \]
where \(f(x, y)=x y\). Hence, for example, for any smooth curve \(C\) starting at (−1,1) and ending at (1,1) we have
\[ \int_{C} F \cdot d s=f(1,1)-f(-1,1)=1+1=2 . \nonumber \]
Note that this agrees with the result in our first example above, where \(C\) was the part of the parabola \(y=x^2\) extending from (−1,1) to (1,1).
Example \(\PageIndex{7}\)
If \(f(x, y)=x y^{2}\), then
\[ \nabla f(x, y)=\left(y^{2}, 2 x y\right) . \nonumber \]
If \(C\) is the rectangle in \(\mathbb{R}^2\) with vertices at (0,0), (2,0), (2,1), and (0,1), then, since \(C\) is a closed curve,
\[ \int_{C} y^{2} d x+2 x y d y=0 , \nonumber \]
in agreement with an earlier example. Similarly, if \(E\) is the unit circle in \(\mathbb{R}^2\) centered at the origin, then we know that
\[ \int_{E} y^{2} d x+2 x y d y=0 , \nonumber \]
with no need for further computations.
In physics, a force field \(F\) is said to be conservative if the work done by \(F\) in moving an object between any two points depends only on the points, and not on the path used between the two points. In particular, we have shown that if \(F\) is the gradient of some scalar function \(f\), then \(F\) is a conservative force field. Under certain conditions on the domain of \(F\), the converse is true as well. That is, under certain conditions, if \(F\) is a conservative force field, then there exists a scalar function \(f\) such that \(F = \nabla f\). Exercise 9 explores one such situation in which this is true. The function \(f\) is then known as a potential function.