< Return to Video

Definite integral of absolute value

  • 0:00 - 0:02
    - [Voiceover] So we
    have f of x being equal
  • 0:02 - 0:05
    to the absolute value of x plus two.
  • 0:05 - 0:07
    And we wanna evaluate
    the definite integral
  • 0:07 - 0:10
    from negative four to zero of f of x, dx.
  • 0:10 - 0:12
    And like always, pause this video
  • 0:12 - 0:13
    and see if you can work through this.
  • 0:13 - 0:15
    Now when you first do this you might
  • 0:15 - 0:16
    stumble around a little bit, because
  • 0:16 - 0:18
    how do you take the anti-derivative
  • 0:18 - 0:20
    of an absolute value function?
  • 0:20 - 0:22
    And the key here is to,
    one way to approach it
  • 0:22 - 0:25
    is to rewrite f of x
    without the absolute value
  • 0:25 - 0:27
    and we can do that by rewriting it
  • 0:27 - 0:29
    as a piecewise function.
  • 0:30 - 0:32
    And the way I'm gonna
    do it, I'm gonna think
  • 0:32 - 0:36
    about intervals where whatever we take
  • 0:36 - 0:38
    inside the absolute value's
    going to be positive
  • 0:38 - 0:40
    and other intervals where everything
  • 0:40 - 0:41
    that we take inside the absolute value
  • 0:41 - 0:43
    is going to be negative.
  • 0:43 - 0:46
    And the point at which we change
  • 0:46 - 0:49
    is where x plus two is equal to zero
  • 0:49 - 0:51
    or x is equal to negative two.
  • 0:51 - 0:53
    So let's just think about the intervals
  • 0:53 - 0:57
    x is less than negative
    two and x is greater than
  • 0:57 - 0:59
    or equal to negative two.
  • 0:59 - 1:00
    And this could have been less than
  • 1:00 - 1:02
    or equal, in which case this
    would have been greater than,
  • 1:02 - 1:04
    either way it would
    have been equal to this
  • 1:04 - 1:07
    absolute vale, this is a
    continuous function here.
  • 1:07 - 1:09
    And so when, let's do the easier case.
  • 1:09 - 1:12
    When x is greater than
    or equal to negative two
  • 1:12 - 1:15
    then x plus two is going to be positive,
  • 1:15 - 1:17
    or it's going to be greater than
  • 1:17 - 1:20
    or equal to zero, and so
    the absolute value of it
  • 1:20 - 1:22
    is just going to be x plus two.
  • 1:22 - 1:24
    So it's going to be x plus two
  • 1:24 - 1:26
    when x is greater than
    or equal to negative two.
  • 1:26 - 1:29
    And what about when x is
    less than negative two?
  • 1:29 - 1:31
    Well when x is less than negative two,
  • 1:31 - 1:35
    x plus two is going to be negative,
  • 1:35 - 1:36
    and then if you take the absolute value
  • 1:36 - 1:38
    of a negative number you're gonna take
  • 1:38 - 1:39
    the opposite of it.
  • 1:39 - 1:43
    So this is going to be
    negative x plus two.
  • 1:43 - 1:46
    And to really help grok
    this, 'cause frankly
  • 1:46 - 1:48
    this is the hardest part
    of what we're doing,
  • 1:48 - 1:50
    and really this is more
    algebra than calculus.
  • 1:50 - 1:53
    Let me draw the absolute value function
  • 1:53 - 1:54
    to make this clear.
  • 1:54 - 1:57
    So that is my x-axis, that is my y-axis
  • 2:00 - 2:04
    and let's say we're here at negative two.
  • 2:04 - 2:08
    And so when we are less
    than the negative two,
  • 2:08 - 2:11
    when x is less than negative two my graph
  • 2:11 - 2:12
    is going to look like this.
  • 2:12 - 2:15
    It is going to look something,
  • 2:19 - 2:21
    it's gonna look like that.
  • 2:22 - 2:25
    And when we are greater than negative two,
  • 2:25 - 2:28
    do that in a different
    color, when we are greater
  • 2:28 - 2:31
    than negative two it's
    going to look like this.
  • 2:33 - 2:34
    It's going to look like that.
  • 2:34 - 2:37
    And so notice this is in blue we have,
  • 2:37 - 2:40
    this is the graph x plus two, we can say
  • 2:40 - 2:42
    this is a graph of y equals x plus two.
  • 2:42 - 2:44
    And what we have in
    magenta right over here,
  • 2:44 - 2:48
    this is the graph of negative x minus two.
  • 2:48 - 2:50
    It has a negative slope and we intercept
  • 2:50 - 2:52
    the y-axis at negative two.
  • 2:53 - 2:54
    So it makes sense.
  • 2:54 - 2:56
    There's multiple ways that
    you could reason through this.
  • 2:56 - 2:57
    Now once we break it up then we can
  • 2:57 - 2:59
    break up the integral.
  • 2:59 - 3:00
    We could say that what we wrote here,
  • 3:00 - 3:02
    this is equal to the integral
  • 3:02 - 3:06
    from negative four to
    two, sorry negative four
  • 3:06 - 3:10
    to negative two of f of
    x, which is in that case
  • 3:11 - 3:15
    it's going to be negative x minus two,
  • 3:15 - 3:18
    I just distributed the
    negative sign there.
  • 3:18 - 3:21
    Dx, and then plus the definite integral
  • 3:24 - 3:27
    going from negative two to zero
  • 3:27 - 3:29
    of x plus two, dx.
  • 3:32 - 3:33
    And just to make sure we know
  • 3:33 - 3:36
    what we're doin' here,
    if this is negative four
  • 3:36 - 3:39
    right over here, this is
    zero, that first integral
  • 3:39 - 3:43
    is gonna give us this
    area right over here.
  • 3:45 - 3:48
    What's the area under the
    curve negative x minus two,
  • 3:48 - 3:52
    under that curve or under that
    line and above the x-axis.
  • 3:52 - 3:55
    And the second integral
    is gonna give us this area
  • 3:55 - 3:57
    right over here between x plus two
  • 3:57 - 4:01
    and the x-axis going from
    negative two to zero.
  • 4:03 - 4:06
    And so let's evaluate each of these
  • 4:06 - 4:07
    and you might even be able
    to just evaluate these
  • 4:07 - 4:09
    with a little bit of triangle areas,
  • 4:09 - 4:12
    but let's just do this
    analytically or algebraically.
  • 4:12 - 4:14
    And so what's the
    anti-derivative of negative x?
  • 4:14 - 4:18
    Well that's negative x-squared over two,
  • 4:18 - 4:20
    and then we have the negative two,
  • 4:20 - 4:21
    so this is gonna be the anti-derivative
  • 4:21 - 4:23
    is negative two x, we're
    gonna evaluate that
  • 4:23 - 4:26
    at negative two and negative four.
  • 4:31 - 4:33
    And so that part is going to be what?
  • 4:33 - 4:36
    Negative two squared, so it's the negative
  • 4:36 - 4:37
    of negative two squared.
  • 4:37 - 4:41
    So it's negative four over two
    minus two times negative two.
  • 4:41 - 4:42
    So plus four.
  • 4:43 - 4:46
    So that's it evaluated at negative two.
  • 4:46 - 4:50
    And then minus, if we
    evaluate it at negative four.
  • 4:53 - 4:55
    So we're gonna have minus
    negative four squared
  • 4:55 - 4:59
    is 16 over two, minus
    two times negative four.
  • 4:59 - 5:01
    So that is plus eight.
  • 5:03 - 5:06
    So what is that going to give us?
  • 5:06 - 5:10
    So this is negative two,
    this right over here
  • 5:11 - 5:15
    is negative eight, so the
    second term right over here
  • 5:18 - 5:20
    is just going to be equal to zero.
  • 5:20 - 5:21
    Did I do that right?
  • 5:21 - 5:24
    Yeah, the 16 over two, it's
    negative and this is positive.
  • 5:24 - 5:26
    Okay, so this is just going to be zero.
  • 5:26 - 5:29
    And this is negative two plus four
  • 5:29 - 5:31
    which is going to be equal to two.
  • 5:31 - 5:35
    So what we have here in
    magenta is equal to two.
  • 5:35 - 5:37
    And what we have here in the blue,
  • 5:37 - 5:39
    well let's see, this
    is the anti-derivative
  • 5:39 - 5:42
    of x-squared over two, plus two x,
  • 5:45 - 5:48
    gonna evaluate it at
    zero and negative two.
  • 5:48 - 5:49
    You evaluate this thing at zero,
  • 5:49 - 5:51
    it's just gonna be zero and from that
  • 5:51 - 5:54
    you're going to subtract
    negative two squared over two.
  • 5:54 - 5:58
    That is positive four over two
  • 5:58 - 5:59
    which is positive two.
  • 5:59 - 6:01
    And then plus two times negative two.
  • 6:01 - 6:02
    So minus four.
  • 6:06 - 6:10
    And so this is going to be the negative
  • 6:10 - 6:12
    of negative two, or positive two.
  • 6:13 - 6:15
    So it's two plus two.
  • 6:15 - 6:16
    And that makes sense that what we have
  • 6:16 - 6:19
    in magenta here is two
    and what we have over here
  • 6:19 - 6:22
    is two, there's the symmetry here.
  • 6:23 - 6:25
    There is a symmetry here.
  • 6:25 - 6:27
    And so you add 'em all together
  • 6:27 - 6:32
    and you get our integral is
    going to be equal to four.
  • 6:32 - 6:34
    And once again, just as a reality check
  • 6:34 - 6:36
    you could say, look,
    the height here is two,
  • 6:36 - 6:39
    the width, the base here is two.
  • 6:39 - 6:42
    Two times two times one-half
    is indeed equal to two.
  • 6:42 - 6:44
    Same thing over here.
  • 6:44 - 6:45
    So that's the more geometric argument
  • 6:45 - 6:48
    for why that area's two, that area is two,
  • 6:48 - 6:51
    add 'em together you get positive four.
Title:
Definite integral of absolute value
Description:

more » « less
Video Language:
English
Duration:
06:53

English subtitles

Revisions