WEBVTT

00:00:00.466 --> 00:00:04.036 A:middle
&gt;&gt; Welcome to the Cypress
College Math Review

00:00:04.036 --> 00:00:07.076 A:middle
on mixture applications
of differential equations.

00:00:08.206 --> 00:00:10.446 A:middle
This is an application
of systems

00:00:10.446 --> 00:00:11.896 A:middle
of differential equations.

00:00:13.286 --> 00:00:17.556 A:middle
Here we have two tanks;
each contains 40 gallons

00:00:17.556 --> 00:00:19.156 A:middle
of a salt solution initially.

00:00:20.186 --> 00:00:24.146 A:middle
The first tank initially
contains 10 pounds of salt

00:00:24.666 --> 00:00:26.866 A:middle
and the second tank,
five pounds of salt.

00:00:29.956 --> 00:00:34.836 A:middle
A salt solution containing four
pounds of salt per gallons runs

00:00:34.886 --> 00:00:38.166 A:middle
into the first tank at a rate
of two gallons per minute.

00:00:39.546 --> 00:00:43.576 A:middle
The mixture from the first
tank runs into the second tank

00:00:43.796 --> 00:00:45.566 A:middle
at a rate of two
gallons per minute.

00:00:47.256 --> 00:00:50.806 A:middle
The mixture in the second tank
runs out at the same rate.

00:00:52.236 --> 00:00:56.026 A:middle
Find the amount of salt in each
tank as a function of time.

00:00:57.006 --> 00:00:58.456 A:middle
So those are our unknowns.

00:00:59.646 --> 00:01:05.516 A:middle
So let's let X of one of T equal
the amount of salt in tank one

00:01:06.036 --> 00:01:11.996 A:middle
at time T. X of two of T then
is equal to the amount of salt

00:01:12.466 --> 00:01:18.946 A:middle
in tank two at time
T. So initially,

00:01:19.026 --> 00:01:24.326 A:middle
X of one of zero is
10 pounds and X of two

00:01:24.326 --> 00:01:25.906 A:middle
of zero is five pounds.

00:01:26.416 --> 00:01:31.176 A:middle
Alright we know that over here

00:01:31.176 --> 00:01:34.806 A:middle
on the left the solution
that's going

00:01:34.806 --> 00:01:42.136 A:middle
into tank one is four pounds per
gallon, that's the concentration

00:01:42.796 --> 00:01:45.456 A:middle
of the solution that's
going into tank one.

00:01:46.266 --> 00:01:48.366 A:middle
We need to know the
concentration

00:01:48.846 --> 00:01:52.926 A:middle
of the solution that's going
from tank one into tank two.

00:01:53.406 --> 00:01:55.096 A:middle
We know how fast it's running;

00:01:55.096 --> 00:01:56.996 A:middle
it's going at two
gallons per minute.

00:01:57.486 --> 00:01:59.396 A:middle
But we don't know
the concentration.

00:02:00.906 --> 00:02:03.986 A:middle
We do know that there are
40 gallons in tank one.

00:02:04.606 --> 00:02:06.346 A:middle
It started out at 40 gallons.

00:02:07.666 --> 00:02:10.366 A:middle
We do know that the
solution that's running

00:02:10.366 --> 00:02:13.786 A:middle
into tank one is going in
at two gallons per minute.

00:02:14.616 --> 00:02:17.576 A:middle
And the solution that's going
out of tank one is going

00:02:17.576 --> 00:02:18.666 A:middle
at two gallons per minute.

00:02:18.886 --> 00:02:22.016 A:middle
So it's going to maintain
a volume of 40 gallons.

00:02:23.446 --> 00:02:26.376 A:middle
But how much salt
is in tank one?

00:02:26.926 --> 00:02:29.806 A:middle
Oh, that's our unknown,
that's X of one.

00:02:30.416 --> 00:02:35.046 A:middle
So there is X of one salt
in tank one at time T.

00:02:35.556 --> 00:02:42.416 A:middle
So that's the salt and there's
40 gallons so the concentration

00:02:43.056 --> 00:02:46.716 A:middle
in tank one is X of one over 40.

00:02:48.486 --> 00:02:51.646 A:middle
So X of one over 40
is the concentration

00:02:51.646 --> 00:02:55.406 A:middle
in pounds per gallon of
the solution that's going

00:02:55.406 --> 00:02:57.266 A:middle
from tank one to tank two.

00:02:59.286 --> 00:03:02.686 A:middle
Similarly over here on the
right, the solution that's going

00:03:02.736 --> 00:03:09.656 A:middle
out of tank two it's
concentration is X of two

00:03:09.656 --> 00:03:11.466 A:middle
over 40 pounds per gallon.

00:03:12.656 --> 00:03:16.016 A:middle
The concentration of
the solution going

00:03:16.016 --> 00:03:20.966 A:middle
out of tank two would be X of
two over 40 pounds per gallon.

00:03:21.566 --> 00:03:33.586 A:middle
So the amount of salt
in each tank is changing

00:03:34.216 --> 00:03:35.456 A:middle
with respect to time.

00:03:37.546 --> 00:03:41.696 A:middle
That's the rate in
minus the rate out.

00:03:45.726 --> 00:03:48.486 A:middle
I think it's a really good
idea to write out the units

00:03:48.696 --> 00:03:50.126 A:middle
as you're going through this.

00:03:56.556 --> 00:03:57.436 A:middle
What you got coming

00:03:57.436 --> 00:04:01.386 A:middle
in the concentration
is 4 pounds per gallon;

00:04:02.366 --> 00:04:07.786 A:middle
it's coming in at two
gallons per minute.

00:04:08.996 --> 00:04:11.736 A:middle
Take a look at the
units, the gallons cancel,

00:04:12.916 --> 00:04:14.456 A:middle
and what about the
units that are left?

00:04:15.086 --> 00:04:16.076 A:middle
Pounds per minute.

00:04:17.356 --> 00:04:20.146 A:middle
And look at what you have
over on the left hand side.

00:04:21.206 --> 00:04:24.896 A:middle
X of one is in pounds,
T is in minutes,

00:04:25.126 --> 00:04:27.966 A:middle
everything makes sense, yes?

00:04:28.446 --> 00:04:31.876 A:middle
Derivatives make sense,
the Leibniz's notation

00:04:31.876 --> 00:04:34.216 A:middle
for derivatives; the units

00:04:34.216 --> 00:04:37.456 A:middle
for the numerator
should match the units

00:04:37.456 --> 00:04:38.816 A:middle
for the denominator
should match.

00:04:38.816 --> 00:04:41.036 A:middle
So, pounds per minute,
it's perfect.

00:04:42.676 --> 00:04:45.116 A:middle
Over here the concentration
of what's going out,

00:04:45.716 --> 00:04:50.576 A:middle
X of one over 40
pounds per gallon,

00:04:51.836 --> 00:04:58.536 A:middle
two gallons per minute, ok.

00:05:04.736 --> 00:05:10.876 A:middle
Second tank, what's going in
the concentration is X of one

00:05:11.076 --> 00:05:14.006 A:middle
over 40 pounds per gallon.

00:05:15.356 --> 00:05:17.306 A:middle
It's going in at two
gallons per minute.

00:05:20.456 --> 00:05:21.336 A:middle
What's going out?

00:05:22.356 --> 00:05:26.956 A:middle
The concentration is X of
two over 40 pounds per gallon

00:05:28.856 --> 00:05:33.246 A:middle
and the rate that it's going
out is two gallons per minute.

00:05:34.926 --> 00:05:38.586 A:middle
Now we're going to write that
first one without the units.

00:05:38.716 --> 00:05:43.146 A:middle
We used the prime notation,
so X of one prime is equal

00:05:43.146 --> 00:05:48.706 A:middle
to eight minus X of one over 20.

00:05:50.156 --> 00:05:56.606 A:middle
And the second one, X of
two prime equals X of one

00:05:56.916 --> 00:06:01.696 A:middle
over 20 minus X of two over 20.

00:06:03.676 --> 00:06:11.956 A:middle
Clean those up a little bit and
we have 20 X of one prime plus X

00:06:11.956 --> 00:06:23.906 A:middle
of one equals 160 and
20 X of two prime plus X

00:06:23.906 --> 00:06:26.876 A:middle
of two equals X of one.

00:06:28.736 --> 00:06:31.236 A:middle
And that's the system of
differential equations

00:06:31.236 --> 00:06:32.946 A:middle
that we have to solve
for this problem.

00:06:45.666 --> 00:06:47.526 A:middle
So here's our first
differential equation.

00:06:49.636 --> 00:06:52.456 A:middle
For the homogeneous our
auxiliary equation looks

00:06:52.456 --> 00:06:53.296 A:middle
like this.

00:06:55.006 --> 00:06:59.316 A:middle
So the solution is -1/20.

00:06:59.736 --> 00:07:04.986 A:middle
So the complimentary
solution is C sub one E

00:07:04.986 --> 00:07:15.326 A:middle
to the -1/20T, or
E to the -T/20.

00:07:17.916 --> 00:07:19.356 A:middle
And the particular solution

00:07:19.356 --> 00:07:25.626 A:middle
to the nonhomogeneous would
simply be a constant we'll call

00:07:25.626 --> 00:07:30.216 A:middle
it A. Using the method of
undetermined coefficients,

00:07:30.976 --> 00:07:32.046 A:middle
we have one derivative.

00:07:32.776 --> 00:07:37.156 A:middle
So we take a derivative of
that function and we get zero,

00:07:37.626 --> 00:07:41.006 A:middle
substitute it into the
differential equation

00:07:41.766 --> 00:07:49.026 A:middle
and we get zero plus
A equal 160,

00:07:49.026 --> 00:07:51.156 A:middle
which tells us that A is 160.

00:07:55.016 --> 00:08:04.266 A:middle
So X of one of T is equal to
the complimentary solution

00:08:04.266 --> 00:08:06.616 A:middle
which is C sub one, E

00:08:06.616 --> 00:08:13.376 A:middle
to the -T/20 plus the particular
solution to the nonhomogeneous,

00:08:13.456 --> 00:08:16.106 A:middle
which is simply the number 160

00:08:16.226 --> 00:08:21.706 A:middle
which is A. Now we
find what C sub one is.

00:08:22.436 --> 00:08:27.966 A:middle
We know that X of one
of zero is equal to 10.

00:08:28.396 --> 00:08:30.886 A:middle
Because we know there
are ten pounds of salt

00:08:31.326 --> 00:08:32.886 A:middle
in the tank at time zero.

00:08:33.586 --> 00:08:41.846 A:middle
Substituting that in we have 10
equal C sub one times one plus

00:08:41.846 --> 00:08:48.296 A:middle
160, therefore C sub
one is equal to -150.

00:08:51.736 --> 00:09:00.176 A:middle
So X of one of T
is equal to -150 E

00:09:00.176 --> 00:09:07.676 A:middle
to the power of -T/20 plus 160.

00:09:08.966 --> 00:09:10.176 A:middle
There's the first solution.

00:09:11.686 --> 00:09:15.906 A:middle
Now we look at our second
differential equation.

00:09:18.136 --> 00:09:27.626 A:middle
20 X of two prime, plus
X of two equals X of one.

00:09:27.786 --> 00:09:29.576 A:middle
We'll go ahead and
put X of one in there.

00:09:38.996 --> 00:09:40.966 A:middle
And let's solve the
homogeneous first.

00:09:44.456 --> 00:09:51.596 A:middle
Just like above, the homogeneous
gives us R is equal to -1/20.

00:09:53.266 --> 00:10:00.976 A:middle
So X of two C is C sub two
E to the -1/20 times T,

00:10:01.046 --> 00:10:04.966 A:middle
or I'll write it as -T/20.

00:10:13.566 --> 00:10:16.996 A:middle
Now let's find the particular
solution to the nonhomogeneous.

00:10:19.636 --> 00:10:22.116 A:middle
We notice immediately
that we have a repetition

00:10:22.116 --> 00:10:25.416 A:middle
between the homogeneous
and the nonhomogeneous,

00:10:26.016 --> 00:10:38.956 A:middle
so we have to multiply by T. And
then we have a constant there.

00:10:41.826 --> 00:10:44.436 A:middle
Particular solution
to the nonhomogeneous,

00:10:44.966 --> 00:10:50.106 A:middle
we take the derivative,
we have a product rule.

00:10:52.296 --> 00:10:57.406 A:middle
So we have the derivative
of BT is B times this

00:11:00.346 --> 00:11:02.186 A:middle
and then the derivative of E

00:11:02.186 --> 00:11:12.716 A:middle
to the -T/20 would
be -1/20 times BT.

00:11:21.366 --> 00:11:23.816 A:middle
And then the derivative
of C is simply zero.

00:11:26.196 --> 00:11:29.786 A:middle
So we have our derivative
of our particular solution,

00:11:30.566 --> 00:11:34.486 A:middle
now we substitute it into
our differential equation.

00:11:36.116 --> 00:11:41.976 A:middle
So we have 20 times
our derivative.

00:11:42.516 --> 00:12:01.056 A:middle
[ Silence ]

00:12:01.556 --> 00:12:20.556 A:middle
Plus the function, and
that's equal to -150 E

00:12:20.556 --> 00:12:25.906 A:middle
to the -T/20 plus 160.

00:12:29.996 --> 00:12:38.976 A:middle
Distribute the 20,
so those cancel.

00:12:39.516 --> 00:13:03.616 A:middle
[ Silence ]

00:13:04.116 --> 00:13:05.356 A:middle
These two terms cancel

00:13:05.356 --> 00:13:18.276 A:middle
out by equating coefficients
20B is equal to -150,

00:13:21.236 --> 00:13:32.036 A:middle
therefore B is equal to
-15/2, and C is equal to 160.

00:13:44.156 --> 00:13:56.676 A:middle
Recall that X of two P is equal
to BT, E to the -T/20 plus C.

00:13:58.456 --> 00:14:10.026 A:middle
So we get -15/2T, E
to the -T/20 plus 160.

00:14:12.436 --> 00:14:17.386 A:middle
Which gives us that X of
two is equal to C sub two,

00:14:18.406 --> 00:14:33.886 A:middle
E to the -T/20 minus 15/2T,
E to the -T/20 plus 160.

00:14:34.116 --> 00:14:35.736 A:middle
Now we find C sub two.

00:14:37.316 --> 00:14:41.806 A:middle
Recall that X of two of zero,
the initial amount of salt

00:14:41.806 --> 00:14:45.036 A:middle
in the tank at time
zero was five pounds.

00:14:46.136 --> 00:14:55.106 A:middle
So five is equal to C sub two
times one minus zero plus 160.

00:14:56.446 --> 00:15:00.736 A:middle
So C sub two is equal to -155.

00:15:01.966 --> 00:15:10.136 A:middle
So X of two of T is equal
to -155 times E to the power

00:15:10.136 --> 00:15:23.766 A:middle
of -T/20 minus 15/2T,
E to -T/20 plus 160.

00:15:26.426 --> 00:15:34.326 A:middle
Recall again that X
of one of T was -150 E

00:15:34.326 --> 00:15:41.346 A:middle
to the -T/20 plus 160.

00:15:42.656 --> 00:15:46.776 A:middle
And there's your solution
to the system of equations.

00:15:47.516 --> 00:15:59.856 A:middle
[ Silence ]

00:16:00.356 --> 00:16:03.456 A:middle
So we have our solutions,
S sub one of T,

00:16:03.736 --> 00:16:09.696 A:middle
X sub two of T. These functions
give the amount of salt

00:16:09.696 --> 00:16:14.626 A:middle
in each tank at time
T. So we're done.

00:16:17.276 --> 00:16:20.266 A:middle
So we solved a system of
differential equations

00:16:20.266 --> 00:16:23.776 A:middle
that we came up with and
we have our solution.

00:16:25.596 --> 00:16:26.876 A:middle
And we're happy with
that, right?

00:16:28.246 --> 00:16:30.846 A:middle
I remember back in
an algebra one class,

00:16:30.846 --> 00:16:37.256 A:middle
when I solved an equation
my teacher had me check

00:16:37.286 --> 00:16:38.006 A:middle
the solution.

00:16:39.586 --> 00:16:43.586 A:middle
And then in algebra two class,
when I learned to solve a system

00:16:43.586 --> 00:16:46.906 A:middle
of equations, they had
me check the solution.

00:16:48.676 --> 00:16:52.316 A:middle
I wonder, shouldn't we
check our solution here?

00:16:53.696 --> 00:16:54.316 A:middle
I think we should.

00:16:56.986 --> 00:17:04.326 A:middle
Let's check it.

00:17:04.656 --> 00:17:07.806 A:middle
So X of one prime, we'll need
the derivatives of course.

00:17:09.976 --> 00:17:11.046 A:middle
So that would be what?

00:17:13.876 --> 00:17:26.226 A:middle
15/2 E to the -T/20,
and similarly X

00:17:26.226 --> 00:17:42.366 A:middle
of two prime would be
155/20 E to the -T/20,

00:17:43.946 --> 00:17:46.476 A:middle
minus since I have a
product rule going on,

00:17:47.346 --> 00:17:49.006 A:middle
I'll pull out the 15/2.

00:17:49.006 --> 00:18:08.116 A:middle
So then I have E to the -T/20
minus 1/20T, E to the -T/20,

00:18:08.116 --> 00:18:40.726 A:middle
and then we'll distribute so we
have 15/40 T, E to the -T/20.

00:18:42.486 --> 00:18:44.656 A:middle
So there's our second
derivative.

00:18:46.446 --> 00:18:48.306 A:middle
Now the differential
equations that we had

00:18:48.306 --> 00:18:49.556 A:middle
to substitute them into.

00:18:51.566 --> 00:18:59.526 A:middle
We have 20 X of one prime
plus X of one equals 160,

00:18:59.526 --> 00:19:01.296 A:middle
was our first differential
equation.

00:19:01.846 --> 00:19:04.176 A:middle
So 20 times the derivative

00:19:04.176 --> 00:19:28.016 A:middle
of the first function plus the
first function should equal 160.

00:19:30.946 --> 00:19:41.216 A:middle
So we get 150 E to the -T/20
minus 150 E to the -T/20,

00:19:41.216 --> 00:19:47.246 A:middle
plus 160 equals 160, that works.

00:19:48.326 --> 00:19:49.746 A:middle
Now we go to the other equation,

00:19:52.056 --> 00:19:58.766 A:middle
the other differential
equation was 20 X of two prime.

00:20:00.596 --> 00:20:03.706 A:middle
Plus X of two should
equal X of one.

00:20:05.286 --> 00:20:21.946 A:middle
So we have 20 times 155/20,
E to the -T/20, minus 15/2 E

00:20:21.946 --> 00:20:33.916 A:middle
to the -T/20, plus
15/40 T, E to the -T/20,

00:20:35.186 --> 00:20:37.406 A:middle
and then plus X of two.

00:20:37.406 --> 00:20:44.216 A:middle
And I'll put that below
there, so we have -155 E

00:20:44.216 --> 00:20:57.866 A:middle
to the -T/20 minus 15/2 T,
E to the -T/20, plus 160

00:20:58.826 --> 00:21:05.376 A:middle
and that's supposed to equal
X of one, X of one was -150 E

00:21:05.376 --> 00:21:09.116 A:middle
to the -T/20 plus 160.

00:21:09.886 --> 00:21:11.636 A:middle
You can see when you
distribute the 20

00:21:11.636 --> 00:21:15.796 A:middle
that you'll get 155
E to the -T/20.

00:21:16.496 --> 00:21:18.416 A:middle
So this term will
cancel with this one.

00:21:19.786 --> 00:21:24.056 A:middle
When you distribute the 20
to this term you'll get 15/2

00:21:25.306 --> 00:21:27.966 A:middle
and here you'll have
-15/2 of that term.

00:21:29.826 --> 00:21:34.966 A:middle
So on the left hand side you'll
be left with 20 times -15/2.

00:21:35.246 --> 00:21:48.766 A:middle
So you'll have -150 E to the
-T/20 plus 160 Equals -150 E

00:21:48.766 --> 00:21:54.816 A:middle
to the -T/20 plus 160 and we
just checked our solution.

00:21:57.666 --> 00:21:58.746 A:middle
Not a bad idea.

