Documente Academic
Documente Profesional
Documente Cultură
3.1 INTRODUCTION
In sciences and engineering, mathematical models are developed to aid in the understanding
of physical phenomena. These model often yield an equation that contains some derivatives
of an unknown function which is called differential equation. Examples, are free fall of object,
radioactive decay, electric circuit, management, rate of change in temperature, mixing problem
in tank and many more.
Definition 3.1
An equation containing the derivatives of one or more dependent variables, with respect to
one or more independent variables, is said to be differential equation (DE).
We need to know some common terminology to begin this chapter. A differential equation
involves with one or more dependent variables with respect to an independent variable. It is
said to be ordinary differential equations (ODE). For examples,
d 2 y dy
− + ky=0 , (1)
d x 2 dx
∂u ∂u
− =x−2 t ,(2)
∂t ∂x
A differential equation involving partial derivatives with respect to more than one independent
variables is a partial differential equation as shown in Example 2.
The order of a differential equation is the order of the highest-order derivatives present in the
d2 y
equation. Equation (1) is a second-order equation because is the highest-order derivatives
d x2
present. Equation (2) is a first-order equation because only first-order partial derivatives occur.
DIY Questions: Classify each as an ordinary differential equation (ODE) or a partial differential
equations (PDE) and give the order.
dy y ( 2−3 x )
1. Competition between two species, ecology : =
dx x ( 1−3 y )
34
Chapter 3 Differential Equations
∂2 u ∂2 u
2. Laplace’s equation, heat, aerodynamics : + =0
∂ x2 ∂ y2
A simple class of first-order equations that can be solved using integration is the class of
separable equations. These are equations
dy
=f ( x , y ) =g ( x ) h( y )(3)
dx
that can be rewritten to isolate the variables x and y on opposite side of the equation as in
1
dy=g ( x ) dx (4)
h( y )
1
∫ h( y) dy =∫ g ( x ) dx
We obtain
H ( y )+ C1=G ( x )+ C2
H ( y )=G ( x ) +C ,(5)
where we have C=C 1+C 2. Equation (5) is the general solution of Equation (3).
dy x−5
= 2 .(6)
dx y
Solution :
∫ y 2 dy=∫ ( x−5 ) dx
35
Chapter 3 Differential Equations
y3 x2
= −5 x + c .
3 2
( 1+ x ) dy− y dx=0.(8)
Solution:
( 1+ x ) dy= y dx
1 1
dy= dx (9)
y 1+ x
1 1
∫ y dy =∫ ( 1+ x ) dx
ln y=ln ( 1+ x ) +c
y
=ec
1+ x
y= (1+ x ) e c
1 1
dy + dx=0 ; y ( 4 )=−3.
x y
Solution:
36
Chapter 3 Differential Equations
dy 1 { y 4=4 ln x+ c }
1 = 3
dx x y
2 dx +e 3 x dy=0 { y= 13 e −3 x
+c }
dy 1−x 2 x3
3 dx
= 2
y { ( y 3=3 x −
3
+c )}
dv 1−4 v 2
4 x
dx
=
3v {−38 ln (1−4 v )=ln x+ c } 2
dy 3 x+2 y 1
7 dx
=e
{−12 e −2 y
= e 3 x +c
3 }
x 2 dx +2 y dy=0 −x3
8 { 2
y=
3
+c }
dy { ln y=−cos θ+c }
9 = y sin θ
dθ
dy
10 dx
=8 x 3 e−2 y
{12 e 2y
=2 x 4 + c }
The linear first order differential equations can be expressed in the form
dy
a1( x ) + a ( x ) y=b ( x ) (10)
dx 0
37
Chapter 3 Differential Equations
dy
( sin x ) +¿
dx
dy
y + ( sin x ) y 3 =e x + 1
dx
dy
is not linear due to the presence of term y 3 and y .
dx
Another method to solve the linear first order differential equation is by using integrating factor.
a1 ( x) dy a0 (x) b( x)
+ y= (11)
a1 ( x) dx a1 (x) a1 ( x)
dy
+ P ( x ) y =Q ( x ) (12)
dx
a0 (x) b(x )
as P ( x ) = and Q ( x ) = .
a1 (x) a1 (x)
dy
μ(x) + μ ( x ) P ( x ) y =μ ( x ) Q ( x ) .(13)
dx
d
[ μ ( x ) y ]=μ ( x ) Q ( x ) (14)
dx
38
Chapter 3 Differential Equations
d
∫ dx [ μ ( x ) y ]=∫ μ ( x ) Q ( x ) dx
Finally we will get the general solution,
1
y ( x) =
μ( x)
[∫ μ ( x ) Q ( x ) dx+C ] .
dy
+3 y =1.(15)
dx
Solution
Step 1: Since Equation (15) is in the standard form then, no need to do anything.
dy
e3x +3 e 3 x y =1∙ e 3 x
dx
d 3x
[ e y ]=e 3 x (16)
dx
d
∫ dx [ e 3 x y ] dx=∫ e3 x dx
1
e 3 x y= e 3 x +C
3
1 C
y= + 3 x .
3 e
39
Chapter 3 Differential Equations
dy
+ y =e 3 x .( 17)
dx
Solution
Step 1: Since Equation (17) is in the standard form then, no need to do anything.
dy x
ex +e y=e x ∙ e3 x
dx
d x
( e y )=e4 x (18)
dx
d
∫ dx ( e x y ) dx=∫ e 4 x dx
( e x y )= 1 e4 x +c
4
1 c
y= e3 x + x .
4 e
dy
x +2 y =2 x 3 (19)
dx
Solution
x dy 2 y 2 x 3
+ =
x dx x x
40
Chapter 3 Differential Equations
dy 2
+ y=2 x 2 (20)
dx x
2
Step 2: Let P ( x ) = , then the integral factor is
x
∫ 2x dx 2
μ ( x )=e =e 2 ln x =eln x =x 2 .
dy 2 2
x2 + x ∙ y=x 2 ∙ 2 x 2
dx x
dy
x2 + 2 xy =2 x 4
dx
d 2
( x y ) =2 x 4 (21)
dx
d
∫ dx ( x 2 y ) dx=∫ 2 x 4 dx
2
x 2 y = x5 + c
5
2 c
y= x 3 + 2 .
5 x
dy y
− =x e x , y ( 1 )=e−1.
dx x
Solution
Step 1: Since the equation is in the standard form then, no need to do anything.
−1
Step 2: Let P ( x ) = , the integral factor is
x
∫ −1 dx 1
=e−ln x =e ln x =x −1= .
−1
x
μ ( x )=e
x
41
Chapter 3 Differential Equations
1
Step 3: Multiply μ ( x )= to the both side of ODE,
x
1 dy 1 y 1
− ∙ = ∙ x ex
x dx x x x
1 dy y
− 2 =e x
x dx x
d y
dx x ( )
2
=e x (22)
d
∫ dx ( xy ) dx=∫ e dx
2
x
y
2
=e x + c
x
e−1 1
=e + c
12
c=e−1−e=−1.
y
Therefore the particular solution is 2
=e x −1.
x
1 dy
dx
+3 y =e x
{ y= 14 e +c e }
x −3 x
2 1 dy
t dt
−2 y =1
{ y= −12 + c e }
−t 2
3 dy 2
+ y=14 x 2
dx x {x y= 72 x + c}
2 4
4 1 dy
x dx
+2 y=x
{ y= 12 + c e }
− x2
42
Chapter 3 Differential Equations
5 dy
dx
+2 y=e3 x
{ y= 15 e 3x
+c e−2 x }
6 dy y x2
dx
=1−
x { xy=
2
+c }
7 dx 2 1
dt
=t ( 1−3 x )
{ x= +c e−t
3
3
}
8 dy x 5 x 3 47
x( dx )
+1 =x 3−2 y ; y ( 1 ) =3
{ 2
x y= − +
5 3 15 }
9 dy 2 y 2 2
− =x 2 cos x ; y ( π ) =2
dx x { y=x 2 sin x +
π2
x
}
10 dy 2 1
− y = ; y ( 1 )=2
dx x x { y= 12 + 52 x } 2
Mathematical modeling is the technique of representing real world problem which is complex,
involving multiple variables and some interrelated processes. This method can be used in the
study of growth population, radioactive decay, economics problems, changes in temperature,
mixtures, chemical reactions, biological reactions, mechanics, velocity of a falling object,
electric circuits and etc.
Example 8
Consider a large tank holding 1000L of water into which a brine solution of salt begins to flow
at a constant rate of 6L/min. The solution inside the tank is kept well stirred and is flowing out of
the tank at a rate of 6L/min. If the concentration of salt in the brine entering the tank is 1kg/L,
determine when the concentration of salt in the tank will reach 0.5kg/L.
Solution
43
Chapter 3 Differential Equations
dx
=input rate − output rate .
The rate of change of salt in the tank is dt
Output rate =
(1000x ) 6x
kg/l (6 l/min) = 1000 kg/min.
dx 6x 3x
=6− =6−
Then, the rate of change is dt 1000 500 .
dx 3000−3 x 3 (1000−x )
= =
dt 500 500
1 3
∫ 1000−x dx=∫ 500 dt
3
−ln ( 1000−x )= t +c
500
3
ln ( 1000−x )=− t +c
500
3
− t +c
ln ( 1000−x ) 500
e =e
3 3
− t+c − t
500 c 500
(1000−x)=e =e ⋅e
x=0 ,t=0:
( 1000−0 ) =e c⋅e 0
ec =1000 .
3
− t
500
( 1000−x )=1000 e
3
x=1000 1−e ( −
500
t
)
44
Chapter 3 Differential Equations
Find the time t when the concentration of the salt reach x = 0.5kg/L.
Given that the concentration of salt is 0.5 kg/L, then the quantity of salt in the tank is
0.5 kg
x ( t )= ×1000 L=500 kg .
L
−3
500=1000 (1−e )
t
500
−3
t
0.5=1−e 500
−3
t
e 500 =0.5
−3
ln (e )=ln0.5
t
500
−3
t=−0.6931
500
t=−0.6931 ( −500
3 )
=115.52 min .
Example 9 A brine solution of salt flows at a constant rate of 8 L/min into a large tank that
initially held 100 L of brine solution in which was dissolved 0.5 kg of salt. The solution
inside the tank is kept well stirred and flows out of the tank at the same rate. If the
concentration of salt in the brine entering the tank is 0.05 kg/L, determine the mass of salt in
the tank after t min. When will the concentration of salt in the tank reach 0.02 kg/L?
Solution:
45
Chapter 3 Differential Equations
Example 10 A culture initially has P0 number of bacteria. At t=1 h, the number of bacteria
3
is measured to be P0. If the rate of growth is proportional to the number of bacteria P(t )
2
present at time t, determine the time necessary for the number of bacteria to triple.
Solution
dP
∝P
dt
dP
=kP , k =constant
dt
1
∫ P dP=∫ k dt
ln P=kt+ c
P=ekt +c =e kt ∙ e c
P0=ek ( 0)+ c =e c
P=P 0 e kt
3
When t=1 h , P= P0 ,
2
3
P0=P 0 e k (1)
2
ln e k =ln ( 32 )
46
Chapter 3 Differential Equations
k =0.4055
P=P 0 e 0.4055t
When P=3 P0 ,
3 P0=P0 e 0.4055t
ln e 0.4055t =ln 3
0.4055 t=1.0986
t=2.71 h .
Example 11 The population of bacteria in a culture grows at the rate proportional to the
number of bacteria present at time t. After 3 hours, it is observed that there are 400 bacteria
present. After 10 hours, there are 2000 bacteria are present. Determine the initial number of
bacteria.
Solution
Example 12 A radioactive material decays at a rate proportional to the present amount. For a
certain radioactive substance, approximately 10% of the original quantity decomposes in 25
years. Find the half-life of this radioactive material, that is the time elapses for the quantity of
material to decay to half of its original quantity.
Solution
dQ
∝Q
dt
dQ
=kQ , k =constant
dt
47
Chapter 3 Differential Equations
1
∫ Q dQ=∫ k dt
ln Q=kt+ c
Q=ekt +c =e kt e c
Q0=ek (0) ec =e c
Q=Q 0 e kt
Then,
ln e 25 k =ln 0.9=−0.1054
−0.1054
k= =−0.0042
25
Q=Q 0 e−0.0042 t
1
Half-life means the half quantity of original amount, Q= Q 0 ,
2
1
Q 0=Q 0 e−0.0042t
2
−0.6931
t= =165 years .
−0.0042
48
Chapter 3 Differential Equations
Example 13 The radioactive isotope of lead, PB-209, decays at a rate proportional to the
amount present at time t and has a half-life of 3.3 hours. If 1 gram of lead is present initially,
how long will it take for 90% of the lead to decay?
Solution:
dT
=k ( T −T m )
dt
Where k is a constant of proportionality, T is the temperature of the object for t >0 and T m is
the temperature of the medium around the object.
Example 14 When a cake is removed from an oven, its temperature is measured at 300 ℉.
Three minutes later, its temperature is 200 ℉. How long will it take for the cake to cool off to a
room temperature of 70 ℉ ?
Solution Given that the room temperature is the temperature of the medium around the
cake and its constant, T m=70 ℉ .
dT
=k ( T−70 )
dt
1
∫ T −70 dT=∫ k dt
ln ( T −70 ) =kt+ c
c=ln 230
Therefore
ln ( T230
−70
)=kt
T =70+230 e kt
49
Chapter 3 Differential Equations
200=70+230 e3 k
130
e3 k=
230
3 k =ln 0.5652
k =−0.19
T =70+230 e−0.19 t
T (t ) t ( minutes )
75 ℉ 20.1
74 ℉ 21.3
73 ℉ 22.8
72 ℉ 24.9
71 ℉ 28.6
70.5 ℉ 32.3
It can be said that the cake will reach the room temperature in approximately 30 minutes.
1 A tank contains 200 liters of fluid in which 30 grams of salt is dissolved. Brine
containing 1 gram of salt per liter is then pumped into the tank at a rate of 4 l/min; the
well-mixed solution is pumped out at the same rate. Find the quantity of salt in the tank
−t
at time t. {x ( t ) =200−170 e ¿}
50
2 Suppose that a large mixing tank initially holds 300 L of water in which 50 kg of salt
has been dissolved. Another brine solution is pumped into the tank at rate of 3 l/min and
then when the solution is well stirred, it is pumped out at a rate of 2 l/min. If the
concentration of the solution entering is 2 kg /l, determine a differential equation for
−t
amount of salt in the tank at time t. {x ( t ) =900−850 e }
150
3 The population of a town at a rate proportional to the population present at time t. The
50
Chapter 3 Differential Equations
initial population of 500 increases by 15% in 10 years. What will be the population in 30
years? { 760 }
6 Archaeologist used pieces of burned wood, or charcoal, found at the site to date
prehistoric paintings and drawings on walls and ceilings of a cave in Lascaux, France.
Given that the half-life of C-14 is 5600 years. Determine the approximate age of a piece
of burned wood if it was found that 85.5% of the C-14 found in living trees of the same
type had decayed. { 15,572 years }
7 A thermometer is taken from an inside room to the outside where the air temperature is
5 ℉. After 1 minute the thermometer reads 55 ℉ and after 5 minutes it gave 30 ℉.
What is the initial temperature of the inside room? { 64.44 ℉ }
8 A dead body was found within a closed room of a house where the temperature was a
constant 70 ℉. At the time of discovery the core temperature of the body was determined
to be 85 ℉. One hour later, a second measurement showed that the core temperature of
the body was 80 ℉. Assume that the time of death corresponds to t=0 and that the core
temperature at the time was 98.6 ℉. Determine how many hours elapsed before the body
was found. [ Hint: Let t 1> 0 denote the time that the body was discovered.]{ 1.6 }
For any real numbers a ( a ≠ 0 ) , b , c ,t 0 ,Y 0 ∧Y 1, there exists a unique solution to the initial
value problem (IVP)
d2 y dy
a 2
+b + cy=0 ( 1 )
dx dx
' t0
( )
Subject to the initial-value : y ( t 0 )=Y 0∧ y =Y 1 .
51
Chapter 3 Differential Equations
There are several steps to follow in order to find the general solution and the particular
solution of 2nd ODE:
d 2 d2
Step 1 : Rewrite Equation (1) into D-operator form where D= , D = 2 .
dx dx
a D2 y+ bDy+cy =0(2)
a D2 +bD+c =0
a m2 +bm+ c=0( 3)
Step 2 : Find the roots of Equation (3). There are 3 types of roots:
i. If the roots are real number and different, m1=α ∧m2=β , then the general solution
will be y ( x ) =A e αx + B e βx .
ii. If the roots are real number and repeated, m 1=m 2=α , then the general solution will
be y ( x ) =A e αx + Bx e αx .
iii. If the roots are complex number, that is m=α ± βi , then the general solution will be
y ( x ) =e αx ( A cos βx + Bsin βx ) .
Step 3 : Use the initial-value condition to find the particular solution based on the general
solution that has been obtained.
d2 y dy '
2
+2 −8 y =0 ; y ( 0 )=3∧ y ( 0 )=−12.
dx dx
Solution
D2 y+ 2 Dy−8 y=0
D2 +2 D−8=0
m 2 +2 m−8=0
m=−4 @ m=2
Since the roots are real and different, then the general solution is
y= A e−4 x + B e2 x (4)
A+ B=3(i)
dy
y'= =−4 A e−4 x +2 B e2 x (5)
dx
2 B−4 A=−12(ii)
2 ( 3− A )−4 A=−12
−6 A=−18 → A=3
Therefore, B=3−3=0.
Solution:
53
Chapter 3 Differential Equations
Example 17 Find the general solution and the particular solution of the IVP.
d2 x dx '
2
+ 2 +2 x=0 ; x ( 0 )=2∧x ( 0 )=1.
dt dt
Solution:
There are two solution should be obtain in order or solve non-homogeneous 2 nd order
differential equation; the complementary solution ( y c ) and the particular solution ( y p ). The
complementary solution, y c is solved by the same method of solving the homogeneous part
which we can denoted as PART 1 and the particular solution, y p , need to be solved by method
of undetermined coefficients which we can called as PART 2.
Let y p be any particular solution of the homogeneous linear nth-order differential equation
dn y d n−1 y d n−2 y dy
an( x ) n
+ a n−1 ( x ) n−1
+a n−2 ( x ) n−2
+ ⋯+a1 +a 0 ( x ) y=g(x )
dx dx dx dx
dn y d n−1 y d n−2 y dy
an x
( ) n
+ an−1 x
( ) n−1
+a n−2 x
( ) n−2
+ ⋯+a1 +a 0 ( x ) y=0
dx dx dx dx
y=c1 y 1 ( x ) +c 2 y 2 ( x )+ ⋯+ cn y n ( x ) + y p = y c + y p ,
In PART 2, the g(x) function is the hint of finding the particular solution which can be
chosen from a table containing undetermined coefficients in suggesting the general form. There
are three steps in this part, that is,
Step 1: Assume the function of the particular integral y p by the corresponding function
of g( x ) which can be chosen from Table 1.
2
Step 2: Substitute y p into the differential equation a D ( y p ) +bD ( y p ) +c y p=g ( x ) .
54
Chapter 3 Differential Equations
Step 3: Determine the relevant coefficients to find the constant. Then the general solution
y= y c + y p .
Step 4: Solve the entire solution by using the given boundary conditions.
TABLE 1
g( x ) Assumed particular solution, y p
1 1 ( any constants ) A
2 2 x+3 ( linear function ) Ax+ B
2
3 3 x −2 x −5 ( quadratic function ) A x 2+ Bx+ c
4 x 3−x 2+ x+3 ( cubic function ) A x 3+ B x 2+ Cx+ D
5 sin 6 x ( trigonometry function ) A sin 6 x+ B cos 6 x
6 cos 6 x ( trigonometry function ) A sin 6 x+ ¿ B cos 6 x ¿
3x
7 e ( exponential function ) A e3 x
8 ( 2 x−7 ) e 7 x ( Ax+ B ) e7 x
9 x2 e5 x ( A x 2+ Bx +C ) e 5 x
10 e 9 x sin 3 x A e 9 x sin 3 x +Be 9 x cos 3 x
11 5 x 2 cos 2 x ( A x 2+ Bx +C ) cos 2 x
12 x e x cos 5 x ( Ax+ B ) e x sin 5 x + ( Cx+ D ) e x cos 5 x
d2 y dy 3t
2
+3 +2 y=10 e .
dt dt
Solution:
To solve Part 1:
55
Chapter 3 Differential Equations
D 2 y+ 3 Dy +2 y =0
D2 +3 D+2=0
( m+1 )( m+2 ) =0
m1=−1 @m2=−2.
Since the roots are real and different, then the complementary solution is
y c = A e−t + B e−2 t .
To solve Part 2:
D 2 ( a e 3 t ) +3 D ( a e 3t ) +2 ( a e 3 t )=10 e 3 t
2
d ( 3t) 3t d 3t 3t
ae =3 a e , 2 ( ae ) =9 a e
dt dt
9 a e 3 t +3 ( 3 a e 3 t ) +2 a e 3 t=10 e3 t
9 a+ 9 a+2 a=10
20 a=10
1
a=
2
1 3t
Therefore the particular solution, y p= e .
2
1
y= A e−t +B e−2 t + e3 t .
2
56
Chapter 3 Differential Equations
Example 19 Solve this boundary-value problem for the given equation below.
d2 y dy 2x '
2
−3 + 4 y=2e ; y ( 0 )=1∧ y ( 0 )=3.
dx dx
Solution:
To solve Part 1
D2−3 D+ 4=0
m1=−1 @m2=4.
Since the roots are real and different, then the complementary solution is
y c = A e 4 x + B e− x .
To solve Part 2:
D 2 ( a e 2 x )−3 D ( a e 2 x ) +4 ( a e 2 x )=2 e 2 x
d ( 2x ) 2x d2 2x 2x
ae =2 a e , 2 ( ae )=4 a e
dx dx
4 a e 2 x −3 ( 2 a e 2 x ) +4 a e2 x =2 e2 x
4 a−6 a+ 4 a=2
a=1
57
Chapter 3 Differential Equations
y= A e4 x +B e− x + e2 x .
When y ( 0 )=1 :
4 (0) −(0) 2(0)
1= A e +Be +e
A=−B (i)
dy
y'= =4 A e 4 x −B e−x +2 e 2 x
dx
4 (0) −(0 ) 2(0)
3=4 A e −B e +2 e
4 A−B=1(ii)
4 (−B )−B=1
−1
B=
5
1
A=
5
1 1
y ( x ) = e 4 x − e−x +2 e2 x .
5 5
58