< Return to Video

Sine Taylor Series at 0 (Maclaurin)

  • 0:01 - 0:03
    In the last video, we
    took the Maclaurin series
  • 0:03 - 0:04
    of cosine of x.
  • 0:04 - 0:07
    We approximated it
    using this polynomial.
  • 0:07 - 0:09
    And we saw this pretty
    interesting pattern.
  • 0:09 - 0:10
    Let's see if we can
    find a similar pattern
  • 0:10 - 0:14
    if we try to approximate sine
    of x using a Maclaurin series.
  • 0:14 - 0:16
    And once again, a
    Maclaurin series
  • 0:16 - 0:18
    is really the same thing
    as a Taylor series,
  • 0:18 - 0:21
    where we are centering
    our approximation
  • 0:21 - 0:24
    around x is equal to 0.
  • 0:24 - 0:27
    So it's just a special
    case of a Taylor series.
  • 0:27 - 0:30
    So let's take f of
    x in this situation
  • 0:30 - 0:31
    to be equal to sine of x.
  • 0:36 - 0:39
    And let's do the same thing
    that we did with cosine of x.
  • 0:39 - 0:41
    Let's just take the
    different derivatives
  • 0:41 - 0:42
    of sine of x really fast.
  • 0:42 - 0:46
    So if you have the first
    derivative of sine of x,
  • 0:46 - 0:48
    is just cosine of x.
  • 0:48 - 0:51
    The second derivative
    of the sine of x
  • 0:51 - 0:56
    is the derivative of cosine of
    x, which is negative sine of x.
  • 0:56 - 0:59
    The third derivative is going
    to be the derivative of this.
  • 0:59 - 1:00
    So I'll just write
    a 3 in parentheses
  • 1:00 - 1:02
    there, instead of doing
    prime, prime, prime.
  • 1:02 - 1:04
    So the third derivative
    is the derivative
  • 1:04 - 1:08
    of this, which is
    negative cosine of x.
  • 1:08 - 1:12
    The fourth derivative
    is the derivative
  • 1:12 - 1:15
    of this, which is
    positive sine of x again.
  • 1:15 - 1:18
    So you see, just like cosine
    of x, it kind of cycles
  • 1:18 - 1:20
    after you take the
    derivative enough times.
  • 1:20 - 1:23
    And we care-- in order to do
    the Maclaurin, series-- we care
  • 1:23 - 1:27
    about evaluating the function,
    and each of these derivatives
  • 1:27 - 1:28
    at x is equal to 0.
  • 1:28 - 1:30
    So let's do that.
  • 1:30 - 1:33
    So for this, let me do this
    in a different color, not
  • 1:33 - 1:34
    that same blue.
  • 1:34 - 1:36
    I'll do it in this purple color.
  • 1:36 - 1:39
    So f-- that's hard
    to see, I think
  • 1:39 - 1:41
    So let's do this
    other blue color.
  • 1:41 - 1:46
    So f of 0, in this
    situation, is 0.
  • 1:46 - 1:50
    And f, the first derivative
    evaluated at 0, is 1.
  • 1:50 - 1:53
    Cosine of 0 is 1.
  • 1:53 - 1:57
    Negative sine of 0
    is going to be 0.
  • 1:57 - 2:01
    So f prime prime, the second
    derivative evaluated at 0 is 0.
  • 2:01 - 2:06
    The third derivative
    evaluated at 0 is negative 1.
  • 2:06 - 2:08
    Cosine of 0 is 1.
  • 2:08 - 2:10
    You have a negative out there.
  • 2:10 - 2:11
    It is negative 1.
  • 2:11 - 2:15
    And then the fourth
    derivative evaluated at 0
  • 2:15 - 2:17
    is going to be 0 again.
  • 2:17 - 2:18
    And we could keep going,
    but once again, it
  • 2:18 - 2:20
    seems like there's a pattern.
  • 2:20 - 2:21
    0, 1, 0, negative
    1, 0, then you're
  • 2:21 - 2:23
    going to go back to positive 1.
  • 2:23 - 2:25
    So on and so forth.
  • 2:25 - 2:28
    So let's find its
    polynomial representation
  • 2:28 - 2:30
    using the Maclaurin series.
  • 2:30 - 2:31
    And just a reminder,
    this one up here,
  • 2:31 - 2:34
    this was approximately
    cosine of x.
  • 2:34 - 2:36
    And you'll get closer and
    closer to cosine of x.
  • 2:36 - 2:38
    I'm not rigorously
    showing you how
  • 2:38 - 2:41
    close, in that it's definitely
    the exact same thing as cosine
  • 2:41 - 2:43
    of x, but you get closer
    and closer and closer
  • 2:43 - 2:45
    to cosine of x as you
    keep adding terms here.
  • 2:45 - 2:46
    And if you go to
    infinity, you're
  • 2:46 - 2:49
    going to be pretty
    much at cosine of x.
  • 2:49 - 2:51
    Now let's do the same
    thing for sine of x.
  • 2:51 - 2:53
    So I'll pick a new color.
  • 2:53 - 2:55
    This green should be nice.
  • 2:55 - 2:57
    So this is our new p of x.
  • 2:57 - 2:59
    So this is approximately
    going to be
  • 2:59 - 3:02
    sine of x, as we add
    more and more terms.
  • 3:02 - 3:07
    And so the first term here, f
    of 0, that's just going to be 0.
  • 3:07 - 3:09
    So we're not even going
    to need to include that.
  • 3:09 - 3:11
    The next term is
    going to be f prime
  • 3:11 - 3:14
    of 0, which is 1, times x.
  • 3:14 - 3:16
    So it's going to be x.
  • 3:16 - 3:18
    Then the next term is f
    prime, the second derivative
  • 3:18 - 3:21
    at 0, which we see here is 0.
  • 3:21 - 3:23
    Let me scroll down a little bit.
  • 3:23 - 3:24
    It is 0.
  • 3:24 - 3:27
    So we won't have
    the second term.
  • 3:27 - 3:30
    This third term right
    here, the third derivative
  • 3:30 - 3:33
    of sine of x evaluated
    at 0, is negative 1.
  • 3:33 - 3:37
    So we're now going
    to have a negative 1.
  • 3:37 - 3:39
    Let me scroll down
    so you can see this.
  • 3:39 - 3:42
    Negative 1-- this is
    negative 1 in this case--
  • 3:42 - 3:46
    times x to the third
    over 3 factorial.
  • 3:51 - 3:53
    And then the next
    term is going to be 0,
  • 3:53 - 3:56
    because that's the
    fourth derivative.
  • 3:56 - 4:00
    The fourth derivative evaluated
    at 0 is the next coefficient.
  • 4:00 - 4:03
    We see that that is going to be
    0, so it's going to drop off.
  • 4:03 - 4:05
    And what you're
    going to see here--
  • 4:05 - 4:07
    and actually maybe I haven't
    done enough terms for you,
  • 4:07 - 4:08
    for you to feel good about this.
  • 4:08 - 4:10
    Let me do one more
    term right over here.
  • 4:10 - 4:13
    Just so it becomes clear.
  • 4:13 - 4:15
    f of the fifth
    derivative of x is
  • 4:15 - 4:17
    going to be cosine of x again.
  • 4:17 - 4:20
    The fifth derivative-- we'll
    do it in that same color,
  • 4:20 - 4:27
    just so it's consistent-- the
    fifth derivative evaluated at 0
  • 4:27 - 4:30
    is going to be 1.
  • 4:30 - 4:33
    So the fourth derivative
    evaluated at 0 is 0,
  • 4:33 - 4:37
    then you go to the fifth
    derivative evaluated at 0,
  • 4:37 - 4:39
    it's going to be positive 1.
  • 4:39 - 4:41
    And if I kept doing this,
    it would be positive
  • 4:41 - 4:44
    1-- I have to write the 1
    as the coefficient-- times x
  • 4:44 - 4:48
    to the fifth over 5 factorial.
  • 4:48 - 4:51
    So there's something
    interesting going on here.
  • 4:51 - 4:56
    For cosine of x, I had 1,
    essentially 1 times x to the 0.
  • 4:56 - 4:58
    Then I don't have x
    to the first power.
  • 4:58 - 5:00
    I don't have x to the
    odd powers, actually.
  • 5:00 - 5:03
    And then I just essentially have
    x to all of the even powers.
  • 5:03 - 5:07
    And whatever power it is, I'm
    dividing it by that factorial.
  • 5:07 - 5:09
    And then the sines
    keep switching.
  • 5:09 - 5:12
    I shouldn't say this is an even
    power, because 0 really isn't.
  • 5:12 - 5:14
    Well, I guess you can
    view it as an even number,
  • 5:14 - 5:18
    because-- well I won't
    go into all of that.
  • 5:18 - 5:22
    But it's essentially 0, 2,
    4, 6, so on and so forth.
  • 5:22 - 5:24
    So this is
    interesting, especially
  • 5:24 - 5:25
    when you compare to this.
  • 5:25 - 5:27
    This is all of the odd powers.
  • 5:27 - 5:29
    This is x to the first
    over 1 factorial.
  • 5:29 - 5:30
    I didn't write it here.
  • 5:30 - 5:33
    This is x to the
    third over 3 factorial
  • 5:33 - 5:34
    plus x to the fifth
    over 5 factorial.
  • 5:34 - 5:36
    Yeah, 0 would be an even number.
  • 5:36 - 5:40
    Anyway, my brain is in a
    different place right now.
  • 5:40 - 5:41
    And you could keep going.
  • 5:41 - 5:43
    If we kept this process
    up, you would then
  • 5:43 - 5:44
    keep switching sines.
  • 5:44 - 5:48
    X to the seventh over
    7 factorial plus x
  • 5:48 - 5:50
    to the ninth over 9 factorial.
  • 5:50 - 5:51
    So there's something
    interesting here.
  • 5:51 - 5:55
    You once again see this
    kind of complimentary nature
  • 5:55 - 5:57
    between sine and cosine here.
  • 5:57 - 5:59
    You see almost
    this-- they're kind
  • 5:59 - 6:01
    of filling each
    other's gaps over here.
  • 6:01 - 6:03
    Cosine of x is all
    of the even powers
  • 6:03 - 6:06
    of x divided by that
    power's factorial.
  • 6:06 - 6:08
    Sine of x, when you take its
    polynomial representation,
  • 6:08 - 6:12
    is all of the odd powers of
    x divided by its factorial,
  • 6:12 - 6:14
    and you switch sines.
  • 6:14 - 6:17
    In the next video,
    I'll do e to the x.
  • 6:17 - 6:19
    And what's really
    fascinating is that e
  • 6:19 - 6:22
    to the x starts to look like
    a little bit of a combination
  • 6:22 - 6:24
    here, but not quite.
  • 6:24 - 6:26
    And you really do
    get the combination
  • 6:26 - 6:28
    when you involve
    imaginary numbers.
  • 6:28 - 6:33
    And that's when it starts to
    get really, really mind blowing.
Title:
Sine Taylor Series at 0 (Maclaurin)
Description:

more » « less
Video Language:
English
Team:
Khan Academy
Duration:
06:33

English subtitles

Revisions Compare revisions