DifferentialEq 2
DifferentialEq 2
————————————————————————————————————
Contents
1 Introduction 2
1.1 Basic Concepts and Ideas . . . . . . . . . . . . . . . . . . . . . . 2
2 Solution Techniques 7
2.1 Variable Separable . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.1.1 Reducible into variable separable . . . . . . . . . . . . . . 9
2.1.2 Exact differential equations . . . . . . . . . . . . . . . . . 11
2.1.3 Reducible to exact form . . . . . . . . . . . . . . . . . . . 14
2.1.4 How to find integrating factors? . . . . . . . . . . . . . . . 15
2.1.5 Linear differential equations . . . . . . . . . . . . . . . . . 18
2.1.6 Reducible into linear form (Bernoulli’s equation) . . . . . . 20
7 Variable coefficients 44
7.1 Method of reduction order . . . . . . . . . . . . . . . . . . . . . . 45
7.2 Euler Cauchy equation . . . . . . . . . . . . . . . . . . . . . . . . 47
Dr. Dil Gurung, Kathmandu University
1 Introduction
1.1 Basic Concepts and Ideas
Definition 1 Differential Equation
An equation involving one dependent variable and its derivatives with respect to
one or more independent variables is called a differential equation.
Equations (6) − (9) consist two independent variables and a dependent variable.
So these equations are partial differential equations.
Equations (1), (2), and (6), are order one; equation (3) is of order three; equation
(4) and (6) − (9) are of order two.
2
Dr. Dil Gurung, Kathmandu University
The order of this differential equation is 2, and the power of highest order deriva-
tive is 2. So the degree is 2.
Exercise 1 Find the order and degree of the following differential equations.
2
dy
+ xy = ex ∂ y
+ y ∂y
1. dx 6. x2 ∂x 2 ∂t
=0
2. xy 00 + y 0 y = x 2
2
4. (y 0 )3 = ((y 0 2
) + 1)
1/2
8. m ddt2x + C dx
dt
+ Kx = 0
∂y ∂y ∂u ∂u ∂u
2
5. x ∂x + t ∂t = x t 9. ∂x + ∂y + ∂z = 0
In the following differential equations, the first two are linear and the last four
are nonlinear.
1. y 00 + x2 y 0 + xy = sin x 4. y 00 + y 2 = 0
2
2. ∂u
∂t
= x ∂∂xu2 5. y 00 + yy 0 = x2
2 2
3. y 000 + (y 0 )3 + y = 0 6. ∂∂xu2 + ∂u ∂u
∂x ∂t
+ ∂∂t2u = 0
In the above set of differential equations, only (1) and (5) are non-homogeneous
differential equations, whereas the other four are homogeneous differential equa-
tions.
3
Dr. Dil Gurung, Kathmandu University
(i) Let
f (x, y, a) = 0 (1)
be an algebraic relation between x, y containing an arbitrary constant a.
Differentiating it with respect to x, we get a relation between x, y, a and
dy
dx
, say
φ(x, y, dy/dx, a) = 0 (2)
Eliminating a between these two equations, we get a relation between x, y
dy
and dx , say ψ(x, y, dy/dx) = 0 which does not contain any arbitrary con-
stant.
This is a differential equation of first order. The relation (1) is called the
general solution of the differential equation (3). From above we conclude
that the solution of a differential equation of the first order contains only
one arbitrary constant.
(ii) Let
f (x, y, a, b) = 0 (6)
be a relation between x, y, and two arbitrary constants a and b. Differenti-
ating it with respect to x, we get, say
φ1 (x, y, dy/dx, a, b) = 0 (7)
Again differentiating we get
φ2 (x, y, d2 y/dx2 , a, b) = 0 (8)
Eliminating a and b from above equations, we get a relation between x, y, dy/dx
and d2 y/dx2 , say
ψ(x, y, dy/dx, d2 y/dx2 ) = 0 (9)
which is a differential equation of order two. Thus we expect that the
solution of a differential equation of the second order contains two arbitrary
constants, and so on. Thus, the general solution of a differential equation
contains as many arbitrary constants as the order of the equation.
4
Dr. Dil Gurung, Kathmandu University
y = c1 ex + c2 e2x (10)
d2 y dy
2
− 3 + 2y = 0 (14)
dx dx
Thus
y = c1 ex + c2 e2x (15)
5
Dr. Dil Gurung, Kathmandu University
IVP:
dy
= f (x, y), y(x0 ) = y0 (19)
dx
This is an example of initial value problem of first order differential equation. The
condition y(x0 ) = y0 is called an initial condition and x0 is called the initial
point.
Example 7
dy
(i) dx
= 2y − 3x, y(0) = 2
(ii) x00 (t) + 5x0 (t) + (sin t) x(t) = 0, x(1) = 0, x0 (1) = 7
dN
(iii) dt
= α N, N (0) = N0
BVP:
dy
= f (x, y), y(x0 ) = y1 , y(x1 ) = y1
dx
dy
(i) dx + 5xy = 0, y(0) = y(1) = 2
d2 T
(ii) dx2 + kġ = 0, T (0) = Tb , ∂T
∂x x=L
= h(T − T∞ ), 0 < x < L
6
Dr. Dil Gurung, Kathmandu University
1. y 0 = x2 3. y 00 = x4
2
2. y 0 = sin 3x 4. y 0 = xe−x
Exercise 3 Verify that the given function is a solution.
1. y 0 + y = x2 − 2, y = ce−x + x2 − 2x
2. y 00 + y = 0, y = a cos x + b sin x
3. y 000 + ex = 0, y = ex + ax2 + bx + c
4. y 00 + 2y 0 + 2y = 0, y = e−x (a cos x + b sin x)
5. x + yy 0 = 0, x2 + y 2 = 1
Exercise 4 Does the following initial value problem have unique solution ?
1. y 0 = 2x2 y 2 , y(1) = −1
2. y 0 = x ln y, y(1) = 1
2 Solution Techniques
A first order differential equation is of the form
dy
= f (x, y) (20)
dx
If we take
M (x, y)
f (x, y) =
N (x, y)
Then the equation (20) is sometimes conveniently written as
M (x, y) dx + N (x, y) dy = 0 (21)
where M (x, y) and N (x, y) are functions of x and y, or constants. Equations (20)
and (21) can’t be solved in every case, and hence it is not always convenient to
solve all differential equations. They can be solved easily if they belong to one or
other of the following standard forms:
7
Dr. Dil Gurung, Kathmandu University
of the first order and first degree where M (x, y) and N (x, y) are functions of x
and y, can be put in the form
f1 (x)dx + f2 (y)dy = 0
then we say that the variables are separable. Such equations can be easily solved
by integrating both sides of the equation. That is,
Z Z
f1 (x)dx + f2 (y)dy = 0
9ydy + 4xdx = 0
92
= −2x2 + C ∗
2
Thus
x2 y 2
+ = C (C = C ∗ /18)
9 4
The solution represents a family of ellipse.
Figure 1:
8
Dr. Dil Gurung, Kathmandu University
1. y 0 + 3x2 y 2 = 0 4. y 0 = 1 + y 2
2. y 0 = xy/2 5. y 0 = k y, where k is a constant.
3. y 0 + 3x2 y 2 = 0
C + x = arctan z
z = tan(C + x)
x + y = tan(C + x)
du
u+x = φ(u)
dx
9
Dr. Dil Gurung, Kathmandu University
Thus
du
x = φ(u) − u
dx
and then separating variables, we get
du dx
=
φ(u) − u x
y2 x2
dy 1 y x
= − = − = φ(y/x)
dx 2xy 2xy 2 x y
dy
Put y = xu. So dx
= u + x du
dx
, we obtain
du 1 1
u+x = u−
dx 2 u
Hence, by simplification,
u2 + 1
du 1 1
x =− u+ =−
dx 2 u 2u
ln(1 + u2 ) = ln c/x
Replacing u by y/x, we get
y2
c
ln 1 + 2 = ln
x x
x2 + y 2 c
2
=
x x
2 2
x + y = cx
dy y2 dy y(x−2y)
3. x dx + x = y 8. dx = x(y−2x)
dy dy
4. 2xy dx = x2 + y 2 9. dx = 1−2y−4x
1+y+2x
[Hint: Use y + 2x = v.]
dy
5. dx = 3x+2y
2x−3y
10
Dr. Dil Gurung, Kathmandu University
dy 1 + 2xy 3
=−
dx 3x2 y 2
is a differential equation that we can solve by going backward. This gives a pow-
erful solution method as follows:
∂u ∂u
M (x, y)dx + N (x, y)dy = du = dx + dy
∂x ∂y
Theorem 2 The necessary and sufficient condition for the ordinary differential
equation of the first order, say
to be exact is
∂M ∂N
=
∂y ∂x
where M (x, y) and N (x, y) are functions of x and y.
Proof:
Necessary Condition: As the equation is exact, so let there exists a differential
function u(x, y) such that
Now,
∂u ∂u
du = dx + dy
∂x ∂y
11
Dr. Dil Gurung, Kathmandu University
Therefore,
∂u ∂u
M= , and N =
∂x ∂y
Now
∂M ∂ 2u
=
∂y ∂y∂x
and
∂N ∂ 2u
=
∂x ∂x∂y
Since u has a continuous partial derivatives, so
∂ 2u ∂ 2u
= By Euler’s theorem
∂y ∂x ∂x ∂y
Hence
∂M ∂N
=
∂y ∂x
Sufficient condition: We have to show that if
∂M ∂N
=
∂y ∂x
then
M (x, y)dx + N (x, y)dy = du
for some function u(x, y).
Let M dx = P, so M = ∂P
R
∂x
. Then
∂ 2P
∂N ∂N ∂ ∂P
= = =
∂x ∂y ∂y∂x ∂x ∂y
∂P
Integrating with respect to x, N = ∂y
+ f (y).
Hence,
∂P ∂P
M (x, y)dx + N (x, y)dy = dx + dy + f (y)dy = d[P + F (y)]
∂x ∂y
where d[F (y)] = f (y)dy. Let P + F (y) = u(x, y). Then
is exact iff
∂M ∂N
=
∂y ∂x
(ii) In order to obtain the solution of an exact differential equation, we have to
proceed as follows:
12
Dr. Dil Gurung, Kathmandu University
(b) Integrate with respect to y only those terms of N which do not contain x.
(c) Add the two expressions obtained in (a) and (b) above and equate the result
to an arbitrary constant. In other words, the solution of an exact differential
equation is
Z Z
M dx + N dy = C
with first integral is y with constant and second integral is term not having
x.
OR,
Z Z
M dx + N dy = C
with first integral is term not containing y and second integral is x constant.
we get
M = x3 + 3xy 2 and N = 3x2 y + y 3
Now,
∂M ∂N
= 6xy =
∂y ∂x
So the given differential equation is exact.
Step 2: Solution Process: Using
Z Z
M dx + N dy = C
with first integral is y with constant and second integral is term not having x.
we get
Z Z
(x + 3xy )dx + y 3 dy = C
3 2
1 4 3 2 2 1 4
x + xy + y = C
4 2 4
1 4
x + 6x y + y 4 = C
2 2
4
OR,
Z Z
M dx + N dy = C
13
Dr. Dil Gurung, Kathmandu University
with first integral is y with constant and second integral is term not having x.
we get
Z Z
x dx + (3x2 y + y 3 )dy = C
3
1 4 3 2 2 1 4
x + xy + y = C
4 2 4
1 4
x + 6x2 y 2 + y 4 = C
4
Exercise 9 Show that the following equations are exact and solve them.
14
Dr. Dil Gurung, Kathmandu University
This example illustrates the simple idea of reduction non exact differential equa-
tion to exact form. All we have done was the multiplication of a given non-exact
equation, say
F M dx + F N dy = 0 (27)
Example 16 We can readily verify that the other integrating factors of the non-
exact differential equation
−ydx + xdy = 0
1
are namely , 1
y 2 xy
and 1
x2 +y 2
, because
Method 3: When M x − N y 6= 0 and the equation is of the form yf1 (x, y)dx +
xf2 (x, y)dy = 0, then
1
= .
Mx − Ny
15
Dr. Dil Gurung, Kathmandu University
xa y b (mydx + nxdy) = 0
then
I.F. = xkm−a−1 y kn−b−1
where k has any value, and a, b, m and n are constants.
ydx − xdy + xy 2 dx = 0
ydx − xdy
+ xdx = 0
y2
x
d + xdx = 0
y
Integrating, we get
x x2
+ = k,
y 2
where k is a constant of integration.
M = x3 + xy 4 ; N = 2y 3
Then
∂M ∂N
= 4xy 3 ; =0
∂y ∂x
Now
1 ∂M ∂N 1
− = 3
(4xy 3 ) = 2x,
N ∂y ∂x 2y
16
Dr. Dil Gurung, Kathmandu University
which is exact(How ?). The solution is (with first integration y treated constant
and in the second integration term not having x) then given by
Z Z Z
3 x2 4 x2
x e dx + y xe dx + 0dy = 0
Theorem 3
Exercise 10 Show that the given function is an integrating factor and solve.
1. sin y dx + cos y dy = 0, ex
2. y dx + [y + tan(x + y) dy] = 0, cos(x + y)
3. (a + 1) y dx + (b + 1) x dy = 0, xa y b
4. (2y + x y) dx + 2 x dy = 0, 1/xy
5. 2 cos y dx − tan 2x sin y dy = 0, cos 2x
17
Dr. Dil Gurung, Kathmandu University
If the right hand side q(x) is zero for all x in the interval in which we consider
the equation, the equation is said to be homogeneous; otherwise it is said to be
non-homogeneous.
How to find solution ?
Homogeneous The homogeneous linear first order differential equation
dy
+ p(x)y = 0 (29)
dx
can be found simply by separating the variables. That is,
dy
= −p(x) dx
x
Integrating both sides, we get
Z
ln |y| = − p(x)dx + c∗
18
Dr. Dil Gurung, Kathmandu University
This is the general solution of the equation (30) in the form of an integral. Thus,
we can summarize the result as
Theorem 4 Consider the equation
y 0 + p(x) y = q(x)
where p(x) and q(x) are continuous functions of x on an interval I. If c is a
constant, then the general solution of this equation is given by
R
Z R
− p(x)dx p(x) dx
y(x) = e e q(x) dx + c
19
Dr. Dil Gurung, Kathmandu University
dy
Example 19 Solve (1 − x2 ) dx − xy = 1.
Solution We have
dy x 1
− 2
=
dx 1 − x 1 − x2
which is in the standard form of linear first order differential equation. So, inte-
grating factor is
−
R x
dx 1 2 √
I.F. = e 1−x2 = e 2 ln(1−x ) = 1 − x2 .
Therefore,
arcsin x c
y(x) = √ +√ .
1 − x2 1 − x2
Exercise 13 Solve the following differential equations.
dy
1. sec x dx − y = sin x.
dy
2. sec x cos x dx + y (x sin x + cos x) = 1.
dy
3. (x + 3y + 2) dx = 1.
dy
4. x dx = 2y + x3 ex
dy
5. dx − (1 + 3/x)y = x + 2, y(1) = e − 1.
3
dy e−2x
6. dx
+ 6x2 y = x2
, y(1) = 0.
to reduce the equation (31) into linear. Differentiating (32) with respect to x, we
obtain
du dy
= (1 − n)y −n
dx dx
−n
Multiplying (31) by (1 − n)y , we obtain
dy
(1 − n)y −n + (1 − n)y −n p(x)y = (1 − n)y −n y −n q(x)
dx
dy
(1 − n)y −n + (1 − n)y 1−n p(x)y = (1 − n)q(x) (33)
dx
20
Dr. Dil Gurung, Kathmandu University
du
+ (1 − n)u(x)p(x) = (1 − n)q(x)
dx
which is in the standard linear differential equation of the first order in u and
thus can be solved as usual. Thus the general solution of Bernoulli’s equation is
R
Z R
1−n (1−n)p(x)dx
y e = (1 − n) q(x) e (1−n)p(x)dx dx + C
Note:
(i) The credit for the solution of this equation goes to Leibnitz.
(ii) If n = 0 or n = 1, the equation (31) is linear.
(iii) If n = 0, the equation (31) is linear non-homogeneous and if n = 1, the
equation (31) is linear homogeneous.
dy
Example 20 Solve dx = ay − by 2 , (a, b are positive constants.) This equation
is called logistic equation or Verhulst equation. The equation was derived by
P.F.Verhulst (Belgian Mathematics) during logistic population growth model in
1838.
Solution: Let
dy
= ay − by 2 (34)
dx
This equation is a Bernoulli’s differential equation of the form
dy
+ py = qy n (35)
dx
with n = 2. So let
du dy
= −y −2 (37)
dx dx
Multiplying (34) by the factor −y −2 , we get
dy
−y −2 − a(y −2 )y = −by 2 (−y −2 )
dx
Using (36) and (37), we get
du
+ au(x) = b (38)
dx
which is a linear first order differential equation. So,
R
adx
I.F. = e = eax
21
Dr. Dil Gurung, Kathmandu University
1. y 0 + 2y = y 2 5. 2xyy 0 +(x−1)y 2 = x2 ex (y 2 = z)
2. y 0 + y = −x/y
6. (1 − x2 )y 0 + xy = xy 2
3. y 0 + 13 y = 13 (1 − 2x)y 4
4. y 0 + xy = xy −1 7. xy 0 + y = y 2 ln x
22
Dr. Dil Gurung, Kathmandu University
Let T (t) denote the temperature of the object at time t and let Ts denote
the temperature of the surroundings (Ts is assumed to be constant throughout).
Then Newton’s law of cooling/heating is formulated as
dT
= k(T − Ts ), k < 0 (41)
dt
where k is the proportionality constant. This is first order first degree equation,
and using variable separation method, the solution is
T (t) = Ts + Cekt (42)
Here k < 0 makes sense because the temperature difference must decrease as time
increases. As t → ∞, ekt → 0, and so T → Ts .
Example 21 Suppose that you turn off the heat in your home at night 2 hours
before you go to bed; call this time t = 0. If the temperature T at t = 0 is 66◦ F
and at the time you go bed (t = 2) has dropped to 63◦ F, what temperature can
you expect in the morning, say, 8 hours later (t = 10)? Of course, this process
of cooling off will depend on the outside temperature Ts , which we assume to be
constant at 32◦ F.
Solution: Using Ts = 32◦ F in Eq. (42)
T (t) = 32 + Cekt
At t = 0, T (0) = 66 ◦ F, we obtain C = 34. So
T (t) = 32 + 34 ekt
1 31
Using T (2) = 63, we obtain k = 2
ln 34 = −0.046187. Thus
T (t) = 32 + 34 e−0.046187 t
Hence,
T (10) = 32 + 34 e−0.046187·10 = 53.4◦ F.
Exercise 15 A cup of fast food coffee is 180◦ F when freshly poured. After 2
minutes in a room at 70◦ F, the coffee has cooled to 165◦ F . Find the temperature
at any time t and find the time at which the coffee has cooled to 120◦ F. [Ans:
≈ 10.76 minutes]
23
Dr. Dil Gurung, Kathmandu University
Then
v(t) = a t + v0
v(t = 50 second) = 1.2 × 50 + 10 = 70 meter/second = 294 km/hr.
ln 2 0.6931
t1/2 = − ≈−
k k
Exercise 16 If you have 50 grams of C 14 today, how much will be left in 100
years? Given that t1/2 of C 14 is 5730 years.
Solution: We have
ln 2 ln 2
k=− =− ≈ −0.000120968
t1/2 5730
24
Dr. Dil Gurung, Kathmandu University
ER = RI
EL + ER − E = 0
EL + ER = E
dI
L + RI = E
dt
which is a first order linear differential equation. Its solution is then
Z
−(R/L) t E(t) (R/L) t
I(t) = e e dt + Ke−(R/L)t (43)
L
For instance, if E(t) = constant = E0 and I(0) = I0 , then above solution becomes
E0 E0
I(t) = + I0 − e−Rt/L (44)
R R
25
Dr. Dil Gurung, Kathmandu University
As t → ∞, the exponential term in (44) tends to zero, and I(t) → E0 /R. Thus
E0
−Rt/L
we call the E0 /R term in (44) the steady state solution and I0 − R e
term the transient part of the solution.
As t → ∞, the exponential term in (45) tends to zero, and we are left with the
steady solution
E0 ω L R
I(t) = 2 sin ωt − cos ωt
R + (ω L)2 ω L
Thus
24 −0.5 2 sin 6 − 24 cos 6
I(0.1) = e + ≈ −0.31 amperes
29 29
RC-circuit
Consider the RC-circuit consisting the resistor and the capacitor causing voltage
drop of ER , and EC respectively. The emf, however, provides a voltage E (that
is a voltage drop of −E). Thus Kirchhoff’s voltage law yields
ER + EC − E = 0
ER + EC = E
1
RI + Q = E
C
dQ
Using the fact I = dt
, we obtain the linear first order differential equation for
charge Q :
dQ 1
R + Q=E
dt C
Its solution is then
Z
−(t/RC) E(t) (t/RC)
Q(t) = e e dt + Ke−(t/RC)
R
Differentiating the equation
1
RI + Q=E
C
26
Dr. Dil Gurung, Kathmandu University
Exercise 18 Find the current I(t) in the RC-circuit assuming that E = 100
volts, C = 0.25 farad, r is a variable according to R = (200 − t) ohms when
0 ≤ t ≤ 200 sec, R = 0 when t > 200 sec, and I(0) = 1 ampere.
dy
Y −y = (X − x)
dx
X, Y being the current coordinates.
dx
Y −y =− (X − x)
dy
3. Length of the tangent, that is, the part of the tangent between the point of
contact and the x-axis is q
dy 2
y 1 + dx
dy
dx
27
Dr. Dil Gurung, Kathmandu University
Example 24 Find the curve through the point (1, 1) in the xy-plane having at
each of its points the slope −y/x.
Solution: We have
dy y
=−
dx x
Solving this differential equation, we obtain
c
y=
x
This gives the family of hyperbolas. For the curve to pass through (1, 1), we must
have y = 1 when x = 1. From this condition, we obtain c = 1. This gives the
particular solution y = x1 .
Exercise 19 Show that the equations of the curves for which the cartesian sub-
tangent is constant can be put in the form y = c ex/a , where a, c are arbitrary
constants.
Exercise 20 Find the equation of the curve for which the cartesian sub-tangent
varies as the reciprocal of the square of the abscissa.
Rules:
dy
Step 1: Find dx of the given equation.
Step 2: Eliminate the constant.
dy
Step 3: Replace dx by − dx
dy
.
Step 4: Solve the new differential equation.
Example 25 Find the orthogonal trajectories of the curves y = cx2 .
Solution:
dy
Step 1: Find dx .
Here,
dy
= 2cx
dx
Step 2: Eliminating the constant c.
dy y 2y
=2 2x=
dx x x
dy
Step 3: Replacing dx
by − dx
dy
.
dx 2y
− =
dy x
28
Dr. Dil Gurung, Kathmandu University
x2 y 2
+ =λ
2 1
which gives a family of ellipses.
1. xy = c 4. x2 + (y − c)2 = c2
2
2. y = c ex /2 5. c y 2 = x2
3. y2 = 4 c x 6. x2/3 + y 2/3 = c2/3
y (n) + a1 (x) y (n−1) + a2 (x) y (n−2) + · · · + an−1 (x) y (1) + an (x) y = b(x) (46)
• If all the ai (x), 1 ≤ i ≤ n are constant, then the equation (46) is called a
linear differential equation of order one with constant coefficients, other-
wise it is said to be with variable coefficients. Thus a linear differential
equation with constant coefficients is
L(y) = b(x)
29
Dr. Dil Gurung, Kathmandu University
30
Dr. Dil Gurung, Kathmandu University
31
Dr. Dil Gurung, Kathmandu University
on −∞ < x < ∞.
is a solution of
• The two linearly independent solutions y1 , y2 are called a basis (or a fun-
damental system) of solutions of (48) on I.
y(x) = (c1 + c2 x) eλ x
32
Dr. Dil Gurung, Kathmandu University
4.2.2 Wronskian
In general, the Wronskian of y1 , y2 , · · · , yn is defined by
y1
0 y 2 y 3 · · · yn−1 y n
0 0 0 0
y1
00 y 2 y 3 · · · yn−1 y n
00 00 00 00
y1
W (y1 , · · · , yn ) = y2 y3 · · · yn−1 yn
.. .. .. .. .. ..
. . . . . .
(n−1) (n−1) (n−1) (n−1) (n−1)
y 1 y2 y3 · · · yn−1 yn
We now discuss the following theorems for second order linear homogeneous dif-
ferential equation, which are similarly applied to higher order linear homogeneous
differential equations.
on an interval I, and a1 (x) and a2 (x) are continuous on I, then the Wronskian
of the two solution is
R
W (y1 , y2 )(x) = c e− a1 (x) dx
(55)
1
Jozef Maria Hoene Wronski (1778-1853) A Polish mathematician now remembered because
of his introduction of the functional determinant called the Wronskian.
33
Dr. Dil Gurung, Kathmandu University
c1 y1 (x0 ) + c2 y2 (x0 ) = 0
(56)
c1 y10 (x0 ) + c2 y20 (x0 ) = 0
34
Dr. Dil Gurung, Kathmandu University
has a nontrivial solution c1 , c2 , that is, c1 , c2 both are not equal to zero. Let c1 , c2
be such a solution and consider the function
Now
L(y) = 0
and from (56), we obtain
But this initial-value problem has the unique solution, so necessarily y(x) = 0 for
all x in I, and thus
y(x) = c1 y1 (x) + c2 y2 (x) = 0
But this contradicts the fact that y1 , y2 are LI on I. Thus the supposition that
there was a point x0 in I such that
W (y1 , y2 )(x0 ) = 0
W (y1 , y2 )(x0 ) 6= 0
for all x in I.
(⇐) Assume that W (y1 , y2 )(x) 6= 0 for all x in I, and let c1 , c2 be constants such
that
for all x in I. The determinant of the coefficients is just W (y1 , y2 )(x) which is
not zero. Therefore, c1 = 0, c2 = 0 is the only solution of (57), (58). This proves
that y1 , y2 are LI on I.
L(y) = y 00 + a1 y 0 + a2 y = 0
on an interval I, and let x0 be any point in I. Then y1 , y2 are LI on I if, and only
if
W (y1 , y2 )(x0 ) 6= 0
35
Dr. Dil Gurung, Kathmandu University
Based on the concept of linearly independence we can show that any two linearly
independent solutions of L(y) = 0 determines all solutions, in the sense of the
following theorem.
Theorem 12 Let y1 , y2 be two linearly independent solutions of
L(y) = y 00 + a1 y 0 + a2 y = 0
on an interval I. Every solution y of L(y) = 0 can be written uniquely as
y(x) = c1 y1 (x) + c2 y2 (x)
where c1 , c2 are constants.
The following theorem states the fact about linearly dependence of two dif-
ferentiable functions.
Theorem 13 If y1 and y2 are differentiable functions on an interval I such that
they are LD. Then W (y1 , y2 )(x) = 0 for all x in the interval I.
The converse of above theorem for LD need not be true. That is, if W (y1 , y2 )(x) =
0 for all x in I, then y1 , y2 may not be LD. This we can illustrates with the fol-
lowing example.
Example 27 Show that x and |x| are LI even though W (x, |x|) = 0 for all
x ∈ R\{0}.
Solution: We define √
|x| = x2 , ∀x ∈ R\{0}
then
d d√ 2 2x x
|x| = x = √ =
dx dx 2 x2 |x|
√
Take y1 = x, y2 = |x| = x2 , then
W (y1 , y2 )(x) = y1 y20 − y10 y2
x √
= x − 1 · x2
|x|
x2 √ 2
= − x
|x|
√ √
= x2 − x2
= 0
Suppose the functions x and |x| are linearly dependent, then we write
ax + b|x| = 0 ∀x ∈ R, |a| + |b| =
6 0
• If x < 0, then |x| = −x and it implies that x(a − b) = 0 ⇒ a = b.
• If x > 0, then |x| = x ⇒ ax + bx = 0 ⇒ a = −b.
Thus x and |x| are linearly independent on R\{0}.
36
Dr. Dil Gurung, Kathmandu University
4.3 Examples
Example 28 Solve the equation y 00 + y 0 + y = 0, y(0) = 1, y 0 (0) = 3.
Solution: The characteristic equation is λ2 + λ + 1 = 0. Its roots are
√ √
−1 + i 3 −1 − i 3
λ1 = and λ2 =
2 2
√
3
Then α = − 21 and β = ,
so the general solution is
2
√ √ !
3 3
y(x) = e−x/2 c1 cos x + c2 sin x
2 2
To solve the initial-value problem, we differentiate, and set x = 0, and solve the
simultaneous equations
c1 = 1
√
3 1
c2 − c1 = 3
2 2
Thus c1 = 1, c2 = √7 , and
3
√ √ !
3 7 3
y(x) = e−x/2 cos x + √ sin x
2 3 2
Example 29 Solve the equation y 00 + 2y 0 − y = 0, y(0) = 0, y 0 (0) = −1.
Solution: The characteristic equation is λ2 + 2λ − 1 = 0. Its roots are
√ √
λ1 = −1 + 2 and λ2 = −1 − 2
The general solution is then
√ √
y(x) = c1 e(−1+ 2)x
+ c2 e(−1− 2)x
To solve the initial-value problem, we differentiate, and set x = 0, and solve the
simultaneous equations
c1 + c2 = 0
√ √
(−1 + 2)c1 + (−1 − 2)c2 = −1
Thus c1 = − 2√1 2 , c2 = 1
√
2 2
, and
1 √ 1 √
y(x) = − √ e(−1+ 2)x + √ e(−1− 2)x
2 2 2 2
Exercise 24 Solve the following differential equations.
1. y 00 − 4y = 0
2. y 00 − 3y 0 + 2y = 0
3. 4y 00 + 20y 0 + 25y = 0, y(0) = 1, y 0 (0) = 2
4. y 00 + 2y 0 + y = 0, y(1) = 2/e, y 0 (1) = −3/e
5. y 00 + y = 0, y(π) = 2, y 0 (π) = −1
6. y 00 + 2y 0 + 5y = 0, y(π) = e−π , y 0 (π) = 3e−π
7. y 00 − 8y 0 + 16y = 0, y(0) = 1, y 0 (0) = 6
8. Show that the boundary value problem
y 00 + y = 0, y(0) = 0, y 0 (π) = 1
has no solutions.
37
Dr. Dil Gurung, Kathmandu University
Eq.(60) has n roots λ1 , λ2 , · · · , λn . Some of these roots may be real and distinct,
real and equal, distinct complex conjugate pairs, or equal complex conjugate
pairs.
with roots λ1 = 2, λ2 = −3 and λ3 = 4. Since the roots are real and distinct, three
linearly independent solutions are
38
Dr. Dil Gurung, Kathmandu University
satisfies L(y) = b.
Various methods:
yp = u y1 + v y2
39
Dr. Dil Gurung, Kathmandu University
Substituting of the expressions for yp , yp0 and yp00 into the equation L(y) = b(x)
yields
yp00 + a1 yp0 + a2 yp = u0 y10 + v 0 y20 = b(x)
Finally the system of two linear equations
u0 y1 + v 0 y2 = 0
u0 y10 + v 0 y20 = b(x)
determine the functions u and v that we need. The determinant of the system is
y1 y2
y1 y20 = W (y1 , y2 )(x) 6= 0
0
for all x in an open interval I, since y1 and y2 are linearly independent. Solving
the system of equations, we obtain
Z Z
y2 (x) b(x) y1 (x) b(x)
u=− and v =
W (y1 , y2 )(x) W (y1 , y2 )(x)
Hence, the particular solution yp is
Z Z
y2 (x) b(x) y1 (x) b(x)
yp (x) = −y1 dx + y2 dx
W (y1 , y2 )(x) W (y1 , y2 )(x)
[0 0 ··· 0 1]T
where c1 , c2 are constants. Thus the two linearly independent solutions of L(y) = 0
are
y1 = ex and y2 = x ex
40
Dr. Dil Gurung, Kathmandu University
Here,
12 ex
W (y1 , y2 )(x) = e2x and b(x) =
x3
Then
xex 12ex /x3
Z Z
y2 (x) b(x) 12
u=− dx = − 2x
dx =
W (y1 , y2 )(x) e x
and
ex 12ex /x3
Z Z
y1 (x) b(x) 6
v= dx = 2x
dx = − 2
W (y1 , y2 )(x) e x
and so the particular solution is
1. A polynomial in x.
The method assumes that the solution to the equation L(y) = b(x) is of exactly
the same form as b(x). The technique requires that we replace each dependent
variable y in L(y) = b(x) with an expression of the same form as b(x) having
terms with undetermined coefficients. So the method is termed as the method of
undetermined coefficients.
Choice for yp :
The following rules are used for the choice of the particular solution yp of L(y) =
b(x).
41
Dr. Dil Gurung, Kathmandu University
1. Basic rule: A particular solution of equation L(y) = b(x) has the form
yp (x) given by the table below:
b(x) Choice for yp (x)
A polynomial of degree n in x a0 + a1 x + a2 x2 + · · · + an xn
K erx M erx
K cos qx or K sin qx M cos qx + N sin qx
3. Sum rule: If b(x) is a sum of functions in the first column of the above
table, choose for yp (x) the sum of functions in the corresponding lines of
second column. For example, if b(x) = x2 + e2x + sin 3x, then choose yp (x)
as yp (x) = a0 + a1 x + a2 x2 + M e2x + A sin 3x + B cos 3x.
yh (x) = (c1 + x c2 ) ex
Note: If b(x) = p(x) cos ωx or b(x) = p(x) sin ωx, where p(x) is a polynomial of
degree n, then we can choose:
y 00 − y = 0
42
Dr. Dil Gurung, Kathmandu University
λ2 − 1 = 0 ⇒ λ = ±1
yh (x) = c1 e−x + c2 ex
x (c3 + c4 x) ex = c3 x ex + c4 x2 ex
yp = c3 x ex + c4 x2 ex + c5 sin x + c6 cos x
Or,
u00 = −2 + 12 x + 36 x2
which does not contain u or u0 because e−x/2 and x e−x/2 are both solutions of the
complementary equation L(y) = 4y 00 +4y 0 +y = 0. To obtain a particular solution,
we integrate twice, taking the constant of integration to be zero, then
u0p = −2x + 6x2 + 12x3 and up = −x2 + 2x3 + 3x4 = x2 (−1 + 2x + 3x2 )
Therefore,
yp = up e−x/2 = x2 e−x/2 (−1 + 2x + 3x2 )
43
Dr. Dil Gurung, Kathmandu University
Remark: Consider
where g(x) is a polynomial of degree greater than zero, use the substitution
y = u eα x
where
p(λ) = a λ2 + b λ + c
is the characteristic polynomial of the complementary equation L(y) = 0. If eα x
is a solution of the complementary equation then p(λ) = 0, and so
a u00 = g(x)
7 Variable coefficients
Consider a second order homogeneous differential equation with variable coeffi-
cients
We will discuss the following methods to find the solution of the equation (61).
1. Method of reduction order.
2. Euler-Cauchy equation
44
Dr. Dil Gurung, Kathmandu University
y2 = u y1 (62)
y20 = uy10 + u0 y1
y200 = uy100 + 2u0 y10 + u00 y1
Dividing by u0 y1 , we obtain
u00 y10
= −2 − a1 (x) (63)
u0 y1
v0 y0
= −2 1 − a1 (x) (64)
v y1
which is a separable first order equation, so the method is reduction order method.
The functions in both sides of (64) are functions of x, so we integrate with respect
to x to obtain
Z
ln v = −2 ln y1 − a1 (x) dx
Z Z
1
v = exp −2 ln y1 − a1 (x) dx = 2 exp − a1 (x) dx
y1
45
Dr. Dil Gurung, Kathmandu University
46
Dr. Dil Gurung, Kathmandu University
x2 y 00 + axy 0 + by = 0, x 6= 0 (65)
m(m − 1) + am + b = 0 or m2 + (a − 1)m + b = 0
y = c1 xm1 + c2 xm2
x2 y 00 + 2xy 0 − 12y = 0
m2 + (a − 1)m + b = 0
m2 + (2 − 1)m − 12 = 0
Its roots are m1 = 3 and m2 = −4, which are real and unequal. So the compli-
mentary function is
yh (x) = c1 x3 + c2 x−4
Transforming the equation into standard form of second order non-homogeneous
linear differential equation by dividing x2 :
2 0 12
y 00 + y − 2 y = x−3/2
x x
47
Dr. Dil Gurung, Kathmandu University
The integrals
Z Z 3 −3/2
y2 f (x) x x 2 9/2
dx = 2
dx = x
W (y1 , y2 )(x) 7/x 63
Z Z −4 −3/2
y1 f (x) x x 2 −5/2
dx = dx = − x
W (y1 , y2 )(x) 7/x2 35
y 00 + (a − 1)y 0 + by = 0
by making the substitution x = et (t = ln x). Use this method to solve the equation
x2 y 00 + 7xy 0 + 5y = x.
m3 + (a − 3)m2 + (b − a + 2)m + c = 0
48
Dr. Dil Gurung, Kathmandu University
Figure 2: Mass spring balance system. (a) unstretched spring (b) system in static
equilibrium (c) system in motion.
This phenomena can be formulated under Hooke’s law and Newton’s second
law of motion.
i. All motion is along a vertical line through the center of gravity of the object,
which is treated as a point mass.
ii. There is no damping force, Fd due to medium in which the mass is moving
(such as air resistance).
49
Dr. Dil Gurung, Kathmandu University
iii. No other forces (beyond the ones already mentioned) are applied to the
mass.
The Hooke’s law states that the spring force, Fs (acting upward) exerted on
the object (of mass m) is proportional to the difference between the length l + s
of the spring and its natural or equilibrium length l . That is
Fs = k(l + s − l) = ks
where k is a positive constant, called the spring constant. If the mass is at rest,
then it is the force of gravity, Fg = mg that pulls the spring beyond its natural
length. This means that
mg = ks
where g is the acceleration due to gravity. It is the case that Fg = Fs only as
long as the mass is left at rest.
Let us denote the position where the spring has length l + s by x = 0. Suppose
that the object is given an initial displacement x0 and an initial velocity v0 . That
is
x(0) = x0 , x0 (0) = v0
If the spring oscillation is not rest, then the spring force Fs depends on the
displacement x of the mass:
Fs = k(x + s)
As we increase x (moving downward in the same direction as the gravitational
force), the spring force acting upward increases, so the total force on the mass is
FR = Fg − Fs = mg − k(x + s) = −kx
50
Dr. Dil Gurung, Kathmandu University
Eq.(68) describes the free vibrations or free motion of the mechanical system. We
express the Eq.(68) as
x(t) = A sin(ω0 t + φ)
Writing it as
x(t) = A sin ω0 t cos φ + A cos ω0 t sin φ
Equating with Eq.(68), we have
v0
A sin φ = x0 , A cos φ =
ω0
and s
2 2
v0 v0
x20 + 2
=A ⇒A= x20 +
ω0 ω0
Also
v0 x0 x0 ω0
cos φ = , sin φ = ⇒ tan φ =
Aω0 A v0
Thus we may write the Eq.(68) as
with
s 2
v0 x0 ω0 x0 ω 0 x0 ω0
A= x20 + and φ = tan−1 or φ = tan−1 +π or φ = tan−1 +2π
ω0 v0 v0 v0
The motion of the mass in (69) is called simple harmonic motion, since it is
sinusoidal. From Eq.(69), we note the followings:
i. the mass oscillates between the extreme positions ±A. This A is called the
amplitude of the motion.
2π
ii. The sine term has period T = ω0
. This is the time required for each
complete oscillation.
iv. The dimensionaless parameters φ is called the phase or phase angle or phase
shift, and measures the displacement of the wave from its natural position
corresponding to φ = 0. If φ > 0, then the graph of x(t) is shifted to the
left compared with φ = 0, and if φ < 0, then the graph of x(t) is shifted to
the right compared with φ = 0.
51
Dr. Dil Gurung, Kathmandu University
φ
vi. The time lag, δ = ω0
.
Note:
a. If we express (67) as
x(t) = A sin(ω0 t + φ)
then
c1 c2
sin φ = , cos φ =
A A
and so
−1 c1
q tan c2
if c1 , c2 > 0 (First quadrant)
A = c21 + c22 , φ = π + tan−1 cc21 if c2 < 0 (second or third quadrant)
2π + tan−1 cc12 if c1 < 0, c2 > 0 (fourth quadrant)
b. If we express (67) as
x(t) = A cos(ω0 t − φ)
then
c2 c1
sin φ = , cos φ =
A A
and so
−1 c2
q tan c1
if c1 , c2 > 0 (First quadrant)
A = c21 + c22 , φ = π + tan−1 cc12 if c1 < 0 (second or third quadrant)
2π + tan−1 cc21 if c2 < 0, c1 > 0 (fourth quadrant)
Kg m/s2
W 98 N
Fs = W = 1.09 k ⇒ k = = = = 89.908 ≈ 90 N/m
1.09 1.09 m m
52
Dr. Dil Gurung, Kathmandu University
From Eq.(68) and the initial conditions, x(0) = x0 = 16 cm = 0.16 m and x0 (0) =
v0 = 0, we obtain the undamped motion or harmonic oscillation of the system is
x(t) = 0.16 cos 3 t
Hence its amplitude of motion is
p
A= (0.16)2 = 0.16 m
To find phase angle, we write
x(t) = A sin(ω0 t + φ) = 0.16 sin(3 t + φ) = 0.16 sin 3 t cos φ + 0.16 cos 3 t sin φ
Thus, sin φ = 1, cos φ = 0 ⇒ φ = tan−1 10 = π2 rad.
The time lag is then
φ π
δ= = = 0.52 s
ω0 6
49
Example 38 Suppose a 98 N weight stretches a certain spring 320
m. If the
weight is pulled 13 m below the equilibrium position and released.
i. Set up the differential equation and associated conditions describing the mo-
tion.
ii. Find the position of the weight as a function of time t.
iii. Find the amplitude, period and frequency of motion.
1
iv. Determine the position, velocity and acceleration of the weight 2
sec after it
has been released.
49
Solution: Here a weight W = 98N stretches the spring 320 m. So by Hooke’s
law
Kg m/s2
49 W 98 N
Fs = W = k⇒k= = = = 640N/m
320 49/320 49/320 m m
The mass of the object is
W 98
m= = = 10 Kg
g 9.8
i. Using the Newton’s second law of motion, the model equation is
d2 x
m +kx = 0
dt2
d2 x
10 2 + 640 x = 0
dt
d2 x
+ 64 x = 0
dt2
At time t = 0, the mass is 31 m below the equilibrium position. We thus
have x(0) = x0 = 13 . Also, since the weight is released, that is, it has zero
velocity, at t = 0. So x0 (0) = 0. Then the model equation with associated
conditions is
d2 x
+ 64x = 0, x(0) = 1/3, x0 (0) = 0. (70)
dt2
53
Dr. Dil Gurung, Kathmandu University
λ2 + 64 = 0
Thus
d2 x dx
m 2
+c + kx = 0
dt dt
Or
d2 x c dx k
2
+ + x=0 (71)
dt m dt m
The Eq.(71) is a standard second order linear homogeneous differential equation.
Note:
a. If at some instant, x0 = dx
dt
> 0, the body is moving downward, which is
a positive direction. Hence, the damping force Fd = −cx0 always acting
against the direction of motion, must be an upward force, which means
that it must be negative, Fd = −cx0 < 0, so that −c < 0 and c > 0.
c k
λ2 + λ+ =0
m m
Its roots are
p √
−c/m ± (c/m)2 − 4k/m −c ± c2 − 4km
λ1,2 = =
2 2m
Case 1 (Overdamping)
If the damping constant c is so large that c2 > 4km, then λ1 and λ2 are distinct
real roots. The general solution is then
This equation represents a smooth and oscillatory motion. In this case, damping
takes out energy so quickly that the body does not oscillates. Practically speak-
ing, after a sufficiently long time the mass will be at rest at the static equilibrium
position (x = 0). In this case, x(t) → 0 as t → ∞.
55
Dr. Dil Gurung, Kathmandu University
Case 3 (Underdamping)
It occurs if the damping constant c is so small that c2 < 4mk. In this case, the
roots are complex conjugate, say, λ1 = α + iβ and λ2 = α − iβ, where α = −c/2m
and β = (4mk − c2 )/2m. Then the corresponding general solution of (71) is
eλ t = e(−c/2m) t
d2 x dx
10 2 + 200 + 640 x = 0
dt dt
d2 x dx
2
+ 20 + 64 x = 0
dt dt
The model equation with associated initial conditions is
d2 x dx
2
+ 20 + 64 x = 0, x(0) = 1/3, x0 (0) = 0. (72)
dt dt
The characteristic equation is
λ2 + 20 λ + 64 = 0
Its roots are −4 and −16 which are real and unequal. Hence
56
Dr. Dil Gurung, Kathmandu University
d2 x
m = FR + Fd + f (t)
dt2
dx
= −kx − c + f (t)
dt
Thus
d2 x dx
m 2
+c + kx = f (t)
dt dt
Or
d2 x c dx k
2
+ + x = f (t) (73)
dt m dt m
The Eq.(73) is a standard second order non-homogeneous linear differential equa-
tion with constant coefficients describing the motion of a spring under the appli-
cation of restoring force, damping force and external force.
Solution:
d2 x
m = FR + Fd + External force
dt2
Applying these forces and using the parameter values, we obtain
d2 x dx
10 2
+ 80 + 640 x = 1280 cos 8 t
dt dt
d2 x dx
+ 8 + 64 x = 128 cos 8 t
dt2 dt
The model equation with associated initial conditions is
d2 x dx
2
+8 + 64 x = 128 cos 8 t, x(0) = 1/3, x0 (0) = 0. (74)
dt dt
57
Dr. Dil Gurung, Kathmandu University
λ2 + 8 λ + 64 = 0
√
Its roots are −4 ± 4 3 i which are complex conjugates. Hence, the compli-
mentary solution is
−4t
h √ √ i
xh (t) = e c1 cos 4 3 t + c2 sin 4 3 t
Using this yp into the nonhomogeneous equation, and equating the like
terms, we obtain A = 2, B = 0. So
xp (t) = 2 sin 8t
√
Using initial conditions, we obtain c1 = 1/3 and c2 = −11/3 3. Therefore,
the required solution is
√ √
−4t 1 11
x(t) = e cos 4 3 t − √ sin 4 3 t + 2| sin
{z 8t}
3 3 3
| {z } steady term
transient terms
−4t
√
−4t
h
1
11
√ i
When t → ∞, e → 0. So the terms e cos 4 3 t − 3 3 sin 4 3 t are
√
3
called transient terms and are significant only when t is near zero. These
transient terms in the solution, when they are significant, are sometimes
called the transient solution. When the transient terms are negligible,
the term 2 sin 8t remains. This is called steady state term or steady
state solution.
EL + ER + EC = E
dI 1
L + RI + Q = E(t) (75)
dt C
dQ
Since I = dt
, and then
d2 Q dQ 1
L + R + Q = E(t) (76)
dt2 dt C
58
Dr. Dil Gurung, Kathmandu University
for the charge Q(t) under the assumption that the voltage E(t) is known.
If E(t) = 0, the electrical vibrations of the circuit are said to be free. The
characteristic equation of the Eq.(76) with E(t) = 0 is
1
Lλ2 + Rλ + =0
C
Its two roots are p
−R ± R2 − 4L/C
λ1,2 =
2L
and hence the Eq.(76) with E(t) = 0 has three forms of solutions depending on
the value of the discriminant R2 − 4L/C. Thus, we say that the circuit is
d2 I dI 1 dE
L 2
+R + I = (77)
dt dt C dt
for the current I(t). As in spring mass system, if E(t) is periodic, that is, E(t) =
A cos ωt or A sin ωt, then the general solution of Eq.(77) consists
59
Dr. Dil Gurung, Kathmandu University
Mechanical system Electrical system
mx00 + cx0 + kx = f (t) LQ00 + RQ0 + C1 Q = E(t)
x : displacement Q : charge
x0 : velocity Q0 : current
m : mass L : inductance
d2 Q dQ 1
1 2
+ 12 + Q = 24 sin 10t
dt dt 0.01
d2 Q dQ
2
+ 12 + 100Q = 24 sin 10t (78)
dt dt
The roots of the associated homogeneous equation are −6 ± 8i, and so the com-
plimentary solution is
Therefore
Substituting Qp , Q0p and Q00p in Eq.(78) and equating the like coefficients, we get
A = 1/5 and B = 0. Then
1
Qp = − cos 10 t
5
Therefore the general solution of Eq.(78) is
1
Q(t) = Qc + Qp = e−6t (c1 cos 8t + c2 sin 8t) − cos 10 t
5
60
Dr. Dil Gurung, Kathmandu University
From the initial condition Q(0) = 0 and I(0) = 0 we find that c1 = 1/5 and
c2 = 3/20. Hence the charge Q is
e−6t 1
Q(t) = (4 cos 8t + 3 sin 8t) − cos 10 t
20 5
and the current I = dQ/dt is
5
I(t) = − e−6t sin 8 t + |2 sin
{z10 }t
| 2 {z } steady periodic
transient current
61