Beruflich Dokumente
Kultur Dokumente
14
Solve: the ODE y ′ + 2 y = t e − 2 t (1) using integrating factor method
Know:
y ′ + p(t ) y = g (t ) (3)
Multiplying (3) through by the integrating factor, µ (t ) , which is assumed to be positive, gives:
µ (t ) y ′ + µ (t ) p(t ) y = µ (t ) g (t ) (4)
dµ
= µ (t ) p (t ) (5)
dt
so that (4) can be rewritten using the product rule for differentiation as:
d
[µ (t ) y ] = µ (t ) g (t ) (6)
dt
One can then integrate both sides of (6) with respect to t and divide through by the integrating
factor to solve for y(t ) . The integrating factor is found by rewriting (5) as:
dµ
= p (t ) dt (7)
µ
ln (µ ) = ∫ p(t ) dt + C (8)
p (t ) dt
µ (t ) = e ∫ (9)
Applying this to (1):
g (t ) = t e − 2 t ; → µ (t ) = e ∫
p(t ) = 2
2 dt
= e 2t
d 2t
dt
[ ]
e y = e 2t t e − 2t
=t (10)
t2 t 2
e 2t y = +C → y (t ) = e − 2 t + C
(11)
2 2
1 1
y (1) = e − 2 + C = 0
→ C = −
2 2
Thus, the solution to the ODE (1) with the given initial condition (2) is:
e − 2t 2
y (t ) =
2
(t −1 )
2.3.2
Find: the amount of salt, Q (t ) , contained in the tank at all times t ≥ 0 and as t → ∞
Given: tank initially contains 120 L of pure water, i.e. Q(t ) = 0 (1)
output pipe dispenses a well-stirred mixture, i.e. Q(t ) 120 L , at a rate of 2 L min
Know:
The rate of change of salt contained in the tank is going to equal the rate at which it is entering
the tank minus the rate at which it is leaving.
dQ
= rate in − rate out
dt
The rate at which salt is entering the tank is equal to γ g L ⋅ 2 L min = 2 γ g min and the rate
at which it leaves the tank is equal to Q(t ) 120 L ⋅ 2 L min = Q(t ) 60 min . Since Q (t ) is
measured in grams the units will be consistent and for convenience are not written in each step
of the analysis.
dQ Q
= 2γ − (2)
dt 60
(2) may be rewritten by taking the Q containing term on the right-hand side and bringing it
over to the left.
dQ 1
+ Q = 2γ (3)
d t 60
This is recognizable as a first-order ODE of the form y ′ + p(t ) y = g (t ) for which the integrating
factor method may be used. The integrating factor can be found to be:
1
∫ 60 dt
µ (t ) = e = e t 60 (4)
dt
e[
d t 60
]
Q = 2 γ e t 60 (5)
Integrating both sides with respect to t gives:
e t 60 Q = 120 γ e t 60 + C → Q (t ) = 120 γ + Ce − t 60
(6)
The constant of integration is determined from the initial condition of the tank containing pure
water.
Q (0 ) = 120 γ + C = 0
→ C = −120 γ (7)
Thus the amount of salt (measured in grams) contained in the tank at a given time t is:
(
Q (t ) = 120 γ 1 − e − t 60 )
After the tank / faucet system has been operating for a long time, i.e. t → ∞ , we see that the
amount of salt in the tank will reach a constant.
( )
lim t → ∞ Q(t ) = lim t → ∞ 120 γ 1 − e − t 60 = 120 γ
It is seen that it takes roughly 5-6 hours for the amount of salt to reach the long-time steady
state solution.
2.6.3
( ) ( )
Find: the general solution to the ODE 3 x 2 − 2 x y + 2 dx + 6 y 2 − x 2 + 3 dy = 0 (1) if it is exact
Know:
A differential equation M ( x, y ) dx +
( x, y ) dy = 0 (2) is exact if and only if:
∂M ∂
= (3)
∂y ∂x
M ( x, y ) = 3 x 2 − 2 x y + 2 ;
( x, y ) = 6 y 2 − x 2 + 3
∂M
= −2 x
∂y ∂M ∂
=
∂
∂ y ∂x
= −2 x
∂x
∂ψ
= M ( x, y ) (4)
∂x
∂ψ
=
(x, y ) (5)
∂y
Using the expression for M (x, y ) known from (1) and the relation given in (4) gives:
∂ψ
= 3x 2 − 2x y + 2 (6)
∂x
ψ = x 3 − x 2 y + 2 x + h( y ) (7)
The function h( y ) that appears in (7) is determined using the relationship given in (5) and the
expression for
( x, y ) which is known from (1):
∂ψ dh dh
= −x 2 + =6y2 −x2 +3
→ = 6y2 +3
∂y dy dy
~
h( y ) = 2 y 3 + 3 y + C (8)
ψ ( x, y ) = x 3 − x 2 y + 2 x + 2 y 3 + 3 y = C
3.1.2
Find: the general solution to the differential equation y ′′ + 3 y ′ + 2 y = 0 (1)
Know:
(r 2
+ 3r + 2 = 0 ) (3)
y (t ) = c 1 e − t + c 2 e − 2 t
Had the initial conditions y (t 0 ) = y 0 and y ′(t 0 ) = y ′0 been given, then the constants c 1 and c 2
could be found from
−t 0 −2 t 0 −t 0 −2 t 0
y 0 = c1 e +c2 e and y ′0 = −c 1e − 2c 2 e
We know have two equations and two unknowns, so c 1 and c 2 can be found to be:
c 1 = ( y ′0 + 2 y 0 )e
t0
c 2 = (− y 0 − y ′0 )e
2t 0
3.7.28a
Find: the solution to the initial value problem describing the motion of an undamped spring-
mass system
Given: u ′′ + 2 u = 0 (1)
u ′(0) = 2 (3)
Know:
( )
u (t ) = A cos 2 t + B sin ( 2 t) (4)
The coefficients A and B are found by plugging in the initial conditions (2) and (3):
u (0 ) = A (1) + B (0 ) = A = 0
→ A = 0
u ′(0 ) = 2 B (1) = 2 B = 2
→ B = 2
u (t ) = 2 sin ( 2 t)
5.2.2
(a) / (b)
Seek: power series solution of the given differential equation about the given point x 0
Given: y ′′ − x y ′ − y = 0 (1)
x 0 = 0 (2)
Know:
∞
y ( x ) = a 0 + a 1 x + a 2 x 2 + ... + a n x n + ... = ∑ a n x n (3)
n=0
∞
y ′( x ) = a 1 + 2 a 2 x + 3 a 3 x 2 + ... + n a n x n − 1 + ... = ∑ n a n x n − 1 (4)
n =1
∞
y ′′( x ) = 2 a 2 + 6 a 3 x + 12 a 4 x 2 + ... + n (n − 1) a n x n − 2 + ... = ∑ n (n − 1) a n x n − 2 (5)
n=2
Plugging (3), (4), and (5) into the differential equation, (1), we have:
∞ ∞ ∞
n=2
∑ n (n − 1) a n x n − 2 − x ∑ n a n x n −1 − ∑ a n x n = 0
n =1 n=0
(6)
n=2
∑ n (n − 1) a n x n − 2 − ∑ n a n x n − ∑ a n x n = 0
n =1 n=0
(7)
The sums may be rewritten such that they all start from n = 0 . This can be accomplished in the
second summation by simply changing the starting index to 0, because the n = 0 term is equal
to 0. Thus it is simply adding 0 to the summation that is already written. To start the
summation from n = 0 in the first summation, we define the index relation:
k = n − 2; n=k+2
Since we would like to combine all the summations in (7), one can now define the index
relation:
n=k
∑ (n + 2)(n + 1) a
n=0
n+2 x n − ∑nan x n − ∑an x n = 0
n=0 n=0
∞
(8)
∑ [(n + 2)(n + 1) a
n=0
n+2 ]
− (n + 1) a n x n = 0
(n + 2 )(n + 1) a n + 2 − (n + 1) a n =0
x2 x4 x6 x3 x5 x7
y ( x ) = a 0 1 + + + + ... + a 1 x + + + +
2 2⋅4 2⋅4⋅6 3 3⋅5 3⋅5⋅7
∞
x 2n ∞
2 n n ! x 2 n +1
y(x ) = a 0 ∑ + a1 ∑
n = 0 (2 n + 1)!
n
n=0 2 n!