< Return to Video

Evaluating with function notation | Functions and their graphs | Algebra II | Khan Academy

  • 0:00 - 0:02
    In this video, I want
    to do a few examples
  • 0:02 - 0:04
    dealing with functions.
  • 0:04 - 0:07
    Functions tend to be something
    that a lot of students find
  • 0:07 - 0:09
    difficult, but I think if you
    really get what we're talking
  • 0:09 - 0:11
    about, you'll see that it's
    actually a pretty
  • 0:11 - 0:12
    straightforward idea.
  • 0:12 - 0:14
    And you sometimes wonder,
    well what was all
  • 0:14 - 0:15
    of the hubbub about?
  • 0:15 - 0:17
    All a function is, is an
  • 0:17 - 0:20
    association between two variables.
  • 0:20 - 0:26
    So if we say that y is equal to
    a function of x, all that
  • 0:26 - 0:28
    means is, you give me an x.
  • 0:28 - 0:32
    You can imagine this function
    is kind of eating up this x.
  • 0:32 - 0:34
    You pop an x into
    this function.
  • 0:34 - 0:36
    This function is just
    a set of rules.
  • 0:36 - 0:39
    It's going to say, oh,
    with that x, I
  • 0:39 - 0:41
    associate some value y.
  • 0:41 - 0:43
    You can imagine it is
    some type of a box.
  • 0:46 - 0:48
    That is a function.
  • 0:48 - 0:54
    When I give it some number
    x, it'll give me some
  • 0:54 - 0:57
    other number y.
  • 0:57 - 0:58
    This might seem a
    little abstract.
  • 0:58 - 0:59
    What are these x's and y's?
  • 0:59 - 1:03
    Maybe I have a function-- let
    me make it like this.
  • 1:03 - 1:04
    Let's say I have a function
    definition
  • 1:04 - 1:06
    that looks like this.
  • 1:06 - 1:12
    For any x you give me, I'm going
    to produce 1 if x is
  • 1:12 - 1:14
    equal to-- I don't know-- 0.
  • 1:14 - 1:19
    I'm going to produce 2
    if x is equal to 1.
  • 1:19 - 1:21
    And I'm going to produce
    3 otherwise.
  • 1:25 - 1:29
    So now we've defined what's
    going on inside of the box.
  • 1:29 - 1:32
    So let's draw the
    box around it.
  • 1:32 - 1:34
    This is our box.
  • 1:34 - 1:36
    This is just an arbitrary
    function definition, but
  • 1:36 - 1:38
    hopefully it'll help you
    understand what's actually
  • 1:38 - 1:40
    going on with a function.
  • 1:40 - 1:48
    So now if I make x is equal to--
    if I pick x is equal to
  • 1:48 - 1:52
    7, now what is f of x going
    to be equal to?
  • 1:52 - 1:56
    What is f of 7 going
    to be equal to?
  • 1:56 - 1:58
    So I take 7 into the box.
  • 1:58 - 2:00
    You could view it as some
    type of a computer.
  • 2:00 - 2:03
    The computer looks at that x and
    then looks at its rules.
  • 2:03 - 2:04
    It says, OK. x is 7.
  • 2:04 - 2:06
    Well x isn't 0. x isn't 1.
  • 2:06 - 2:08
    I go to the otherwise
    situation.
  • 2:08 - 2:10
    So I'm going to pop out a 3.
  • 2:10 - 2:12
    So f of 7 is equal to 3.
  • 2:12 - 2:15
    So we write f of 7
    is equal to 3.
  • 2:15 - 2:19
    Where f is the name of this
    function, this rule system, or
  • 2:19 - 2:21
    this association, this
    mapping, whatever you
  • 2:21 - 2:22
    want to call it.
  • 2:22 - 2:24
    When you give it a 7,
    it'll produce a 3.
  • 2:24 - 2:27
    When you give f a 7,
    it'll produce a 3.
  • 2:27 - 2:31
    What is f of 2?
  • 2:31 - 2:35
    Well, that means instead of x
    is equal to 7, I'm going to
  • 2:35 - 2:36
    give it an x equal 2.
  • 2:36 - 2:39
    Then the little computer inside
    the function is going
  • 2:39 - 2:43
    to say, OK, let's see,
    when x is equal to 2.
  • 2:43 - 2:44
    No, I'm still in the otherwise
    situation.
  • 2:44 - 2:46
    x isn't 0 or 1.
  • 2:46 - 2:51
    So once again f of
    x is equal to 3.
  • 2:53 - 2:57
    So, this is f of 2 is
    also equal to 3.
  • 2:57 - 3:03
    Now what happens if x
    is now equal to 1?
  • 3:03 - 3:05
    Well then it's just going
    to turn over this.
  • 3:05 - 3:08
    So f of 1.
  • 3:08 - 3:10
    It's going to look at its
    rules right here.
  • 3:10 - 3:12
    Oh look, x is equal to 1.
  • 3:12 - 3:13
    I can use my rule right here.
  • 3:13 - 3:16
    So when x is equal to
    1, I spit out a 2.
  • 3:16 - 3:19
    So f of 1 is going
    to be equal to 2.
  • 3:19 - 3:22
    I spit out f of 1, which is
    equal to 2 in that situation.
  • 3:22 - 3:24
    That's all a function is.
  • 3:24 - 3:29
    Now, with that in mind, let's
    do some of these example
  • 3:29 - 3:32
    problems. They tell us for
    each of the following
  • 3:32 - 3:35
    functions, evaluate these
    different functions-- these
  • 3:35 - 3:38
    are the different boxes they've
    created-- at these
  • 3:38 - 3:39
    different points.
  • 3:39 - 3:43
    Let's do part a first. They're
    defining the box.
  • 3:43 - 3:48
    f of x is equal to negative
    2x plus 3.
  • 3:48 - 3:52
    They want to know what happens
    when f is equal to negative 3.
  • 3:52 - 3:54
    Well f is equal to negative 3,
    this is telling me what do I
  • 3:54 - 3:55
    do with the x?
  • 3:55 - 3:57
    What do I produce?
  • 3:57 - 4:00
    Wherever I see an x, I replace
    it with the negative 3.
  • 4:00 - 4:02
    So it's going to be equal
    to negative 2.
  • 4:02 - 4:05
    Let me do it this way, so you
    see exactly what I'm doing.
  • 4:05 - 4:07
    That negative 3, I'll do
    it in that bold color.
  • 4:07 - 4:13
    It's negative 2 times
    negative 3 plus 3.
  • 4:13 - 4:16
    Notice wherever there was an
    x, I put the negative 3.
  • 4:16 - 4:19
    So I know what the black box
    is going to produce.
  • 4:19 - 4:22
    This is going to be equal to
    negative 2 times negative 3 is
  • 4:22 - 4:26
    6 plus 3, which is equal to 9.
  • 4:26 - 4:29
    So f of negative 3
    is equal to 9.
  • 4:29 - 4:32
    What about f of 7?
  • 4:32 - 4:36
    I'll do the same thing one more
    time. f of-- I'll do 7 in
  • 4:36 - 4:43
    yellow-- f of 7 is going to
    be equal to negative 2
  • 4:43 - 4:48
    times 7 plus 3.
  • 4:50 - 4:55
    So this is equal to negative 14
    plus 3, which is equal to
  • 4:55 - 4:57
    negative 11.
  • 4:57 - 5:04
    You put in-- let me make it very
    clear-- you put in a 7
  • 5:04 - 5:11
    into our function f here and it
    will pop out a negative 11.
  • 5:11 - 5:13
    That's what this just
    told us right there.
  • 5:13 - 5:15
    This is the rule.
  • 5:15 - 5:18
    This is completely analogous
    to what I did up here.
  • 5:18 - 5:21
    This is the rule of
    our function.
  • 5:21 - 5:24
    Let's do the next two.
  • 5:24 - 5:25
    I won't do part b.
  • 5:25 - 5:26
    You can do part b for fun.
  • 5:26 - 5:30
    I'll do part c after that, just
    for the sake of time.
  • 5:30 - 5:33
    Now we are at f of 0.
  • 5:33 - 5:34
    Here I'll just do
    it in one color.
  • 5:34 - 5:35
    I think you're getting
    the idea. f of 0.
  • 5:35 - 5:38
    Wherever we see an
    x, we put a 0.
  • 5:38 - 5:40
    So negative 2 times 0 plus 3.
  • 5:43 - 5:44
    Well, that's just
    going to be a 0.
  • 5:44 - 5:47
    So f of 0 is 3.
  • 5:47 - 5:49
    Then one last one. f of z.
  • 5:49 - 5:52
    They want to keep it
    abstract for us.
  • 5:52 - 5:53
    Here I'll color code it.
  • 5:53 - 5:56
    So f of z.
  • 5:56 - 5:59
    Let me make the z in
    a different color.
  • 5:59 - 6:01
    f of z.
  • 6:01 - 6:06
    Everywhere that we saw
    an x, we will now
  • 6:06 - 6:08
    replace it with a z.
  • 6:08 - 6:09
    Negative 2.
  • 6:09 - 6:12
    Instead of an x, we're going
    to put a z there.
  • 6:12 - 6:14
    We're going to put an
    orange z there.
  • 6:14 - 6:20
    Negative 2 times z plus 3.
  • 6:20 - 6:24
    And that's our answer. f of
    z is negative 2z plus 3.
  • 6:24 - 6:28
    If you imagine our box,
    the function f.
  • 6:28 - 6:38
    You put in a z, you are going to
    get out a negative 2 times
  • 6:38 - 6:43
    whatever that z is plus 3.
  • 6:43 - 6:45
    That's all this is saying.
  • 6:45 - 6:48
    It's a little bit more abstract,
    but same exact idea.
  • 6:48 - 6:52
    Now let's just do part c here.
  • 6:52 - 6:53
    Let me clear this actually.
  • 6:53 - 6:56
    I'm running out of
    real estate.
  • 6:56 - 6:59
    Let me clear all of
    this business.
  • 6:59 - 7:03
    Let me clear all of
    this business.
  • 7:03 - 7:04
    We can do part c.
  • 7:04 - 7:05
    I'm skipping part b.
  • 7:05 - 7:08
    You can work on that part.
  • 7:08 - 7:11
    Part b.
  • 7:11 - 7:13
    They tell us-- this is our
    function definition.
  • 7:13 - 7:17
    Sorry, I said I was
    doing part c.
  • 7:17 - 7:19
    This is our function
    definition.
  • 7:19 - 7:26
    f of x is equal to 5 times
    2 minus x over 11.
  • 7:26 - 7:29
    So let's apply these different
    values of x, these different
  • 7:29 - 7:33
    inputs into our function.
  • 7:33 - 7:40
    So f of negative 3 is equal to
    5 times 2 minus-- wherever we
  • 7:40 - 7:42
    see an x, we put a negative 3.
  • 7:42 - 7:46
    2 minus negative 3 over 11.
  • 7:46 - 7:49
    This is equal to 2 plus 3.
  • 7:49 - 7:51
    This is equal to 5.
  • 7:51 - 7:53
    So you get 5 times 5 over 11.
  • 7:53 - 7:57
    That's equal to 25/11.
  • 7:57 - 7:58
    Let's do this one.
  • 7:58 - 8:00
    F of 7.
  • 8:00 - 8:07
    For this second function right
    here, f of 7 is equal to 5
  • 8:07 - 8:11
    times 2 minus-- now
    for x we have a 7.
  • 8:11 - 8:14
    2 minus 7 over 11.
  • 8:14 - 8:16
    So what is this going
    to be equal to?
  • 8:16 - 8:18
    2 minus 7 is negative 5.
  • 8:18 - 8:24
    5 times negative 5 is
    negative 25/11.
  • 8:24 - 8:27
    Then finally, well we have
    two more. f of 0.
  • 8:27 - 8:35
    That's equal to 5 times 2 minus
    0 So this is just 2.
  • 8:35 - 8:36
    5 times 2 is 10.
  • 8:36 - 8:39
    So this is equal to 10/11.
  • 8:39 - 8:40
    One more.
  • 8:40 - 8:42
    f of z.
  • 8:42 - 8:43
    Well every time we saw
    an x, we're going to
  • 8:43 - 8:44
    replace it with a z.
  • 8:44 - 8:50
    It's equal to 5 times
    2 minus z over 11.
  • 8:50 - 8:51
    And that's our answer.
  • 8:51 - 8:52
    We could distribute the 5.
  • 8:52 - 8:57
    You could say this is the same
    thing as 10 minus 5z over 11.
  • 8:57 - 9:00
    We could even write it in
    slope-intercept form.
  • 9:00 - 9:06
    This is the same thing as
    minus 5/11 z plus 10/11.
  • 9:06 - 9:07
    These are all equivalent.
  • 9:07 - 9:10
    But that is what f
    of z is equal to.
  • 9:10 - 9:12
    Now.
  • 9:12 - 9:16
    A function, we said, if you give
    me any x value, I will
  • 9:16 - 9:16
    give you an output.
  • 9:16 - 9:19
    I will give you an f of x.
  • 9:19 - 9:23
    So if this is our function,
    you give me an x, it will
  • 9:23 - 9:27
    produce an f of x.
  • 9:27 - 9:30
    It can only produce 1
    f of x for any x.
  • 9:30 - 9:33
    You can't have a function that
    could produce two possible
  • 9:33 - 9:35
    values for an x.
  • 9:35 - 9:38
    So you can't have a function--
    this would be an invalid
  • 9:38 - 9:43
    function definition-- f
    of x is equal to 3 if
  • 9:43 - 9:45
    x is equal to 0.
  • 9:45 - 9:49
    Or it could be equal to
    4 if x is equal to 0.
  • 9:49 - 9:53
    Because in this situation, we
    don't know what f of 0 is.
  • 9:53 - 9:54
    What it's going to be equal?
  • 9:54 - 9:56
    It says if x is equal to 0, it
    should be 3 or it could be--
  • 9:56 - 9:57
    we don't know.
  • 9:57 - 9:58
    We don't know.
  • 9:58 - 9:58
    We don't know.
  • 9:58 - 10:02
    This is not a function
    even though it might
  • 10:02 - 10:03
    have looked like one.
  • 10:08 - 10:12
    So you can't have two f of
    x values for one x value.
  • 10:12 - 10:16
    So let's see which of these
    graphs are functions.
  • 10:16 - 10:18
    To figure that out, you could
    say, look at any x value
  • 10:18 - 10:22
    here-- pick any x value-- I have
    exactly one f of x value.
  • 10:22 - 10:25
    This is y is equal to
    f of x right here.
  • 10:25 - 10:29
    I have exactly only one--
    at that x, that
  • 10:29 - 10:31
    is my y value here.
  • 10:31 - 10:33
    So you could have a vertical
    line test, which says at any
  • 10:33 - 10:36
    point if you draw a vertical
    line-- notice a vertical line
  • 10:36 - 10:38
    is for a certain x value.
  • 10:38 - 10:42
    That shows that I only have
    one y value at that point.
  • 10:42 - 10:44
    So this is a valid function.
  • 10:44 - 10:46
    Any time you draw a vertical
    line, it will only intersect
  • 10:46 - 10:48
    the graph once.
  • 10:48 - 10:50
    So this is a valid function.
  • 10:50 - 10:52
    Now what about this
    one right here?
  • 10:52 - 10:54
    I could draw a vertical
    line, let's say, at
  • 10:54 - 10:55
    that point right there.
  • 10:55 - 10:59
    For that x, this relation
    seems to have two
  • 10:59 - 11:01
    possible f of x's.
  • 11:01 - 11:05
    f of x could be that value or
    f of x could be that value.
  • 11:05 - 11:05
    Right?
  • 11:05 - 11:08
    We're intersecting
    the graph twice.
  • 11:08 - 11:09
    So this is not a function.
  • 11:09 - 11:11
    We're doing exactly what
    I described here.
  • 11:11 - 11:15
    For a certain x, we're
    describing two possible y's
  • 11:15 - 11:17
    that could be equal to f of x.
  • 11:17 - 11:19
    So this is not a function.
  • 11:19 - 11:21
    Over here, same thing.
  • 11:21 - 11:22
    You draw a vertical
    line right there.
  • 11:22 - 11:25
    You're intersecting
    the graph twice.
  • 11:25 - 11:26
    This is not a function.
  • 11:26 - 11:31
    You're defining two possible
    y values for 1 x value.
  • 11:31 - 11:31
    Let's go to this function.
  • 11:31 - 11:33
    It's kind of a weird
    looking function.
  • 11:33 - 11:35
    Looks like a reversed
    check mark.
  • 11:35 - 11:37
    But any time you draw a vertical
    line, you're only
  • 11:37 - 11:39
    intersecting it once.
  • 11:39 - 11:40
    So this is a valid function.
  • 11:40 - 11:43
    For every x, you only have
    one y associated.
  • 11:43 - 11:46
    Or only one f of x associated
    with it.
  • 11:46 - 11:49
    Anyway, hopefully you
    found that useful.
Title:
Evaluating with function notation | Functions and their graphs | Algebra II | Khan Academy
Description:

more » « less
Video Language:
English
Team:
Khan Academy
Duration:
11:49

English subtitles

Revisions Compare revisions