0rdinary Differential Equation
0rdinary Differential Equation
0rdinary Differential Equation
Instructor:
Pshtiwan Sangawi 2023 - 2024
Department of Mathematics
College of Education
University of Sulaimani
PREFACE ................................................................................................................................... V
vii
Contents
viii
Contents
ix
Contents
INDEX..................................................................................................................................... 559
x
Chapter 1
First‐Order Differential
Equations
Examples
Are they DEs or not?
0 No
1
Chapter 1 First‐Order Differential Equations
′ 0 Yes Here ′
′ ′ 0 Yes Here ′ and ′
′′ Yes Here ′
Examples
0
′ is not a solution
is a solution
Classification of DEs
Classification of DEs is itself another subject in studying DEs. We will
introduce classifications and terminologies to make the contents of
the book flow but one may still need to look up terms undefined here
or abbreviations introduced at the end of the book. First, we
introduce the terms of dependent variables DVs and independent
2
1.1 Definition of Differential Equations
Order of DEs
The order of a DE is determined by the highest order derivative of
the DV and sometimes we interchangeably call it unknown
function . If you love to generalize things, algebraic equations AE
may be classified as 0th order DEs as there are no derivatives for the
unknowns in the AEs.
Examples
Determine the orders of the following DEs.
0 1.1
0 1.2
2nd‐order 2nd.O DE:
0 1.3
0 1.4
3
Chapter 1 First‐Order Differential Equations
′′ 0 1.5
5 0 1.6
Definition Examples
ODE:
ODEs ODEs contain only one IV.
vs. PDEs contain two or PDE:
PDEs more IVs.
First‐order
The highest order of the 1st.O :
derivatives of the DVs ′
Order of DEs
determines the order of Second‐order
the DEs 2nd.O :
′′
A DE containing Linear:
Linear
nonlinear term s for the ′
vs. DVs is a nonlinear DE Nonlinear:
regardless of the nature ′′
Nonlinear
of the IVs
4
1.1 Definition of Differential Equations
A 1st‐order 1st.O DE
, ,
0 is Homo DE if both
, and , are 1st.O Homo DE:
homogeneous functions. ′
Otherwise, it is InHomo 1st.O InHomo DE:
Homogeneous DE. ′
vs.
In general, a linear DE of Homo DE:
Inhomogeneous order is a Homo DE if it
cos 0
is of the form InHomo DE:
cos
0
Otherwise, it is InHomo
DE.
Linearity of DEs
DEs can also be classified as linear or nonlinear according to the
linearity of the DVs regardless of the nature of the IVs. A DE that
contains only linear terms for the DV or its derivative s is a linear
DE. Otherwise, a DE that contains at least one nonlinear term for the
DV or its derivative s is a nonlinear DE.
Linear Nonlinear
0 0
0 0
0 0
5
Chapter 1 First‐Order Differential Equations
Solutions
A function that satisfies the DE is a solution to that DE. Seeking such
functions is the main objective of the book while composing the DEs,
which may excite engineering majors more, is the secondary
objective of this book.
Solutions can also be classified into several categories, for example,
general solutions GS , particular solutions PS , and singular
solutions SS . A GS, i.e., a complete solution, is the set of all solutions
to the DE and it can usually be expressed in a function with arbitrary
constant s . A PS is a subset of the GS whose arbitrary constant s
are determined by the initial conditions ICs or the boundary
conditions BCs or both. An SS is a solution that is singular. In a less
convoluted definition, an SS is one for which the DE, or the initial
value problem IVP or the Cauchy problem, fails to have a unique
solution at some point in the solution. The set in which the solution
is singular can be a single point or the entire real line.
Examples
Try to guess the solutions of the following DEs:
1 ′ 0
2 ′
3 ′′ 0
4 ′′ sin
5 ′′ sin where, in general,
6
1.1 Definition of Differential Equations
Problems
7
Chapter 1 First‐Order Differential Equations
Problem 1.1.7 Verify that satisfies the given DE and determine a value
of the constant so that satisfies the given IC.
3 0, exp , 0 7
Problem 1.1.8 Verify that satisfies the given DE and determine a value
of the constant so that satisfies the given IC.
tan cos , cos , 0
Problem 1.1.9 Verify that satisfies the given DE and determine a value
of the constant so that satisfies the given IC.
3 1 , tan , 0 1
8
1.1 Definition of Differential Equations
9
Chapter 1 First‐Order Differential Equations
10
1.2 Slope Fields and Solution Curves
Example 1
Find the isoclines
sin 1.10
Solution
arcsin
arcsin
Example 2
Find the isoclines
1.11
Solution
The isocline equation
,
It is a circle.
11
Chapter 1 First‐Order Differential Equations
Problems
Problem 1.2.1 Plot the solution curves and slope field for the DE for the
appropriate ranges for variables and
Problem 1.2.2 Plot the solution curves and slope field for the DE for the
appropriate ranges for variables and
2
12
1.3 Separation of Variables
All 1st.O initial value problem IVP , aka, the Cauchy problem, can be
written as
,
1.12
If , can be written as
1.13
1.14
Example 1A
Find the PS to the following IVP
6
1.15
0 7
Solution
6
ln 3 ln
exp 3
is the GS to 1.15 as shown in Figure 1.3.
13
Chapter 1 First‐Order Differential Equations
Example 1B
Is 0 a solution to DE 6 ?
Solution
If 0, for the given DE, we have
LHS 0
and
RHS 6 6 ⋅0 0
Thus,
LHS RHS
Therefore,
0
is an SS to 6 .
Example 2
Find the PS to the following IVP
4 2
3 5 1.16
1 3
14
1.3 Separation of Variables
Solution
4 2
3 5
3 5 4 2
Integrating both sides, we get the GS
5 4
Applying the IC 1 3, i.e., 3 15 4 1 , we get 9 and the
PS to the IVP is
5 4 9
Example 3
Find the GS to the following DE
0 1.17
Solution
0
1 1
1 1
1 1
Singular Solutions
A singular solution is a solution for which the IVP fails to have a
unique solution at some point on the solution. The domain on which
a solution is singular is weird as it could be a single point or the
15
Chapter 1 First‐Order Differential Equations
entire real line. The SS usually appear s when one divides the DE by
a term that might be zero while solving the DE.
Suppose we have a DE
1.18
To solve 1.18 , we divide it by .
1.19
That gives
1.20
Problems
16
1.3 Separation of Variables
′ 1
exp
0 1
17
Chapter 1 First‐Order Differential Equations
2 2
18
1.4 First‐Order Linear DEs
1.25
1.26
Let
Now, we have
1.27
Let’s now derive the method to solve the general 1st.O linear DE in
the form of 1.27 . The key idea is to absorb the term to a
19
Chapter 1 First‐Order Differential Equations
1.28
1.31
1.32
ln
Therefore, we have
exp exp 1.33
Since this function can be multiplied by any non‐zero constant
to serve as a factor, without loss of generality while gaining
simplicity, we set 1. The resulting factor
20
1.4 First‐Order Linear DEs
exp 1.34
1.35
i.e.,
1.36
Integrating both sides of DE 1.36 , we get
1.37
Now, we outline the steps to solve the 1st.O linear DEs without
memorizing the formula 1.39 .
Step 1: Convert the DE to the standard form
Step 2: Identify
Step 3: Compute the IF
exp 1.40
21
Chapter 1 First‐Order Differential Equations
exp exp
1.41
exp
Step 5: Write the LHS as a whole derivative using the product rule,
exp exp
1.42
exp
Therefore,
exp exp
1.43
exp exp
Example 1
Find the GS to the following DE
1 3 6 1.45
Solution
Step 1: Converting the DE
3 6
1 1
Step 2: Identify
3
1
Step 3: Computing the IF
22
1.4 First‐Order Linear DEs
3
exp
1
3 1
exp
2 1
3
exp ln 1
2
1
Step 4: Multiplying the DE by the IF
3 6
1 1 1
1 1
1 3 1 6 1
Step 5: Completing the solution
1 6 1
1 6 1
1
3 1 1
1
1 2 1
2 1
This is the GS to the original DE.
Example 2
Find the PS to the following IVP
sin
1 1.46
Solution
Method 1: The 1st.O linear DE method
sin
The IF
1
exp exp ln
Multiplying the IF yields
sin
⋅
23
Chapter 1 First‐Order Differential Equations
sin
1 sin
1 sin
sin
1 sin 1
exp exp
1 sin
Therefore,
1 sin
Problems
24
1.4 First‐Order Linear DEs
3
1 3 6 exp
2
0 1
Problem 1.4.5 Find the GS to the following DE using two different methods
3 7
Problem 1.4.8 Find the GS to the following DE using two different methods
2 2
1
25
Chapter 1 First‐Order Differential Equations
26
1.5 The Substitution Methods
Solve
1.49
where , , and are constants.
Step 1: Introducing a new variable .
1.50
Step 2: Transform the original DE 1.49 into a new DE of .
′
1 1.51
27
Chapter 1 First‐Order Differential Equations
1 1.53
1.54
Example
Find the GS to the following DE
3 1.55
Solution
Let
3
1
1
After the substitution, the original DE becomes
1
1
tan
tan
Substituting back into the above DE, we obtain
28
1.5 The Substitution Methods
3 tan
Thus,
tan 3
1.56
1.57
ln
1.58
exp
exp
Example
Find the GS to the following DE
2 4 3 1.59
Solution
Dividing DE 1.59 by 2
2 3
2
29
Chapter 1 First‐Order Differential Equations
4
4
Given the DE
1.60
We have a few cases depending on .
Case 1 0 :
DE 1.60 is a general 1st.O nonlinear DE.
Case 2 0 :
DE 1.60 is the 1st.O linear DE whose
solution method was introduced before.
Case 3 :
30
1.5 The Substitution Methods
Case 4 1 :
DE 1.60 is 1st.O linear DE 0
which is separable.
Case 5 2 :
DE 1.60 is a special 1st.O nonlinear DE, i.e., the Riccati DE.
Case 6 2 :
DE 1.60 is a general 1st.O nonlinear DE.
To sum up, for 0, 1, we know that DE 1.60 is a 1st.O nonlinear
DE and we have not learned any methods to solve the DE for such
cases. Now, let’s use a substitution to solve the Bernoulli DEs for
0, 1.
Solution steps
Step 1: Select a proper substitution
1.61
Step 2: Find a relationship to replace one variable
1 ′ 1.62
Step 3: Divide DE 1.60 by
1.63
Since 1, we have
1
1 1.64
1
Inserting and ′ in 1.61 and 1.62 , respectively, into DE 1.64
yields
1
′ 1.65
1
31
Chapter 1 First‐Order Differential Equations
Or
1 1 1.66
Step 4: Solve this DE 1.66 in terms of . Since it is now a 1st.O
linear DE, we can solve it by any of the methods that were
introduced before.
Step 5: Solve DE 1.66 to find .
Step 6: Back substituting variable with to express the solution in
the original variables.
Example
Find the GS to the following DE
6 3 1.67
Solution
Slight reformatting 3 leads to an obvious Bernoulli DE for
which we have
6
3
4
3
Let’s follow the step‐by‐step procedure to solve this Bernoulli DE.
Step 1:
Step 2:
1
′
3
3
3
Step 3:
3 6 3
3 6 3
2
32
1.5 The Substitution Methods
2
1
Step 4: Now, it becomes a 1st.O linear DE that can be solved using IF
exp
2
exp
exp 2 ln
where we used .
Multiplying the IF on both sides of the DE
1 2 1
1 1
1 1
1
1
Problems
33
Chapter 1 First‐Order Differential Equations
Problem 1.5.4 Find the GS to the following DE. Prime denotes derivatives
wrt .
5 2
34
1.5 The Substitution Methods
35
Chapter 1 First‐Order Differential Equations
1
0
where and are constants and ∈ 0, . Additionally, please
1 sketch the solution for 1;
2 sketch the solution for 1;
3 sketch the solution for 1;
4 identify a case for which 0 0 possible?
36
1.5 The Substitution Methods
37
Chapter 1 First‐Order Differential Equations
DEs that can be expressed as follows are called Riccati DEs, named
after the Italian mathematician J. F. Riccati 1676–1754 ,
1.68
If 0, DE 1.68 reduces to a Bernoulli DE.
If 0, DE 1.68 reduces to the 1st.O linear DE.
By intuition or by guessing, one may propose a pilot solution
with which the following solution is proposed,
1
1.69
Thus,
′
1.70
1 2
Plugging 1.69 and its associated terms 1.70 into the original
Riccati DE 1.68 , we have
1 1 2
1.71
1 1 2 1.72
38
1.6 Riccati DEs
1 1 2
0 1.74
Example 1
Find the GS to the following DE
2
1.79
Solution
This is a simple Riccati DE and, by inspection, we may assume a PS in the
following form where is a constant to be determined. Since it is a
PS, it must satisfy the original DE, i.e.,
2
1.80
We can easily find two roots 1, 2 to satisfy 1.80 for arbitrary values
of , resulting in two PS’s: or .
Next, we may select any one of the PS’s to compose the GS as
1 1
1 2 1
39
Chapter 1 First‐Order Differential Equations
We get
2
1
whose solution is
3
Finally, the GS for the DE is
1 3
Example 2
Find the GS to the following DE
2 1 1.81
Solution
This is a simple Riccati DE and, by inspection, we found a PS . The
original DE can be written as
1 2
2
i.e.,
1
whose GS is
1 1
Thus, . After back substitution, we get
40
1.6 Riccati DEs
Problems
41
Chapter 1 First‐Order Differential Equations
42
1.7 The Exact DEs
Consider a DE
6 4 3 3 0 1.82
Is it
1st‐order?
Nonlinear?
Homo DE?
InHomo DE?
Inseparable?
Non‐Bernoulli?
New methods must be introduced in order to solve DEs of this kind.
The GS to all DEs can be written as
, 1.83
With this claim, we get
1.84
, 0
Thus,
0 1.85
Therefore, we have
0 1.86
Let
43
Chapter 1 First‐Order Differential Equations
,
1.87
,
This gives
, , 0 1.88
All 1st.O DEs can be written in the above manner.
The condition for the DEs to be exact is
1.89
Example 1
Is DE
6 4 3 3 0
1.90
exact?
Solution
We have
, 6
, 4 3 3
Here
6 6 3
4 3 3 6 3
Since
6 3
The DE is exact.
Example 2
Is DE
44
1.7 The Exact DEs
3 0 1.91
exact?
Solution
From DE, we get
,
, 3
Here
1
3 3
That means
Example 3
Is DE
3 0 1.92
exact?
Solution
We get
,
, 3
Here
3
3 3
That means
3
The DE is exact.
Let’s find its solution. There is a new set of methods for solving the
exact DEs. As mentioned in the beginning of this section, the solution
to any DE can be written as
, 1.93
45
Chapter 1 First‐Order Differential Equations
, 1.94
, 3 1.95
3 3
0
46
1.7 The Exact DEs
, 1.101
, 1.102
Step 2: Find
, , 1.103
, 1.104
Remarks
In the above steps, we start from 1.101 , integrate it and, then,
plug it back into 1.102 to get the solution. Similarly, we can
start from 1.102 , integrate it and plug back into 1.101 to get
the same solution, different by a constant.
Let’s now clarify a few points:
1 Not all DEs are exact. Some non‐exact DEs can be converted
to exact DEs while others cannot. So, the question is, under
what condition s a non‐exact DE can be converted to an
exact DE.
47
Chapter 1 First‐Order Differential Equations
, , 1.107
That means
, , ,
⋅ ⋅ ⋅
⋅ 1.108
exp
1.109
Exact DE Theorem
48
1.7 The Exact DEs
For DE
, , 0 1.110
1 If
1.111
exp
2 If
1.112
exp 1.113
Remarks
1 For one DE, and may both exist. In this case, use
the most convenient form.
2 It is possible that neither nor exists.
3 You must have noticed that has no negative sign in the
exponential term while has a negative sign in the
exponential term. So, given below is the proof of why we
need the negative sign for but not for .
Proof of the negative sign in in 1.113 .
, , 0 is the given DE. The IF is chosen as
, , 0 1.114
Let
49
Chapter 1 First‐Order Differential Equations
, , 1.115
, , 1.116
We get the DE: , , 0. We want it to be exact
and, thus, we set
1.117
i.e.,
, ,
, , ,
1.118
That is
′
1.119
where
1.120
as noted above.
Solving 1.119 , we get
exp 1.121
Theorem 1
50
1.7 The Exact DEs
1.122
exp 1.123
Theorem 2
For a given 1st.O DE , , 0, if
1.124
exp 1.125
Example 4
Determine whether the DE
3 0 1.126
is exact or not. If not, convert it to an exact DE and solve it.
Solution
From the given DE, we get
,
, 3
Here, we have
1
51
Chapter 1 First‐Order Differential Equations
3 3
Since , we know that the given DE is not exact. For solving this DE,
there are two methods of doing this.
, 3 1.128
Thus, we have
3
Since , the new DE is exact and can be solved by using either
1.127 or 1.128 to find , . It appears the function in 1.128 is
easier to integrate and we opt for 1.128 to find , . We have
, 3
, 3 3 1.129
Substituting 1.129 back into 1.127 , we have
52
1.7 The Exact DEs
, 3
That gives the solution to the DE
,
That is
The IF
exp
2
exp
, 3 1.131
and
3
3 3
Since , the new DE formed is now exact.
We can now use either 1.130 or 1.131 to find , . Since the
function in 1.130 is easier to integrate, we choose 1.130 to find , .
We have
, 1.132
53
Chapter 1 First‐Order Differential Equations
It gives
0
which means
That is
Summary
We have four ways for solving a non‐exact DE, which is summarized
as follows.
exp ,
where ,
No
Exact DEs
exp ,
where ,
54
1.7 The Exact DEs
exp 1.133
Or
exp 1.134
, , 1.135
, , 1.136
,
1.137
,
, , 1.138
or equivalently,
, , 1.139
55
Chapter 1 First‐Order Differential Equations
, , 1.140
Or
, , 1.141
, , 0
Convertible
Convertible
56
1.7 The Exact DEs
Example 5
Find the GS to the following DE
, , 0 1.142
Solution
We can compose two simple partial DEs with as the DV and and as
the IVs
, 1.143
, 1.144
, ,
, ,
, , ,
Example 6
Is the following DE exact? Find the GS.
6 4 3 3 0 1.145
Solution
From the given DE, we have
, 6
, 4 3 3
Now we evaluate
6 6 3
57
Chapter 1 First‐Order Differential Equations
4 3 3 6 3
Since , the given DE is exact. Now, we find ,
, 6
, 6
3
Plugging it into
,
we have
3 4 3 3
3 3 4 3 3
4
2
Therefore, the GS to the DE is
3 2
Let’s examine the following to show that not all DEs can be solved
this way.
Example 7
Find the GS to the following DE
3 5 3 2 0 1.146
Solution
From the given DE, we have
, 3 5
, 3 2
3 5 6 5
3 2 3 6
Since , the given DE is not exact. Let’s now check if we can convert
it to an exact DE.
3
3 2
is not a function of purely , and
58
1.7 The Exact DEs
3
3 5
is not a function of purely . Therefore, the given DE cannot be converted
to an exact DE.
0
1.148
0
Now we have
,
, 1
1.149
0
Since in general , 1.147 is not an exact DE.
1.150
59
Chapter 1 First‐Order Differential Equations
Apparently, working with the first one is much easier than working
with the second one. Thus, we have our IF
1.151
exp
exp
1.152
exp 0
, exp 1.153
, exp 1.154
exp
exp 1.155
exp
exp
exp 1.156
60
1.7 The Exact DEs
, exp
1.157
exp
exp
exp
exp
exp
1.159
exp
, exp exp
1.160
61
Chapter 1 First‐Order Differential Equations
That is
Problems
62
1.7 The Exact DEs
Problem 1.7.6 Find the GS to the following DE using two different methods.
3 2
′
4
Problem 1.7.7 Find the GS to the following DE using two different methods.
2 1
1
Problem 1.7.8 Find the GS to the following DE using two different methods.
3
3
63
Chapter 1 First‐Order Differential Equations
64
1.8 Summary
1.8 Summary
65
Chapter 1 First‐Order Differential Equations
Riccati , , 0 Substitutable
2
′ is Exact if and only if ′
′ /
Separable
Figure 1.7 This Venn diagram illustrates the logical relationships of 1st.O
DEs and their solution methods.
Problems
Problem 1.8.1 Find the GS to the following DE using at least two methods
66
1.8 Summary
′ sin
Problem 1.8.2 Find the GS to the following DE using at least two methods:
30 1 15
67