Dif Lecturenotes
Dif Lecturenotes
Dif Lecturenotes
Maksat Ashyraliyev
Associate Professor, Dr.
MAT2062
Bahcesehir University
EÜİİĞL5y O
B rden fazla
1
bağımsız değ şken varsa Part al
yaya t
Iff_k 2
l
dy d2 y
a) = cos x b) 2
+ k2y = 0
dx dx
✓ 2 2
◆ ✓ ◆3
@u @ u @ u d2 y dy
c) = h2 + d) + 8y = 0
@t @x2 @y 2 dx2 dx
is an ODE.
2
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Remark 1.1. First, second and fourth equations in Example 1.1 are
examples of ODEs. Third equation in Example 1.1 is the PDE.
Example 1.2.
a) 3y 0 + xy 2 = 0 is a first order ODE.
b) xy 00 + 5y = 0 is a second order ODE.
Remark 1.2. Note that the most general form of an n-th order ODE
is ⇣ ⌘
0 00 (n)
F x, y, y , y , . . . , y = 0. (1.1)
Example 1.3.
a) 3y 0 + xy 2 = 0 is a nonlinear first order ODE.
b) x2 y 00 + 5y = 0 is a linear second order ODE.
c) xy 000 + x3 y 0 + 2y = 0 is a linear third order ODE.
d) y 0 + y 3 = 0 is a nonlinear first order ODE.
3
Lecture Notes - Di↵erential Equations M.Ashyraliyev
dy
Definition 1.7. A first order di↵erential equation = f (x, y) to-
dx
gether with an initial condition y(x0 ) = y0 is called an initial value
problem (IVP). To solve the initial value problem
8
< dy = f (x, y),
>
dx (1.3)
>
: y(x ) = y
0 0
4
Lecture Notes - Di↵erential Equations M.Ashyraliyev
x
Solution: Substituting y(x) = Ce into the given equation, we have
y0 + y = Ce x
+ Ce x
⌘ 0.
5
Lecture Notes - Di↵erential Equations M.Ashyraliyev
d) y 00 2y 0 + 2y = 0; y1 = ex cos x, y2 = ex sin x
1
e) y 0 + 2xy 2 = 0; y=
1 + x2
1
f) x2 y 00 + xy 0 y = ln x; y1 = x ln x, y2 = ln x
x
g) x2 y 00 xy 0 + 2y = 0; y1 = x cos (ln x), y2 = x sin (ln x)
a) 3y 0 = 2y b) 4y 00 = y
c) y 00 + y 0 2y = 0 d) 3y 00 + 3y 0 4y = 0
Problem 1.4. In the following examples, first verify that y(x) satisfies
the given di↵erential equation. Then determine a value of the constant
C so that y(x) satisfies the given initial condition.
6
2 Integrals as General and Particular So-
lutions
dy
The first order di↵erential equation = f (x, y) takes an especially
dx
simple form if the function f is independent of variable y, i.e. it has
the form:
dy
= f (x). (2.1)
dx
Theorem 2.1. The general solution of the first order di↵erential equa-
tion (2.1) has the form:
Z
y(x) = f (x)dx = F (x) + C, (2.2)
Example 2.1. Find the general solution of the first order di↵erential
equation:
dy
= 2x + 3.
dx
Solution: Integrating both sides of the equation, we get the general
solution Z
y(x) = (2x + 3)dx = x2 + 3x + C.
7
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Example 2.3. Find the general solution of the second order di↵erential
equation:
Sat
d2 y
dx2
= 2x + 5. Cy
Solution: Integrating both sides of the equation, we obtain
dy
Z ENG
= (2x + 5)dx = x2 + 5x + C1 .
dx Cz
Then another integration gives us the general solution of given equation
Z
⇥ 2 ⇤ x3 5x2
y(x) = x + 5x + C1 dx = + + C1 x + C2 ,
3 2
where C1 and C2 are arbitrary constants.
>
> y(0) = 1,
>
: 0
y (0) = 2.
0 d2 x
a(t) = v (t) or a= 2.
dt
>
> x(0) = 20,
>
: 0
x (0) = 10.
10
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Now, by using initial conditions x(0) = 20 and x0 (0) = 10, we find the
values of constants C1 and C2 . Namely,
11
Lecture Notes - Di↵erential Equations M.Ashyraliyev
8 8
< dy = cos 2x, < dy = p 1
>
,
g) dx h) dx 1 x2
: >
: y(0) = 0.
y(0) = 1.
8 8
< dy = xe x , < dy = x ln x,
i) dx k) dx
: :
y(0) = 1. y(1) = 1.
Problem 2.3. A diesel car gradually speeds up so that for the first 10
seconds its acceleration is given by
3t2 3t
a(t) = + (f t/sec2 )
25 5
If the car starts from rest (x0 = 0, v0 = 0), find the distance it has
traveled in 10 seconds.
12
3 Separable Equations
Definition 3.1. The first order di↵erential equation
dy
= f (x, y)
dx
is called separable if function f (x, y) can be written as the product
(or ratio) of a function of x and a function of y. So, separable equation
has the form:
dy
= g(x)h(y). (3.1)
dx
Theorem 3.1. For the solution of separable equation (3.1) we have:
Z Z
dy
= g(x)dx. (3.2)
h(y)
13
Lecture Notes - Di↵erential Equations M.Ashyraliyev
dy
Solution: Obviously, first order di↵erential equation = 6xy is
dx
separable. Separating the variables, we obtain
dy
= 6xdx.
y
Next, integrating both sides gives us
Z Z
dy 3x2
= ( 6x)dx =) ln |y| = 3x2 + ln C =) y = Ce .
y
Now, using the initial condition y(0) = 7, we obtain C = 7. So, the
solution of given IVP is
3x2
y(x) = 7e .
3y 2 5 dy = (4 2x) dx.
14
Lecture Notes - Di↵erential Equations M.Ashyraliyev
3
Obtained solution y(x) = 1 + x2 + C is a general solution of given
equation, meaning that it is a solution of equation for every value of C.
Any particular choice of a specific value for C yields a single particular
solution of the equation. Now, note that there is a particular solution
of given equation, y(x) = 1, which cannot be obtained from general
solution by selecting a value for C. This particular solution is called
a singular solution of given equation. This solution was lost at
the process of separation of variables when we divided both sides of
given equation by factor (y 1)2/3 . In conclusion, given equation has a
3
general solution y(x) = 1 + x2 + C and a singular solution y(x) = 1.
p dy p dy p
e) 2 x = 1 y2 f) = 3 xy
dx dx
dy p dy
g) = 4 3 xy h) = 2x sec y
dx dx
dy dy
i) 1 x2 = 2y k) (1 + x)2 = (1 + y)2
dx dx
l) yy 0 = x y 2 + 1 m) y 0 = xy 3
p
dy dy 1+ x
n) y 3 = y 4 + 1 cos x o) = p
dx dx 1+ y
dy (x 1)y 5
p) = q) x2 + 1 (tan y)y 0 = x
dx x2 (2y 3 y)
r) y 0 = 1 + x + y + xy s) x2 y 0 = 1 x2 + y 2 x2 y 2
y
0 xy 0 e
t) y = p u) yy =
x2 16 x3 + x
17
Lecture Notes - Di↵erential Equations M.Ashyraliyev
8 8
> dy
< dy + 1 = 2y, < (tan x) = y,
e) dx f) ⇣ ⌘ dx
:
y(1) = 1. : y ⇡ = ⇡.
>
2 2
8 8
< x dy y = 2x2 y, < dy = 2xy 2 + 3x2 y 2 ,
g) dx h) dx
: :
y(1) = 1. y(1) = 1.
8 8
> p dy
< dy = 6e2x y , <2 x = cos2 y,
i) dx k) dx
:
y(0) = 0. : y(4) = ⇡ .
>
4
8 8
> dy 2xe x2 > dy
< = , < tan x = y 2 4,
l) dx cos y m) ⇣ ⇡ ⌘dx
>
: >
:y
y(0) = 0. = 1.
2
18
4 Existence and Uniqueness of Solutions
Before one spends much time attempting to solve a given initial value
problem 8
< dy = f (x, y),
dx (4.1)
:
y(a) = b
it is wise to know whether solutions of this problem actually exist. In
other words, do all initial value problems of type (4.1) have solutions?
The following example illustrates that some initial value problems do
not have solutions!
y2
Separating the variables in the equation y 0 = , we get
x
Z Z
dy dx 1 1
= =) = ln |x| + C =) y(x) = .
y2 x y ln |x| + C
Solution of given initial value problem, if it exists, should satisfy the
1
initial condition y(0) = 1. However, solutions y(x) = are
ln |x| + C
not defined at x = 0. Therefore, given initial value problem does not
have any solutions.
19
Lecture Notes - Di↵erential Equations M.Ashyraliyev
It is easy to verify (do it yourself) that this IVP has two di↵erent
solutions y1 (x) = x3 and y2 (x) = 0.
Remark 4.2. In Example 4.1 we have shown that the initial value
y2
problem (4.2) has no solutions. Note that the function f (x, y) =
x
is discontinuous when x = 0, and hence at the point (0, 1). So by
Theorem 4.1, existence of solutions of the IVP (4.2) is not guaranteed.
20
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Remark 4.3. In Example 4.2 we have shown that the initial value
problem (4.3) has two di↵erent solutions. Note that the function
f (x, y) = 3y 2/3 is continuous everywhere, but the partial derivative
@f (x, y) 2
= p is discontinuous when y = 0, and hence at the point
@y 3 y
(0, 0). So by Theorem 4.1, the existence of the solution of IVP (4.3) is
guaranteed but the uniqueness of solution is not guaranteed. In fact,
it has two di↵erent solutions y1 = x3 and y2 = 0.
@f (x, y)
Both functions f (x, y) = y and = 1 are continuous every-
@y
where in xy-plane and therefore they are continuous on some rectan-
gular region D in xy-plane which contains point (0, 3) in its interior.
Therefore, by Theorem 4.1 existence of unique solution of given IVP
is guaranteed. Although Theorem 4.1 ensures existence of unique so-
lution only on some open interval containing x = 0, solution of this
IVP, y(x) = 3e x , is defined actually for all x.
@f (x, y)
Both functions f (x, y) = x2 + y 2 and = 2y are continuous
@y
everywhere in xy-plane and therefore they are continuous on some
rectangular region D in xy-plane which contains point (a, b) for any
values of a and b. Therefore, given IVP has a unique solution for any
initial data (a, b).
21
Lecture Notes - Di↵erential Equations M.Ashyraliyev
@f (x, y)
Both functions f (x, y) = y 2 and = 2y are continuous every-
@y
where in xy-plane and in particular they are continuous on rectangular
region D = {(x, y) | 2 < x < 2, 0 < y < 2} which contains the point
(0, 1). Theorem 4.1 guarantees a unique solution of this IVP on some
open x-interval containing x = 0. It is easy to verify that the unique
1
solution is y(x) = . But this function is discontinuous at x = 1,
1 x
so our unique solution is not defined on the entire interval 2 < x < 2.
Thus, the solution interval I of Theorem 4.1 may not be as wide as the
@f
rectangle D where f and are continuous.
@y
y @f (x, y) 1
Both functions f (x, y) = p and = p are continuous
2 x @y 2 x
on rectangular region D = {(x, y) | 0.5 < x < 1.5, 1 < y < 3} which
contains the point (1, 2). Theorem 4.1 guarantees a unique solution of
this IVP on some open x-interval containing x = 1.
22
Lecture Notes - Di↵erential Equations M.Ashyraliyev
y @f (x, y) 1
Both functions f (x, y) = p and = p are discontinuous
2 x @y 2 x
when x = 0 and hence at the point (0, 2). Thus, we cannot conclude
from Theorem 4.1 that this IVP has a solution. We are NOT saying
that this IVP does not have a solution. Theorem 4.1 simply gives NO
information one wayp or the other. In fact, given IVP does have a
solution: y(x) = 2e x .
2y @f (x, y) 2
Both functions f (x, y) = and = are continuous when-
x @y x
ever x 6= 0. Therefore, Theorem 4.1 guarantees a unique solution of
this IVP for any (a, b) with a 6= 0. If a = 0, we cannot conclude any-
thing from Theorem 4.1 about existence or uniqueness of solution of
this IVP. In fact, given IVP
23
Lecture Notes - Di↵erential Equations M.Ashyraliyev
24
5 Linear First Order Equations
Definition 5.1. The di↵erential equation in the form:
dy
+ P (x)y = Q(x) (5.1)
dx
is called linear first order di↵erential equation. We assume that
functions P (x) and Q(x) are continuous on some interval.
Theorem 5.1. An integrating factor for the linear first order di↵eren-
tial equation (5.1) has the form:
R
P (x)dx
µ(x) = e . (5.2)
Remark 5.1. Using the result of Theorem 5.1, we can now describe
the method to solve the linear first order di↵erential equation (5.1). It
consists of following steps:
R
P (x)dx
1. Calculate the integrating factor µ(x) = e
26
Lecture Notes - Di↵erential Equations M.Ashyraliyev
1
Multiplying both sides of given equation by µ(x) = yields
x
1 dy y
· = cos x
x dx x2
which we recognize as ⇣1 ⌘0
· y = cos x.
x
Then, integration of both sides gives
Z
y
= cos xdx = sin x + C.
x
Finally, multiplying both sides by x allows us to obtain the general
solution of given equation
y(x) = x(sin x + C).
which we recognize as
⇣ ⌘0
3/2 1/2
x2 + 1 y = 6x x2 + 1 .
3/2
Finally, dividing both sides by x2 + 1 allows us to obtain the gen-
eral solution of given equation
3/2
y(x) = 2 + C x2 + 1 .
x dy 11
e e xy = e 4x/3
dx 8
which we recognize as
⇣ ⌘0 11
x 4x/3
e y = e .
8
29
Lecture Notes - Di↵erential Equations M.Ashyraliyev
which we recognize as ⇣ ⌘0
2 x
xe y = xe2x .
Then, integration of both sides gives
Z
xe2x e2x
x2 ex y = xe2x dx = + C.
2 4
Finally, dividing both sides by x2 ex allows us to obtain the general
solution of given equation
xe2x e2x
2 4 +C
y(x) = .
x ex
2
which we recognize as
d⇣ 4 ⌘
y · x(y) = y.
dy
Then, integration of both sides with respect to y gives
Z
4 y2
y x(y) = ydy = + C.
2
y
i) y 0 + 2xy = x k) y 0 = (x2 1)ex
x+1
y 1
l) xy 0 + (2x + 1)y = xe 2x
m) y 0 + =
x2 x2
32
Lecture Notes - Di↵erential Equations M.Ashyraliyev
( (
xy 0 + 2y = 3x, xy 0 + 5y = 7x2 ,
c) d)
y(1) = 5. y(2) = 5.
( (
xy 0 y = x, xy 0 + y = 3xy,
e) f)
y(1) = 7. y(1) = 0.
( (
xy 0 + 3y = 2x5 , y 0 + y = ex ,
g) h)
y(2) = 1. y(0) = 1.
( (
xy 0 3y = x3 , y 0 + 2xy = x,
i) k)
y(1) = 10. y(0) = 2.
( (
y 0 = (1 y) cos x, (1 + x)y 0 + y = cos x,
l) m)
y(⇡) = 2. y(0) = 1.
( (
y 0 = 1 + x + y + xy, xy 0 = 3y + x4 cos x,
n) o)
y(0) = 0. y(2⇡) = 0.
( (
0
y = 2xy + 3x e , 2 x2 x2 + 4 y 0 + 3xy = x,
p) q)
y(0) = 5. y(0) = 1.
33
Lecture Notes - Di↵erential Equations M.Ashyraliyev
( (
x2 + 1 y 0 + 4xy = x,
3 2
x2 + 1 y 0 + 3x3 y = 6xe 2x ,
r) s)
y(0) = 1. y(2) = 1.
34
6 Substitution Methods, Homogeneous Equa-
tions, Bernoulli Equations
The first order di↵erential equations we have solved so far have all been
either separable or linear. But many applications involve di↵erential
equations that are neither separable nor linear. In this section we illus-
trate that substitution methods sometimes can be used to transform a
given di↵erential equation into either separable or linear equation.
v = ↵(x, y) (6.2)
35
Lecture Notes - Di↵erential Equations M.Ashyraliyev
1
which is a first order linear di↵erential equation with P (x) = and
x
Q(x) = 3x3 . We find the integrating factor:
R R dx 1
P (x)dx ln x
µ(x) = e =e x =e = .
x
1
Therefore, multiplying both sides by µ(x) = yields
x
1 dv 1
2
v = 3x2
x dx x
which we recognize as ⇣ 1 ⌘0
v = 3x2 .
x
Then, integration of both sides gives
v
= x3 + C.
x
Multiplying both sides by x gives us
v = x4 + Cx.
Since v = e2y , making a back substitution we obtain a general solution
of given di↵erential equation
1
e2y = x4 + Cx =) y(x) = ln |x4 + Cx|.
2
y dy dv
We use the substitution v = , so that y = xv. Then = v+x .
x dx dx
Putting these in equation (6.6) we get
dv dv F (v) v
su
v+x = F (v) or =
dx dx x
which is a separable equation.
Thus, every homogeneous equation can be transformed to
y
separable equation with the use of substitution v = .
x
Example 6.3. Find a general solution of the di↵erential equation:
dy
2xy = 4x2 + 3y 2 .
dx
Solution: We first divide both sides of given equation by 2xy. We get
dy 4x2 + 3y 2 x 3 y
= =2· + ·
dx 2xy y 2 x
We now see that this equation is a homogeneous first order di↵erential
y
equation. We use the substitution v = . Then
x
y dy dv
v= =) y = xv, =v+x .
x dx dx
Putting these in equation we get
dv 2 3v
v+x = +
dx v 2
and hence
dv 2 v dv v2 + 4
x = + or x =
dx v 2 dx 2v
which is a separable equation. Separating the variables, we obtain
2vdv dx
= .
v2 + 4 x
38
Lecture Notes - Di↵erential Equations M.Ashyraliyev
40
Lecture Notes - Di↵erential Equations M.Ashyraliyev
2x(1 + Cx4 )
So, the general solution of given di↵erential equation is y(x) = .
1 Cx4
41
Lecture Notes - Di↵erential Equations M.Ashyraliyev
v = y1 n
(6.8)
n dy
y + P (x)y 1 n
= Q(x). (6.10)
dx
Di↵erentiating (6.8) we have
dv n dy 1 dv n dy
= (1 n)y or =y .
dx dx 1 n dx dx
Therefore, substituting (6.8) into equation (6.10) yields
1 dv
+ P (x)v = Q(x).
1 n dx
Finally, multiplying both sides by 1 n we obtain (6.9), which com-
pletes the proof.
4
We now see that this equation is a Bernoulli equation with n = ,
3
6
P (x) = and Q(x) = 3. Next, we divide both sides by y 4/3 to get
x
4/3 dy6 1/3
y + y = 3.
dx x
Now, making a substitution
dv 1 4/3 dy
v = y1 n
= y1 4/3
=y 1/3
, = y
dx 3 dx
transforms the equation into
dv 6 dv 2
3 + v = 3 or v= 1
dx x dx x
which is a linear equation. We find the integrating factor:
R 2 1
µ(x) = e x dx =e 2 ln x
= .
x2
1
Therefore, multiplying both sides by µ(x) = yields
x2
1 dv 1 1
v=
x2 dx x3 x2
which we recognize as ⇣ 1 ⌘0 1
v = .
x2 x2
Then, integration of both sides gives
v 1
= + C.
x2 x
Multiplying both sides by x2 gives us
v = x + Cx2 .
43
Lecture Notes - Di↵erential Equations M.Ashyraliyev
2x dv 2x 2x
e 2e v= 2xe
dx
which we recognize as
⇣ ⌘0
2x 2x
e v = 2xe .
44
Lecture Notes - Di↵erential Equations M.Ashyraliyev
g) xy 2 y 0 = x3 + y 3 h) x2 y 0 = xy + x2 ey/x
i) x2 y 2 y 0 = 2xy j) x2 y 0 = xy + y 2
p
k) xyy 0 = x2 + 3y 2 0 2
l) xyy = y + x 4x2 + y 2
p p
0 0
m) xy = y + x2 + y 2 n) yy + x = x2 + y 2
⇣y ⌘
o) x(x + y)y 0 + y(3x + y) = 0 0
p) xy = y + x tan
x
0 2xy + 3y 2 y 3
q) y = r) xy 0 = 2
2xy + x2 y x2
p p p
3 2
0 x + y x2 + y 2 0 x+y+ x y
s) y = p t) y = p p
xy x2 + y 2 x+y x y
c) y 0 = y + y 3 d) x2 y 0 + 2xy = 5y 4
y y2
e) y 0 = f) 2xy 0 + y 3 e 2x
= 2xy
x x
p
0
2
g) y (xy + y) 1 + x4 = x h) 3y 2 y 0 + y 3 = e x
i) 3xy 2 y 0 = 3x4 + y 3 j) x2 y 0 + xy = xy 3
8x
k) xy 0 + y = 2x6 y 4 l) y 0 + 4xy =
y3
(x + 1)y x+1
m) y 0 + = n) xy 0 + y = y 2 x2 ln x
2x xy
47
Lecture Notes - Di↵erential Equations M.Ashyraliyev
8 8
< dy + y = x ,
> < x dy + y = (xy)3/2 ,
>
c) dx 2x y 3 d) dx
>
: >
: y(1) = 4.
y(1) = 2.
8 8 2 2
< dy = 2x 5y ,
> < dy = 3x + 9xy + 5y ,
>
e) dx y 4x f) dx 6x2 + 4xy
>
: >
:
y(1) = 4. y(2) = 6.
48
7 Exact Di↵erential Equations
The first order di↵erential equation:
dy
= f (x, y) (7.1)
dx
can be written in the di↵erent form:
M (x, y)dx + N (x, y)dy = 0. (7.2)
(7.1) is called derivative form and (7.2) is called di↵erential form.
dy x2 + y 2
Example 7.1. For instance, the equation = can be written
dx x y
in the di↵erential form:
x2 + y 2 dx + (y x)dy = 0.
And other way around, the equation
(sin x + y) dx + (x + 3y)dy = 0
dy sin x + y
may be written in the derivative form as = .
dx x + 3y
Example 7.2. Let F (x, y) = xy 2 + 2x3 y for all real (x, y). Then the
total di↵erential of this function is defined by
@F @F
dF = dx + dy = y 2 + 6x2 y dx + 2xy + 2x3 dy.
@x @y
49
Lecture Notes - Di↵erential Equations M.Ashyraliyev
F (x, y) = C,
=) dF (x, y) = 0 =) F (x, y) ⌘ C.
y 2 dx + 2xydy = 0.
xy 2 = C.
50
Lecture Notes - Di↵erential Equations M.Ashyraliyev
where functions M (x, y) and N (x, y) have continuous first partial deriva-
tives. Equation (7.5) is an exact di↵erential equation if and only if
@M @N
= . (7.6)
@y @x
Proof. If equation (7.5) is exact then by definition there exists some
function F (x, y) such that
@F @F
= M (x, y) and = N (x, y).
@x @y
Then
@ 2F @M @ 2F @N
= and = .
@y@x @y @x@y @x
@ 2F @ 2F
Since, both and are continuous, we have
@y@x @x@y
@ 2F @ 2F @M @N
= =) = .
@y@x @x@y @y @x
We leave out the proof of converse for self-study.
Remark 7.1. Using the results of Theorem 7.1 and Theorem 7.2, we
can now describe the method to solve equation (7.5) if it is exact. It
consists of following steps:
51
Lecture Notes - Di↵erential Equations M.Ashyraliyev
52
Lecture Notes - Di↵erential Equations M.Ashyraliyev
53
Lecture Notes - Di↵erential Equations M.Ashyraliyev
y2
Hence, b0 (y) = y and therefore b(y) = + C1 . Thus function
2
2 3 y2
F (x, y) = x cos y + x y + C1 satisfies both equalities in (7.9).
2
Then the general solution of equation is
2 3 y2
x cos y + x y = C.
2
54
Lecture Notes - Di↵erential Equations M.Ashyraliyev
2 3 y2
x cos y + x y + 2 = 0.
2
Example 7.7. Determine the value of constant A such that the dif-
ferential equation
✓ ◆ ✓ 2 ◆
2x Ax
+ y cos (xy) 3 dx + + x cos (xy) dy = 0
y2 y3
is exact and solve the resulting exact equation.
Solution: We first find the value of constant A for which the given
di↵erential equation is exact.
2x @M 4x
M (x, y) = + y cos (xy) 3 =) = + cos (xy) xy sin (xy)
y2 @y y3
Ax2 @N 2Ax
N (x, y) = 3 + x cos (xy) =) = 3 + cos (xy) xy sin (xy)
y @x y
55
Lecture Notes - Di↵erential Equations M.Ashyraliyev
56
Lecture Notes - Di↵erential Equations M.Ashyraliyev
e) 3x2 + 2y 2 dx + 4xy + 6y 2 dy = 0
57
Lecture Notes - Di↵erential Equations M.Ashyraliyev
8✓ ◆ ✓ ◆
< 3
> y y 2 2x
dx + dy = 0
b) x2 xy 2
>
:
y( 1) = 2
Problem 7.3. In the following examples, first find the value of con-
stant A such that the given equation is exact and then solve the re-
sulting exact equation:
a) x2 + 3xy dx + Ax2 + 4y dy = 0
✓ ◆ ✓ ◆
1 1 Ax + 1
b) + dx + dy = 0
x2 y 2 y3
58
8 Population Models
Di↵erential equations have wide range of applications in various fields
of science and engineering. Here we will present an application for
population models.
and therefore
P (t + 4t) P (t)
⇡( ) P (t).
4t
Taking the limit as 4t ! 0 from both sides, we get
dP
= kP, (8.1)
dt
where k = .
Equation (8.1) can be easily solved by separating the variables and
integrating. Its solution is
P (t) = Cekt .
So, the particular solution of (8.1) with the initial condition P (0) = P0
is simply
P (t) = P0 ekt . (8.2)
59
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Remark 8.1. Note that for solution (8.2) of the natural growth equa-
tion (8.1) we have three di↵erent possibilities:
• P (t) ! 1 as t ! 1 when k = >0
• P (t) ! 0 as t ! 1 when k = <0
• P (t) ⌘ P0 when k = =0
So, population explodes if the birth rate is larger than the death rate
and it dies out if the death rate is larger than the birth rate.
60
Lecture Notes - Di↵erential Equations M.Ashyraliyev
billion per year. From the natural growth equation (8.1) with t = 0
we now obtain
P 0 (0) 0.07743
k= ⇡ ⇡ 0.0129.
P (0) 6
Thus the world population was growing at the rate of about 1.29%
annually in 1999. This value of k gives the world population function
P (t) = 6e0.0129t .
61
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Then the number of births and deaths that occur during the time in-
terval [t, t+4t] is given approximately by (t)P (t)4t and (t)P (t)4t,
respectively. Hence the change in the population during the time in-
terval [t, t + 4t] is
so
P (t + 4t) P (t)
⇡ ( (t) (t)) P (t).
4t
Taking the limit as 4t ! 0 from both sides, we get
dP
= (t) (t) P (t). (8.3)
dt
Equation (8.3) is called the general population equation. If func-
tions (t) and (t) are constant, then equation (8.3) reduces to the
natural growth equation (8.1). But it also includes the possibility that
(t) and (t) are variable functions of t.
Remark 8.2. The birth and death rates need not be known in advance;
they may well depend on the unknown function P (t).
62
Lecture Notes - Di↵erential Equations M.Ashyraliyev
dying). If the birth rate is (t) = 0.0005P (t) - and thus increases as the
population does - then equation (8.3) gives the initial value problem
8
< dP = 0.0005P 2 ,
dt
:
P (0) = 100.
Then upon separating the variables and integrating both sides we get
Z Z
dP 1
= 0.0005dt =) = 0.0005t + C.
P2 P
Substitution of t = 0 and P = 100, gives C = 1/100; and then we
readily solve for
2000
P (t) = .
20 t
For instance, P (10) = 200, so after 10 years the alligator population
has doubled. But we see that P (t) ! 1 as t ! 20, so a real ”popula-
tion explosion” occurs in 20 years.
64
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Note that for solution (8.7) we have lim P (t) = 150, whatever the
t!1
initial value P0 > 0.
Problem 8.2. Suppose that the fish population P (t) in a lake is at-
tacked by a disease at time t = 0, with the result that the fish cease
to reproduce (so that the birth rate is = 0) and the p death rate
(deaths per week per fish) is thereafter proportional to 1/ P . If there
were initially 900 fish in the lake and 441 were left after 6 weeks, how
long will it take all the fish in the lake to die?
65
Lecture Notes - Di↵erential Equations M.Ashyraliyev
66
9 Reducible Second Order Di↵erential Equa-
tions
A second order di↵erential equation involves the second derivative of
unknown function y(x), and thus has the general form
F (x, y, y 0 , y 00 ) = 0. (9.1)
to get a solution of the equation (9.2) that involves two arbitrary con-
stants C1 and C2 (as is to be expected in the case of second order
di↵erential equation).
67
Lecture Notes - Di↵erential Equations M.Ashyraliyev
xy 00 + 2y 0 = 6x.
Example 9.2. Find the general solution of the second order di↵erential
equation
2
y 00 = y 0 .
Solution: Given equation is reducible since dependent variable y is
missing in it. Then the substitution (9.3) gives the first order separable
di↵erential equation:
dv
= v2.
dx
Separation of variables gives
Z Z
dv 1 1
2
= dx =) = x + C1 =) v = .
v v x + C1
dy
Since v = y 0 = , we get
dx
dy 1
= .
dx x + C1
Finally, integrating both sides of last equality we obtain the general
solution of given second order di↵erential equation as following:
Z
dx
y(x) = = ln |x + C1 | + C2 .
x + C1
F (y, y 0 , y 00 ) = 0. (9.4)
69
Lecture Notes - Di↵erential Equations M.Ashyraliyev
yy 00 = (y 0 )2 ,
where y 0 and y 0 0.
Solution: Observe that in this di↵erential equation the independent
variable x is missing. Then the substitution (9.5) gives the first order
di↵erential equation
dv
yv = v2.
dy
Then separation of variables gives
Z Z
dv dy
= =) ln v = ln y + ln C1 =) v = C1 y.
v y
dy
Since v = , we have
dx
Z Z
dy dy
= C1 y =) = C1 dx =) ln y = C1 x + ln C2 ,
dx y
so that the general solution of given equation is
y(x) = C2 eC1 x .
70
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Example 9.4. Find the general solution of the second order di↵erential
equation
2
yy 00 + y 0 = yy 0 .
Solution: Given equation is reducible since the independent variable
x is missing in it. Then the substitution (9.5) gives the first order
di↵erential equation:
dv
yv + v 2 = yv.
dy
Dividing both sides by yv gives
dv v
+ = 1,
dy y
which is the first order linear equation for v(y). We find the integrating
factor: R dy
µ(y) = e y = eln y = y.
Multiplying both sides of the equation by µ(y) = y yields
dv
y +v =y
dy
or
d⇣ ⌘
yv = y.
dy
Then, integration of both sides with respect to y gives
Z
y2
yv = ydy = + C1 .
2
Dividing both sides by y, we obtain
y C1 y 2 + 2C1
v= + = .
2 y 2y
dy
Since v = y 0 = , we get
dx
dy y 2 + 2C1
= ,
dx 2y
71
Lecture Notes - Di↵erential Equations M.Ashyraliyev
c) xy 00 + y 0 = 4x d) x2 1 y 00 + 2y 0 = 0
⇣ 1⌘ 0 2
e) x2 y 00 + 3xy 0 = 2 00
f) y = 2y (y )
y
2 3
g) y 00 = (x + y 0 ) h) y 00 = 2y (y 0 )
i) y 3 y 00 = 1 j) y 00 = 2yy 0
2
k) yy 00 = 3 (y 0 ) l) (tan x)y 00 = y 0
72
10 Basic Theory of Higher Order Linear
Di↵erential Equations
Linear di↵erential equation of order n has the most general form:
a0 (x)y (n) + a1 (x)y (n 1)
+ . . . + an 1 (x)y 0 + an (x)y = F (x). (10.1)
y (n) + p1 (x)y (n 1)
+ . . . + pn 1 (x)y 0 + pn (x)y = 0.
74
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Theorem 10.1, given initial value problem has a unique solution on the
open interval I which contains point x = 2 and does not contain
point x = 1. The longest interval that satisfies these conditions is
I = ( 1, 1).
(n) (n 1)
= c1 y1 + p1 (x)y1 + . . . + pn 1 (x)y10 + pn (x)y1 +
(n) (n 1)
+ c2 y2 + p1 (x)y2 + . . . + pn 1 (x)y20 + pn (x)y2 +
+ ...... +
+ cn yn(n) + p1 (x)yn(n 1)
+ . . . + pn 1 (x)yn0 + pn (x)yn =
= c1 · 0 + c2 · 0 + . . . + cn · 0 ⌘ 0
for all x 2 I. So, y = c1 y1 + c2 y2 + . . . + cn yn satisfies the homogeneous
linear equation (10.4) on the whole interval I.
y 000 2y 00 y 0 + 2y = 0.
76
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Example 10.4. One can easily show that both y1 (x) = 1 + cos x and
y2 (x) = 1 + sin x are solutions of the second order linear di↵erential
equation
y 00 + y = 1.
However,
y(x) = y1 (x) + y2 (x) = 2 + cos x + sin x
is not a solution. The principle of superposition fails here, since the
given linear equation is not homogeneous.
p
Example 10.5. One can easily show that y1 (x) = 1 and y2 (x) = x
are solutions of the second order di↵erential equation
yy 00 + (y 0 )2 = 0.
However, p
y(x) = y1 (x) + y2 (x) = 1 + x
is not a solution. The principle of superposition fails here, since the
given equation is not linear.
Example 10.6. Verify that the functions y1 (x) = ex and y2 (x) = xex
are solutions of the second order linear di↵erential equation
y 00 2y 0 + y = 0
and then find a solution satisfying the initial conditions y(0) = 3 and
y 0 (0) = 1.
Solution: We have
y1 = e x =) y10 = ex =) y100 = ex =)
=) y100 2y10 + y1 = ex 2ex + ex ⌘ 0.
77
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Note that from the Theorem 10.1 we know that this solution is unique.
78
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Remark 10.2. If not all the coefficients in (10.5) are zero, then clearly
we can solve for at least one of the functions as a linear combination
of the others. Thus the functions f1 , f2 , . . . , fn are linearly dependent
if and only if at least one of them is a linear combination of the others.
79
Lecture Notes - Di↵erential Equations M.Ashyraliyev
which must all hold for all x 2 I. We recall from linear algebra that
a system of n linear homogeneous algebraic equations in n unknowns
has a nontrivial solution if and only if the determinant of coefficients
is zero. In (10.6) the unknowns are the constants c1 , c2 , . . . , cn and the
determinant of coefficients is simply the Wronskian W (f1 , f2 , . . . , fn )
evaluated at the point x 2 I. Because we know that the ci are not all
zero, it follows that W (f1 , f2 , . . . , fn ) ⌘ 0.
81
Lecture Notes - Di↵erential Equations M.Ashyraliyev
f1 f2 f3 1 x x2
W (f1 , f2 , f3 ) = f10 f20 f30 = 0 1 2x = 2 6= 0.
f100 f200 f300 0 0 2
3x
Example 10.16. Let f1 (x) = e , f2 (x) = cos 2x and f3 (x) = sin 2x.
Then
3x
f1 f2 f3 e cos 2x sin 2x
3x
W (f1 , f2 , f3 ) = f10 f20 f30 = 3e 3x
2 sin 2x 2 cos 2x = 26e 6= 0.
f100 f200 f300 9e 3x
4 cos 2x 4 sin 2x
Note that for these functions W (f1 , f2 ) ⌘ 0 on the entire real line.
82
Lecture Notes - Di↵erential Equations M.Ashyraliyev
are linearly independent on the whole real line. We can verify it in the
following way. The equality
c1 f1 (x) + c2 f2 (x) = 0
y (n) + p1 (x)y (n 1)
+ . . . + pn 1 (x)y 0 + pn (x)y = 0
83
Lecture Notes - Di↵erential Equations M.Ashyraliyev
y (n) + p1 (x)y (n 1)
+ . . . + pn 1 (x)y 0 + pn (x)y = 0 (10.7)
Next, by using the Theorem 10.1, equation (10.7) has a unique solution,
say y2 (x), that satisfies initial conditions
(n 2) (n 1)
y2 (a) = 0, y20 (a) = 1, y200 (a) = 0, . . . , y2 (a) = 0, y2 (a) = 0.
Next, by using the Theorem 10.1, equation (10.7) has a unique solution,
say y3 (x), that satisfies initial conditions
(n 2) (n 1)
y3 (a) = 0, y30 (a) = 0, y300 (a) = 1, . . . , y3 (a) = 0, y3 (a) = 0.
and therefore from the Theorem 10.5 it follows that these solutions
y1 (x), y2 (x), . . . , yn (x) are linearly independent on I.
84
Lecture Notes - Di↵erential Equations M.Ashyraliyev
y (n) + p1 (x)y (n 1)
+ . . . + pn 1 (x)y 0 + pn (x)y = 0 (10.8)
for all x 2 I.
85
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Thus we have two solutions of equation (10.8), Y (x) and G(x), both
satisfying the same initial conditions. But from the Theorem 10.1 we
have the uniqueness of a solution of corresponding initial value problem
and therefore we get
Remark 10.4. From the Theorem 10.7 it follows that having n linearly
independent solutions y1 , y2 , . . . , yn , every solution y(x) of the n-th
order homogeneous linear di↵erential equation (10.8) can be written
in the form
x3 y 000 x2 y 00 + 2xy 0 2y = 0
86
Lecture Notes - Di↵erential Equations M.Ashyraliyev
on the open interval I = (0, 1). Then write the general solution of
this equation.
Solution: We have
y1 = x =) y10 = 1 =) y100 = y1000 = 0 =)
=) x3 y1000 x2 y100 + 2xy10 2y1 = 2x 2x ⌘ 0.
for x > 0. Then, from the Theorem 10.5 it follows that y1 (x) = x,
y2 (x) = x ln x, y3 (x) = x2 are linearly independent solutions of given
equation. Hence the general solution of given equation is
87
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Remark 10.5. From the Theorem 10.8 it follows that in order to find
the general solution of the n-th order nonhomogeneous linear di↵eren-
tial equation (10.11), we first have to find the general solution of the
associated homogeneous equation (10.12) and then we have to find one
particular solution of equation (10.11).
88
Lecture Notes - Di↵erential Equations M.Ashyraliyev
89
Lecture Notes - Di↵erential Equations M.Ashyraliyev
b) f1 (x) = x + 1, f2 (x) = x2
e) f1 (x) = x, f2 (x) = cos (ln x), f3 (x) = sin (ln x), I = (0, 1)
90
Lecture Notes - Di↵erential Equations M.Ashyraliyev
x2 y 00 3xy 0 + 3y = 0
and then verify that W (y1 , y2 ) ⌘ 0. Why do these facts do not contra-
dict Theorem 10.5?
Problem 10.6. Show that y1 = sin (x2 ) and y2 = cos (x2 ) are linearly
independent functions, but that their Wronskian vanishes (becomes
zero) at x = 0. Why does this imply that there is no di↵erential
equation of the form y 00 + p(x)y 0 + q(x)y = 0, with both p and q
continuous everywhere, having both y1 and y2 as solutions?
91
Lecture Notes - Di↵erential Equations M.Ashyraliyev
1 ln x
a) Show that functions y1 (x) = x, y2 (x) = 2 and y3 (x) = 2
x x
are linearly independent solutions of the given equation on the
interval I = (0, 1).
92
11 Homogeneous Linear Equations
We have already mentioned that a general solution of an n-th order
homogeneous linear di↵erential equation is a linear combination of n
linearly independent solutions. In this section we illustrate how to find
those linearly independent solutions. Note that it is only possible for
some specific types of linear equations.
93
Lecture Notes - Di↵erential Equations M.Ashyraliyev
2y 00 7y 0 + 3y = 0.
2r2 7r + 3 = 0.
(r 3)(2r 1) = 0
r3 + 3r2 10r = 0.
94
Lecture Notes - Di↵erential Equations M.Ashyraliyev
r(r + 5)(r 2) = 0
y(0) = c1 + c2 + c3 = 7,
y 0 (0) = 5c2 + 2c3 = 0,
y 00 (0) = 25c2 + 4c3 = 70
c1 + c2 x + c3 x2 + . . . + ck xk 1
erx . (11.4)
y 00 + 2y 0 + y = 0.
r2 + 2r + 1 = 0
95
Lecture Notes - Di↵erential Equations M.Ashyraliyev
or
(r + 1)2 = 0.
So, the characteristic equation has one repeated real root r = 1 of
multiplicity 2. Then the general solution of given di↵erential equation
is
y(x) = (c1 + c2 x)e x .
Example 11.4. Find the general solution of the fifth order di↵erential
equation
9y (5) 6y (4) + y (3) = 0.
Solution: Given di↵erential equation has a characteristic equation
9r5 6r4 + r3 = 0
or
r3 (3r 1)2 = 0.
So, the characteristic equation has one repeated real root r = 0 of
multiplicity 3 and another repeated real root r = 13 of multiplicity 2.
Then the general solution of given di↵erential equation is
96
Lecture Notes - Di↵erential Equations M.Ashyraliyev
y 00 + 2y 0 + 5y = 0.
r2 + 2r + 5 = 0.
(r + 1)2 + 4 = 0.
r2 4r + 5 = 0.
(r 2)2 + 1 = 0.
97
Lecture Notes - Di↵erential Equations M.Ashyraliyev
98
Lecture Notes - Di↵erential Equations M.Ashyraliyev
99
Lecture Notes - Di↵erential Equations M.Ashyraliyev
For example,
ax2 y 00 + bxy 0 + cy = 0
is a second order Euler equation and
d2 y dy
a 2 + (b a) + cy = 0. (11.9)
dt dt
Proof. Using the chain rule, we have
dy dy dt 1 dy
y0 = = · = ·
dx dt dx x dt
and
✓ ◆ ✓ ◆ ✓ ◆
00 d dy d 1 dy 1 dy 1 d dy
y = = · = · + · =
dx dx dx x dt x2 dt x dx dt
✓ ◆ ✓ ◆
1 dy 1 d dy dt 1 d2 y dy
= · + · · = .
x2 dt x dt dt dx x2 dt2 dt
0 dy 2 00 d2 y dy
So, xy = and x y = 2 . Putting these in equation (11.8),
dt dt dt
we immediately obtain the equation (11.9).
Example 11.10. Find the general solution of the second order Euler
equation
x2 y 00 + xy 0 y = 0, x > 0.
100
Lecture Notes - Di↵erential Equations M.Ashyraliyev
d2 y
y=0
dt2
with associated characteristic equation
r2 1 = 0.
y = c1 e t + c2 e t .
d3 y d2 y dy
a 3 + (b 3a) 2 + (c b + 2a) + ky = 0. (11.11)
dt dt dt
Proof. Prove yourself.
Example 11.11. Find the general solution of the third order Euler
equation
x3 y 000 + 6x2 y 00 + 7xy 0 + y = 0, x > 0.
101
Lecture Notes - Di↵erential Equations M.Ashyraliyev
r3 + 3r2 + 3r + 1 = 0.
y = c1 + c2 t + c3 t 2 e t .
c1 + c2 ln x + c3 ln2 x
y(x) = .
x
102
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Then
y20 = v 0 y1 + vy10 and y200 = v 00 y1 + 2v 0 y10 + vy100 .
Putting these in equation (11.12) we get
a(x)y200 + b(x)y20 + c(x)y2 = 0,
a(x) v 00 y1 + 2v 0 y10 + vy100 + b(x) v 0 y1 + vy10 + c(x)vy1 = 0,
a(x)y1 v 00 + 2a(x)y10 + b(x)y1 v 0 + a(x)y100 + b(x)y10 + c(x)y1 v = 0,
a(x)y1 v 00 + 2a(x)y10 + b(x)y1 v 0 = 0.
Resulting equation is reducible second order di↵erential equation. With
substitution z = v 0 and z 0 = v 00 we obtain the first order separable
equation
p(x)z 0 + q(x)z = 0,
where p(x) = a(x)y1 (x) and q(x) = 2a(x)y10 (x) + b(x)y1 (x). Solving
this equation for z and then obtaining v from z = v 0 allows us to find
the second linearly independent solution y2 of equation (11.12).
Example 11.12. Find the general solution of the second order di↵er-
ential equation
(x + 1)y 00 (x + 2)y 0 + y = 0, x> 1
if one solution y1 (x) = ex is given.
Solution: We search a second linearly independent solution y2 in the
form:
y2 (x) = v(x)y1 (x) = v(x)ex .
Then
y20 = (v 0 + v)ex and y200 = (v 00 + 2v 0 + v)ex .
Putting these in given equation we get
(x + 1)y200 (x + 2)y20 + y2 = 0,
(x + 1) v 00 + 2v 0 + v ex (x + 2) v 0 + v ex + vex = 0,
(x + 1)ex v 00 + xex v 0 = 0,
103
Lecture Notes - Di↵erential Equations M.Ashyraliyev
(x + 1)v 00 + xv 0 = 0.
Substituting z = v 0 and z 0 = v 00 gives us
(x + 1)z 0 + xz = 0,
which is a first order separable equation. Separation of variables gives
dz x
= dx.
z x+1
Integrating both sides we obtain
Z Z ✓ ◆
dz 1
= 1 dx =) ln z = ln (x + 1) x + C̃.
z x+1
We take C̃ = 0. So, z(x) = (x + 1)e x . Since z = v 0 , we have
Z Z
v(x) = z(x)dx = (x + 1)e x dx = (x + 2)e x + C̃. ˜
c) 4y 00 + 8y 0 + 3y = 0 d) 9y 00 12y 0 + 4y = 0
e) 35y 00 y0 12y = 0 f) y 00 + 9y = 0
g) y 00 3y 0 + 2y = 0 h) y 00 + 6y 0 + 9y = 0
104
Lecture Notes - Di↵erential Equations M.Ashyraliyev
i) y 00 6y 0 + 13y = 0 j) y 00 + 8y 0 + 25y = 0
k) y 00 4y = 0 l) y 00 + 3y 0 10y = 0
10x 10x
c) y(x) = c1 e + c2 xe d) y(x) = c1 e10x + c2 e100x
⇣ p p ⌘
x x 2 x 2
e) y(x) = c1 + c2 x f) y(x) = e c1 e + c2 e
x
g) y(x) = c1 cos 2x + c2 sin 2x h) y(x) = e (c1 cos 3x + c2 sin 3x)
105
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Problem 11.6. Find the general solutions of the following Euler equa-
tions for x > 0.
a) 4x2 y 00 + 8xy 0 3y = 0 b) x2 y 00 3xy 0 + 4y = 0
c) x2 y 00 + 2xy 0 12y = 0 d) x2 y 00 + xy 0 = 0
e) x2 y 00 5xy 0 + 9y = 0 f) x2 y 00 + xy 0 9y = 0
g) x2 y 00 + xy 0 + 9y = 0 h) x2 y 00 + 7xy 0 + 25y = 0
8 00 8 00
<y
> 2y 0 + 2y = 0, 0
< y + 6y + 13y = 0,
>
c) y(0) = 0, d) y(0) = 2,
>
: 0 >
: 0
y (0) = 5. y (0) = 0.
8 2 00 8 2 00
<xy
> 2xy 0 + 2y = 0, <xy
> xy 0 + y = 0,
e) y(1) = 3, f) y(1) = 7,
>
: 0 >
: 0
y (1) = 1. y (1) = 2.
8 2 00 8 00
0
< x y + xy + y = 0,
> <y
> 2y 0 + y = 0,
g) y(1) = 2, h) y(0) = 1,
>
: 0 >
: 0
y (1) = 3. y (0) = 1.
8 8
>
> 2y 000 3y 00 2y 0 = 0, >
> 3y 000 + 2y 00 = 0,
>
> >
>
< y(0) = 1, < y(0) = 1,
i) j)
>
>
> y 0 (0) = 1, >
>
> y 0 (0) = 0,
>
: y 00 (0) = 3. >
: y 00 (0) = 1.
8 8
>
> y 000 + 10y 00 + 25y 0 = 0, >
> y 000 5y 00 + 9y 0 5y = 0,
>
> >
>
< y(0) = 3, < y(0) = 0,
k) l)
>
>
> y 0 (0) = 4, >
>
> y 0 (0) = 1,
>
: y 00 (0) = 5. >
: y 00 (0) = 6.
107
Lecture Notes - Di↵erential Equations M.Ashyraliyev
c) x2 y 00
x(x + 2)y 0 + (x + 2)y = 0, x > 0; y1 = x
✓ ◆
2 00 0 2 1 cos x
d) x y + xy + x y = 0, x > 0; y1 = p
4 x
108
12 Nonhomogeneous Linear Equations
The general n-th order nonhomogeneous linear di↵erential equation
has the form
an y (n) + an 1 y (n 1)
+ . . . + a1 y 0 + a0 y = f (x), (12.3)
an y (n) + an 1 y (n 1)
+ . . . + a1 y 0 + a0 y = 0. (12.4)
109
Lecture Notes - Di↵erential Equations M.Ashyraliyev
y 00 + 4y = 3x3 .
y 00 + 4y = 0
r2 + 4 = 0
110
Lecture Notes - Di↵erential Equations M.Ashyraliyev
or
4Ax3 + 4Bx2 + (6A + 4C)x + (2B + D) = 3x3
We equate coefficients of the same powers of x in both sides of the last
equality to get 8
>
> 4A = 3,
>
>
< 4B = 0,
>
> 6A + 4C = 0,
>
>
: 2B + D = 0.
3 9
Solving this system we get A = , B = 0, C = , D = 0. Hence a
4 8
particular solution of given nonhomogeneous equation is
3 9
yp (x) = x3 x
4 8
and therefore its general solution is
3x3 9x
y(x) = yh (x) + yp (x) = c1 cos 2x + c2 sin 2x + .
4 8
111
Lecture Notes - Di↵erential Equations M.Ashyraliyev
y 00 3y 0 + 2y = 0
r2 3r + 2 = 0
yh (x) = c1 ex + c2 e2x .
112
Lecture Notes - Di↵erential Equations M.Ashyraliyev
113
Lecture Notes - Di↵erential Equations M.Ashyraliyev
y 000 + 9y 0 = 0
r3 + 9r = 0
with one real root r1 = 0 and two complex roots r2,3 = ±3i. Then the
general solution of homogeneous equation is
yp (x) = Ax2 e2x +Bxe2x +Ce2x +Dx sin x+Ex cos x+F sin x+G cos x.
y 00 4y = 2e2x .
114
Lecture Notes - Di↵erential Equations M.Ashyraliyev
y 00 4y = 0
r2 4=0
with two real roots r1,2 = ±2. Then the general solution of homoge-
neous equation is
yh (x) = c1 e2x + c2 e 2x .
The right-hand side of given nonhomogeneous equation f (x) = 2e2x
and its derivatives involve only one term e2x . Since e2x satisfies the
homogeneous equation, we apply Rule 2 and multiply this term by x.
New term xe2x does not satisfy the homogeneous equation. Then we
search yp in the form
yp (x) = Axe2x .
For this function we have
1
with solution A = . Hence a particular solution of given nonhomo-
2
geneous equation is
1
yp (x) = xe2x
2
and therefore its general solution is
1
y(x) = yh (x) + yp (x) = c1 e2x + c2 e 2x
+ xe2x .
2
115
Lecture Notes - Di↵erential Equations M.Ashyraliyev
ex ex
x2 x4
x x3
1 x2
yp000 + yp00 = 2Aex + 12Bx2 + (24B + 6C)x + (6C + 2D) = 3ex + 4x2 .
3
Equating the coefficients of the terms in last equality, we get A = ,
2
1 4
B = , C = and D = 4. Hence a particular solution of given
3 3
nonhomogeneous equation is
3 1 4 3
yp (x) = ex + x4 x + 4x2
2 3 3
and therefore its general solution is
x 3 1 4 3
y(x) = yh (x) + yp (x) = c1 + c2 x + c3 e + e x + x4 x + 4x2 .
2 3 3
y 000 + y 00 = 3e x
+ 4x.
y 000 + y 00 = 0
yh (x) = c1 + c2 x + c3 e x .
117
Lecture Notes - Di↵erential Equations M.Ashyraliyev
x x
e xe
x x3
1 x2
and multiply the terms x and 1 by x2 . New terms are x3 , x2 and they
do not satisfy homogeneous equation.
Then we search yp in the form
x
yp (x) = Axe + Bx3 + Cx2 .
For this function we have
yp0 = A(1 x)e x
+ 3Bx2 + 2Cx,
yp00 = A(x 2)e x
+ 6Bx + 2C,
yp000 = A(3 x)e x
+ 6B.
Then substitution of yp and its derivatives into given nonhomogeneous
equation yields
yp000 + yp00 = Ae x
+ 6Bx + (6B + 2C) = 3e x
+ 4x.
Equating the coefficients of the terms in last equality, we get A = 3,
2
B = and C = 2. Hence a particular solution of given nonhomoge-
3
neous equation is
x 2
yp (x) = 3xe + x3 2x2
3
and therefore its general solution is
x x 2
y(x) = yh (x) + yp (x) = c1 + c2 x + c3 e + 3xe + x3 2x2 .
3
118
Lecture Notes - Di↵erential Equations M.Ashyraliyev
y 00 + 6y 0 + 13y = 0
r2 + 6r + 13 = 0
The right-hand side of given equation f (x) = e 3x cos 2x and its deriva-
tives involve two terms e 3x cos 2x and e 3x sin 2x. Since both of these
terms satisfy the homogeneous equation, we apply Rule 2 and multi-
ply these terms by x. New terms xe 3x cos 2x and xe 3x sin 2x do not
satisfy the homogeneous equation. Then yp has the form
3x 3x
yp (x) = Axe cos 2x + Bxe sin 2x.
119
Lecture Notes - Di↵erential Equations M.Ashyraliyev
a) y 00 + y = 3x b) y 00 2y 0 + 2y = 2x
c) y 00 4y = 2e3x d) 3y 00 + y 0 2y = 2 cos x
g) y 00 + y 0 + y = sin2 x h) y 00 + 2y 0 3y = 1 + xex
i) y 000 + 4y 0 = 3x 1 j) y 00 + 2y 0 + 5y = ex sin x
a) y 00 + 3y 0 + 2y = 4ex b) y 00 4y 0 + 4y = 2e2x
c) y 00 + 4y = cos 3x d) y 00 + 9y = 2 sec 3x
e) y 00 + 4y = sin2 x f) y 00 + y = csc2 x
122
13 Laplace Transform
13.1 Laplace Transform and Inverse Laplace Trans-
form
Definition 13.1. Given a function f (t) defined for all t 0, the
Laplace transform of f (t) is the function F (s) defined as follows:
Z1
st
F (s) = L{f (t)} = e f (t)dt (13.1)
0
for all values of s for which the improper integral converges. Table 1
lists the Laplace transforms which we will derive here.
So,
1
L{1} = for s > 0. (13.2)
s
So,
1
L{eat } = for s > a. (13.3)
s a
123
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Remark 13.1. It is easy to verify that the formula in (13.3) also holds
when a is a complex number provided that s > Re(a).
f (t) = tn , t 0
for any n 2 N.
Solution: For any n 2 N, using integration by parts we have
Z1 st n 1 Z1
e t n n
L{tn } = e st n
t dt = + e st n 1
t dt = L{tn 1 }
s 0 s s
0 0
n(n 1)(n 2) · · · 2 · 1 n!
= ... = n
L{t0 } = L{1}.
s sn
Then, using (13.2), for any n 2 N we obtain
n!
L{tn } = for s > 0. (13.4)
sn+1
In particular, we have
1 2 6
L{t} = , L{t2 } = , L{t3 } = , ...
s2 s3 s4
for all s such that the Laplace transforms of the functions f (t) and
g(t) both exist.
124
Lecture Notes - Di↵erential Equations M.Ashyraliyev
f (t) = 3 + 5t t2 + 2e3t , t 0.
eikt + e ikt
Solution: Since cos (kt) = , using (13.3) we have
2
1⇣ ikt ikt
⌘ 1⇣ 1 1 ⌘ s
L{cos (kt)} = L{e } + L{e } = + = 2
2 2 s ik s + ik s + k2
for s > 0. So,
s
L{cos (kt)} = for s > 0. (13.6)
s2 + k 2
125
Lecture Notes - Di↵erential Equations M.Ashyraliyev
eikt e ikt
Solution: Since sin (kt) = , using (13.3) we have
2i
1⇣ ⌘ 1⇣ 1 1 ⌘ k
L{sin (kt)} = L{eikt } L{e ikt
} = = 2
2i 2i s ik s + ik s + k2
for s > 0. So,
k
L{sin (kt)} = for s > 0. (13.7)
s2 + k 2
Definition 13.2. The unit step function u(t) is the piecewise con-
tinuous function defined as following
(
0, if t < 0,
u(t) =
1, if t 0.
126
Lecture Notes - Di↵erential Equations M.Ashyraliyev
So,
as
e
L{ua (t)} = for s > 0, a > 0. (13.9)
s
Example 13.9. Let F (s) be the Laplace transform of f (t). Prove that
the Laplace transform of ua (t)f (t a) is e as F (s).
Solution: By definition we have
Z1 Z1
st st
L{ua (t)f (t a)} = e ua (t)f (t a)dt = e f (t a)dt =
0 a
Z1 Z1
s(t+a) as st as
= e f (t)dt = e e f (t)dt = e L{f (t)}.
0 0
So,
as
L{ua (t)f (t a)} = e F (s). (13.10)
Definition 13.3. If F (s) = L{f (t)}, then f (t) is called the inverse
Laplace transform of F (s) and we write
f (t) = L 1 {F (s)}.
⇢
1 1
For instance, from (13.2) it follows that L = 1.
s
127
Lecture Notes - Di↵erential Equations M.Ashyraliyev
1
Example 13.11. Find the inverse Laplace transform of F (s) = .
s(s 3)
Solution: We first find a partial fraction decomposition of F (s). We
have
1 A B
= + ,
s(s 3) s s 3
where A and B are some constants. Multiplying both sides by s(s 3)
gives
⇢
A + B = 0,
1 = A(s 3) + Bs =) 1 = (A + B)s 3A =)
3A = 1.
1 1
Thus A = and B = . Then
3 3
⇢ ⇢
1 1 1 1/3 1/3
L =L + =
s(s 3) s s 3
⇢ ⇢
1 1 1 1 1 1
= L + L =
3 s 3 s 3
1 1 3t e3t 1
= + e = .
3 3 3
128
Lecture Notes - Di↵erential Equations M.Ashyraliyev
2s + 1
Example 13.12. Find the inverse Laplace transform of F (s) = .
s(s2 + 9)
Solution: We first find a partial fraction decomposition of F (s). We
have
2s + 1 A Bs + C
= + 2 ,
s(s2 + 9) s s +9
where A, B and C are constants. Multiplying both sides by s(s2 + 9)
gives
Then
⇢ ⇢
1 2s + 1 1 1/9 s/9 + 2
L =L + 2 =
s(s2 + 9) s s +9
⇢ ⇢ ⇢
1 1 1 1 1 s 2 1 3
= L L + L =
9 s 9 s2 + 3 2 3 s2 + 3 2
1 1 2
= cos (3t) + sin (3t).
9 9 3
129
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Theorem 13.4. Assume that F (s) = L{f (t)} for s > c. Then
L{eat f (t)} = F (s a) for s > a + c.
Proof. By definition we have
Z1 Z1
L{eat f (t)} = e st eat f (t)dt = e (s a)t
f (t)dt = F (s a).
0 0
130
Lecture Notes - Di↵erential Equations M.Ashyraliyev
2s 1
Example 13.14. Find the inverse Laplace transform of F (s) = .
s2 + 4s + 13
Solution: We have
⇢ ⇢ ⇢
1 2s 1 1 2s 1 2(s + 2) 5
1
L =L =L =
s2 + 4s + 13 (s + 2)2 + 32 (s + 2)2 + 32
⇢ ⇢
1 s+2 5 1 3
= 2L L =
(s + 2)2 + 32 3 (s + 2)2 + 32
2t 5 2t
= 2e cos (3t) e sin (3t).
3
131
Lecture Notes - Di↵erential Equations M.Ashyraliyev
s2 k 2
L t cos (kt) = 2 for s > 0. (13.19)
(s + k 2 )2
Proof. We denote
Zt
g(t) = f (⌧ )d⌧.
0
133
Lecture Notes - Di↵erential Equations M.Ashyraliyev
1
1 (s > 0)
s
n!
tn (n 2 N) (s > 0)
sn+1
1
eat (s > a)
s a
s
cos (kt) (s > 0)
s2 + k 2
k
sin (kt) (s > 0)
s2 + k 2
as
e
ua (t) (a > 0) (s > 0)
s
n!
eat tn (n 2 N) (s > a)
(s a)n+1
s a
eat cos (kt) (s > a)
(s a)2 + k 2
k
eat sin (kt) (s > a)
(s a)2 + k 2
s2 k 2
t cos (kt) (s > 0)
(s2 + k 2 )2
2ks
t sin (kt) (s > 0)
(s2 + k 2 )2
ga
134
t x
xysdy t
Lecture Notes - Di↵erential Equations M.Ashyraliyev
2s 3 2s 3
=) X(s) = = .
s2 s 6 (s 3)(s + 2)
135
Lecture Notes - Di↵erential Equations M.Ashyraliyev
3 7
Solving this system we obtain A = and B = . Then, the solution
5 5
of given IVP is
⇢
2s 3
x(t) = L 1 {X(s)} = L 1 =
(s 3)(s + 2)
⇢
1 3/5 7/5 3 7
=L + = e3t + e 2t .
s 3 s+2 5 5
136
Lecture Notes - Di↵erential Equations M.Ashyraliyev
3 3
Solving this system we obtain A = C = 0, B = and D = . Then,
5 5
the solution of given IVP is
⇢
1 1 3
x(t) = L {X(s)} = L =
(s2 + 4)(s2 + 9)
⇢ ⇢ ⇢
3/5 3/5 3 2 1 3
=L 1 2 = L 1
L 1
=
s + 4 s2 + 9 10 s2 + 2 2 5 s2 + 3 2
3 3
= sin 2t sin 3t.
10 5
1
Now, we find a partial fraction decomposition of . We
s(s2 + 2s + 5)
have
1 A Bs + C
Y (s) = = + ,
s(s2 + 2s + 5) s s2 + 2s + 5
where A, B and C are some constants. Multiplying both sides by
s(s2 + 2s + 5) gives
138
Lecture Notes - Di↵erential Equations M.Ashyraliyev
where (
cos (2t), if 0 t < 2⇡
f (t) =
0, if t 2⇡
f (t) = 1 u2⇡ (t) cos (2t) = cos (2t) u2⇡ (t) cos (2t).
Let x(t) be the solution of given IVP and X(s) be its Laplace trans-
form. Taking Laplace transform of both sides di↵erential equation in
given IVP and using the given initial values, we obtain
=) L{x00 (t)} + 4L{x(t)} = L{cos (2t)} L u2⇡ (t) cos 2(t 2⇡) =)
⇣ ⌘ s s
2
=) s + 4 X(s) = 2 e 2⇡s 2 =)
s +4 s +4
s 2⇡s s
=) X(s) = 2 e .
(s + 4)2 (s2 + 4)2
Then, we have
⇢
s s
x(t) = L 1 {X(s)} = L 1
e 2⇡s
=
(s2 + 4)2 (s2 + 4)2
⇢ ⇢
1 s 1 s
=L L e 2⇡s 2 =
(s2 + 4)2 (s + 4)2
t t 2⇡
= sin (2t) u2⇡ (t) sin 2(t 2⇡) .
4 4
139
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Remark 13.8. Laplace Transform method can be also used for solving
the systems of linear di↵erential equations.
and
⇢ ⇢ 1 2 1
1 s 1 1 9 3 9
y(t) = L =L + + =
(s + 1)2 (s 2) s+1 (s + 1)2 s 2
1 t 2 t 1
= e + te + e2t .
9 3 9
1 3s + 5
o) F (s) = p) F (s) =
s2 + 4s + 4 s2 6s + 25
Problem 13.3. Use the Laplace transform method to solve the initial
value problems
8 00 8 00 0
>
< x + x = sin 2t, < x + 3x + 2x = t,
>
a) x(0) = 0, b) x(0) = 0,
>
: 0 >
: 0
x (0) = 0. x (0) = 2.
8
>
> x000 + x00 6x0 = 0, 8 00
> 0 t
>
< x(0) = 0, < x + 4x + 13x = te ,
>
c) d) x(0) = 0,
>
>
> x0 (0) = 1, >
: 0
>
: x00 (0) = 1. x (0) = 2.
8 (4)
8 > x + 2x00 + x = e2t ,
> x0 = x + 2y, >
>
>
> >
>
>
< y0 = x + e t, < x(0) = 0,
>
e) f) x0 (0) = 0,
>
> x(0) = 0, >
>
>
> >
> x00 (0) = 0,
: y(0) = 0. >
>
: 000
x (0) = 0.
where (
4, if 0 t < 6,
f (t) =
0, if t 6.
142
Lecture Notes - Di↵erential Equations M.Ashyraliyev
where (
0, if 0 t < 6,
f (t) =
10, if t 6.
where (
2, if 0 t < 4,
f (t) =
0, if t 4.
where (
1, if 0 t < ⇡,
f (t) =
0, if t ⇡.
143
14 Systems of Linear Di↵erential Equa-
tions
So far, we have been concerned with methods for solving an ordi-
nary di↵erential equation that involves only one dependent variable
(unknown function). Now we shall consider systems of ordinary dif-
ferential equations that involve two or more dependent variables. We
will usually denote the independent variables by x1 , x2 , x3 , . . . or by
x, y, z, . . . Primes will indicate derivatives with respect to independent
variable t. For instance, a system of two first order di↵erential equa-
tions in two unknown functions has the general form
(
f (t, x, y, x0 , y 0 ) = 0,
g(t, x, y, x0 , y 0 ) = 0.
A solution of this system is a pair of functions x(t) and y(t) that
satisfy both equations identically over some interval of values of t.
Consider a system of di↵erential equations that can be solved for
the highest order derivatives of the dependent variables that appear,
as explicit functions of t and lower order derivatives of the dependent
variables. For instance, in the case of a system of two second order
equations, our assumption is that it can be written in the form
(
x001 = f1 (t, x1 , x2 , x01 , x02 ),
x002 = f2 (t, x1 , x2 , x01 , x02 ).
It is of both practical and theoretical importance that any such higher
order system can be transformed into an equivalent system of first order
equations. The general theory of systems and systematic solutions
techniques are more easily and more concisely described for first order
systems than for higher order systems.
To describe how such a transformation is accomplished, we consider
first the n-th order equation
⇣ ⌘
(n) 0 00 (n 1)
x = f t, x, x , x . . . , x . (14.1)
144
Lecture Notes - Di↵erential Equations M.Ashyraliyev
145
Lecture Notes - Di↵erential Equations M.Ashyraliyev
146
Lecture Notes - Di↵erential Equations M.Ashyraliyev
So that,
4 1 00
y 0 = x0 x .
3 3
Putting these in the second equation, we get
✓ ◆
4 0 1 00 4 1 0
x x = 6x 7 x x .
3 3 3 3
r2 + 3r 10 = 0
x(t) = c1 e2t + c2 e 5t
.
Then
4 1 0 2 2t 5t
y(t) = x x = c1 e + 3c2 e .
3 3 3
So, the general solution of the system is
x(t) = c1 e2t + c2 e 5t ,
2
y(t) = c1 e2t + 3c2 e 5t .
3
The initial conditions x(0) = 2, y(0) = 1 imply that c1 = 3, c2 = 1.
Hence the solution of given initial value problem is
x(t) = 3e2t e 5t
,
y(t) = 2e2t 3e 5t
.
148
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Then
2 3
1 " #
6 7 cos t 0
x0 (t) = 4 2t 5 and A0 (t) = .
t
1 sin t
e
149
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Remark 14.1. Bu using (14.5) and (14.6), the linear system (14.4)
can be written in the matrix form
dx
= A(t)x(t) + f (t). (14.7)
dt
A solution of (14.7) on the open interval I is a column vector func-
tion x(t) = [xi (t)] such that the component functions of x satisfy the
system (14.4) identically on I. If the functions aij (t) and fi (t) are all
continuous on I, then Theorem 13.1 guarantees the existence on I of
a unique solution x(t) satisfying initial conditions x(a) = b.
Example 14.6. The first order linear system
(
x01 = 4x1 3x2 ,
x02 = 6x1 7x2
150
Lecture Notes - Di↵erential Equations M.Ashyraliyev
is also a solution.
151
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Solution:
a) Since
2 32 3 2 3
3 2 0 2et 2et
6 76 7 6 7
Ax1 = 4 1 3 2 5 4 2et 5 = 4 2et 5 = x01 ,
0 1 3 et et
2 32 3 2 3
3 2 0 2e3t 6e3t
6 76 7 6 7 0
Ax2 = 4 1 3 2 54 0 5=4 0 5 = x2 ,
0 1 3 e3t 3e3t
2 32 3 2 3
3 2 0 2e5t 10e5t
6 76 7 6 7
Ax3 = 4 1 3 2 54 2e5t 5 = 4 10e5t 5 = x03 ,
0 1 3 e5t 5e5t
vector functions x1 , x2 , x3 are the solutions of given system.
153
Lecture Notes - Di↵erential Equations M.Ashyraliyev
b) Since
d) We have
2 3 2 3 2 3 2 3
2 2 2 0
6 7 6 7 6 7 6 7
x(0) = c1 4 2 5 + c2 4 0 5 + c3 4 25=425
1 1 1 6
154
Lecture Notes - Di↵erential Equations M.Ashyraliyev
155
Lecture Notes - Di↵erential Equations M.Ashyraliyev
Problem 14.3. Use the method of elimination to solve the initial value
problems
8 8
0
>
> x = 3x + 2y, >
> x0 = 3x y,
>
> >
>
< y 0 = 3x + 4y, < y 0 = 5x 3y,
a) b)
>
> x(0) = 0, >
> x(0) = 1,
>
> >
>
: y(0) = 2. : y(0) = 1.
8 8
>
> x0 = x + 9y, >
> x0 + 2y 0 = 4x + 5y,
>
> >
>
< y 0 = 2x 5y, < 2x0 y 0 = 3x,
c) d)
>
> x(0) = 3, >
> x(0) = 1,
>
> >
>
: y(0) = 2. : y(0) = 1.
156
Lecture Notes - Di↵erential Equations M.Ashyraliyev
157
15 The Eigenvalue Method for Homoge-
neous Linear Systems
We now introduce a powerful method for constructing the general so-
lution of a homogeneous first order linear system with constant coeffi-
cients 8
>
> x01 = a11 x1 + a12 x2 + . . . + a1n xn ,
>
>
< x0 = a x + a x + . . . + a x ,
2 21 1 22 2 2n n
(15.1)
>
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
>
>
: x0 = a x + a x + . . . + a x .
n n1 1 n2 2 nn n
We know that to find the general solution of the system (15.1) it suffices
to find n linearly independent solution vectors x1 , x2 , . . . , xn . Then the
linear combination
158
Lecture Notes - Di↵erential Equations M.Ashyraliyev
ve t = Ave t .
Av = v. (15.3)
(A In )v = 0, (15.4)
159
Lecture Notes - Di↵erential Equations M.Ashyraliyev
160
Lecture Notes - Di↵erential Equations M.Ashyraliyev
4 2 2
|A I2 | = = (4 )( 1 ) 6= 3 10 = 0,
3 1
Since the two scalar equations in this system are equivalent, it has
infinitely many nonzero solutions. We can choose a arbitrarily (but
161
Lecture Notes - Di↵erential Equations M.Ashyraliyev
nonzero) and then solve for " b. For# instance, the choice a = 1 yields
1
b = 3, and thus v1 = is an eigenvector associated with
3
eigenvalue 1 = 2. So, we obtain a solution
" # " #
2t
1 e
x1 (t) = v1 e 1 t = e 2t = .
3 3e 2t
" #
c
Let v2 = be an eigenvector associated with eigenvalue 2 = 5.
d
Substitution of 2 and v2 in equation (15.4) yields the system
" #" # " # (
1 2 c 0 c + 2d = 0,
= =)
3 6 d 0 3c 6d = 0.
" #
2
The choice d = 1 yields c = 2, and thus v2 = is an eigenvector
1
associated with eigenvalue 2 = 5. So, we obtain a solution
" # " #
5t
2 2e
x2 (t) = v2 e 2 t = e5t = .
1 e5t
The solutions we obtained are linearly independent since their Wron-
skian
e 2t 2e5t
W (x1 , x2 ) = 2t 5t
= 7e3t
3e e
is nonzero. Hence, a general solution of given system is
" # " #
2t 5t
e 2e
x(t) = c1 x1 (t) + c2 x2 (t) = c1 + c 2
3e 2t e5t
or in scalar form
x1 (t) = c1 e2t + 2c2 e5t ,
x2 (t) = 3c1 e2t + c2 e5t .
162
Lecture Notes - Di↵erential Equations M.Ashyraliyev
or
163
Lecture Notes - Di↵erential Equations M.Ashyraliyev
4 3
|A I2 | = = (4 )2 + 9 = 0,
3 4
The real and imaginary parts of x(t) are the real-valued functions
" # " #
cos 3t sin 3t
x1 (t) = e4t and x2 (t) = e4t .
sin 3t cos 3t
164
Lecture Notes - Di↵erential Equations M.Ashyraliyev
So, the two real-valued solutions associated with the complex eigen-
values ±2i are
2 3 2 3
cos 2t sin 2t cos 2t + sin 2t
6 7 6 7
x1 (t) = 4 2 cos 2t 5 and x2 (t) = 4 2 sin 2t 5 .
2 cos 2t 2 sin 2t
2 3
d
6 7
Let v3 = 4 r 5 be an eigenvector associated with eigenvalue 3 = 1.
q
Substitution of 3 and v3 in equation (15.4) yields the system
2 32 3 2 3 8
1 1 1 d 0 < d + r q = 0,
>
6 76 7 6 7
4 4 4 1 5 4 r 5 = 4 0 5 =) 4d 4r q = 0,
>
:
4 4 1 q 0 4d + 4r + q = 0.
166
Lecture Notes - Di↵erential Equations M.Ashyraliyev
2 3
1
6 7
v3 = 4 1 5 is an eigenvector associated with eigenvalue 3 = 1. So
0
we obtain a solution,
2 3 2 3
1 et
3t 6 7 6 7
x3 (t) = v3 e =4 1 5 et = 4 et 5 .
0 0
or in scalar form
x1 (t) = c1 (cos 2t sin 2t) + c2 (cos 2t + sin 2t) + c3 et ,
x2 (t) = 2c1 cos 2t 2c2 sin 2t c3 e t ,
x3 (t) = 2c1 cos 2t + 2c2 sin 2t.
167
Lecture Notes - Di↵erential Equations M.Ashyraliyev
8 0 8 0
< x1 = 4x1 + x2 + 4x3 ,
> < x1 = 5x1 + 5x2 + 2x3 ,
>
e) x02 = x1 + 7x2 + x3 , f) x02 = 6x1 6x2 5x3 ,
>
: 0 >
: 0
x3 = 4x1 + x2 + 4x3 . x3 = 6x1 + 6x2 + 5x3 .
Problem 15.2. Use the Eigenvalue method to solve the initial value
problems
8 8
0
>
> x1 = 3x1 + 4x2 , >
> x01 = 9x1 + 5x2 ,
>
> >
>
< x0 = 3x + 2x , < x0 = 6x 2x2 ,
2 1 2 2 1
a) b)
>
> x1 (0) = 1, >
> x1 (0) = 1,
>
> >
>
: x (0) = 1. : x (0) = 0.
2 2
8 8
>
> x01 = 2x1 5x2 , >
> x01 = x1 2x2 ,
>
> >
>
< x0 = 4x 2x2 , < x0 = 2x + x ,
2 1 2 1 2
c) d)
>
> x1 (0) = 2, >
> x1 (0) = 0,
>
> >
>
: x (0) = 3. : x (0) = 4.
2 2
168