< Return to Video

Line Integrals and Vector Fields

  • 0:00 - 0:00
  • 0:00 - 0:03
    One of the most fundamental
    ideas in all of physics
  • 0:03 - 0:05
    is the idea of work.
  • 0:05 - 0:08
    Now when you first learn work,
    you just say, oh, that's
  • 0:08 - 0:10
    just force times distance.
  • 0:10 - 0:12
    But then later on, when you
    learn a little bit about
  • 0:12 - 0:15
    vectors, you realize that the
    force isn't always going in
  • 0:15 - 0:18
    the same direction as
    your displacement.
  • 0:18 - 0:21
    So you learn that work is
    really the magnitude, let me
  • 0:21 - 0:33
    write this down, the magnitude
    of the force, in the direction,
  • 0:33 - 0:39
    or the component of the force
    in the direction
  • 0:39 - 0:42
    of displacement.
  • 0:42 - 0:44
    Displacement is just distance
    with some direction.
  • 0:44 - 0:50
  • 0:50 - 0:55
    Times the magnitude of the
    displacement, or you could say,
  • 0:55 - 0:57
    times the distance displaced.
  • 0:57 - 1:01
  • 1:01 - 1:02
    And the classic example.
  • 1:02 - 1:06
    Maybe you have an ice cube,
    or some type of block.
  • 1:06 - 1:09
    I just ice so that there's
    not a lot of friction.
  • 1:09 - 1:13
    Maybe it's standing on a bigger
    lake or ice or something.
  • 1:13 - 1:15
    And maybe you're pulling on
    that ice cube at an angle.
  • 1:15 - 1:18
    Let's say, you're pulling
    at an angle like that.
  • 1:18 - 1:21
    That is my force, right there.
  • 1:21 - 1:24
    Let's say my force is
    equal to-- well, that's
  • 1:24 - 1:25
    my force vector.
  • 1:25 - 1:34
    Let's say the magnitude of
    my force vector, let's
  • 1:34 - 1:35
    say it's 10 newtons.
  • 1:35 - 1:38
    And let's say the direction of
    my force vector, right, any
  • 1:38 - 1:41
    vector has to have a magnitude
    and a direction, and the
  • 1:41 - 1:45
    direction, let's say it has a
    30 degree angle, let's say a 60
  • 1:45 - 1:48
    degree angle, above horizontal.
  • 1:48 - 1:50
    So that's the direction
    I'm pulling in.
  • 1:50 - 1:53
    And let's say I displace it.
  • 1:53 - 1:56
    This is all review, hopefully.
  • 1:56 - 1:59
    If you're displacing it, let's
    say you displace it 5 newtons.
  • 1:59 - 2:03
    So let's say the displacement,
    that's the displacement vector
  • 2:03 - 2:10
    right there, and the magnitude
    of it is equal to 5 meters.
  • 2:10 - 2:13
    So you've learned from the
    definition of work, you can't
  • 2:13 - 2:17
    just say, oh, I'm pulling with
    10 newtons of force and
  • 2:17 - 2:18
    I'm moving it 5 meters.
  • 2:18 - 2:23
    You can't just multiply the 10
    newtons times the 5 meters.
  • 2:23 - 2:26
    You have to find the magnitude
    of the component going in the
  • 2:26 - 2:29
    same direction as
    my displacement.
  • 2:29 - 2:32
    So what I essentially need to
    do is, the length, if you
  • 2:32 - 2:35
    imagine the length of this
    vector being 10, that's the
  • 2:35 - 2:38
    total force, but you need to
    figure out the length of the
  • 2:38 - 2:41
    vector, that's the component of
    the force, going in the same
  • 2:41 - 2:43
    direction as my displacement.
  • 2:43 - 2:46
    And a little simple
    trigonometry, you know that
  • 2:46 - 2:53
    this is 10 times the cosine of
    60 degrees, or that's equal to,
  • 2:53 - 2:58
    cosine of 60 degrees is 1/2, so
    that's just equal to 5.
  • 2:58 - 3:00
    So this magnitude, the
    magnitude of the force going
  • 3:00 - 3:02
    in the same direction of
    the displacement in this
  • 3:02 - 3:05
    case, is 5 newtons.
  • 3:05 - 3:08
  • 3:08 - 3:10
    And then you can
    figure out the work.
  • 3:10 - 3:20
    You could say that the work is
    equal to 5 newtons times, I'll
  • 3:20 - 3:21
    just write a dot for times.
  • 3:21 - 3:22
    I don't want you to think
    it's cross product.
  • 3:22 - 3:27
    Times 5 meters, which is 25
    newton meters, or you could
  • 3:27 - 3:31
    even say 25 Joules of
    work have been done.
  • 3:31 - 3:35
    And this is all review of
    somewhat basic physics.
  • 3:35 - 3:37
    But just think about
    what happened, here.
  • 3:37 - 3:37
    What was the work?
  • 3:37 - 3:39
    If I write in the abstract.
  • 3:39 - 3:43
    The work is equal
    to the 5 newtons.
  • 3:43 - 3:47
    That was the magnitude of my
    force vector, so it's the
  • 3:47 - 3:53
    magnitude of my force vector,
    times the cosine of this angle.
  • 3:53 - 3:54
    So you know, let's
    call that theta.
  • 3:54 - 3:55
    Let's say it a
    little generally.
  • 3:55 - 3:58
    So times the cosine
    of the angle.
  • 3:58 - 4:02
    This is the amount of my force
    in the direction of the
  • 4:02 - 4:05
    displacement, the cosine of the
    angle between them, times the
  • 4:05 - 4:07
    magnitude of the displacement.
  • 4:07 - 4:12
    So times the magnitude
    of the displacement.
  • 4:12 - 4:16
    Or if I wanted to rewrite that,
    I could just write that as, the
  • 4:16 - 4:19
    magnitude of the displacement
    times the magnitude of
  • 4:19 - 4:23
    the force times the
    cosine of theta.
  • 4:23 - 4:27
    And I've done multiple videos
    of this, in the linear algebra
  • 4:27 - 4:29
    playlist, in the physics
    playlist, where I talk about
  • 4:29 - 4:32
    the dot product and the cross
    product and all of that, but
  • 4:32 - 4:40
    this is the dot product
    of the vectors d and f.
  • 4:40 - 4:44
    So in general, if you're trying
    to find the work for a constant
  • 4:44 - 4:47
    displacement, and you have a
    constant force, you just take
  • 4:47 - 4:49
    the dot product of
    those two vectors.
  • 4:49 - 4:51
    And if the dot product is a
    completely foreign concept to
  • 4:51 - 4:54
    you, might want to watch, I
    think I've made multiple, 4
  • 4:54 - 4:56
    or 5 videos on the dot
    product, and its intuition,
  • 4:56 - 4:57
    and how it compares.
  • 4:57 - 4:59
    But just to give you a little
    bit of that intuition right
  • 4:59 - 5:04
    here, the dot product, when
    I take f dot d, or d dot f,
  • 5:04 - 5:08
    what it's giving me is, I'm
    multiplying the magnitude, well
  • 5:08 - 5:10
    I could just read this out.
  • 5:10 - 5:14
    But the idea of the dot product
    is, take how much of this
  • 5:14 - 5:17
    vector is going in the same
    direction as this vector,
  • 5:17 - 5:18
    in this case, this much.
  • 5:18 - 5:21
    And then multiply
    the two magnitudes.
  • 5:21 - 5:22
    And that's what we
    did right here.
  • 5:22 - 5:26
    So the work is going to be the
    force vector, dot, taking the
  • 5:26 - 5:29
    dot part of the force vector
    with the displacement vector,
  • 5:29 - 5:31
    and this, of course,
    is a scalar value.
  • 5:31 - 5:33
    And we'll work out some
    examples in the future where
  • 5:33 - 5:34
    you'll see that that's true.
  • 5:34 - 5:39
    So this is all review of
    fairly elementary physics.
  • 5:39 - 5:42
    Now let's take a more
    complex example, but it's
  • 5:42 - 5:44
    really the same idea.
  • 5:44 - 5:46
    Let's define a vector field.
  • 5:46 - 5:49
  • 5:49 - 5:51
    So let's say that I have a
    vector field f, and we're
  • 5:51 - 5:54
    going to think about what
    this means in a second.
  • 5:54 - 5:59
    It's a function of x and y, and
    it's equal to some scalar
  • 5:59 - 6:04
    function of x and y times the
    i-unit vector, or the
  • 6:04 - 6:09
    horizontal unit vector, plus
    some other function, scalar
  • 6:09 - 6:14
    function of x and y, times the
    vertical unit vector.
  • 6:14 - 6:16
    So what would something
    like this be?
  • 6:16 - 6:17
    This is a vector field.
  • 6:17 - 6:20
    This is a vector field
    in 2-dimensional space.
  • 6:20 - 6:21
    We're on the x-y plane.
  • 6:21 - 6:31
  • 6:31 - 6:36
    Or you could even say, on R2.
  • 6:36 - 6:38
    Either way, I don't want
    to get too much into
  • 6:38 - 6:39
    the mathiness of it.
  • 6:39 - 6:41
    But what does this do?
  • 6:41 - 6:47
    Well, if I were to draw my x-y
    plane, so that is my, again,
  • 6:47 - 6:49
    having trouble drawing
    a straight line.
  • 6:49 - 6:51
    All right, there we go.
  • 6:51 - 6:54
    That's my y-axis, and
    that's my x-axis.
  • 6:54 - 6:56
    I'm just drawing the first
    quadrant, and but you could
  • 6:56 - 6:59
    go negative in either
    direction, if you like.
  • 6:59 - 7:01
    What does this thing do?
  • 7:01 - 7:02
    Well, it's essentially
    saying, look.
  • 7:02 - 7:07
    You give me any x, any y, you
    give any x, y in the x-y plane,
  • 7:07 - 7:10
    and these are going to end
    up with some numbers, right?
  • 7:10 - 7:13
    When you put x, y here, you're
    going to get some value, when
  • 7:13 - 7:14
    you put x, y here, you're
    going to get some value.
  • 7:14 - 7:17
    So you're going to get some
    combination of the i-
  • 7:17 - 7:18
    and j-unit vectors.
  • 7:18 - 7:20
    So you're going to
    get some vector.
  • 7:20 - 7:23
    So what this does, it defines a
    vector that's associated with
  • 7:23 - 7:25
    every point on x-y plane.
  • 7:25 - 7:29
    So you could say, if I take
    this point on the x-y plane,
  • 7:29 - 7:32
    and I would pop it into this,
    I'll get something times i plus
  • 7:32 - 7:35
    something times j, and when you
    add those 2, maybe I get a
  • 7:35 - 7:37
    vector that something
    like that.
  • 7:37 - 7:38
    And you could do that
    on every point.
  • 7:38 - 7:39
    I'm just taking random samples.
  • 7:39 - 7:41
    Maybe when I go here,
    the vector looks
  • 7:41 - 7:42
    something like that.
  • 7:42 - 7:45
    Maybe when I go here, the
    victor looks like this.
  • 7:45 - 7:48
    Maybe when I go here, the
    vector looks like that.
  • 7:48 - 7:50
    And maybe when I go up here,
    the vector goes like that.
  • 7:50 - 7:52
    I'm just randomly
    picking points.
  • 7:52 - 7:57
    It defines a vector on all of
    the x, y coordinates where
  • 7:57 - 8:01
    these scalar functions
    are properly defined.
  • 8:01 - 8:02
    And that's why it's
    called a vector field.
  • 8:02 - 8:07
    It defines what a potential,
    maybe, force would be,
  • 8:07 - 8:11
    or some other type of
    force, at any point.
  • 8:11 - 8:14
    At any point, if you happen
    to have something there.
  • 8:14 - 8:16
    Maybe that's what
    the function is.
  • 8:16 - 8:18
    And I could keep doing
    this forever, and
  • 8:18 - 8:19
    filling in all the gaps.
  • 8:19 - 8:20
    But I think you get the idea.
  • 8:20 - 8:25
    It associates a vector with
    every point on x-y plane.
  • 8:25 - 8:29
    Now, this is called a vector
    field, so it probably makes a
  • 8:29 - 8:31
    lot of sense that this could
    be used to describe
  • 8:31 - 8:32
    any type of field.
  • 8:32 - 8:33
    It could be a
    gravitation field.
  • 8:33 - 8:37
    It could be an electric field,
    it could be a magnetic field.
  • 8:37 - 8:40
    And this could be essentially
    telling you how much force
  • 8:40 - 8:43
    there would be on some
    particle in that field.
  • 8:43 - 8:45
    That's exactly what
    this would describe.
  • 8:45 - 8:49
    Now, let's say that in this
    field, I have some particle
  • 8:49 - 8:52
    traveling on x-y plane.
  • 8:52 - 8:59
    Let's say it starts there, and
    by virtue of all of these crazy
  • 8:59 - 9:04
    forces that are acting on it,
    and maybe it's on some tracks
  • 9:04 - 9:07
    or something, so it won't
    always move exactly in the
  • 9:07 - 9:09
    direction that the field
    is trying to move it at.
  • 9:09 - 9:14
    Let's say it moves in a path
    that moves something like this.
  • 9:14 - 9:18
    And let's say that this path,
    or this curve, is defined by
  • 9:18 - 9:22
    a position vector function.
  • 9:22 - 9:25
    So let's say that that's
    defined by r of t, which is
  • 9:25 - 9:34
    just x of t times i plus y of
    t times our unit factor j.
  • 9:34 - 9:35
    That's r of t right there.
  • 9:35 - 9:38
    Well, in order for this to be
    a finite path, this is true
  • 9:38 - 9:42
    before t is greater than or
    equal to a, and less
  • 9:42 - 9:46
    than or equal to b.
  • 9:46 - 9:48
    This is the path that the
    particle just happens to
  • 9:48 - 9:50
    take, due to all of
    these wacky forces.
  • 9:50 - 9:54
    So when the particle is right
    here, maybe the vector field
  • 9:54 - 9:57
    acting on it, maybe it's
    putting a force like that.
  • 9:57 - 10:00
    But since the thing is on some
    type of tracks, it moves
  • 10:00 - 10:00
    in this direction.
  • 10:00 - 10:04
    And then when it's here, maybe
    the vector field is like that,
  • 10:04 - 10:06
    but it moves in that direction,
    because it's on some
  • 10:06 - 10:07
    type of tracks.
  • 10:07 - 10:10
    Now, everything I've done in
    this video is to build up
  • 10:10 - 10:11
    to a fundamental question.
  • 10:11 - 10:14
    What was the work done on
    the particle by the field?
  • 10:14 - 10:25
  • 10:25 - 10:29
    To answer that question, we
    could zoom in a little bit.
  • 10:29 - 10:31
    I'm going to zoom in on
    only a little small
  • 10:31 - 10:35
    snippet of our path.
  • 10:35 - 10:38
    And let's try to figure out
    what the work is done in a very
  • 10:38 - 10:40
    small part of our path, because
    it's constantly changing.
  • 10:40 - 10:42
    The field is
    changing direction.
  • 10:42 - 10:44
    my object is
    changing direction.
  • 10:44 - 10:48
    So let's say when I'm here,
    and let's say I move a
  • 10:48 - 10:50
    small amount of my path.
  • 10:50 - 10:56
    So let's say I move, this
    is an infinitesimally
  • 10:56 - 10:58
    small dr. Right?
  • 10:58 - 11:01
    I have a differential, it's a
    differential vector, infinitely
  • 11:01 - 11:03
    small displacement.
  • 11:03 - 11:07
    and let's say over the course
    of that, the vector field is
  • 11:07 - 11:09
    acting in this local
    area, let's say it looks
  • 11:09 - 11:10
    something like that.
  • 11:10 - 11:13
    It's providing a force that
    looks something like that.
  • 11:13 - 11:17
    So that's the vector field in
    that area, or the force
  • 11:17 - 11:19
    directed on that particle right
    when it's at that point.
  • 11:19 - 11:19
    Right?
  • 11:19 - 11:22
    It's an infinitesimally small
    amount of time in space.
  • 11:22 - 11:24
    You could say, OK, over that
    little small point, we
  • 11:24 - 11:27
    have this constant force.
  • 11:27 - 11:30
    What was the work done
    over this small period?
  • 11:30 - 11:32
    You could say, what's the
    small interval of work?
  • 11:32 - 11:36
    You could say d work, or
    a differential of work.
  • 11:36 - 11:39
    Well, by the same exact logic
    that we did with the simple
  • 11:39 - 11:44
    problem, it's the magnitude of
    the force in the direction of
  • 11:44 - 11:49
    our displacement times the
    magnitude of our displacement.
  • 11:49 - 11:53
    And we know what that is, just
    from this example up here.
  • 11:53 - 11:55
    That's the dot product.
  • 11:55 - 11:58
    It's the dot product of the
    force and our super-small
  • 11:58 - 11:59
    displacement.
  • 11:59 - 12:08
    So that's equal to the dot
    product of our force and our
  • 12:08 - 12:10
    super-small displacement.
  • 12:10 - 12:13
    Now, just by doing this, we're
    just figuring out the work
  • 12:13 - 12:16
    over, maybe like a really
    small, super-small dr. But
  • 12:16 - 12:19
    what we want to do, is we
    want to sum them all up.
  • 12:19 - 12:22
    We want to sum up all of the
    drs to figure out the total,
  • 12:22 - 12:25
    all of the f dot drs to figure
    out the total work done.
  • 12:25 - 12:28
    And that's where the
    integral comes in.
  • 12:28 - 12:33
    We will do a line integral
    over-- I mean, you could
  • 12:33 - 12:34
    think of it two ways.
  • 12:34 - 12:37
    You could write just d dot w
    there, but we could say, we'll
  • 12:37 - 12:43
    do a line integral along this
    curve c, could call that c
  • 12:43 - 12:46
    or along r, whatever you
    want to say it, of dw.
  • 12:46 - 12:48
    That'll give us the total work.
  • 12:48 - 12:50
    So let's say, work
    is equal to that.
  • 12:50 - 12:54
    Or we could also write it over
    the integral, over the same
  • 12:54 - 13:00
    curve of f of f dot dr.
  • 13:00 - 13:04
    And this might seem like a
    really, you know, gee, this
  • 13:04 - 13:05
    is really abstract, Sal.
  • 13:05 - 13:09
    How do we actually calculate
    something like this?
  • 13:09 - 13:13
    Especially because we have
    everything parameterized
  • 13:13 - 13:14
    in terms of t.
  • 13:14 - 13:16
    How do we get this
    in terms of t?
  • 13:16 - 13:20
    And if you just think about
    it, what is f dot r?
  • 13:20 - 13:21
    Or what is f dot dr?
  • 13:21 - 13:23
    Well, actually, to answer
    that, let's remember
  • 13:23 - 13:26
    what dr looked like.
  • 13:26 - 13:36
    If you remember, dr/dt is equal
    to x prime of t, I'm writing it
  • 13:36 - 13:39
    like, I could have written dx
    dt if I wanted to do, times the
  • 13:39 - 13:45
    i-unit vector, plus y prime of
    t, times the j-unit vector.
  • 13:45 - 13:49
    And if we just wanted to dr, we
    could multiply both sides, if
  • 13:49 - 13:52
    we're being a little bit more
    hand-wavy with the
  • 13:52 - 13:53
    differentials, not
    too rigorous.
  • 13:53 - 13:58
    We'll get dr is equal to x
    prime of t dt times the unit
  • 13:58 - 14:05
    vector i plus y prime of t
    times the differential dt
  • 14:05 - 14:07
    times the unit vector j.
  • 14:07 - 14:09
    So this is our dr right here.
  • 14:09 - 14:12
  • 14:12 - 14:16
    And remember what our
    vector field was.
  • 14:16 - 14:17
    It was this thing up here.
  • 14:17 - 14:20
    Let me copy and paste it.
  • 14:20 - 14:21
    And we'll see that
    the dot product is
  • 14:21 - 14:23
    actually not so crazy.
  • 14:23 - 14:27
    So copy, and let me
    paste it down here.
  • 14:27 - 14:31
  • 14:31 - 14:34
    So what's this integral
    going to look like?
  • 14:34 - 14:38
    This integral right here, that
    gives the total work done by
  • 14:38 - 14:41
    the field, on the particle,
    as it moves along that path.
  • 14:41 - 14:44
    Just super fundamental to
    pretty much any serious physics
  • 14:44 - 14:47
    that you might eventually
    find yourself doing.
  • 14:47 - 14:48
    So you could say, well gee.
  • 14:48 - 14:52
    It's going to be the integral,
    let's just say from t is equal
  • 14:52 - 14:55
    to a, to t is equal to b.
  • 14:55 - 14:58
    Right? a is where we started
    off on the path, t is equal
  • 14:58 - 15:00
    to a to t is equal to b.
  • 15:00 - 15:02
    You can imagine it as being
    timed, as a particle
  • 15:02 - 15:04
    moving, as time increases.
  • 15:04 - 15:07
    And then what is f dot dr?
  • 15:07 - 15:11
    Well, if you remember from just
    what the dot product is, you
  • 15:11 - 15:15
    can essentially just take the
    product of the corresponding
  • 15:15 - 15:18
    components of your of
    vector, and add them up.
  • 15:18 - 15:20
    So this is going to be the
    integral from t equals a to t
  • 15:20 - 15:27
    equals b, of p of p of x,
    really, instead of writing x,
  • 15:27 - 15:31
    y, it's x of t, right? x as a
    function of t, y as
  • 15:31 - 15:32
    a function of t.
  • 15:32 - 15:34
    So that's that.
  • 15:34 - 15:38
    Times this thing right here,
    times this component, right?
  • 15:38 - 15:39
    We're multiplying
    the i-components.
  • 15:39 - 15:51
    So times x prime of t d t, and
    then that plus, we're going
  • 15:51 - 15:52
    to do the same thing
    with the q function.
  • 15:52 - 15:56
    So this is q plus, I'll
    go to another line.
  • 15:56 - 15:58
    Hopefully you realize I could
    have just kept writing, but
  • 15:58 - 15:59
    I'm running out of space.
  • 15:59 - 16:10
    Plus q of x of t, y of t, times
    the component of our dr. Times
  • 16:10 - 16:12
    the y-component, or
    the j-component.
  • 16:12 - 16:16
    y prime of t dt.
  • 16:16 - 16:17
    And we're done!
  • 16:17 - 16:17
    And we're done.
  • 16:17 - 16:19
    This might still seem a little
    bit abstract, but we're going
  • 16:19 - 16:23
    to see in the next video,
    everything is now in terms of
  • 16:23 - 16:25
    t, so this is just a
    straight-up integration,
  • 16:25 - 16:27
    with respect to dt.
  • 16:27 - 16:30
    If we want, we could take the
    dt's outside of the equation,
  • 16:30 - 16:32
    and it'll look a little
    bit more normal for you.
  • 16:32 - 16:35
    But this is essentially
    all that we have to do.
  • 16:35 - 16:38
    And we're going to see some
    concrete examples of taking a
  • 16:38 - 16:43
    line integral through a vector
    field, or using vector
  • 16:43 - 16:46
    functions, in the next video.
  • 16:46 - 16:46
Title:
Line Integrals and Vector Fields
Description:

Using line integrals to find the work done on a particle moving through a vector field

more » « less
Video Language:
English
Duration:
16:46

English subtitles

Revisions