Library

Video Player is loading.
 
Current Time 0:00
Duration 6:11
Loaded: 0%
 

x1.00


Back

Games & Quizzes

Training Mode - Typing
Fill the gaps to the Lyric - Best method
Training Mode - Picking
Pick the correct word to fill in the gap
Fill In The Blank
Find the missing words in a sentence Requires 5 vocabulary annotations
Vocabulary Match
Match the words to the definitions Requires 10 vocabulary annotations

You may need to watch a part of the video to unlock quizzes

Don't forget to Sign In to save your points

Challenge Accomplished

PERFECT HITS +NaN
HITS +NaN
LONGEST STREAK +NaN
TOTAL +
- //

We couldn't find definitions for the word you were looking for.
Or maybe the current language is not supported

  • 00:00

    - [Voiceover] So here I'd like to talk
    - [Voiceover] So here I'd like to talk

  • 00:01

    about what the gradient means
    about what the gradient means

  • 00:03

    in the context of the graph of a function.
    in the context of the graph of a function.

  • 00:06

    So in the last video, I defined the gradient,
    So in the last video, I defined the gradient,

  • 00:09

    but let me just take a function here.
    but let me just take a function here.

  • 00:10

    And the one that I had graphed is x-squared plus y-squared,
    And the one that I had graphed is x-squared plus y-squared,

  • 00:15

    f of x, y, equals x-squared plus y-squared.
    f of x, y, equals x-squared plus y-squared.

  • 00:17

    So two-dimensional input, which we think about
    So two-dimensional input, which we think about

  • 00:19

    as being kind of the xy-plane,
    as being kind of the xy-plane,

  • 00:22

    and then a one-dimensional output that's just the height
    and then a one-dimensional output that's just the height

  • 00:24

    of the graph above that plane.
    of the graph above that plane.

  • 00:26

    And I defined in the last video, the gradient,
    And I defined in the last video, the gradient,

  • 00:29

    to be a certain operator.
    to be a certain operator.

  • 00:31

    An operator just means you've taken a function
    An operator just means you've taken a function

  • 00:33

    and you output another function,
    and you output another function,

  • 00:34

    and we use this upside down triangle.
    and we use this upside down triangle.

  • 00:37

    So it gives you another function that's also of x and y,
    So it gives you another function that's also of x and y,

  • 00:40

    but this time it has a vector valued output.
    but this time it has a vector valued output.

  • 00:43

    And the two components of its output
    And the two components of its output

  • 00:45

    are the partial derivatives, partial of f with respect to x,
    are the partial derivatives, partial of f with respect to x,

  • 00:51

    and the partial of f with respect to y.
    and the partial of f with respect to y.

  • 00:58

    So for a function like this, we actually evaluated it.
    So for a function like this, we actually evaluated it.

  • 01:01

    Let's take a look.
    Let's take a look.

  • 01:03

    The first one is taking the derivative
    The first one is taking the derivative

  • 01:06

    with respect to x, so it looks at x and says,
    with respect to x, so it looks at x and says,

  • 01:08

    "You look like a variable to me.
    "You look like a variable to me.

  • 01:10

    "I'm gonna take your derivative, your 2x."
    "I'm gonna take your derivative, your 2x."

  • 01:13

    2x, but the y component just looks like a constant
    2x, but the y component just looks like a constant

  • 01:18

    as far as the partial x is concerned.
    as far as the partial x is concerned.

  • 01:20

    And the derivative of a constant is zero.
    And the derivative of a constant is zero.

  • 01:22

    But when you take the partial derivative
    But when you take the partial derivative

  • 01:24

    with respect to y, things reverse.
    with respect to y, things reverse.

  • 01:26

    It looks at the x component and says,
    It looks at the x component and says,

  • 01:27

    "You look like a constant.
    "You look like a constant.

  • 01:28

    "Your derivative is zero."
    "Your derivative is zero."

  • 01:29

    But it looks at the y component and says,
    But it looks at the y component and says,

  • 01:31

    "Ah, you look like a variable.
    "Ah, you look like a variable.

  • 01:32

    "Your derivative is 2y."
    "Your derivative is 2y."

  • 01:36

    So this ultimate function we get, the gradient,
    So this ultimate function we get, the gradient,

  • 01:38

    which takes in a two variable input, xy,
    which takes in a two variable input, xy,

  • 01:40

    some point on this plane,
    some point on this plane,

  • 01:41

    but outputs a vector,
    but outputs a vector,

  • 01:43

    can nicely be visualized with a vector field.
    can nicely be visualized with a vector field.

  • 01:45

    And I have another video on vector fields
    And I have another video on vector fields

  • 01:46

    if you're feeling unsure.
    if you're feeling unsure.

  • 01:48

    But I want you to just take a moment, pause if you need to,
    But I want you to just take a moment, pause if you need to,

  • 01:50

    and guess, or try to think about what vector field
    and guess, or try to think about what vector field

  • 01:54

    this will look like.
    this will look like.

  • 01:55

    I'm gonna show you in a moment,
    I'm gonna show you in a moment,

  • 01:56

    but what's it gonna look like,
    but what's it gonna look like,

  • 01:57

    the one that takes in xy and outputs 2x, 2y?
    the one that takes in xy and outputs 2x, 2y?

  • 02:01

    Alright, have you done it,
    Alright, have you done it,

  • 02:02

    have you thought about what it's gonna look like?
    have you thought about what it's gonna look like?

  • 02:05

    Here's what we get.
    Here's what we get.

  • 02:07

    It's a bunch of vectors pointing away from the origin.
    It's a bunch of vectors pointing away from the origin.

  • 02:10

    And the basic reason for that
    And the basic reason for that

  • 02:12

    is that if you have any given input point,
    is that if you have any given input point,

  • 02:14

    and say it's got coordinates x, y,
    and say it's got coordinates x, y,

  • 02:18

    then the vector that that input point represents
    then the vector that that input point represents

  • 02:20

    would, you know, if it went from the origin here,
    would, you know, if it went from the origin here,

  • 02:22

    that's what that vector looks like,
    that's what that vector looks like,

  • 02:24

    but the output is two times that vector.
    but the output is two times that vector.

  • 02:26

    So when we attach that output to the original point,
    So when we attach that output to the original point,

  • 02:29

    we get something that's two times that original vector
    we get something that's two times that original vector

  • 02:31

    but pointing in the same direction,
    but pointing in the same direction,

  • 02:33

    which is away from the origin.
    which is away from the origin.

  • 02:34

    We kind of drew it poorly here.
    We kind of drew it poorly here.

  • 02:37

    And of course, when we draw vector fields,
    And of course, when we draw vector fields,

  • 02:39

    we don't usually draw them to scale.
    we don't usually draw them to scale.

  • 02:41

    You scale them down
    You scale them down

  • 02:43

    just so that things don't look as cluttered.
    just so that things don't look as cluttered.

  • 02:44

    That's why everything here, they all look the same length,
    That's why everything here, they all look the same length,

  • 02:46

    but color indicates length.
    but color indicates length.

  • 02:48

    So you should think of these red guys as being really long,
    So you should think of these red guys as being really long,

  • 02:50

    the blue ones as being really short.
    the blue ones as being really short.

  • 02:52

    So what does this have to do with the graph of the function?
    So what does this have to do with the graph of the function?

  • 02:55

    There's actually a really cool interpretation.
    There's actually a really cool interpretation.

  • 02:57

    So imagine that you are just walking along this graph,
    So imagine that you are just walking along this graph,

  • 03:00

    you know, you're a hiker and this is a mountain.
    you know, you're a hiker and this is a mountain.

  • 03:03

    And you picture yourself at any old point on this graph,
    And you picture yourself at any old point on this graph,

  • 03:06

    let's say, what color should I use?
    let's say, what color should I use?

  • 03:09

    Let's say you're sitting at a point like this.
    Let's say you're sitting at a point like this.

  • 03:11

    And you say, "What direction should I walk
    And you say, "What direction should I walk

  • 03:13

    "to increase my altitude the fastest?"
    "to increase my altitude the fastest?"

  • 03:15

    You want to get uphill as quickly as possible.
    You want to get uphill as quickly as possible.

  • 03:17

    And from that point,
    And from that point,

  • 03:19

    you might walk what looks like straight up there.
    you might walk what looks like straight up there.

  • 03:22

    You certainly wouldn't go around,
    You certainly wouldn't go around,

  • 03:23

    and this way you wouldn't go down.
    and this way you wouldn't go down.

  • 03:25

    So you might go straight up there.
    So you might go straight up there.

  • 03:27

    And if you project your point down onto the input space,
    And if you project your point down onto the input space,

  • 03:31

    so this is the point above which you are,
    so this is the point above which you are,

  • 03:34

    that vector, the one that's gonna get you going
    that vector, the one that's gonna get you going

  • 03:37

    uphill the fastest, the direction you should walk.
    uphill the fastest, the direction you should walk.

  • 03:40

    For this graph, it should kind of make sense,
    For this graph, it should kind of make sense,

  • 03:41

    is directly away from the origin,
    is directly away from the origin,

  • 03:43

    'cause here, I'll erase this
    'cause here, I'll erase this

  • 03:45

    'cause once I start moving things, that won't stick.
    'cause once I start moving things, that won't stick.

  • 03:48

    If you were to look at things from the very bottom,
    If you were to look at things from the very bottom,

  • 03:51

    any point that you are on the mountain on the graph here
    any point that you are on the mountain on the graph here

  • 03:53

    and when you want to increase the fastest,
    and when you want to increase the fastest,

  • 03:55

    you should just go directly away from the origin
    you should just go directly away from the origin

  • 03:57

    'cause that's when it's the steepest.
    'cause that's when it's the steepest.

  • 03:59

    And all of these vectors are also pointing
    And all of these vectors are also pointing

  • 04:01

    directly away from the origin.
    directly away from the origin.

  • 04:02

    So people will say the gradient points in the direction
    So people will say the gradient points in the direction

  • 04:05

    of steepest ascent, that might even be worth writing down.
    of steepest ascent, that might even be worth writing down.

  • 04:13

    Direction of steepest ascent.
    Direction of steepest ascent.

  • 04:18

    And let's just see what that looks like
    And let's just see what that looks like

  • 04:20

    in the context of another example.
    in the context of another example.

  • 04:21

    So I'll pull up another graph here,
    So I'll pull up another graph here,

  • 04:24

    pull up another graph and its vector field.
    pull up another graph and its vector field.

  • 04:27

    So this graph, it's all negative values,
    So this graph, it's all negative values,

  • 04:28

    it's all below the xy-plane,
    it's all below the xy-plane,

  • 04:30

    and it's got these two different peaks.
    and it's got these two different peaks.

  • 04:32

    And I've also drawn the gradient field,
    And I've also drawn the gradient field,

  • 04:34

    which is the word for the vector field
    which is the word for the vector field

  • 04:36

    representing the gradient on top.
    representing the gradient on top.

  • 04:38

    And you'll notice near the peak
    And you'll notice near the peak

  • 04:41

    all of the vectors are pointing
    all of the vectors are pointing

  • 04:43

    kind of in the uphill direction,
    kind of in the uphill direction,

  • 04:45

    sort of telling you to go towards that peak in some way.
    sort of telling you to go towards that peak in some way.

  • 04:48

    And as you get a feel around, you can see here,
    And as you get a feel around, you can see here,

  • 04:51

    this very top one, like the point that it's stemming from
    this very top one, like the point that it's stemming from

  • 04:53

    corresponds with something just a little bit shy
    corresponds with something just a little bit shy

  • 04:56

    of the peak there.
    of the peak there.

  • 04:57

    And everybody's telling you to go uphill.
    And everybody's telling you to go uphill.

  • 05:00

    Each vector is telling you which way to walk
    Each vector is telling you which way to walk

  • 05:02

    to increase the altitude on the graph the fastest.
    to increase the altitude on the graph the fastest.

  • 05:05

    It's the direction of steepest ascent.
    It's the direction of steepest ascent.

  • 05:07

    And that's what the direction means,
    And that's what the direction means,

  • 05:08

    but what does the length mean?
    but what does the length mean?

  • 05:11

    Well, if you take a look,
    Well, if you take a look,

  • 05:11

    take a look at these red vectors here.
    take a look at these red vectors here.

  • 05:13

    So red means that they should be considered very, very long.
    So red means that they should be considered very, very long.

  • 05:16

    And the graph itself,
    And the graph itself,

  • 05:18

    the point they correspond to on the graph
    the point they correspond to on the graph

  • 05:19

    is just way off screen for us
    is just way off screen for us

  • 05:21

    because this graph gets really steep
    because this graph gets really steep

  • 05:22

    and really negative very fast.
    and really negative very fast.

  • 05:24

    So the points these correspond to
    So the points these correspond to

  • 05:26

    have really, really steep slopes
    have really, really steep slopes

  • 05:28

    whereas these blue ones over here,
    whereas these blue ones over here,

  • 05:29

    you know, it's kind of a relatively shallow slope.
    you know, it's kind of a relatively shallow slope.

  • 05:31

    By the time you're getting to the peak,
    By the time you're getting to the peak,

  • 05:33

    things start leveling off.
    things start leveling off.

  • 05:35

    So the length of the gradient vector
    So the length of the gradient vector

  • 05:37

    actually tells you the steepness
    actually tells you the steepness

  • 05:38

    of that direction of steepest ascent.
    of that direction of steepest ascent.

  • 05:40

    But one thing I want to point out here,
    But one thing I want to point out here,

  • 05:43

    it doesn't really make sense immediately looking at it,
    it doesn't really make sense immediately looking at it,

  • 05:46

    why just throwing the partial derivatives into a vector
    why just throwing the partial derivatives into a vector

  • 05:49

    is gonna give you this direction of steepest ascent.
    is gonna give you this direction of steepest ascent.

  • 05:53

    Ultimately it will.
    Ultimately it will.

  • 05:54

    We're gonna talk through that
    We're gonna talk through that

  • 05:55

    and I hope to make that connection pretty clear,
    and I hope to make that connection pretty clear,

  • 05:57

    but unless you're some kind of intuitive genius,
    but unless you're some kind of intuitive genius,

  • 06:00

    I don't think that connection is at all obvious at first.
    I don't think that connection is at all obvious at first.

  • 06:03

    But you will see it in due time.
    But you will see it in due time.

  • 06:05

    It's gonna require something
    It's gonna require something

  • 06:06

    called the directional derivative.
    called the directional derivative.

  • 06:08

    See you next video.
    See you next video.

All

Gradient and graphs

411,438 views

Video Language:

  • English

Caption Language:

  • English (en)

Accent:

  • English

Speech Time:

97%
  • 6:00 / 6:10

Speech Rate:

  • 201 wpm - Fast

Category:

  • Education

Intro:

- [Voiceover] So here I'd like to talk. about what the gradient means. in the context of the graph of a function.. So in the last video, I defined the gradient,. but let me just take a function here.. And the one that I had graphed is x-squared plus y-squared,
f of x, y, equals x-squared plus y-squared.. So two-dimensional input, which we think about. as being kind of the xy-plane,. and then a one-dimensional output that's just the height
of the graph above that plane.. And I defined in the last video, the gradient,. to be a certain operator.. An operator just means you've taken a function. and you output another function,. and we use this upside down triangle.. So it gives you another function that's also of x and y,
but this time it has a vector valued output.. And the two components of its output. are the partial derivatives, partial of f with respect to x,

Video Vocabulary

/ˈäpəˌrādər/

noun

Someone who operates or controls a machine.

/ˈfəNG(k)SH(ə)n/

noun verb

Mathematical operation used in calculations. operate in particular way.

/ˈpärSHəl/

adjective noun

Giving better treatment to one person than another. overtone or harmonic.

/ˈɡrādēənt/

noun

inclined part of road or railway.

/dəˈfīnd/

adjective verb

having definite outline or specification. To explain the meaning of words.

/kəmˈpōnənt/

noun other

part or element of larger whole. Parts that some things are made up of.

/əˈvalyəˌwāt/

verb

form idea of amount, number, or value of.

/ˈak(t)SH(o͞o)əlē/

adverb

Used to add new (often different) information.

/ˈkäntekst/

noun

circumstances that form setting for event, statement, or idea.

/ˈsərtn/

adjective pronoun

Definite, fixed. some.

/əˈnəT͟Hər/

adjective determiner pronoun

One more, but not this. used to refer to additional person or thing of same type as one. One more (thing).

/ɡraf/

verb

plot or trace on graph.

/rəˈspekt/

noun verb

Regard or admiration for someone or something. To think very highly of another person.