< Return to Video

Graphing Logarithmic Functions

  • 0:01 - 0:06
    We're asked to graph, y is
    equal to log base 5 of x.
  • 0:06 - 0:08
    And just to remind us
    what this is saying,
  • 0:08 - 0:10
    this is saying that y
    is equal to the power
  • 0:10 - 0:13
    that I have to raise
    5 to to get to x.
  • 0:13 - 0:16
    Or if I were to write
    this logarithmic equation
  • 0:16 - 0:20
    as an exponential
    equation, 5 is my base,
  • 0:20 - 0:24
    y is the exponent that I
    have to raise my base to,
  • 0:24 - 0:28
    and then x is what I get when
    I raise 5 to the yth power.
  • 0:28 - 0:33
    So another way of writing
    this equation would be 5
  • 0:33 - 0:41
    to the y'th power is
    going to be equal to x.
  • 0:41 - 0:43
    These are the same thing.
  • 0:43 - 0:45
    Here, we have y as
    a function of x.
  • 0:45 - 0:49
    Here, we have x as
    a function of y.
  • 0:49 - 0:51
    But they're really saying
    the exact same thing,
  • 0:51 - 0:54
    raise 5 to the y'th
    power to get x.
  • 0:54 - 0:56
    When you put it as a
    logarithm, you're saying, well,
  • 0:56 - 0:58
    what power do I have
    to raise 5 to to get x?
  • 0:58 - 0:59
    We'll have to raise it to y.
  • 0:59 - 1:03
    Here, what do I get when I
    raise five to the y power?
  • 1:03 - 1:04
    I get x.
  • 1:04 - 1:07
    That out of the way, let's
    make ourselves a little table
  • 1:07 - 1:09
    that we can use to
    plot some points,
  • 1:09 - 1:10
    and then we can
    connect the dots to see
  • 1:10 - 1:12
    what this curve looks like.
  • 1:12 - 1:14
    So let me pick some
    x's and some y's.
  • 1:18 - 1:21
    And we, in general, want to
    pick some numbers that give us
  • 1:21 - 1:25
    some nice round answers, some
    nice fairly simple numbers
  • 1:25 - 1:26
    for us to deal with,
    so that we don't
  • 1:26 - 1:28
    have to get the calculator.
  • 1:28 - 1:30
    And so in general,
    you want to pick
  • 1:30 - 1:34
    x values where the power
    that you have to raise 5
  • 1:34 - 1:38
    to to get that x value is a
    pretty straightforward power.
  • 1:38 - 1:40
    Or another way to
    think about it,
  • 1:40 - 1:42
    you could just think about
    the different y values
  • 1:42 - 1:45
    that you want to raise
    5 to the power of,
  • 1:45 - 1:46
    and then you could
    get your x values.
  • 1:46 - 1:49
    So we could actually
    think about this one
  • 1:49 - 1:53
    to come up with our
    actual x values.
  • 1:53 - 1:56
    But we want to be clear that
    when we express it like this,
  • 1:56 - 2:00
    the independent variable is x,
    and the dependent variable is
  • 2:00 - 2:00
    y.
  • 2:00 - 2:04
    We might just look at
    this one to pick some nice
  • 2:04 - 2:10
    even or nice x's that give
    us nice clean answers for y.
  • 2:10 - 2:13
    So here, I'm actually going
    to fill in the y first,
  • 2:13 - 2:15
    just so we get nice clean x's.
  • 2:15 - 2:16
    So let's say we're
    going to raise five
  • 2:16 - 2:19
    to the-- let's say we're going
    to raise it-- I'm going to pick
  • 2:19 - 2:24
    some new colors-- negative
    2, negative 2 power--
  • 2:24 - 2:30
    and let me do some other
    colors-- negative 1, 0, 1.
  • 2:30 - 2:34
    I'll do one more, and then 2.
  • 2:34 - 2:37
    So once again, this is
    a little nontraditional,
  • 2:37 - 2:39
    where I'm filling in the
    dependent variable first.
  • 2:39 - 2:40
    But the way that
    we've written it over
  • 2:40 - 2:42
    here, it's actually given
    the dependent variable,
  • 2:42 - 2:45
    it's easy to figure out what
    the independent variable needs
  • 2:45 - 2:47
    to be for this
    logarithmic function.
  • 2:47 - 2:50
    So, what x gives me
    a y of negative 2?
  • 2:50 - 2:53
    What x gives me--
    what does x have
  • 2:53 - 2:55
    to be for y to be
    equal to negative 2?
  • 2:55 - 3:00
    Well, 5 to the negative 2 power
    is going to be equal to x.
  • 3:00 - 3:04
    So 5 to the negative
    2 is 1 over 25.
  • 3:04 - 3:07
    So we get 1 over 25.
  • 3:07 - 3:09
    If we go back to
    this earlier one,
  • 3:09 - 3:13
    if we say log base
    5 of 1 over 25,
  • 3:13 - 3:17
    what power do I have to
    raise 5 to to get 1 over 25?
  • 3:17 - 3:19
    We'll have to raise it
    to the negative 2 power.
  • 3:19 - 3:22
    Or you could say 5
    to the negative 2
  • 3:22 - 3:24
    is equal to 1 over 25.
  • 3:24 - 3:28
    These are saying the
    exact same thing.
  • 3:28 - 3:30
    Now let's do another one.
  • 3:30 - 3:34
    What happens when I raise
    5 to the negative 1 power?
  • 3:34 - 3:35
    I get one fifth.
  • 3:35 - 3:37
    So if we go to this
    original one over there,
  • 3:37 - 3:43
    we're just saying that
    log base 5 of one fifth.
  • 3:43 - 3:44
    Want to be careful.
  • 3:44 - 3:47
    This is saying, what power
    do I have to raise 5 to
  • 3:47 - 3:48
    in order to get one fifth.
  • 3:48 - 3:51
    We'll have to raise it
    to the negative 1 power.
  • 3:53 - 3:55
    What happens when I take
    5 to the 0'th power?
  • 3:55 - 3:57
    I get one.
  • 3:57 - 3:59
    And so this relationship--
    This is the same thing
  • 3:59 - 4:03
    as saying log base 5 of 1.
  • 4:03 - 4:05
    What power do I have
    to raise 5 to to get 1?
  • 4:05 - 4:09
    I just have to raise
    it to the 0th power.
  • 4:09 - 4:11
    Let's do the next two.
  • 4:11 - 4:13
    What happens when I raise
    5 to the first power?
  • 4:13 - 4:17
    Well, I get 5 So if you go look
    over here, that's just saying,
  • 4:17 - 4:20
    log, what power do I have
    to raise 5 to to get 5?
  • 4:20 - 4:24
    We'll have to just raise
    it to the first power.
  • 4:24 - 4:29
    And then finally, if I
    take 5 squared, I get 25.
  • 4:29 - 4:32
    So when you look at it from
    the logarithmic point of view,
  • 4:32 - 4:34
    you say, well, what power
    do I have to raise 5 to
  • 4:34 - 4:36
    to get to 25?
  • 4:36 - 4:39
    We'll have to raise it
    to the second power.
  • 4:39 - 4:42
    So I took the inverse of
    the logarithmic function.
  • 4:42 - 4:44
    I wrote it as an
    exponential function.
  • 4:44 - 4:47
    I switched the dependent
    and independent variables,
  • 4:47 - 4:51
    so I can derive nice clean x's
    that will give me nice clean
  • 4:51 - 4:52
    y's.
  • 4:52 - 4:54
    Now with that out of the way,
    but I do want to remind you,
  • 4:54 - 4:57
    I could have just picked
    random numbers over here,
  • 4:57 - 5:00
    but then I would have probably
    gotten less clean numbers
  • 5:00 - 5:00
    over here.
  • 5:00 - 5:02
    I would have had to
    use a calculator.
  • 5:02 - 5:03
    The only reason why
    I did it this way,
  • 5:03 - 5:07
    is so I get nice clean results
    that I can plot by hand.
  • 5:07 - 5:09
    So let's actually graph it.
  • 5:09 - 5:11
    Let's actually graph
    this thing over here.
  • 5:11 - 5:14
    So the y's go between
    negative 2 and 2.
  • 5:14 - 5:19
    The x's go from 1/25th
    all the way to 25.
  • 5:19 - 5:23
    So let's graph it.
  • 5:23 - 5:30
    So that is my y-axis,
    and this is my x-axis.
  • 5:30 - 5:32
    Draw it like that.
  • 5:32 - 5:34
    That is my x-axis.
  • 5:34 - 5:37
    And then the y's start at 0.
  • 5:37 - 5:43
    Then, you get to
    positive 1, positive 2.
  • 5:43 - 5:45
    And then you have negative 1.
  • 5:45 - 5:47
    And you have negative 2.
  • 5:47 - 5:50
    And then on the x-axis,
    it's all positive.
  • 5:50 - 5:53
    And I'll let you think about
    whether the domain here
  • 5:53 - 5:56
    is-- well, when you
    think about it--
  • 5:56 - 5:58
    is a logarithmic
    function defined
  • 5:58 - 6:03
    for an x that is not positive?
  • 6:03 - 6:07
    So is there any power that I can
    raise five to that I can get 0?
  • 6:07 - 6:08
    No.
  • 6:08 - 6:11
    You could raise five to an
    infinitely negative power
  • 6:11 - 6:14
    to get a very, very, very, very
    small number that approaches
  • 6:14 - 6:16
    zero, but you can
    never get-- there's
  • 6:16 - 6:18
    no power that you can
    raise 5 to to get 0.
  • 6:18 - 6:20
    So x cannot be 0.
  • 6:20 - 6:22
    And there's no power
    then you could raise 5
  • 6:22 - 6:24
    to get another negative number.
  • 6:24 - 6:26
    So x can also not be
    a negative number.
  • 6:26 - 6:28
    So the domain of this function
    right over here-- and this
  • 6:28 - 6:30
    is relevant, because we want
    to think about what we're
  • 6:30 - 6:34
    graphing-- the domain here is
    x has to be greater than zero.
  • 6:34 - 6:35
    Let me write that down.
  • 6:35 - 6:40
    The domain here is that x
    has to be greater than 0.
  • 6:40 - 6:41
    So we're only going
    to be able to graph
  • 6:41 - 6:46
    this function in
    the positive x-axis.
  • 6:46 - 6:48
    So with that out of the
    way, x gets as large as 25.
  • 6:48 - 6:51
    So let me graph-- we
    put those points here.
  • 6:51 - 6:57
    So that is 5, 10,
    15, 20, and 25.
  • 6:57 - 6:59
    And then let's plot these.
  • 6:59 - 7:00
    So the first one is in blue.
  • 7:00 - 7:03
    When x is 1/25 and
    y is negative 2--
  • 7:03 - 7:06
    When x is 1/25 so
    1 is there-- 1/25
  • 7:06 - 7:10
    is going to be really close to
    there-- Then y is negative 2.
  • 7:10 - 7:13
    So it's going to be
    like right over there,
  • 7:13 - 7:14
    not quite at the y-axis.
  • 7:14 - 7:17
    We're at 1/25 to the
    right of the y-axis.
  • 7:17 - 7:18
    But pretty close.
  • 7:18 - 7:19
    So that's right over there.
  • 7:19 - 7:24
    That is 1 over 25, comma
    negative 2 right over there.
  • 7:24 - 7:26
    Then, when x is one
    fifth, which is slightly
  • 7:26 - 7:31
    further to the right, one
    fifth y is negative 1.
  • 7:31 - 7:33
    So right over there.
  • 7:33 - 7:37
    So this is one
    fifth, negative 1.
  • 7:37 - 7:40
    Then when x is 1, y is 0.
  • 7:40 - 7:43
    So 1 might be right there.
  • 7:43 - 7:47
    So this is the point 1,0.
  • 7:47 - 7:51
    And then when x is 5, y is 1.
  • 7:51 - 7:53
    When x is 5, I covered it
    over here, when this is five,
  • 7:53 - 7:57
    y is 1.
  • 7:57 - 7:59
    So that's the point 5,1.
  • 7:59 - 8:02
    And then finally,
    when x is 25, y is 2.
  • 8:08 - 8:11
    So this is 25,2.
  • 8:11 - 8:13
    And then I can
    graph the function.
  • 8:13 - 8:17
    And I'll do it-- let me do it
    in a color-- I'll use this pink.
  • 8:17 - 8:24
    So as x gets super, super,
    super, super small, y goes
  • 8:24 - 8:26
    to negative infinity.
  • 8:26 - 8:30
    It gets really small-- to
    get x's or as x becomes--
  • 8:30 - 8:34
    if you say what power do
    you have to raise 5 to
  • 8:34 - 8:37
    to get 0.0001?
  • 8:37 - 8:39
    It has to be very, very,
    very negative power.
  • 8:39 - 8:43
    So y is going to be very
    negative as we approach 0.
  • 8:43 - 8:47
    And then it kind of
    moves up like that.
  • 8:47 - 8:53
    And then starts to kind of
    curve to the right like that.
  • 8:53 - 8:55
    And this thing
    right over here, is
  • 8:55 - 8:59
    going to keep going down at
    a steeper and steeper rate.
  • 8:59 - 9:03
    And it's never going
    to quite touch.
  • 9:03 - 9:04
    the y-axis.
  • 9:04 - 9:06
    It's going to get closer
    and closer to the y-axis.
  • 9:06 - 9:10
    But it's never going
    to be quite touch it.
Title:
Graphing Logarithmic Functions
Description:

more » « less
Video Language:
English
Team:
Khan Academy
Duration:
09:10

English subtitles

Revisions Compare revisions