< Return to Video

1520 9 5 4 Mixing Problem HD 1080 WEB H264 4000

  • 0:00 - 0:04
    Let's take a look at a mixing problem.
  • 0:04 - 0:07
    In this example, we have a tank
  • 0:07 - 0:13
    that initially (at our starting time)
    holds 100 liters of pure water.
  • 0:13 - 0:18
    And what we've got coming in is,
    we've got brine that has salt in it,
  • 0:18 - 0:26
    and the concentration of salt is
    0.5 kilograms of salt for every liter,
  • 0:26 - 0:30
    and that's coming into the tank
    at a rate of 4 liters per minute.
  • 0:30 - 0:32
    The big assumption
    we're making here —
  • 0:32 - 0:36
    and this, in real life,
    is not 100% realistic —
  • 0:36 - 0:40
    but we're assuming that as soon
    as that brine enters the tank,
  • 0:40 - 0:45
    it is immediately mixed perfectly
    in with whatever is already in there.
  • 0:46 - 0:52
    Then that mixture is draining out
    at a rate of 3 liters per minute.
  • 0:52 - 0:53
    Now, what makes this different
  • 0:53 - 1:00
    from the mixing problem that we saw
    in the separable equation section is,
  • 1:00 - 1:06
    the rate of liquid leaving the tank
    isn't the same as the rate coming in.
  • 1:06 - 1:10
    So in one of the worksheet
    problems from a previous section,
  • 1:10 - 1:13
    we had the liquid leaving
    the tank at the same rate,
  • 1:13 - 1:15
    and when we did that,
  • 1:15 - 1:17
    we ended up with a
    separable differential equation.
  • 1:17 - 1:23
    In this case, because the liquid is
    leaving the tank at a different rate,
  • 1:23 - 1:27
    we're going to end up with a linear
    differential equation instead.
  • 1:27 - 1:29
    So one thing we need is,
  • 1:29 - 1:32
    we have to figure out
    what we're even solving for.
  • 1:32 - 1:36
    And basically what we want
    to do is, we want to find y of t.
  • 1:36 - 1:37
    And what that's going to represent is,
  • 1:37 - 1:51
    it's going to be the amount
    of salt in the tank at time t.
  • 1:51 - 1:55
    After t minutes have gone by,
    how much salt is in the tank?
  • 1:55 - 1:56
    One thing we know right away
  • 1:56 - 2:00
    is that the tank initially
    had pure water in it.
  • 2:00 - 2:04
    That tells us our initial value is 0.
  • 2:04 - 2:08
    There's no salt in the tank
    at time 0; it's pure water.
  • 2:08 - 2:12
    One other thing that's
    going to happen with this is,
  • 2:12 - 2:14
    every minute that goes by,
  • 2:14 - 2:16
    think about the amount
    of liquid in this tank.
  • 2:16 - 2:20
    If it was leaving at the same rate
    that it was coming in,
  • 2:20 - 2:21
    that would stay constant.
  • 2:21 - 2:24
    But every minute that goes by,
  • 2:24 - 2:28
    one extra liter is coming in
    that doesn't get drained out.
  • 2:28 - 2:33
    The total amount of liquid in the tank
    is actually changing as time goes by.
  • 2:33 - 2:35
    So it's not going to stay 100 liters.
  • 2:35 - 2:37
    The amount of liquid in the tank
  • 2:37 - 2:44
    is going to be 100 liters plus
    1 liter for every minute that goes by.
  • 2:44 - 2:46
    Since t represents
    the number of minutes,
  • 2:46 - 2:49
    I'm just going to write that as 100 plus t,
  • 2:49 - 2:51
    and that's the number of liters of liquid
  • 2:51 - 2:55
    that are going to be in
    this tank at any given time.
  • 2:55 - 2:57
    Now, in real life, eventually,
  • 2:57 - 3:00
    we'd reach a point where
    this process can't continue
  • 3:00 - 3:04
    because the tank only has physically
    enough room for a certain amount.
  • 3:04 - 3:06
    That's something to bear in mind.
  • 3:06 - 3:08
    But for our purposes,
  • 3:08 - 3:10
    we'll assume that we're
    early enough in the process
  • 3:10 - 3:12
    that this model will
    make sense and will hold.
  • 3:12 - 3:17
    So one thing that we found out
    in previous sections is,
  • 3:17 - 3:21
    if we want to know what dy [over] dt is
  • 3:21 - 3:23
    (that would be the change
    in the amount of salt),
  • 3:23 - 3:27
    we have to figure out what rate
    salt is coming into the tank,
  • 3:27 - 3:32
    and then we have to subtract
    the rate that salt is leaving the tank.
  • 3:34 - 3:36
    The rate that salt is coming in
  • 3:36 - 3:38
    is actually pretty
    straightforward to calculate.
  • 3:38 - 3:42
    Each liter that comes
    in has half a kilogram (0.5 kg)
  • 3:42 - 3:45
    and there's 4 liters
    coming in every minute.
  • 3:45 - 3:47
    If we just multiply those
    two numbers together,
  • 3:47 - 3:53
    we'll end up with 0.5
    times 4, which is 2.
  • 3:53 - 3:56
    If you actually look at units here,
    it's kilograms per liter,
  • 3:56 - 3:59
    and then we're multiplying
    that by 4 liters per minute.
  • 3:59 - 4:01
    The liters actually cancel
  • 4:01 - 4:04
    and we're going to end up
    with 2 kilograms perminute.
  • 4:05 - 4:08
    That's the rate of salt
    coming into the tank.
  • 4:08 - 4:12
    Every minute,
    2 kilograms of salt come in.
  • 4:12 - 4:16
    Now, initially, basically
    no salt is going to leave
  • 4:16 - 4:19
    because the water at the beginning
    is almost purely water.
  • 4:19 - 4:21
    But as it gradually gets saltier,
  • 4:21 - 4:24
    then some of that salt
    is going to leave the tank
  • 4:24 - 4:26
    when this brine is drained.
  • 4:26 - 4:29
    In order to figure out the rate out
  • 4:29 - 4:32
    (this is the one that takes
    a little bit more thinking),
  • 4:32 - 4:34
    we have to figure out
  • 4:34 - 4:38
    the concentration of
    salt in the current liquid,
  • 4:38 - 4:41
    and then we have to multiply
    that by the rate that it's leaving,
  • 4:41 - 4:43
    which is 3 liters per minute.
  • 4:43 - 4:45
    Well, the concentration of salt
  • 4:45 - 4:50
    is just the number of kilograms of salt
    divided by the total amount of liquid.
  • 4:50 - 5:00
    We know that there are y kilograms
    in the tank at any given time
  • 5:00 - 5:04
    and we could divide that
    by the amount of liquid,
  • 5:04 - 5:08
    which is 100 plus t liters,
  • 5:08 - 5:12
    and that would tell us
    our concentration:
  • 5:12 - 5:16
    it's y kilograms per 100 plus t liters.
  • 5:16 - 5:17
    This is the biggest difference
  • 5:17 - 5:19
    between what we're
    doing in this section
  • 5:19 - 5:21
    compared to when
    these two rates match.
  • 5:21 - 5:26
    If these were the same rate,
    we could just say y divided by 100
  • 5:26 - 5:29
    because the amount of liquid
    in the tank would stay constant.
  • 5:29 - 5:32
    But because of this extra
    t that gets added in,
  • 5:32 - 5:36
    this is what's going to
    make it no longer be a—
  • 5:36 - 5:39
    It's no longer going to
    be a separable equation.
  • 5:39 - 5:41
    It'll be a linear equation.
  • 5:41 - 5:48
    So we've got our concentration,
    which is y over 100 plus t
  • 5:48 - 5:51
    (technically, that is kilograms per liter),
  • 5:51 - 5:56
    and it's exiting at a rate
    of 3 liters per minute,
  • 5:56 - 5:58
    so liters are going to cancel.
  • 5:58 - 6:02
    And once again, this is going
    to be kilograms per minute.
  • 6:02 - 6:04
    That's the same units
    that the rate in was.
  • 6:04 - 6:12
    So we can subtract, multiply these,
    we'll get 3y over 100 plus t.
  • 6:12 - 6:16
    This is the differential equation
    that we're going to try to solve.
  • 6:16 - 6:22
    This actually is a linear differential
    equation, and to see that,
  • 6:22 - 6:26
    we actually might want to
    rearrange the terms a little bit.
  • 6:26 - 6:30
    In the standard form for
    a linear differential equation,
  • 6:30 - 6:33
    dy [over] dt is by itself.
  • 6:33 - 6:35
    Then if I move this over,
  • 6:35 - 6:39
    instead of writing it
    as 3 over 100 plus t,
  • 6:39 - 6:46
    I'm going to write it as
    3 over 100 plus t, multiplied by y,
  • 6:46 - 6:49
    and then that's going to equal 2.
  • 6:49 - 6:53
    So in this form, dt is by itself.
  • 6:53 - 6:59
    This function right here
    is playing the role of P.
  • 6:59 - 7:01
    It's not a function of x,
    but it's a function of t.
  • 7:01 - 7:05
    That's our independent variable this time,
    and then that's playing the role of Q.
  • 7:05 - 7:08
    Just like what we've done
    for the other examples,
  • 7:08 - 7:11
    we're going to use this to
    find an integrating factor.
  • 7:11 - 7:14
    We're going to multiply everything
    by that integrating factor,
  • 7:14 - 7:18
    and that should turn the left side
    of the equation into a product rule.
  • 7:19 - 7:24
    That's something that we can invert
    and then eventually solve for y.
  • 7:24 - 7:28
    All right, so here's our first order
    linear differential equation.
  • 7:28 - 7:32
    It is already in standard form
    because we did that already,
  • 7:32 - 7:36
    and that function right there
    is playing the role of P.
  • 7:36 - 7:40
    This time, it's a function
    of t instead of x,
  • 7:40 - 7:43
    it’s 3 over 100 plus t,
  • 7:43 - 7:45
    and our integrating factor
  • 7:45 - 7:52
    is always given by e to the
    integral of the function P,
  • 7:52 - 7:59
    which in this case is e to the
    integral of 3 over 100 plus t.
  • 7:59 - 8:05
    And like the previous example,
    we can take that 3 out if we want.
  • 8:05 - 8:07
    If you want to go through
    the full steps here,
  • 8:07 - 8:10
    this is-- technically could be
    done by using a substitution.
  • 8:10 - 8:16
    But if u is 100 plus t,
    du is just 1 times dt.
  • 8:16 - 8:19
    We don't have to worry about
    an extra factor appearing here,
  • 8:19 - 8:27
    and this integral is just going to end up
    being the natural log of 100 plus t.
  • 8:27 - 8:31
    In this example, we're assuming that
    t is positive since it represents time.
  • 8:31 - 8:34
    Also, 100 plus t was
    the total number of liters
  • 8:34 - 8:37
    in the tank at any given time,
  • 8:37 - 8:40
    so we are assuming that
    that will never be negative.
  • 8:40 - 8:42
    You won't have a negative
    amount of liquid in the tank.
  • 8:42 - 8:44
    Like we did before,
  • 8:44 - 8:47
    we can utilize that property of logarithms
  • 8:47 - 8:49
    that lets us take this coefficient
  • 8:49 - 8:56
    and turn it into a power
    within the logarithm itself.
  • 8:56 - 9:00
    It will be the natural log
    of 100 plus t cubed.
  • 9:00 - 9:04
    And e and natural log are inverses,
    so once those cancel out,
  • 9:04 - 9:07
    that tells us that the integrating
    factor we need to use
  • 9:07 - 9:11
    is 100 plus t to the 3rd power.
  • 9:11 - 9:13
    Now the next step is going to be
  • 9:13 - 9:16
    to multiply everything
    by that integrating factor.
  • 9:16 - 9:22
    And if we did it right, the left side of
    the equation should be a product rule.
  • 9:22 - 9:30
    We've got our integrating
    factor times dy [over] dt.
  • 9:30 - 9:35
    and when we multiply our next thing
    by the integrating factor,
  • 9:35 - 9:38
    we're going to have
    3 times 100 plus t cubed,
  • 9:38 - 9:41
    but that gets divided by 100 plus t.
  • 9:41 - 9:47
    So that's just going to become
    3 times 100 plus t squared
  • 9:47 - 9:50
    because one of the
    100 plus t’s from the top
  • 9:50 - 9:52
    will cancel this one on the bottom.
  • 9:52 - 9:54
    Then the right side of the equation
  • 9:54 - 10:00
    becomes 2 times 100
    plus t to the 3rd.
  • 10:00 - 10:03
    The whole purpose
    of the integrating factor
  • 10:03 - 10:06
    is to try to make the left side of
    the equation become a product rule.
  • 10:06 - 10:13
    If the integrating factor itself is f,
    then that really is f prime.
  • 10:13 - 10:20
    And if y is g, dy [over] dt is g prime.
  • 10:20 - 10:22
    That means this
    really is a product rule.
  • 10:22 - 10:27
    This is the derivative
    with respect to t of f times g
  • 10:27 - 10:32
    and f is 100 plus t to the 3rd
  • 10:32 - 10:40
    and g is just y, and that's equal
    to the right side of the equation.
  • 10:40 - 10:44
    Now that we've got our product rule
    on the left side of the equation,
  • 10:44 - 10:47
    we can integrate it to make
    the derivative go away,
  • 10:47 - 10:51
    so integrate with respect to t,
  • 10:51 - 10:54
    and that will equal the integral
    of the right side of the equation,
  • 10:54 - 10:56
    also with respect to t.
  • 10:57 - 11:01
    The derivative of an integral cancels out.
  • 11:01 - 11:06
    That leaves us with 100
    plus t to the 3rd times y.
  • 11:06 - 11:08
    And then for this integral,
  • 11:08 - 11:11
    this is another one where you
    could do a full U-substitution.
  • 11:11 - 11:15
    If u is 100 plus t, then du is just dt.
  • 11:15 - 11:19
    The antiderivative of
    something to the 3rd,
  • 11:19 - 11:22
    the power just goes up by one
    and then you divide by 3.
  • 11:22 - 11:25
    Since there's no chain rule
    issue with the inside
  • 11:25 - 11:27
    (the derivative of the inside is 1),
  • 11:27 - 11:30
    you basically just treat this
    as if it was our variable.
  • 11:30 - 11:32
    We're going to end up with 2
  • 11:32 - 11:34
    and then that's going to be
  • 11:34 - 11:41
    times one fourth [1/4]
    100 plus t to the 4th power,
  • 11:41 - 11:43
    and then we're going to have our constant.
  • 11:43 - 11:49
    But instead of running 2 times 1/4,
    let's just call that one half [1/2].
  • 11:49 - 11:51
    Now, if we wanted a general solution,
  • 11:51 - 11:55
    we would divide everything
    right now by 100 plus t to the 3rd.
  • 11:55 - 11:58
    But because we have
    an initial condition here,
  • 11:58 - 12:01
    we can actually find
    our constant right now
  • 12:01 - 12:04
    or you can get the general solution
    first and then solve for C.
  • 12:04 - 12:06
    It does not matter, but in this case,
  • 12:06 - 12:09
    I've already got it almost
    to the form C equals,
  • 12:09 - 12:11
    so let's just use this version.
  • 12:11 - 12:15
    We were told the initial amount
    of salt in the tank was 0.
  • 12:15 - 12:19
    So when t is 0, y is also 0.
  • 12:19 - 12:27
    We're going to have 100 plus t.
    [corrects self] Oops, t is 0,
  • 12:27 - 12:31
    times y, which is also 0,
  • 12:31 - 12:39
    and that's going to equal
    1/2 of 100 plus 0 to the 4th.
  • 12:39 - 12:43
    That's what C is.
  • 12:43 - 12:45
    This is all 0, that goes away.
  • 12:45 - 12:49
    And 100 to the 4th is—
  • 12:49 - 12:54
    basically, we just need to keep
    adding zeros to this thing,
  • 12:54 - 12:57
    so let's think about that.
  • 12:57 - 12:59
    100 to the 4th would be 100
  • 12:59 - 13:01
    and then two more zeros is 100 squared.
  • 13:01 - 13:06
    Two more zeros is 100 to the 3rd,
  • 13:06 - 13:09
    and then two more zeros
    is 100 to the 4th.
  • 13:09 - 13:13
    That's a lot of zeros,
    and then that gets multiplied by 1/2.
  • 13:13 - 13:18
    It's 1/2 of, let's see, 100 million.
  • 13:18 - 13:20
    so that's what C is.
  • 13:20 - 13:27
    That means that C is half of that,
    so it's 50 million.
  • 13:29 - 13:33
    You can even leave it as
    1/2 of 100 to the 4th if you prefer,
  • 13:33 - 13:35
    but that's what this ends up being.
  • 13:35 - 13:37
    So that's our constant.
  • 13:37 - 13:41
    And now that we know what that is
    (so we just figured out C),
  • 13:41 - 13:44
    now we can solve the equation for y.
  • 13:44 - 13:46
    For space reasons,
    I'm going to try to fit it in here.
  • 13:46 - 13:49
    We're going to have y equals,
  • 13:49 - 13:52
    and if we take this expression right here
  • 13:52 - 13:55
    and we divide by
    100 plus t to the 3rd,
  • 13:55 - 13:59
    then all but one of the
    100 plus t’s will cancel.
  • 13:59 - 14:03
    We'll have 1/2, 100 plus t.
  • 14:03 - 14:09
    Then the constant
    we got was 50 million
  • 14:09 - 14:17
    and that is going to be divided
    by this 100 plus t to the 3rd,
  • 14:17 - 14:21
    or we could write it as multiplying it
    by 100 plus t to the negative 3rd,
  • 14:21 - 14:23
    and that would be okay as well.
  • 14:23 - 14:26
    But what this equation tells us is,
  • 14:26 - 14:34
    it tells us how much salt in kilograms
    is going to be in our tank at any time,
  • 14:34 - 14:37
    at least as long as
    this model is realistic.
  • 14:37 - 14:38
    As the tank fills up,
  • 14:38 - 14:41
    eventually will reach a point
    where this won't work anymore,
  • 14:41 - 14:43
    but it should describe what happens
  • 14:43 - 14:45
    for at least the first
    however-many minutes
  • 14:45 - 14:47
    that we want to know
    something about it.
  • 14:47 - 14:51
    That would be the solution
    to this differential equation.
Title:
1520 9 5 4 Mixing Problem HD 1080 WEB H264 4000
Video Language:
English
Duration:
14:53

English subtitles

Revisions Compare revisions