Professional Documents
Culture Documents
ln |y + a| = ln | sin x| + C
|y + a| = | sin x|eC
y + a = eC sin x
y = A sin x a
a = A sin(/3) a
3
2a = A
2
4a
A=
3
4a
Thus, the solution is y = sin x a.
3
0
(b) (x + 1)y + y = ln x, y(1) = 10
This equation is linear which we recognize by dividing both sides by (x + 1) to
obtain
1 ln x
y0 + y=
x+1 x+1
1
R
The integrating factor is I(x) = e x+1 dx = eln |x+1| = x + 1.
Multiplying both sides by the integrating factor, we obtain
(x + 1)y 0 + y = ln x
(Note that this is in fact the equation we started with. We could have noticed the
left side as the derivative of (x + 1)y right from the given differential equation.)
Integrating both sides we obtain
Z
(x + 1)y = ln xdx
(x + 1)y = x ln x x + C
(We used integration by parts to integrate ln x.)
Substituting the initial value y(1) = 10 into both sides, we have
(1 + 1)(10) = 1 ln(1) 1 + C
20 + 1 = C
C = 21
x ln x x + 21
Thus, the solution is y = .
x+1
(c) (1 + cos x)y 0 = (1 + ey ) sin x, y(0) = 0
Rewriting this as a separable equation, we have
dy sin x
y
= dx
1+e 1 + cos x
Multiply top and bottom of the left side by ey > 0.
ey dy sin x
y
= dx
e +1 1 + cos x
where A = M C.
(a) State initial value problem modelling the amount of salt in the container. Solve
the initial value problem and find the amount of time it takes for there to 1.5kg
of salt in the container.
(b) Suppose instead that the solution in the container is pumped out at 2L/min.
State the initial value problem corresponding to this scenario and solve it.
dy y
(a) = rate in rate out = (0.5kg/L)(3L/min) kg/L (3L/min), y(0) = 1
dt 4
dy 3 3y
=
dt 2 4
6 3y
=
4
dy dt
=
6 3y 4
Z Z
dy dt
=
6 3y 4
1 t
ln |6 3y| = + C
3 4
3t
|6 3y| = e 4 3C
3t
6 3y = Ae 4
A 3t
y = 2 e 4
3
A
From y(0) = 1 we get 1 = 2 which gives A = 3. We then have
3
3t
y = 2 e 4
To solve for the amount of time it takes for there to be 1.5kg of salt,
3t
1.5 = 2 e 4
3t 1
e 4 =
2
3t 1
= ln
4 2
4 1
t = ln
3 2
4
= ln (2) minutes
3
dy 3 2y
(b) = , y(0) = 1
dt 2 4+t
dy 2y 3
Re-writing the differential equation as + = , we see that this is a linear
dt 4 + t 2
differential equation. We have that
2
R
dt
I(t) = e 4+t
= e2 ln |4+t|
= (4 + t)2
So then
d 3(4 + t)2
y(4 + t)2 =
dt Z 2
3(4 + t)2
Z
d
y(4 + t)2 dt =
dt
dt 2
Z
2 3
y(4 + t) = (4 + t)2 dt
2
3 (4 + t)3
= +C
2 3
4+t C
y= +
2 (4 + t)2
From y(0) = 1 we get C = 16 so then
4+t 16
y=
2 (4 + t)2
5. Suppose that a cup of boiling hot coffee (ie its temperature is 100 C) is left in a 20 C
room and sits until it has cooled to 60 C. The cup of coffee is then taken outside where
the temperature is 5 C. After 15 minutes, the coffee is now 25 C. How long has the
coffee been cooling in total?
Let T (t) give the temperature of the coffee where t is in minutes. Newtons Law of
dT
Cooling gives = k(T TS ) where TS is the surrounding temperature. This gives
dt
that
T (t) = Cekt + TS
We have two different situations to consider. The first being the cup of coffee in the
room and the second being the cup of coffee outside. Let t denote the time at which
the coffee is removed from the room and taken outside. We have two time intervals,
when 0 t < t (when the coffee is inside) and when t t t + 15 (when the coffee
is outside).
Consider when t t t + 15. We have that TS = 5, T (t ) = 60, and T (t + 15) = 25.
From this we see that T (t) = Cekt + 5 so then 60 = T (t ) = Cekt + 5 which gives
C = 55ekt . Thus, we have T (t) = 55ek(tt ) + 5. We now solve for the value of k
using that T (t + 15) = 25,
25 = 55e15k + 5
4
e15k =
11
1 4
k= ln
15 11
Now consider the period of time when 0 t < t . We have that TS = 20 and
T (0) = 100. From this and the work above we get
1 4
T (t) = Ce 15 ln ( 11 )t + 20
100 = C + 20
C = 80
So then 1 4
T (t) = 80e 15 ln ( 11 )t + 20
From T (t ) = 60 we get
1 4
60 = 80e 15 ln ( 11 )t + 20
1 4 1
e 15 ln ( 11 )t =
2
1 4 1
ln t = ln
15 11 2
1
15 ln
t = 4
2
ln 11
15 ln 21
So then the total time that the coffee is cooling is 15 + 4
25.3 minutes.
ln 11