Overview

Part 15 - Line integrals

Introduction

In this part we’ll cover a new concept with integrals, the so-called line integral.

Definition 1 (Line integral)

A curve, CC, parameterized as r⃗(t)=⟨x(t),y(t)⟩\vec{r}(t) = \langle x(t), y(t) \rangle, for an interval t∈[a,b]t \in [a, b] and a continuous function, f:C→Rf: C \rarr \mathbb{R}.

Assuming x(t)x(t) and y(t)y(t) are differentiable.

∫Cf(x,y) ds=∫abf(x(t),y(t))x′(t)2+y′(t)2 dt.\int_C f(x, y) \, ds = \int_a^b f(x(t), y(t)) \sqrt{x^\prime(t)^2 + y^\prime(t)^2} \, dt.
Intuition (Geometrical sense)

Just as an integral over an interval [a,b][a, b] describes the area under a curve on that interval. A line integral describes an area under a curve, but on a given line/curve on an interval!

Example 1

Compute ∫C3x2y ds\int_C 3x^2 y \, ds

Where C=r⃗(t)=⟨cos⁡(t),sin⁡(t)⟩C = \vec{r}(t) = \langle \cos(t), \sin(t) \rangle for 0≤t≤π0 \leq t \leq \pi.

r⃗′(t)=⟨−sin⁡(t),cos⁡(t)⟩\vec{r}^\prime (t) = \langle -\sin(t), \cos(t) \rangle∫0π3cos⁡2(t)sin⁡(t)(−sin⁡(t))2+(cos⁡(t))2 dt=∫0π3cos⁡2(t)sin⁡(t)⋅1 dt\begin{align*} & \int_0^{\pi} 3 \cos^2(t) \sin(t) \sqrt{(-\sin(t))^2 + (\cos(t))^2} \, dt \newline = {} & \int_0^{\pi} 3 \cos^2(t) \sin(t) \cdot 1 \, dt \end{align*}

Let u=cos⁡(t)u = \cos(t), du=−sin⁡(t) dtdu = -\sin(t) \, dt, u(0)=cos⁡(0)=1u(0) = \cos(0) = 1, u(π)=cos⁡(π)=−1u(\pi) = \cos(\pi) = -1.

−∫1−13u2 du=∫−113u2 du=u3∣u=−1u=1=2\begin{align*} -\int_{1}^{-1} 3u^2 \, du & = \int_{-1}^{1} 3u^2 \, du \newline & = u^3 \bigg\rvert_{u = -1}^{u = 1} = \boxed{2} \end{align*}

Non-differentiable lines

There may be some cases where the parameterization isn’t differentiable.

Imagine we have a simple rectangular form. The four corners of the rectangle will not be differentiable.

What we can do is divide CC into nn subcurves.

C=C1∪C2∪…∪Cn,∫Cf(x,y) ds=∑j=1n∫Cjf(x,y) ds.\begin{align*} C & = C_1 \cup C_2 \cup \ldots \cup C_n, \newline \int_C f(x, y) \, ds & = \sum_{j = 1}^{n} \int_{C_j} f(x, y) \, ds. \end{align*}
Example 2

Evaluate ∫C2x ds\int_C 2x \, ds where C=x2C = x^2 from (0,0)(0, 0) to (1,1)(1, 1) and then a straight line from (1,1)(1, 1) to (1,2)(1, 2).

∫C2x ds=∫Cparabola2x ds+∫Cline2x ds\int_C 2x \, ds = \int_{C_{\text{parabola}}} 2x \, ds + \int_{C_{\text{line}}} 2x \, ds

Let’s start with the line:

r⃗(t)=⟨x0+ta,y0+tb⟩=⟨1+t(1−1),1+t(2−1)⟩=⟨1,1+t⟩,r⃗′(t)=⟨0,1⟩,0≤t≤1.\begin{align*} \vec{r}(t) & = \langle x_0 + ta, y_0 + tb \rangle \newline & = \langle 1 + t(1 - 1), 1 + t(2 - 1) \rangle \newline & = \langle 1, 1 + t \rangle, \newline \vec{r}^\prime(t) & = \langle 0, 1 \rangle, \quad 0 \leq t \leq 1. \end{align*}∫Cline2x ds=∫012⋅1⋅02+12 dt=∫012 dt=2\begin{align*} \int_{C_{\text{line}}} 2x \, ds & = \int_0^1 2 \cdot 1 \cdot \sqrt{0^2 + 1^2} \, dt \newline & = \int_0^1 2 \, dt = \boxed{2} \end{align*}

Now for the parabola:

r⃗(t)=⟨t,t2⟩,r⃗′(t)=⟨1,2t⟩,0≤t≤1.\begin{align*} \vec{r}(t) & = \langle t, t^2 \rangle, \newline \vec{r}^\prime(t) & = \langle 1, 2t \rangle, \quad 0 \leq t \leq 1. \end{align*}∫Cparabola2x ds=2∫01t⋅1+(2t)2 dt\int_{C_{\text{parabola}}} 2x \, ds = 2 \int_0^1 t \cdot \sqrt{1 + (2t)^2} \, dt

Let u=1+(2t)2u = 1 + (2t)^2, du=8t dtdu = 8t \, dt, u(0)=1+(2⋅0)2=1u(0) = 1 + (2 \cdot 0)^2 = 1 and u(1)=1+(2⋅1)2=5u(1) = 1 + (2\cdot 1)^2 = 5

28∫15u du=14u3232∣u=1u=5=1423u32∣u=1u=5=u326∣u=1u=5=532−16.\begin{align*} \dfrac{2}{8} \int_1^5 \sqrt{u} \, du & = \dfrac{1}{4} \dfrac{u^{\frac{3}{2}}}{\dfrac{3}{2}} \bigg\rvert_{u = 1}^{u = 5} \newline & = \dfrac{1}{4} \dfrac{2}{3} u^{\frac{3}{2}} \bigg\rvert_{u = 1}^{u = 5} \newline & = \dfrac{u^{\frac{3}{2}}}{6} \bigg\rvert_{u = 1}^{u = 5} \newline & = \dfrac{5^{\frac{3}{2}} - 1}{6}. \end{align*}

Therefore:

∫C2x ds=∫Cparabola2x ds+∫Cline2x ds=532−16+2\int_C 2x \, ds = \int_{C_{\text{parabola}}} 2x \, ds + \int_{C_{\text{line}}} 2x \, ds = \boxed{\dfrac{5^{\frac{3}{2}} - 1}{6} + 2}
Example 3

Imagine we have a wire that is described by the following parameterization.

r⃗(t)=⟨cos⁡(t),sin⁡(t)⟩,0≤t≤π.\vec{r}(t) = \langle \cos(t), \sin(t) \rangle, \quad 0 \leq t \leq \pi.

The density proportional to the line y=1y = 1.

Which means:

ρ(x,y)=k(1−y),k∈R.\rho(x, y) = k(1 - y), \quad k \in \mathbb{R}.

Find the center of mass.

x0=0due to symmetryx_0 = 0 \quad \text{due to symmetry}y0=∫Cρ(x,y)⋅y ds∫Cρ(x,y) dsy_0 = \dfrac{\int_C \rho(x, y) \cdot y \, ds}{\int_C \rho(x, y) \, ds}∫0πk(1−sin⁡(t))⋅sin⁡(t)⋅1 dt=k∫0π(1−sin⁡(t))⋅sin⁡(t) dt=k∫0πsin⁡(t)−sin⁡2(t) dt=…=k4−π2\begin{align*} & \int_0^{\pi} k(1 - \sin(t)) \cdot \sin(t) \cdot 1 \, dt \newline = {} & k \int_0^{\pi} (1 - \sin(t)) \cdot \sin(t) \, dt \newline = {} & k \int_0^{\pi} \sin(t) - \sin^2(t) \, dt \newline = {} & \ldots \newline = {} & \boxed{k \dfrac{4 - \pi}{2}} \end{align*}m=∫0πk(1−sin⁡(t)) dt=k∫0π(1−sin⁡(t)) dt=k∫0π1−sin⁡(t) dt=k[t+cos⁡(t)]∣t=0t=π=k(π−2)\begin{align*} m & = \int_0^{\pi} k(1 - \sin(t)) \, dt \newline & = k \int_0^{\pi} (1 - \sin(t)) \, dt \newline & = k \int_0^{\pi} 1 - \sin(t) \, dt \newline & = k [t + \cos(t)] \bigg\rvert_{t = 0}^{t = \pi} \newline & = \boxed{k(\pi - 2)} \end{align*}y0=k4−π2k(π−2)=4−π2(π−2)=4−π21(π−2)=4−π2π−4.\begin{align*} y_0 & = \dfrac{k \dfrac{4 - \pi}{2}}{k(\pi - 2)} \newline & = \dfrac{\dfrac{4 - \pi}{2}}{(\pi - 2)} \newline & = \dfrac{4 - \pi}{2} \dfrac{1}{(\pi - 2)} \newline & = \dfrac{4 - \pi}{2\pi - 4}. \end{align*}

Line integrals with respect to x or y

So far we have integrated with respect to the arc length. But we can integrate with respect to xx or yy.

∫Cf(x,y) dxor∫Cf(x,y) dy\int_C f(x, y) \, dx \quad \text{or} \quad \int_C f(x, y) \, dy ∫Cf(x,y) dx=∫abf(x(t),y(t))x′(t) dt,∫Cf(x,y) dy=∫abf(x(t),y(t))y′(t) dt.\begin{align*} \int_C f(x, y) \, dx & = \int_a^b f(x(t), y(t)) x^\prime(t) \, dt, \newline \int_C f(x, y) \, dy & = \int_a^b f(x(t), y(t)) y^\prime(t) \, dt. \end{align*}
Example 4

Evaluate ∫Cy2 dx+x dy\int_C y^2 \, dx + x \, dy

Where CC is the line (−5,−3)(-5, -3) to (0,2)(0, 2).

Let’s rewrite our integral:

∫Cy2 dx+x dy=∫Cy2 dx+∫Cx dy\int_C y^2 \, dx + x \, dy = \int_C y^2 \, dx + \int_C x \, dy

Let’s find the parameterization for the line:

r⃗(t)=⟨x0+ta,y0+tb⟩=⟨−5+t(0−(−5)),−3+t(2−(−3))⟩=⟨−5+5t,−3+5t⟩,0≤t≤1,r⃗′(t)=⟨5,5⟩,0≤t≤1.\begin{align*} \vec{r}(t) & = \langle x_0 + ta, y_0 + tb \rangle \newline & = \langle -5 + t(0 - (-5)), -3 + t(2 - (-3)) \rangle \newline & = \langle -5 + 5t, -3 + 5t \rangle, \quad 0 \leq t \leq 1, \newline \vec{r}^\prime(t) & = \langle 5, 5 \rangle, \quad 0 \leq t \leq 1. \end{align*}∫Cy2 dx=∫01(−3+5t)2⋅5 dt=…=353,∫Cx dy=∫01(−5+5t)⋅5 dt=…=−252.\begin{align*} \int_C y^2 \, dx & = \int_0^1 (-3 + 5t)^2 \cdot 5 \, dt = \ldots = \dfrac{35}{3}, \newline \int_C x \, dy & = \int_0^1 (-5 + 5t) \cdot 5 \, dt = \ldots = -\dfrac{25}{2}. \end{align*}∫Cy2 dx+x dy=∫Cy2 dx+∫Cx dy=353−252=−56\int_C y^2 \, dx + x \, dy = \int_C y^2 \, dx + \int_C x \, dy = \dfrac{35}{3} - \dfrac{25}{2} = \boxed{-\dfrac{5}{6}}

Line integrals with three variables

There is no difference in two or three variables:

C⊂R3,f:C→R,r⃗(t)=⟨x(t),y(t),z(t)⟩,a≤t≤b.\begin{align*} & C \subset \mathbb{R}^3, \newline & f: C \rarr \mathbb{R}, \newline & \vec{r}(t) = \langle x(t), y(t), z(t) \rangle, \quad a \leq t \leq b. \end{align*} ∫Cf(x,y,z) ds=∫abf(x(t),y(t),z(t))x′(t)2+y′(t)2+z′(t)2 dt.\int_C f(x, y, z) \, ds = \int_a^b f(x(t), y(t), z(t)) \sqrt{x^\prime(t)^2 + y^\prime(t)^2 + z^\prime(t)^2} \, dt.

Search

Essays, lecture notes, and research

Type to search the site.