< Return to Video

Equation of a tangent line

  • 0:00 - 0:01
  • 0:01 - 0:05
    I've told you multiple times
    that the derivative of a curve
  • 0:05 - 0:08
    at a point is the slope of the
    tangent line, but our
  • 0:08 - 0:10
    friend [? Akosh ?]
  • 0:10 - 0:13
    sent me a problem where it
    actually wants you to find the
  • 0:13 - 0:14
    equation of the tangent line.
  • 0:14 - 0:16
    And I realize, I've never
    actually done that.
  • 0:16 - 0:17
    So it's worthwhile.
  • 0:17 - 0:18
    So let's do that.
  • 0:18 - 0:21
    So it says, find the equation
    of the tangent line to the
  • 0:21 - 0:35
    function f of x is equal to x e
    to the x at x is equal to 1.
  • 0:35 - 0:37
    So let's just get an intuition
    of what we're even looking for.
  • 0:37 - 0:41
    So this function is going to
    look something like, I actually
  • 0:41 - 0:44
    graphed it, because it's not
    a trivial function to graph.
  • 0:44 - 0:47
    So this is x e to the x,
    this is what it looks like.
  • 0:47 - 0:49
    I'm just using a graphing
    calculator, and you can
  • 0:49 - 0:51
    see, I just typed it in.
  • 0:51 - 0:53
    And what this is
    asking us, is ok.
  • 0:53 - 0:54
    At the point, x is equal to 1.
  • 0:54 - 0:56
    So this is the point
    x is equal to one.
  • 0:56 - 0:59
    So f of x is going to be
    someplace up here, and
  • 0:59 - 1:03
    actually, f of x is going
    to be equal to e, right?
  • 1:03 - 1:08
    Because f of 1 is
    equal to what?
  • 1:08 - 1:10
    1 times e to the 1.
  • 1:10 - 1:11
    So it equals e.
  • 1:11 - 1:15
    So we're saying at the point,
    at the point 1 comma e, so at
  • 1:15 - 1:18
    the point 1 comma 2.71,
    whatever, whatever.
  • 1:18 - 1:19
    So that's what point?
  • 1:19 - 1:21
    That's this point.
  • 1:21 - 1:22
    So it's right here.
  • 1:22 - 1:26
    2 point, this is e right
    here, the point 1 comma e.
  • 1:26 - 1:29
    So we want to do is figure
    out the equation of the
  • 1:29 - 1:32
    line tangent to this point.
  • 1:32 - 1:34
    So what we're going to do, is
    we're going to solve it by
  • 1:34 - 1:36
    figuring out its slope, which
    is just the derivative
  • 1:36 - 1:36
    at that point.
  • 1:36 - 1:38
    So we have to figure
    out the derivative at
  • 1:38 - 1:39
    exactly this point.
  • 1:39 - 1:41
    And then we use what we learned
    from algebra 1 to figure out
  • 1:41 - 1:44
    its equation, and we'll graph
    it here, just to confirm that
  • 1:44 - 1:48
    we actually figured out the
    equation of the tangent line.
  • 1:48 - 1:51
    So the first thing we want to
    know is the slope of the
  • 1:51 - 1:55
    tangent line, and that's just
    the derivative at this point.
  • 1:55 - 1:58
    When x is equal to 1, or
    at the point 1 comma e.
  • 1:58 - 2:00
    So what's the
    derivative of this?
  • 2:00 - 2:03
    So f prime of x.
  • 2:03 - 2:07
    f prime of x is equal to,
    well, this looks like a
  • 2:07 - 2:09
    job for the product rule.
  • 2:09 - 2:11
    Because we know how to figure
    out the derivative of x, we
  • 2:11 - 2:13
    know how to figure out the
    derivative of e to the x, and
  • 2:13 - 2:14
    they're just multiplying
    by each other.
  • 2:14 - 2:16
    So the product rules help us.
  • 2:16 - 2:18
    The derivative of this thing
    is going to be equal to the
  • 2:18 - 2:20
    derivative of the first
    expression of the
  • 2:20 - 2:21
    first function.
  • 2:21 - 2:26
    So the derivative of x is just
    1, times the second function,
  • 2:26 - 2:32
    times e to the x, plus the
    first function, x, times the
  • 2:32 - 2:34
    derivative of the
    second function.
  • 2:34 - 2:36
    So what's the derivative
    of e to the x?
  • 2:36 - 2:40
    And that's what I find so
    amazing about the number e, or
  • 2:40 - 2:42
    the function e to the x, is
    that the derivative of e
  • 2:42 - 2:44
    to the x is e to the x.
  • 2:44 - 2:46
    The slope at any point of
    this curve is equal to the
  • 2:46 - 2:48
    value of the function.
  • 2:48 - 2:50
    So this is the derivative.
  • 2:50 - 2:53
    So what is the derivative of
    this function at the point x
  • 2:53 - 2:56
    is equal to 1, or at
    the point 1 comma e?
  • 2:56 - 2:57
    So we just evaluate it.
  • 2:57 - 3:06
    We say f prime of 1 is equal to
    1 time e to the 1 plus 1 times
  • 3:06 - 3:11
    e to the 1, well, that's
    just equal e plus e.
  • 3:11 - 3:15
    And that's just equal to 2 e.
  • 3:15 - 3:17
    And you know, we could figure
    out what that number, e is just
  • 3:17 - 3:20
    a constant number, but we write
    e because it's easier to write
  • 3:20 - 3:24
    e than 2.7 et cetera, and an
    infinite number of digits,
  • 3:24 - 3:25
    so we just write 2e.
  • 3:25 - 3:29
    So this is the slope of the
    equation, or this is the slope
  • 3:29 - 3:32
    of the curve when x is equal to
    one, or at the point
  • 3:32 - 3:35
    1e, or 1 f of 1.
  • 3:35 - 3:39
    So what is the equation
    of the tangent line?
  • 3:39 - 3:41
    So let's go ahead and take this
    form, the equation's going to
  • 3:41 - 3:45
    be y is equal to, I'm just
    writing it in the, you know,
  • 3:45 - 3:49
    not the point slope, the mx
    plus b form that you
  • 3:49 - 3:50
    learned in algebra.
  • 3:50 - 3:53
    So the slope is going to be 2e.
  • 3:53 - 3:53
    We just learned that here.
  • 3:53 - 3:56
    That's the derivative
    when x is equal to 1.
  • 3:56 - 4:02
    So 2e times x plus
    the y-intercept.
  • 4:02 - 4:04
    So if we can figure out
    the y-intercept of this
  • 4:04 - 4:05
    line, we are done.
  • 4:05 - 4:09
    We have figured out the
    equation of the tangent line.
  • 4:09 - 4:11
    So how do we do that?
  • 4:11 - 4:14
    Well, if we knew a y or
    an x where this equation
  • 4:14 - 4:16
    goes through, we could
    then solve for b.
  • 4:16 - 4:20
    And we know a y and x that
    satisfies this equation.
  • 4:20 - 4:22
    The point 1 comma e.
  • 4:22 - 4:26
    The point where we're trying to
    find the tangent line, right?
  • 4:26 - 4:28
    So this point, 1 comma e,
    this is where we want to
  • 4:28 - 4:30
    find the tangent line.
  • 4:30 - 4:31
    And by definition, the
    tangent line is going to
  • 4:31 - 4:33
    go through that point.
  • 4:33 - 4:37
    So let's substitute those
    points back in here, or this
  • 4:37 - 4:41
    point back into this equation,
    and then solve for b.
  • 4:41 - 4:48
    So y is equal to e, is equal to
    2 e, that's just the slope at
  • 4:48 - 4:52
    that point, times x,
    times 1, plus b.
  • 4:52 - 4:56
    It might confuse you, because
    e, you'll say, oh, e,
  • 4:56 - 4:56
    is that a variable?
  • 4:56 - 4:58
    No, it's a number,
    remember, it's like pi.
  • 4:58 - 4:58
    It's a number.
  • 4:58 - 5:01
    You can substitute 2.7 whatever
    there, but we're not doing
  • 5:01 - 5:02
    that, because this is cleaner.
  • 5:02 - 5:03
    And let's solve.
  • 5:03 - 5:08
    So you get e is
    equal to 2e plus b.
  • 5:08 - 5:10
    Let's subtract 2e
    from both sides.
  • 5:10 - 5:13
    You get b is equal
    to e minus 2e.
  • 5:13 - 5:16
    b is equal to minus e.
  • 5:16 - 5:17
    Now we're done.
  • 5:17 - 5:22
    What's the equation
    of the tangent line?
  • 5:22 - 5:30
    It is y is equal to
    2 times e x plus b.
  • 5:30 - 5:33
    But b is minus e,
    so it's minus e.
  • 5:33 - 5:36
    So this is the equation
    of the tangent line.
  • 5:36 - 5:38
    If you don't like these e's
    there, you could replace that
  • 5:38 - 5:41
    with the number 2.7 et cetera,
    and this would become 5 point
  • 5:41 - 5:44
    something, and this would
    just be minus 2.7 something.
  • 5:44 - 5:45
    But this looks neater.
  • 5:45 - 5:46
    And let's confirm.
  • 5:46 - 5:50
    Let's use this little graphing
    calculator to confirm that that
  • 5:50 - 5:53
    really is the equation
    of the tangent line.
  • 5:53 - 5:55
    So let me type it in here.
  • 5:55 - 6:13
    So it's 2, 2 times e times x,
    right, that's 2ex minus e.
  • 6:13 - 6:17
    And let us graph this line.
  • 6:17 - 6:18
    There we go.
  • 6:18 - 6:19
    It graphed it.
  • 6:19 - 6:23
    And notice that that line, that
    green line, I don't know if you
  • 6:23 - 6:25
    can, maybe I need to make this
    bigger for it to
  • 6:25 - 6:27
    show up, bolder.
  • 6:27 - 6:28
    I don't know if that helps.
  • 6:28 - 6:31
  • 6:31 - 6:34
    But if you look here, so this
    red, this is our original
  • 6:34 - 6:37
    equation, x e to the
    x, that's this curve.
  • 6:37 - 6:41
    We want to know equation
    of the tangent line
  • 6:41 - 6:43
    at x is equal to 1.
  • 6:43 - 6:44
    So it's the point
    x is equal to 1.
  • 6:44 - 6:48
    And when x is equal to 1, f of
    x is e, right, you can just
  • 6:48 - 6:50
    substitute back into the
    original equation to get that.
  • 6:50 - 6:53
    So this is the
    point, 1 comma e.
  • 6:53 - 6:55
    So the equation of the tangent
    line, its slope is going to be
  • 6:55 - 6:57
    the derivative at this point.
  • 6:57 - 7:00
    So we solved the derivative of
    this function, and evaluated
  • 7:00 - 7:03
    it at x is equal to 1.
  • 7:03 - 7:04
    That's what we did here.
  • 7:04 - 7:07
    We figured out the derivative,
    evaluated x equals 1.
  • 7:07 - 7:10
    And so we said, OK, the slope.
  • 7:10 - 7:16
    The slope at when x is equal to
    1 and y is equal to e, the
  • 7:16 - 7:19
    slope at that point
    is equal to 2e.
  • 7:19 - 7:21
    And we figured that out
    from the derivative.
  • 7:21 - 7:24
    And then we just used our
    algebra 1 skills to figure out
  • 7:24 - 7:25
    the equation of that line.
  • 7:25 - 7:26
    And how did we do that?
  • 7:26 - 7:28
    We knew the slope, because
    that's just the derivative
  • 7:28 - 7:29
    at that point.
  • 7:29 - 7:33
    And then we just have to
    solve for the y-intercept.
  • 7:33 - 7:36
    And the way we did that is we
    said, well, the point 1 comma e
  • 7:36 - 7:38
    is on this green line as well.
  • 7:38 - 7:41
    So we substituted that in, and
    solve for our y-intercept,
  • 7:41 - 7:44
    which we got as minus e, and
    notice that this line
  • 7:44 - 7:47
    intersects the y-axis at minus
    e, that's about minus
  • 7:47 - 7:48
    2.7 something.
  • 7:48 - 7:49
    And there we have it.
  • 7:49 - 7:53
    We have shown that, and
    visually, it shows that
  • 7:53 - 7:55
    this is the tangent line.
  • 7:55 - 7:59
    Anyway, hope you found
    that vaguely useful.
  • 7:59 - 8:01
    If you did, you should
    thank [? Akosh ?]
  • 8:01 - 8:05
    for being unusually persistent,
    and having me do this problem.
  • 8:05 - 8:07
    See you in the next video.
Title:
Equation of a tangent line
Description:

Finding the equation of the line tangent to f(x)=xe^x when x=1

more » « less
Video Language:
English
Duration:
08:07

English subtitles

Revisions