< Return to Video

Laplace Transform solves an equation 2

  • 0:01 - 0:02
    Welcome back.
  • 0:02 - 0:04
    We're finally using the Laplace
    Transform to do
  • 0:04 - 0:05
    something useful.
  • 0:05 - 0:08
    In the first part of this
    problem, we just had this
  • 0:08 - 0:10
    fairly straightforward
    differential equation.
  • 0:10 - 0:12
    And I know it's a little bit
    frustrating right now, because
  • 0:12 - 0:14
    you're like, this is such an
    easy one to solve using the
  • 0:14 - 0:15
    characteristic equation.
  • 0:15 - 0:17
    Why are we doing Laplace
    Transforms?
  • 0:17 - 0:18
    Well I just want to show you
    that they can solve even these
  • 0:18 - 0:21
    problems. But later on there
    are going to be classes of
  • 0:21 - 0:25
    problems that, frankly, our
    traditional methods aren't as
  • 0:25 - 0:26
    good as the Laplace Transform.
  • 0:26 - 0:28
    But anyway, how did
    we solve this?
  • 0:28 - 0:30
    We just took the Laplace
    Transform of both sides of
  • 0:30 - 0:31
    this equation.
  • 0:31 - 0:34
    We got all of this hairy mess.
  • 0:34 - 0:36
    We used the property of the
    derivative of functions, where
  • 0:36 - 0:38
    you take the Laplace Transform,
    and we ended up,
  • 0:38 - 0:40
    after doing a lot of algebra
    essentially, we got this.
  • 0:40 - 0:43
    We got the Laplace Transform of
    y is equal to this thing.
  • 0:43 - 0:45
    We just took the Laplace
    Transform of both sides and
  • 0:45 - 0:47
    manipulated algebraically.
  • 0:47 - 0:51
    So now our task in this video
    is to figure out what y's
  • 0:51 - 0:53
    Laplace Transform
    is this thing?
  • 0:53 - 0:55
    And essentially what we're
    trying to do, is we're trying
  • 0:55 - 0:58
    to take the inverse Laplace
    Transform of both sides of
  • 0:58 - 0:59
    this equation.
  • 0:59 - 1:03
    So another way to say it, we
    could say that y-- if we take
  • 1:03 - 1:05
    the inverse Laplace Transform
    of both sides-- we could say
  • 1:05 - 1:09
    that y is equal to the
    inverse Laplace
  • 1:09 - 1:12
    Transform of this thing.
  • 1:12 - 1:19
    2s plus 13, over s squared
    plus 5s plus 6.
  • 1:19 - 1:22
    Now we'll eventually actually
    learn the formal definition of
  • 1:22 - 1:24
    the inverse Laplace Transform.
  • 1:24 - 1:27
    How do you go from the s
    domain to the t domain?
  • 1:27 - 1:28
    Or how do you go from
    the frequency
  • 1:28 - 1:30
    domain to the time domain?
  • 1:30 - 1:32
    We're not going to worry
    about that right now.
  • 1:32 - 1:34
    What we're going to do is we're
    going to get this into a
  • 1:34 - 1:37
    form that we recognize,
    and say, oh,
  • 1:37 - 1:38
    I know those functions.
  • 1:38 - 1:40
    That's the Laplace Transform
    of whatever and whatever.
  • 1:40 - 1:42
    And then we'll know what y is.
  • 1:42 - 1:44
    So let's try to do that.
  • 1:44 - 1:48
    So what we're going to use is
    something that you probably
  • 1:48 - 1:51
    haven't used since Algebra two,
    which is I think when
  • 1:51 - 1:53
    it's taught in, you know,
    eighth, ninth,
  • 1:53 - 1:54
    or 10th grade, depending.
  • 1:54 - 1:56
    And you finally see it now in
    differential equations that it
  • 1:56 - 1:58
    actually has some use.
  • 1:58 - 1:58
    Let me write it.
  • 1:58 - 2:02
    We're going to use partial
    fraction expansion.
  • 2:02 - 2:04
    And I'll do a little primer
    on that, in case you don't
  • 2:04 - 2:05
    remember it.
  • 2:05 - 2:09
    So anyway, let's just factor
    the bottom part right here.
  • 2:09 - 2:12
    And you'll see where I'm
    going with this.
  • 2:12 - 2:19
    So if I factor the bottom, I get
    s plus 2 times s plus 3.
  • 2:19 - 2:25
    And what we want to do, is we
    want to rewrite this fraction
  • 2:25 - 2:29
    as the sum of 2-- I
    guess you could
  • 2:29 - 2:31
    call it partial fractions.
  • 2:31 - 2:33
    I think that's why it's called
    partial fraction expansion.
  • 2:33 - 2:41
    So we want to write this as a
    sum of A over s plus 2, plus B
  • 2:41 - 2:43
    over s plus 3.
  • 2:43 - 2:48
    And if we can do this, then--
    and bells might already be
  • 2:48 - 2:55
    ringing in your head-- we know
    that these things that look
  • 2:55 - 2:57
    like this are the Laplace
    Transform of functions that
  • 2:57 - 2:58
    we've already solved for.
  • 2:58 - 3:01
    And I'll do a little review
    on that in a second.
  • 3:01 - 3:04
    But anyway, how do we
    figure out A and B?
  • 3:04 - 3:07
    Well if we were to actually add
    A and B, if we were to--
  • 3:07 - 3:13
    let's do a little aside right
    here-- so if we said that A--
  • 3:13 - 3:16
    so if we were to give them a
    common denominator, which is
  • 3:16 - 3:21
    this, s plus 2 times s plus 3.
  • 3:21 - 3:23
    Then what would A become?
  • 3:23 - 3:25
    We'd have to multiply A
    times s plus 3, right?
  • 3:25 - 3:29
    So we'd get As plus 3A.
  • 3:32 - 3:34
    This, as I've written it right
    now, is the same thing as A
  • 3:34 - 3:35
    over s plus 2.
  • 3:35 - 3:39
    You could cancel out an s plus
    3 in the top and the bottom.
  • 3:39 - 3:41
    And now we're going to
    add the B to it.
  • 3:41 - 3:46
    So plus-- I'll do that in a
    different color-- plus-- well,
  • 3:46 - 3:48
    if we have this as the
    denominator, we could multiply
  • 3:48 - 3:49
    the numerator and
    the denominator
  • 3:49 - 3:51
    by s plus 2, right?
  • 3:51 - 3:59
    To get B times s, plus
    2B, and that's going
  • 3:59 - 4:01
    to equal this thing.
  • 4:01 - 4:03
    And all I did is I added
    these two fractions.
  • 4:03 - 4:04
    Nothing fancier than there.
  • 4:04 - 4:06
    That was Algebra two.
  • 4:06 - 4:07
    Actually, I think I should
    do an actual
  • 4:07 - 4:08
    video on that as well.
  • 4:08 - 4:11
    But that's going to
    equal this thing.
  • 4:11 - 4:21
    2s plus 13, all of that over
    s plus 2 times s plus 3.
  • 4:21 - 4:23
    Notice in all differential
    equations, the hairiest part's
  • 4:23 - 4:25
    always the algebra.
  • 4:25 - 4:27
    So now what we do
    is we match up.
  • 4:27 - 4:29
    We say, well, let's add
    the s terms here.
  • 4:29 - 4:31
    And we could say that the
    numerators have to equal each
  • 4:31 - 4:33
    other, because the denominators
    are equal.
  • 4:33 - 4:52
    So we have A plus Bs plus 3A
    plus 2B is equal to 2s plus B.
  • 4:52 - 4:55
    So the coefficient on s, on
    the right-hand side, is 2.
  • 4:55 - 4:58
    The coefficient on the left-hand
    side is A plus B, so
  • 4:58 - 5:00
    we know that A plus
    B is equal to 2.
  • 5:03 - 5:08
    And then on the right-hand side,
    we see 3A plus 2B must
  • 5:08 - 5:11
    be equal to-- oh,
    this is a 13.
  • 5:11 - 5:12
    Did I say B?
  • 5:12 - 5:14
    This is a 13.
  • 5:14 - 5:16
    That's a 13.
  • 5:16 - 5:17
    It looks just like a B, right?
  • 5:17 - 5:19
    That was 2s plus 13.
  • 5:19 - 5:29
    Anyway, so on the right-hand
    side I get, it was 3A plus 2B
  • 5:29 - 5:32
    is equal to 13.
  • 5:32 - 5:35
    Now we have two equations
    with two unknowns,
  • 5:35 - 5:36
    and what do we get?
  • 5:36 - 5:37
    I know this is very tiresome,
    but it'll be
  • 5:37 - 5:38
    satisfying in the end.
  • 5:38 - 5:39
    Because you'll actually
    solve something
  • 5:39 - 5:41
    with the Laplace Transform.
  • 5:41 - 5:44
    So let's multiply the top
    equation by 2, or let's just
  • 5:44 - 5:44
    say minus 2.
  • 5:44 - 5:50
    So we get minus 2A minus
    2B equals minus 4.
  • 5:50 - 5:54
    And then we get-- add the two
    equations-- you get A is equal
  • 5:54 - 5:57
    to-- these cancel out--
    A is equal to 9.
  • 5:57 - 5:58
    Great.
  • 5:58 - 6:01
    If A is equal to 9, what
    is B equal to?
  • 6:01 - 6:06
    B is equal to 9 plus
    what is equal to 2?
  • 6:06 - 6:09
    Or 2 minus 9 is minus 7.
  • 6:09 - 6:12
    And we have done some serious
    simplification.
  • 6:12 - 6:16
    Because now we can rewrite this
    whole expression as the
  • 6:16 - 6:23
    Laplace Transform of y is equal
    to A over s plus 2, is
  • 6:23 - 6:34
    equal to 9 over s plus 2,
    minus 7 over s plus 3.
  • 6:34 - 6:39
    Or another way of writing it, we
    could write it as equal to
  • 6:39 - 6:48
    9 times 1 over s plus 2, minus
    7 times 1 over s plus 3.
  • 6:48 - 6:50
    Why did I take the trouble
    to do this?
  • 6:50 - 6:52
    Well hopefully, you'll recognize
    this was actually
  • 6:52 - 6:55
    the second Laplace Transform
    we figured out.
  • 6:58 - 6:59
    What was that?
  • 6:59 - 7:02
    I'll write it down here just
    so you remember it.
  • 7:02 - 7:12
    It was the Laplace Transform of
    e to the at, was equal to 1
  • 7:12 - 7:15
    over s minus a.
  • 7:15 - 7:18
    That was the second Laplace
    Transform we figured out.
  • 7:18 - 7:21
    So this is interesting.
  • 7:21 - 7:23
    This is the Laplace
    Transform of what?
  • 7:23 - 7:25
    So if we were to take the
    inverse Laplace Transform--
  • 7:25 - 7:27
    actually let me just
    stay consistent.
  • 7:27 - 7:33
    So that means that this is the
    Laplace Transform of y, is
  • 7:33 - 7:36
    equal to 9 times the Laplace
    Transform of what?
  • 7:36 - 7:39
    If we just do pattern matching,
    if this is s minus
  • 7:39 - 7:41
    a, then a is minus 2.
  • 7:41 - 7:45
    So 9 times the Laplace
    Transform of e
  • 7:45 - 7:49
    to the minus 2t.
  • 7:49 - 7:50
    Does that make sense?
  • 7:50 - 7:53
    Take this, put it in this one,
    which we figured out, and you
  • 7:53 - 7:54
    get 1 over s plus 2.
  • 7:54 - 7:56
    And let me clean this up a
    little bit, because I'm going
  • 7:56 - 7:57
    to need that real estate.
  • 8:02 - 8:03
    I'll write this.
  • 8:03 - 8:06
    I'll leave that there, because
    we'll still use that.
  • 8:06 - 8:11
    And then we have minus 7 times--
    this is the Laplace
  • 8:11 - 8:12
    Transform of what?
  • 8:12 - 8:16
    This is the Laplace Transform
    of e to the minus 3t.
  • 8:20 - 8:25
    This pattern matching, you're
    like, wow, if you saw this,
  • 8:25 - 8:27
    you would go to your Laplace
    Transform table, if you didn't
  • 8:27 - 8:29
    remember it, you'd see this.
  • 8:29 - 8:31
    You're like, wow, that looks
    a lot like that.
  • 8:31 - 8:33
    I just have to figure
    out what a is.
  • 8:33 - 8:34
    I have s plus 3.
  • 8:34 - 8:35
    I have s minus a.
  • 8:35 - 8:38
    So in this case, a is
    equal to minus 3.
  • 8:38 - 8:40
    So if a is equal to minus 3,
    this is the Laplace Transform
  • 8:40 - 8:43
    of e to the minus 3t.
  • 8:43 - 8:46
    So now we can take the inverse
    Laplace-- actually,
  • 8:46 - 8:47
    before we do that.
  • 8:47 - 8:50
    We know that because the Laplace
    Transform is a linear
  • 8:50 - 8:55
    operator-- and actually now I
    can delete this down here-- we
  • 8:55 - 8:57
    know that the Laplace Transform
    is a linear
  • 8:57 - 9:00
    operator, so we can
    write this.
  • 9:00 - 9:02
    And you normally wouldn't go
    through all of these steps.
  • 9:02 - 9:06
    I just really want to make you
    understand what we're doing.
  • 9:06 - 9:08
    So we could say that this is the
    same thing as the Laplace
  • 9:08 - 9:17
    Transform of 9e to the minus 2t,
    minus 7e to the minus 3t.
  • 9:20 - 9:21
    Now we have something
    interesting.
  • 9:21 - 9:23
    The Laplace Transform of y
    is equal to the Laplace
  • 9:23 - 9:25
    Transform of this.
  • 9:25 - 9:31
    Well if that's the case, then
    y must be equal to 9e to the
  • 9:31 - 9:35
    minus 2t, minus 7e
    to the minus 3t.
  • 9:35 - 9:38
    And I never proved to you, but
    the Laplace Transform is
  • 9:38 - 9:40
    actually a 1:1 Transformation.
  • 9:40 - 9:43
    That if a function's Laplace
    Transform, if I take a
  • 9:43 - 9:45
    function against the Laplace
    Transform, and then if I were
  • 9:45 - 9:49
    take the inverse Laplace
    Transform, the only function
  • 9:49 - 9:51
    whose Laplace Transform
    that that is, is
  • 9:51 - 9:52
    that original function.
  • 9:52 - 9:55
    It's not like two different
    functions can have the same
  • 9:55 - 9:56
    Laplace Transform.
  • 9:56 - 9:59
    Anyway, a couple of things
    to think about here.
  • 9:59 - 10:02
    Notice, we had that thing that
    kind of looked like a
  • 10:02 - 10:05
    characteristic equation
    pop up here and there.
  • 10:05 - 10:08
    And we still have to solve a
    system of two equations with
  • 10:08 - 10:09
    two unknowns.
  • 10:09 - 10:14
    Those are both things that we
    had to do when we solve an
  • 10:14 - 10:17
    initial value problem, when we
    use just traditional, the
  • 10:17 - 10:18
    characteristic equation.
  • 10:18 - 10:20
    But here it happened
    all at once.
  • 10:20 - 10:22
    And frankly it was a little bit
    hairier because we had to
  • 10:22 - 10:24
    do all this partial fraction
    expansion.
  • 10:24 - 10:25
    But it's pretty neat.
  • 10:25 - 10:28
    The Laplace Transform got
    us something useful.
  • 10:28 - 10:31
    In the next video I'll actually
    do a non-homogeneous
  • 10:31 - 10:34
    equation, and show you that the
    Laplace Transform applies
  • 10:34 - 10:35
    equally well there.
  • 10:35 - 10:38
    So it's kind of a more
    consistent theory of solving
  • 10:38 - 10:40
    differential equations, instead
    of kind of guessing
  • 10:40 - 10:43
    solutions, and solving for
    coefficients and all of that.
  • 10:43 - 10:45
    See you in the next video.
Title:
Laplace Transform solves an equation 2
Description:

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

English subtitles

Revisions Compare revisions