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:CRf: 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 0tπ0 \leq t \leq \pi.

r(t)=sin(t),cos(t)\vec{r}^\prime (t) = \langle -sin(t), cos(t) \rangle0π3cos2(t)sin(t)(sin(t))2+(cos(t))2 dt\int_0^{\pi} 3 cos^2(t) sin(t) \sqrt{(-sin(t))^2 + (cos(t))^2}\ dt0π3cos2(t)sin(t)1 dt\int_0^{\pi} 3 cos^2(t) sin(t) \cdot 1\ dt

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.

113u du-\int_{1}^{-1} 3u\ du113u du\int_{-1}^{1} 3u\ duu3u=1u=1=2u^3 \bigg\rvert_{u = -1}^{u = 1} = \boxed{2}

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 rectnagle will not be differentiable.

What we can do is divide CC into nn subcurves.

C=C1C2CnC = C_1 \cup C_2 \cup \ldots \cup C_n Cf(x,y)ds=j=1nCjf(x,y)ds\int_C f(x, y) ds = \sum_{j = 1}^{n} \int_{C_j} f(x, y) ds
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_{parabola}} 2x\ ds + \int_{C_{line}} 2x\ ds

Let’s start with the line:

r(t)=x0+ta,y0+tbr(t)=1+t(11),1+t(21)r(t)=1,1+t\vec{r}(t) = \langle x_0 + ta, y_0 + tb \rangle \newline \vec{r}(t) = \langle 1 + t(1 - 1), 1 + t(2 - 1) \rangle \newline \vec{r}(t) = \langle 1, 1 + t \rangle \newliner(t)=0,1  0t1\vec{r}^\prime(t) = \langle 0, 1 \rangle \ | \ 0 \leq t \leq 1Cline2x ds=012102+12 dt012 dt=2\int_{C_{line}} 2x\ ds = \int_0^1 2 \cdot 1 \cdot \sqrt{0^2 + 1^2}\ dt \newline \int_0^1 2\ dt = \boxed{2}

Now for the parabola:

r(t)=t,t2\vec{r}(t) = \langle t, t^2 \rangler(t)=1,2t  0t1\vec{r}^\prime(t) = \langle 1, 2t \rangle \ | \ 0 \leq t \leq 1Cparabola2x ds=201t1+(2t)2 dt\int_{C_{parabola}} 2x\ ds = 2 \int_0^1 t \cdot \sqrt{1 + (2t)^2}\ dt \newline

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

2815u du\dfrac{2}{8} \int_1^5 \sqrt{u}\ du \newline14u3232u=1u=5\dfrac{1}{4} \dfrac{u^{\frac{3}{2}}}{\dfrac{3}{2}} \bigg\rvert_{u = 1}^{u = 5} \newline1423u32u=1u=5\dfrac{1}{4} \dfrac{2}{3} u^{\frac{3}{2}} \bigg\rvert_{u = 1}^{u = 5} \newlineu326u=1u=5\dfrac{u^{\frac{3}{2}}}{6} \bigg\rvert_{u = 1}^{u = 5} \newline53216\dfrac{5^{\frac{3}{2}} - 1}{6}

Therefore:

C2x ds=Cparabola2x ds+Cline2x ds=53216+2\int_C 2x\ ds = \int_{C_{parabola}} 2x\ ds + \int_{C_{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π\vec{r}(t) = \langle cos(t), sin(t) \rangle \ | \ 0 \leq \pi

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

Which means:

ρ(x,y)=k(1y)  kR\rho(x, y) = k(1 - y) \ | \ k \in \mathbb{R}

Find the center of mass.

x0=0 due to symmetryx_0 = 0 - \text{ due to symmetry}y0=Cρ(x,y)y dsCρ(x,y) dsy_0 = \dfrac{\int_C \rho(x, y) \cdot y\ ds}{\int_C \rho(x, y)\ ds}0πk(1sin(t))sin(t)1 dtk0π(1sin(t)sin(t) dtk0πsin(t)sin2(t) dtk4π2\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}}m=0πk(1sin(t)) dtk0π(1sin(t)) dtk0π1sin(t) dtk[t+cos(t)]t=0t=π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 & k [t + cos(t)] \bigg\rvert_{t = 0}^{t = \pi} \newline & \boxed{k(\pi - 2)} \end{align*}y0=k4π2k(π2)y_0 = \dfrac{k \dfrac{4 - \pi}{2}}{k(\pi - 2)} \newliney0=4π2(π2)y_0 = \dfrac{\dfrac{4 - \pi}{2}}{(\pi - 2)} \newliney0=4π21(π2)y_0 = \dfrac{4 - \pi}{2} \dfrac{1}{(\pi - 2)} \newliney0=4π2π4y_0 = \dfrac{4 - \pi}{2\pi - 4}

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 x or y.

Cf(x,y) dx or Cf(x,y) dy\int_C f(x, y)\ dx \text{ or } \int_C f(x, y)\ dy Cf(x,y) dx=abf(x(t),y(t))x(t) dt\int_C f(x, y)\ dx = \int_a^b f(x(t), y(t)) x^\prime(t)\ dt Cf(x,y) dy=abf(x(t),y(t))y(t) dt\int_C f(x, y)\ dy = \int_a^b f(x(t), y(t)) y^\prime(t)\ dt
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+tbr(t)=5+t(0(5)),3+t(2(3))r(t)=5+5t,3+5t  0t1\vec{r}(t) = \langle x_0 + ta, y_0 + tb \rangle \newline \vec{r}(t) = \langle -5 + t(0 - (-5)), -3 + t(2 - (-3)) \rangle \newline \vec{r}(t) = \langle -5 + 5t, -3 + 5t \rangle \ | \ 0 \leq t \leq 1r(t)=5,5  0t1\vec{r}^\prime(t) = \langle 5, 5 \rangle \ | \ 0 \leq t \leq 1Cy2 dx=01(3+5t)25 dt==353\int_C y^2\ dx = \int_0^1 (-3 + 5t)^2 \cdot 5\ dt = \ldots = \dfrac{35}{3}Cx dy=01(5+5t)5 dt==252\int_C x\ dy = \int_0^1 (-5 + 5t) \cdot 5\ dt = \ldots = -\dfrac{25}{2}Cy2 dx+x dy=Cy2 dx+Cx dy=353252=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:

CR3f:CR3r(t)=x(t),y(t),z(t)  atbC \in \mathbb{R}^3 \newline f: C \rarr \mathbb{R}^3 \newline \vec{r}(t) = \langle x(t), y(t), z(t) \rangle \ | \ a \leq t \leq b 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