< Return to Video

Binomial Theorem (part 2)

  • 0:00 - 0:01
  • 0:01 - 0:08
    In the last video we saw that
    if you wanted to take a plus b
  • 0:08 - 0:12
    to the nth power, and if n is
    larger than, really, 2-- but
  • 0:12 - 0:16
    really, especially larger than
    3-- it is very tedious to
  • 0:16 - 0:18
    multiply it out, essentially
    using the distributive
  • 0:18 - 0:21
    property, or doing polynomial
    multiplication, or FOIL, or
  • 0:21 - 0:22
    however you learned it.
  • 0:22 - 0:24
    It is extremely,
    extremely tedious.
  • 0:24 - 0:27
    And then we learned that the
    binomial theorem, which said
  • 0:27 - 0:34
    this, that that is equal to
    the sum from k is equal to 0,
  • 0:34 - 0:39
    to n of n choose k-- right?
  • 0:39 - 0:43
    Where that was what we learned
    in combinatorics as the
  • 0:43 - 0:44
    binomial coefficient.
  • 0:44 - 0:46
    And that's why it's called a
    binomial coefficient, because
  • 0:46 - 0:49
    it's actually the coefficient
    of the binomial theorem.-- Of
  • 0:49 - 0:54
    x to the n minus k-- oh,
    sorry, I keep writing x.
  • 0:54 - 0:55
    Let me undo that.
  • 0:55 - 0:57
    Edit, undo.
  • 0:57 - 0:59
    Edit, undo.
  • 0:59 - 1:01
    Oh, it's taking too long.
  • 1:01 - 1:06
    Oh, let me just-- oh no, that's
    not what I wanted to do.
  • 1:06 - 1:08
    Let me erase it.
  • 1:08 - 1:09
    OK.
  • 1:09 - 1:11
    I keep writing x.
  • 1:11 - 1:13
    It could be an x, but then
    this would have to be
  • 1:13 - 1:14
    an x here, as well.
  • 1:14 - 1:17
  • 1:17 - 1:18
    Maybe I should do that.
  • 1:18 - 1:27
    --Of a to the n minus
    k, times b to the k.
  • 1:27 - 1:30
    So each term-- you know, the n
    stays constant-- but each term,
  • 1:30 - 1:32
    you start at k equals 0 and
    you keep incrementing up.
  • 1:32 - 1:35
    And we did an example to solve
    a plus b to the fourth power
  • 1:35 - 1:37
    in the previous video.
  • 1:37 - 1:42
    And as you saw, that was
    tedious, but less tedious than
  • 1:42 - 1:44
    actually multiplying it out.
  • 1:44 - 1:49
    And if you get really fast
    at computing n choose k
  • 1:49 - 1:53
    for different ns and k, it
    could be reasonably fast.
  • 1:53 - 1:55
    So what I want to do is, I'm
    going to show you a slightly
  • 1:55 - 1:58
    faster method than
    what we just did.
  • 1:58 - 2:02
    Kind of a faster way to compute
    the binomial coefficients.
  • 2:02 - 2:04
    And then after that, I'm going
    to show you a super fast way
  • 2:04 - 2:07
    that, short of memorizing the
    coefficients-- which I actually
  • 2:07 - 2:12
    know some people who've done
    that-- is a pretty amazing way
  • 2:12 - 2:15
    to essentially multiply
    out any binomial.
  • 2:15 - 2:17
    So what's my pseudo
    fast way of doing it?
  • 2:17 - 2:22
    Well, I hinted in the last
    presentation that those
  • 2:22 - 2:25
    coefficients were actually
    terms of a Pascal triangle.
  • 2:25 - 2:27
    So what's a Pascal triangle?
  • 2:27 - 2:30
    So if we start off with a 1 and
    then you just go-- actually,
  • 2:30 - 2:33
    let me do it-- well, yeah,
    let me do it right here.
  • 2:33 - 2:37
    And then, actually let
    me start with two 1s.
  • 2:37 - 2:41
    And what you do is, you take
    the sum of both of these.
  • 2:41 - 2:43
    So that's a 2.
  • 2:43 - 2:47
    And then you bring down
    a 1, to the left and
  • 2:47 - 2:48
    the right hand side.
  • 2:48 - 2:51
    And notice, these are
    the coefficients of
  • 2:51 - 2:52
    a plus b squared.
  • 2:52 - 2:55
  • 2:55 - 2:58
    And these are the
    coefficients of a plus b.
  • 2:58 - 3:01
    You could say a
    plus b to the one.
  • 3:01 - 3:02
    1a plus 1b.
  • 3:02 - 3:07
    This is a squared-- so you
    could rewrite, a plus b
  • 3:07 - 3:14
    squared. is 1a squared
    plus 2ab plus 1b squared.
  • 3:14 - 3:17
    So these are the coefficients
    of a plus b squared.
  • 3:17 - 3:20
    Let me arbitrarily
    switch colors.
  • 3:20 - 3:24
    And so, 1 plus 2 is 3.
  • 3:24 - 3:26
    2 plus 1 is 3.
  • 3:26 - 3:28
    Bring down the 1.
  • 3:28 - 3:30
    Bring down the 1.
  • 3:30 - 3:32
    And now we have the
    coefficients for a
  • 3:32 - 3:33
    plus b to the third.
  • 3:33 - 3:36
    Which we computed in
    the-- that was the very
  • 3:36 - 3:36
    first thing we did.
  • 3:36 - 3:37
    We actually multiplied it out.
  • 3:37 - 3:40
    And we just know the pattern.
  • 3:40 - 3:41
    The first coefficient is 1.
  • 3:41 - 3:47
    So it's 1a to the third, b to
    the zero-- so we don't have
  • 3:47 - 3:50
    to write the b-- plus 3.
  • 3:50 - 3:53
    We just decrement
    this exponent 1.
  • 3:53 - 4:03
    3a squared b plus 3ab squared,
    and then plus 1a to the zero--
  • 4:03 - 4:07
    which is just 1-- b cubed.
  • 4:07 - 4:08
    So that was pretty fast.
  • 4:08 - 4:10
    And we can keep going down
    the Pascal triangle.
  • 4:10 - 4:12
    So let's do the next one.
  • 4:12 - 4:14
    So we can bring down a 1.
  • 4:14 - 4:17
    1 plus 3 is 4.
  • 4:17 - 4:18
    3 plus 3 is 6.
  • 4:18 - 4:19
    And this is neat.
  • 4:19 - 4:22
    I mean, just very simply, you
    can actually generate binomial
  • 4:22 - 4:25
    coefficients without
    having to compute them.
  • 4:25 - 4:27
    Very simple, I guess you
    could call it an algorithm.
  • 4:27 - 4:30
    Or drawing.
  • 4:30 - 4:32
    And it's symmetric, just as
    you would expect it, right?
  • 4:32 - 4:35
    Because you could
    easily switch b and a.
  • 4:35 - 4:37
    a plus b is the same thing
    as b plus a, so you
  • 4:37 - 4:39
    should essentially
    get the same answer.
  • 4:39 - 4:41
    And so, we just-- very quickly
    we figured out the binomial
  • 4:41 - 4:43
    coefficients for a
    plus b to the fourth.
  • 4:43 - 4:47
    Which was a lot faster than
    we did in the last example.
  • 4:47 - 4:49
    a plus b to the fourth.
  • 4:49 - 4:51
    So then we-- I think
    you get the point.
  • 4:51 - 4:55
    But, so it's 1-- let me write
    in a different color-- 1a
  • 4:55 - 5:00
    to the fourth, b to the
    zero, plus 4a cubed b
  • 5:00 - 5:03
    squared-- b to the one.
  • 5:03 - 5:08
    Plus 6a squared b squared.
  • 5:08 - 5:11
    Which makes sense that, you
    know, this is a middle number
  • 5:11 - 5:13
    and they both-- and a and b
    have the same exponent
  • 5:13 - 5:14
    at this point.
  • 5:14 - 5:19
    And then plus 4a-- we
    decrement it-- b cubed.
  • 5:19 - 5:21
    Plus b to the fourth.
  • 5:21 - 5:23
    1b to the fourth, right? a
    to the zero, so that's what
  • 5:23 - 5:24
    we didn't write there.
  • 5:24 - 5:27
    So 1b to the fourth.
  • 5:27 - 5:29
    And that was very fast compared
    to what we had to do at
  • 5:29 - 5:30
    the end of the last video.
  • 5:30 - 5:32
    We could just keep going.
  • 5:32 - 5:34
    You know, for 5.
  • 5:34 - 5:38
    So 1 plus 4 is five.
  • 5:38 - 5:40
    4 plus 6 is 10.
  • 5:40 - 5:43
    6 plus 4 is 10.
  • 5:43 - 5:45
    4 plus 1 is 5.
  • 5:45 - 5:46
    Bring down the 1.
  • 5:46 - 5:49
    So these are the coefficients
    for the expansion of a
  • 5:49 - 5:52
    plus b to the fifth power.
  • 5:52 - 5:54
    And so this is a reasonably
    fast way of doing it, although
  • 5:54 - 5:59
    it can get-- one, it will
    take a lot of space.
  • 5:59 - 6:05
    And it can work reasonably
    well, you know, for up to a
  • 6:05 - 6:08
    power of eight or nine or ten.
  • 6:08 - 6:10
    Even then it starts to get
    pretty big and cumbersome.
  • 6:10 - 6:13
    But you know, for powers
    up to seven or eight or
  • 6:13 - 6:14
    nine, you could do this.
  • 6:14 - 6:17
    You could draw it out really
    fast and do this, and it's
  • 6:17 - 6:20
    probably faster than actually
    computing each of the
  • 6:20 - 6:21
    binomial coefficients.
  • 6:21 - 6:24
    Although you might be pretty
    fast at computing n choose k,
  • 6:24 - 6:26
    in which you don't
    have to do this.
  • 6:26 - 6:29
    So with that out of the way,
    let me show you an even faster
  • 6:29 - 6:31
    way of doing it, short
    of memorizing it.
  • 6:31 - 6:34
    And this will allow you to
    really calculate a plus b
  • 6:34 - 6:37
    to the nth-- you know, to
    the twentieth power--
  • 6:37 - 6:38
    almost in your head.
  • 6:38 - 6:42
    Depending on how good you are
    at arithmetic in your head.
  • 6:42 - 6:43
    So here is the trick.
  • 6:43 - 6:46
    And I encourage you to
    experiment for why it
  • 6:46 - 6:48
    works, but it does work.
  • 6:48 - 6:50
    And I mean it's
    not even a trick.
  • 6:50 - 6:54
    It's just-- and this Pascal's
    triangle isn't even a trick.
  • 6:54 - 6:57
    Pascal's triangle is just an
    alternative way to generate
  • 6:57 - 7:00
    binomial coefficients, and what
    I'm about to show you is just
  • 7:00 - 7:03
    another way of essentially
    generating the binomial
  • 7:03 - 7:04
    coefficients.
  • 7:04 - 7:06
    Although it's probably a
    faster way to compute them.
  • 7:06 - 7:10
  • 7:10 - 7:15
    And it's a good project for you
    to think about why this works.
  • 7:15 - 7:17
    So I'm just going to start
    with a very concrete example.
  • 7:17 - 7:19
    Instead of a plus b, let
    me just do x plus y.
  • 7:19 - 7:23
    Just because you might
    see the binomial theorem
  • 7:23 - 7:24
    written that way.
  • 7:24 - 7:26
    So let's say x plus y
    to the tenth power.
  • 7:26 - 7:30
    This would take me all
    day if I was to actually
  • 7:30 - 7:32
    multiply it out.
  • 7:32 - 7:37
    It would take me probably 20
    to 30 minutes, without
  • 7:37 - 7:39
    making careless mistakes, to
    actually figure out all the
  • 7:39 - 7:40
    binomial coefficients.
  • 7:40 - 7:42
    Maybe not that long, but
    it would take me a while.
  • 7:42 - 7:44
    And to draw Pascal's triangle
    would fill up a whole page,
  • 7:44 - 7:46
    and I'd still probably
    make a careless mistake.
  • 7:46 - 7:47
    So how can I do this?
  • 7:47 - 7:51
    So what you do is-- so
    one thing you know.
  • 7:51 - 7:53
    This is going to have
    11 terms, right?
  • 7:53 - 7:55
    Because you're going to
    start with x to the
  • 7:55 - 7:56
    tenth, y to the zero.
  • 7:56 - 7:59
    And you're going to go all
    the way to y to the tenth.
  • 7:59 - 8:03
    So if you start at 0 and you
    go to 10, that's 11 terms.
  • 8:03 - 8:04
    So it has 11 terms.
  • 8:04 - 8:06
    What I want you to do
    is just write down the
  • 8:06 - 8:08
    first, just the numbers.
  • 8:08 - 8:09
    You know, you can almost
    count the terms.
  • 8:09 - 8:11
    You don't have to go all the
    way to 11, and I'll show you.
  • 8:11 - 8:13
    But actually, let's write
    all the way to 11.
  • 8:13 - 8:26
    So 1, 2, 3, 4, 5, 6,
    7, 8, 9, 10, 11.
  • 8:26 - 8:27
    Just squeezed it in.
  • 8:27 - 8:28
    And you'll see, you don't
    actually have to go
  • 8:28 - 8:29
    all the way to 11.
  • 8:29 - 8:31
    You could probably
    just stop at 6.
  • 8:31 - 8:31
    So here's the trick.
  • 8:31 - 8:34
    We know that the first
    term is going to be x
  • 8:34 - 8:37
    to the tenth, right?
  • 8:37 - 8:39
    We know that x to the tenth.
  • 8:39 - 8:41
    Actually, we know that it's
    going to be x to the tenth.
  • 8:41 - 8:43
    The second term is going
    to be x to the ninth.
  • 8:43 - 8:46
    Then it's going to
    be x to the eighth.
  • 8:46 - 8:48
    It's going to be x
    to the seventh.
  • 8:48 - 8:50
    A little tedious.
    x to the sixth.
  • 8:50 - 8:51
    x to the fifth.
  • 8:51 - 8:53
    x to the fourth.
  • 8:53 - 8:54
    x to the third.
  • 8:54 - 8:56
    x squared.
  • 8:56 - 8:57
    x.
  • 8:57 - 9:00
    And then there's going to be
    x to the zero, or just one.
  • 9:00 - 9:04
    Let me just do the y's.
  • 9:04 - 9:07
    So this was x to the tenth.
  • 9:07 - 9:10
    That's not bright
    enough, this color.
  • 9:10 - 9:12
    So this is y to the zero.
  • 9:12 - 9:13
    So we don't have to
    write it there.
  • 9:13 - 9:15
    But then we have a y.
  • 9:15 - 9:17
    y to the first.
  • 9:17 - 9:20
    y squared.
  • 9:20 - 9:22
    y to the third.
  • 9:22 - 9:24
    y to the fourth.
  • 9:24 - 9:25
    y to the fifth.
  • 9:25 - 9:27
    Which makes sense, this
    is the middle term.
  • 9:27 - 9:30
    y to the sixth.
  • 9:30 - 9:32
    y to the seventh.
  • 9:32 - 9:34
    y to the eighth.
  • 9:34 - 9:35
    y to the ninth.
  • 9:35 - 9:36
    I don't want you to get
    confused, each of these
  • 9:36 - 9:37
    is a separate term.
  • 9:37 - 9:39
    I don't want you to think
    I'm multiplying them all.
  • 9:39 - 9:43
  • 9:43 - 9:46
    And then, we just have to
    figure out the coefficients
  • 9:46 - 9:47
    on each of these terms.
  • 9:47 - 9:48
    Those are divider lines
    I attempted to draw.
  • 9:48 - 9:50
    I wasn't trying to
    confuse you more.
  • 9:50 - 9:53
    I just wanted to-- because they
    seemed to be running together,
  • 9:53 - 9:55
    each of the terms
    that I'm writing.
  • 9:55 - 9:56
    But I think you know
    what I'm doing.
  • 9:56 - 9:58
    So now we have to figure
    out the coefficients.
  • 9:58 - 10:00
    And then this is the neat part.
  • 10:00 - 10:02
    So we know that the coefficient
    on the first term-- let me draw
  • 10:02 - 10:05
    a dividing line here and here--
    the coefficient on the first
  • 10:05 - 10:07
    term is always 1, right?
  • 10:07 - 10:09
    So, the coefficient is 1.
  • 10:09 - 10:12
    So the coefficient on the
    second term is going to be the
  • 10:12 - 10:17
    exponent on the first term
    times its coefficient-- so 10
  • 10:17 - 10:20
    times 1-- divided by
    the term that it is.
  • 10:20 - 10:24
    So it's going to be 10
    times 1, divided by 1.
  • 10:24 - 10:26
    So it's going to be 10.
  • 10:26 - 10:28
    The third term's coefficient
    is going to be the
  • 10:28 - 10:30
    exponent on the x, right?
  • 10:30 - 10:35
    So it's 9 times its
    coefficient-- which is 10-- so
  • 10:35 - 10:40
    it's going to be 9 times 10--
    divided by the term it is.
  • 10:40 - 10:46
    So it's going to be 9 times its
    coefficient, 10, divided by 2.
  • 10:46 - 10:46
    So what's 9 times 10?
  • 10:46 - 10:51
    That's forty-- it's 90
    divided by 2 which is 45.
  • 10:51 - 10:53
    And you keep going.
  • 10:53 - 10:57
    The fourth term is going to be
    the third term's exponent-- so
  • 10:57 - 11:00
    it's going to be 8 times-- let
    me write this down in a
  • 11:00 - 11:07
    different color-- it's going to
    be 8 times its coefficient,
  • 11:07 - 11:11
    times 45 divided by
    which term it is.
  • 11:11 - 11:12
    So it's the third term.
  • 11:12 - 11:14
    Divided by 3.
  • 11:14 - 11:17
    Well, that's just 8 times 15.
  • 11:17 - 11:19
    And we'll see,
    that's 80 plus 40.
  • 11:19 - 11:21
    So that's equal to 120.
  • 11:21 - 11:24
    So that is the fourth term.
  • 11:24 - 11:26
    And so then let me just
    draw these dividers.
  • 11:26 - 11:28
    I know it's getting a
    little complicated.
  • 11:28 - 11:30
    And I'm writing it all out like
    this, but if you practice
  • 11:30 - 11:33
    this enough, you can actually
    just write it straight out.
  • 11:33 - 11:34
    And so the fifth term.
  • 11:34 - 11:35
    What is the fifth term?
  • 11:35 - 11:37
    Well, you take the
    exponent on the x.
  • 11:37 - 11:43
    So 7 times the fourth
    term's coefficient--
  • 11:43 - 11:47
    times 120-- divided by 4.
  • 11:47 - 11:47
    Right?
  • 11:47 - 11:50
    Divided by the
    previous term, by 4.
  • 11:50 - 11:56
    Well, that's just 7 times
    30, which equals 210.
  • 11:56 - 11:58
    That's the fifth coefficient.
  • 11:58 - 12:00
    What's the sixth coefficient?
  • 12:00 - 12:06
    Well, it's 6 times-- you
    know the exponent on
  • 12:06 - 12:10
    the x-- times 210.
  • 12:10 - 12:14
    Times its coefficient-- times
    the fifth term's coefficient--
  • 12:14 - 12:17
    divided by 5, for
    the fifth term.
  • 12:17 - 12:19
    Well, 5 goes into
    210 how many times?
  • 12:19 - 12:21
    42 times, right?
  • 12:21 - 12:25
    So it's 6 times 42--
    that's 240 plus 12.
  • 12:25 - 12:30
    That's 252.
  • 12:30 - 12:34
    And then once you're at the
    middle point-- the sixth term
  • 12:34 - 12:36
    is the middle term-- you'll
    see that, you know, you start
  • 12:36 - 12:37
    going back the other way.
  • 12:37 - 12:39
    And we learned one from the
    Pascal's triangle, or even the
  • 12:39 - 12:42
    definition of the binomial
    theorem, that the
  • 12:42 - 12:43
    coefficients are symmetric.
  • 12:43 - 12:46
    So we know that the next one is
    going to be the same-- this was
  • 12:46 - 12:48
    the middle one, right?-- so we
    know the next one is
  • 12:48 - 12:51
    going to be 210.
  • 12:51 - 12:54
    And you could calculate it
    using the same system.
  • 12:54 - 12:55
    This is just a quick
    way of doing it.
  • 12:55 - 12:57
    This one's going to be 120.
  • 12:57 - 12:59
    This one's going to be 45.
  • 12:59 - 13:05
    And this one is going to be
    the tenth coefficient--
  • 13:05 - 13:06
    this is going to be 10.
  • 13:06 - 13:08
    And then of course the last
    coefficient is just 1.
  • 13:08 - 13:10
    1y to the tenth power.
  • 13:10 - 13:16
    So if I were to write this out,
    the answer is-- and if you
  • 13:16 - 13:19
    practice this, you'll find that
    you can do quite fast-- it's x
  • 13:19 - 13:35
    to the tenth, plus 10x to the
    ninth y, plus 45x to the eighth
  • 13:35 - 13:44
    y squared, plus 120x to the
    seventh y to the third, plus
  • 13:44 - 13:50
    210x to the sixth y to the
    fourth, plus 252-- already at
  • 13:50 - 13:57
    the middle term-- x to the
    fifth y to the fifth, plus 210x
  • 13:57 - 13:59
    to the fourth y to the sixth--
    I'm running out of space.
  • 13:59 - 14:02
    But you can you can hopefully
    extrapolate what I'm doing,
  • 14:02 - 14:03
    and it makes sense to you.
  • 14:03 - 14:06
    And hopefully you have an
    appreciation that if you
  • 14:06 - 14:08
    actually had to multiply out x
    plus y to the tenth, it would
  • 14:08 - 14:10
    have taken you all day.
  • 14:10 - 14:13
    Maybe I'll do one more video
    with a smaller example to show
  • 14:13 - 14:16
    you that it's a little less
    complicated when you do, say,
  • 14:16 - 14:17
    x plus y to the sixth power.
  • 14:17 - 14:19
    See you soon.
  • 14:19 - 14:19
Title:
Binomial Theorem (part 2)
Description:

Binomial Theorem and Pascal's Triangle

more » « less
Video Language:
English
Duration:
14:19

English subtitles

Revisions