If you're seeing this message, it means we're having trouble loading external resources on our website.

Jeżeli jesteś za filtrem sieci web, prosimy, upewnij się, że domeny *.kastatic.org i *.kasandbox.org są odblokowane.

Główna zawartość

## Analiza matematyczna funkcji wielu zmiennych

### Kurs: Analiza matematyczna funkcji wielu zmiennych>Rozdział 4

Lekcja 2: Całki krzywoliniowe dla funkcji skalarnych (artykuły)

# Line integrals in a scalar field

Learn how to compute and interpret line integrals, also known as path integrals or curve integrals.

## Do czego zmierzamy

• In the same way that an ordinary integral integral, start subscript, a, end subscript, start superscript, b, end superscript, f, left parenthesis, x, right parenthesis, d, x has you walking along the x axis and adding up certain tiny quantities as you go, a line integral integral, start subscript, C, end subscript, f, left parenthesis, x, comma, y, right parenthesis, d, s has you walking on a curve the x, y-plane, adding up certain quantities depending on the multivariable function f, left parenthesis, x, comma, y, right parenthesis.
• If a curve C is parameterized by a vector value function start bold text, r, end bold text, with, vector, on top, left parenthesis, t, right parenthesis between the values t, equals, a and t, equals, b, the line integral is written as follows:
\begin{aligned} \int_C {f}\,{ds} = \int_a^b {f(\vec{\textbf{r}}(t))} \, {|\vec{\textbf{r}}'(t)| dt} \end{aligned}
• In this case, f is a scalar valued function, so we call this process "line integration in a scalar field", to distinguish from a related idea we'll cover next: line integration in a vector field.

## What is a line integral

In the last article, I introduced some compact notation for an arc length integral:
\begin{aligned} \int_C ds \end{aligned}
• The term d, s represents a tiny change in length along the curve.
• C is just a name we give to the curve. Putting it at the base of the integral, like this integral, start subscript, C, end subscript, is a way to postpone the need to place actual bounds on the integral.
Line integrals extend this idea by placing a multivariable function inside the integral,
\begin{aligned} \int_C f(x, y)ds \end{aligned}
You can think of this integral as saying
"Hey, while you're walking along the curve taking tiny steps of size d, s, rather than just adding up the sizes of those steps, multiply each step size by the value of the function f, left parenthesis, x, comma, y, right parenthesis at the point where you are standing."
The following animation relates this to the more familiar idea of finding the area under a curve. Imagine a curtain draped under the three-dimensional graph of f, left parenthesis, x, comma, y, right parenthesis along the curve C in the x, y-plane. The line integral gives the area of that curtain. (The initial image is a colored contour plot of the function f).
You imagine the area of that curtain being broken up into infinitely many infinitely thin rectangles. The infinitesimal base of each rectangle is d, s, equals, vertical bar, start bold text, r, end bold text, prime, left parenthesis, t, right parenthesis, vertical bar, the size of a tiny step along the curve. The height of each rectangle is f, left parenthesis, x, comma, y, right parenthesis, the height of the graph of f at that point.

## Vector notation for line integrals

At the end of the animation above, the line integral is written like this:
\begin{aligned} \int_C \blueE{f}\,\redE{ds} = \int_a^b \blueE{f(\vec{\textbf{r}}(t))} \, \redE{|\vec{\textbf{r}}'(t)| dt} \end{aligned}
Let's break down what each part of this means.

### The parameterization of $C$C

start bold text, r, end bold text, with, vector, on top, left parenthesis, t, right parenthesis is some vector-valued function which parameterizes the curve C. In two dimensions, it might look something like this:
\begin{aligned} \vec{\textbf{r}}(t) &= \left[ \begin{array}{c} x(t) \\\\ y(t) \end{array} \right] \end{aligned}
The bounds of the integral, a and b, are values for t which determine where the curve starts and ends.
Essentially this means that as the value of t ranges between a and b, the tip of the vector start bold text, r, end bold text, with, vector, on top, left parenthesis, t, right parenthesis traces over the curve C.

### Composing $f$f with the parameterization

Evaluating start color #0c7f99, f, left parenthesis, start bold text, r, end bold text, with, vector, on top, left parenthesis, t, right parenthesis, right parenthesis, end color #0c7f99 means taking the components x, left parenthesis, t, right parenthesis and y, left parenthesis, t, right parenthesis of start bold text, r, end bold text, with, vector, on top, left parenthesis, t, right parenthesis, and plugging them in as the inputs of f, left parenthesis, x, comma, y, right parenthesis:
f, left parenthesis, start bold text, r, end bold text, with, vector, on top, left parenthesis, t, right parenthesis, right parenthesis, equals, f, left parenthesis, x, left parenthesis, t, right parenthesis, comma, y, left parenthesis, t, right parenthesis, right parenthesis
You can think of it this way: A given value of t puts us at some point on the x, y-plane, expressed as the tip of the vector start bold text, r, end bold text, with, vector, on top, left parenthesis, t, right parenthesis. Then start color #0c7f99, f, left parenthesis, start bold text, r, end bold text, with, vector, on top, left parenthesis, t, right parenthesis, right parenthesis, end color #0c7f99 gives the value of the function f at that point on the plane.

### $ds$d, s is the magnitude of the derivative (times $dt$d, t)

The term d, s, representing a tiny step along the curve, is expanded as start color #bc2612, vertical bar, start bold text, r, end bold text, with, vector, on top, prime, left parenthesis, t, right parenthesis, vertical bar, d, t, end color #bc2612, the magnitude of the derivative of start bold text, r, end bold text, with, vector, on top, left parenthesis, t, right parenthesis times d, t.
Intuitively, this is because the derivative answers the question "what happens if you nudge the input slightly by a value d, t?" The answer is that the output gets nudged along the vector start bold text, r, end bold text, with, vector, on top, prime, left parenthesis, t, right parenthesis, d, t in the x, y-plane. The magnitude of this nudge in the output space gives you the size of a step d, s along the curve, as a function of the size of the step in the parameter space d, t.
You can also see this as the compact vector-notation way of saying square root of, d, x, squared, plus, d, y, squared, end square root:
\begin{aligned} |\vec{\textbf{r}}'(t)|dt &= \left|\left[ \begin{array}{c} x'(t) \\ \\ y'(t) \end{array} \right]\right|dt \\\\ &= \sqrt{(x'(t))^2 + (y'(t))^2}dt \\\\ &= \sqrt{(x'(t))^2 dt^2 + (y'(t))^2dt^2} \\\\ &= \sqrt{(x'(t)dt)^2 + (y'(t)dt)^2} \\\\ &= \sqrt{(dx)^2 + (dy)^2} \end{aligned}
Putting all this together, we get the vector representation of a line integral:
\begin{aligned} \int_C \blueE{f}\,\redE{ds} = \int_a^b \blueE{f(\vec{\textbf{r}}(t))} \, \redE{|\vec{\textbf{r}}'(t)| dt} \end{aligned}

## Example 1: Compute a simple line integral

Let C be one quarter of a circle with radius 2 centered at the origin. The quarter in the first quadrant to be specific.
We can describe this quarter circle parametrically with the following function:
\begin{aligned} \vec{\textbf{r}}(t) &= \left[ \begin{array}{c} 2\cos(t) \\ \\ 2\sin(t) \end{array} \right] \end{aligned}
If we let t range from 0 to pi, slash, 2, this traces around C.
Now defined the multivariable function f as
f, left parenthesis, x, comma, y, right parenthesis, equals, x, plus, y
Our goal is to compute the line integral
\begin{aligned} \int_C f(x, y)ds \end{aligned}
The following video shows what the "curtain" beneath the graph of f along the curve C looks like. The translucent white plane is the graph of f, left parenthesis, x, comma, y, right parenthesis, equals, x, plus, y, and the blue surface is the curtain whose area we are computing.

### Step 1: Write $ds$d, s in terms of $dt$d, t

Given that the size of a tiny step d, s along the curve is given by the magnitude of the derivative of start bold text, r, end bold text, with, vector, on top, left parenthesis, t, right parenthesis times d, t,
d, s, equals, vertical bar, start bold text, r, end bold text, with, vector, on top, prime, left parenthesis, t, right parenthesis, vertical bar, d, t
solve for d, s in our example.
For reference, the parameterization of our curve is \begin{aligned} \vec{\textbf{r}}(t) &= \left[ \begin{array}{c} 2\cos(t) \\ 2\sin(t) \end{array} \right] \end{aligned}
d, s, equals
d, t

### Step 2: Write $f(x, y)$f, left parenthesis, x, comma, y, right parenthesis in terms of $t$t

What is f, left parenthesis, start bold text, r, end bold text, with, vector, on top, left parenthesis, t, right parenthesis, right parenthesis in this case?
f, left parenthesis, start bold text, r, end bold text, with, vector, on top, left parenthesis, t, right parenthesis, right parenthesis, equals

### Step 3: Write the integral completely in terms of $t$t and solve

From the previous two steps, our integral becomes
\begin{aligned} \int_C \blueE{f(x, y)} \redE{ds} = \int_C (\blueE{2\cos(t) + 2\sin(t)})\; \redE{2dt} \end{aligned}
Since our parameterization of C has t running from 0 to start fraction, pi, divided by, 2, end fraction, these are the bounds of the integral. Now solve the integral.
\begin{aligned} \int_0^{\pi/2}({2\cos(t) + 2\sin(t)})\; {2dt} \end{aligned} =

## Example 2: More intricate practice

In principle, line integration is not too bad once you get the hang of it. You just have to know how to expand the term d, s, and to rewrite the inputs of the function f, left parenthesis, x, comma, y, right parenthesis in terms of the parameterization. Knowing how to set this up just takes a little practice, which is what we're doing here.
That said, line integrals can be a real pain to actually compute. Most of them end up in a state where you need to plug the integral into a computer to get an answer, but even when the integral is solvable the numbers involved can quickly grow cumbersome.
The following example​ shows how even for relatively simple functions, computing a line integral to its completion can be a very involved problem. You will definitely want to have a pencil and scratch paper ready if you choose to go through this example.
Let C be the curve defined by the function
\begin{aligned} \vec{\textbf{s}}(t) = \left[ \begin{array}{c} \dfrac{1}{t} + \dfrac{1}{5} t^5 \\\\ t^2 \end{array} \right] \end{aligned}
on the interval 1, is less than or equal to, t, is less than or equal to, 2.
Let f be the function
f, left parenthesis, x, comma, y, right parenthesis, equals, x, y, squared
Compute the line integral
\begin{aligned} \int_C f(x, y)ds \end{aligned}

d, s, equals
d, t

### Step 2: Replace $f(x, y)$f, left parenthesis, x, comma, y, right parenthesis with $f(\vec{\textbf{s}}(t))$f, left parenthesis, start bold text, s, end bold text, with, vector, on top, left parenthesis, t, right parenthesis, right parenthesis

What do you get when you plug the components of start bold text, s, end bold text, with, vector, on top, left parenthesis, t, right parenthesis into f, left parenthesis, x, comma, y, right parenthesis, equals, x, y, squared?
f, left parenthesis, start bold text, s, end bold text, with, vector, on top, left parenthesis, t, right parenthesis, right parenthesis, equals

### Step 3: Solve the integral

Plug the answers from the previous two steps into the integral, then solve. Since the curve is defined for 1, is less than or equal to, t, is less than or equal to, 2, and our integral is now given with respect to t, the bounds of the integral are 1 and 2.
(Warning, this gets super ugly to compute, so feel free to put it in a calculator when the time comes.)
\begin{aligned} \int_1^2 f(\vec{\textbf{s}}(t))\,|\vec{\textbf{s}}'(t)|dt \end{aligned} =

Notice, the hard part of this problem is not the new principles of line integration, knowing how to expand d, s and all that. What makes it hard is that the complexity of the terms involved quickly blows up.
(Also, if you think this is bad, just wait until we get to surface integrals.)

## Line integrals in a scalar field

In everything written above, the function f is a scalar-valued function, meaning it outputs a number (as opposed to a vector). There is a slight variation on line integrals, where you can integrate a vector-valued function along a curve, which we will cover in the next article.
To distinguish these ideas, everything we just covered is typically called line integration in a scalar field and the alternative is referred to as line integration in a vector field. The term "scalar field" is just another way of thinking about what a multivariable function does: It associates each point in the x, y-plane with some scalar (i.e. number), so that the entire plane is like a field of numbers just waiting for someone to wander along a path through that field and integrate those values.

## Chcesz dołączyć do dyskusji?

Na razie brak głosów w dyskusji
Rozumiesz angielski? Kliknij tutaj, aby zobaczyć więcej dyskusji na angielskiej wersji strony Khan Academy.