SMA 335_ Ordinary Differential Equation I Notes
SMA 335_ Ordinary Differential Equation I Notes
CHAPTER 1
1.1 Definitions
Any relation between the variables x, y and the derivatives dy/dx, d 2y/dx2, ... is called an
ordinary differential equation. The term ordinary distinguishes it from a partial differential
The order of a differential equation is that of the highest derivative occurring in it; the degree of
a differential equation is that to which the derivative of the highest order is raised when the
Throughout this chapter we shall frequently write y' and y" for dy/dx and d2y/dx2 respectively.
centres at the origin; c is constant for each circle but varies from circle to circle. Differentiating
2x+2y y'=0,
common to all the members of the family, viz. that the tangent at the point P(x, y) on anyone of
them is perpendicular to the radius which passes through P. The differential equation is of the
first order.
y=ax+b/x (iii)
which contains two arbitrary constants a and b, it is necessary to differentiate twice before we
and eliminating a and b between (iii), (iv) and (v) We obtain the second order differential
equation
x2y"+xy'=y.
The process of finding a relation from which a given differential equation is derived is known as
solving (or integrating) the differential equation. The above examples suggest that the
differential equation obtained from a relation involving n arbitrary constants will be of the nth
order. Conversely, it may be expected that if we can solve a different equation of the nth order.
the most general solution (or integral) will contain n arbitrary constants. Such a solution is
termed the general solution or the complete primitive. There may, however, be other solutions in
particular integral, is obtained. For example, (i) is the general solution of the differential equation
Below are given methods of solution for some of the simpler, commonly occurring types of
This chapter is mainly devoted to the methods of solution of differential equations of the first
order and first degree, i.e. to equations which may be written in the alternative forms
where M and N do not involve derivatives of y. The general solution contains one arbitrary
If a differential equation of the first order and first degree can be writ ten in the form
X dx+ Y dy=0,
where X is a function of x alone, and Y is a function of y alone, the variables are said to be
∫X dx+ ∫Y dy=C.
Example 1
+ = 0,
Example 2
- = 0,
– =0
Note If logarithm functions occur in the integration of a differential equation, the constant of
integration is frequently written in the form log C in order to simplify the form of the general
solution.
Exercises 1(a)
1. Obtain a differential equation of the second order by eliminating the constants A and B
2. If a and b are arbitrary constants, find the second order differential equation whose
is said to be homogeneous when M and N are homogeneous functions, of the same degree in x
and y. In this case M/N is a function of y/x and (i) may be written in the form
dy/dx=ƒ(y/x) (ii)
If y/x=v, so that y=vx and dy/dx=v+x dv/dx, (ii) takes the form
v + x(dv/dx) = f(v),
which may be integrated as before, the original variable being restored by substituting y/x for v
in the result.
Example 3
Solve the equation dy/dx=(x2+2y2)/xy, and find the particular solution for which y=0 when x=l.
=
=
Integrating, we obtain
(x2+y2) =x2.
is not homogeneous but may be reduced to homogeneous form when a/a'≠b/b' by writing
and = / =( /(
=( /(
i.e =
If a/a' =b/b' the substitution z=ax+by will reduce (i) to an equation in which the variables can be
separated.
Example 4
(i) Let Y =4x-2y+4 and X =2x+y-2; then the given equation becomes
=
i.e. dv =0
Integrating, we have
X√{v2+4v-4}=C,
(ii) =
Here, since the coefficients of x, y in the numerator and denominator are in the same ratio, we let
( -2)= ,
which leads to =
i.e. (2-3/z)dz=7dx.
Integrating. we have
Exercises 1 (b)
1. x(y-3x)y'=2y2-9xy+8x2.
3. xy2 y'=x3+y3.
5. (2x+y) y'=6y-4x.
6. (x+2y-3) y'=2x-y+1.
7. (x+y-2) y'=x+y+2.
8. (2x-y)2y'+(x-2y)2=0.
9. (3x+y+3) y'+2(x+3)=0.
The equation =
(4x-2y+4)dx- (2x+y-2)dy=0,
If the equation
and
= =
The converse result is true, but is harder to prove; (ii) is the condition for (i) to be exact.
Example 5
= = 1,
M =fx=3x2+y+ 1
and N=fy=3y2+x+1
Integrating (i) with respect to x, we have, for each value of y, f =x3 + xy + x + constant.
But the value of this constant may depend on the value of y and so
f=x3+xy+x+φ'(y) (iii
fy=x+φ'(y)·
Hence φ'(y)=3y2+1
f(x, y) =x3+xy+x+y3+y;
x3+y3+xy+x +y =C.
Exercises 1 (c)
Show that the following equations are exact and integrate them:
1. x y' +y=ex
4. (1-cos2x)dy+2ysin2xdx=0.
5. (3x2+ 2y+ 1) dx+ (2x+ 6y2+2) dy =0.
3ydx+2xdy=O (i)
x3y2=C,
3X2y2 dx + 2x3y dy = 0.
Comparison of this equation with (i) shows that x2y is an integrating factor of (i).
Example 6
Show that the equation (3xy-2ay2)dx+ (x2-2axy)dy=0 has an integrating factor which is a
is exact, and so
(3xy-2ay2)f(x) t = (x2-2axy)f(x) -t .
and hence = .
Fx dx+Fy dy=0
From (iii) and (iv) F(x, y) may be determined as in Example 5 and the solution of the given
Example 7
Show that the equation dx+{I+(x+y) tany}dy=0 has an integrating factor of the form (x+y)n,
=(x+y)n-l{n+(n+l)(x+y) tany},
.'. n=-l.
Hence l/(x+y) is an integrating factor 01 the given equation and the equation
is exact.
fx=l/(x+y) (i
From (i) and (ii), f(x, y) =log (x+y) +log (sec y) and the solution of the given equation may be
(i +Py)=Q
where P and Q are functions of x alone, involves y and dy/dx to the degree only and is known as
To find a method of solution, we consider first the particular cast when Q= 0. The equation is
then
+Py=0 (ii
(l/y)dy+Pdx=0
or ye∫Pdx=C.
(iii) )=0
) ( ) , when
= euP
=Pe∫Pdx
( +Py)
Hence the left-hand side of (iii) 1s that of (ii) multiplied by .o=. It follows that e ∫Pdx is an
+Py) = Qe∫dx
( Qe∫dx
i.e. ∫ Qe∫dxdx +C
The student should verify that it is unnecessary to include an arbitrary constant in ∫Pdx when
The following results are useful for expressing the integrating factor in its simplest form :
Example 8
Solve the equation dy/dx+y cot x=2 cos x.
e ∫Pdx = sin x
Example 9
+ y= (x+1)e-x2
= C-
i.e. xy =(x+ 1) (C - ).
Exercises 1( d)
3. x2y'+xy=logx.
8. (x-2)(x-3) y'+2y=(x-l)(x-2),
9. x(1-x2) y+(3x2+1)y=(1+x)3
Find the solution to the equation. which remains finite as x tends to zero.
16. (i) Reduce the differential equation (x+ l)y y' -y 2 =x to a linear form by writing Z=y 2, and
ii) solve the equation (2x +y) y –x+2y, by writing y=vx. Given that when x=1, y=0.
The equation
+Py = Q
in which P and Q are functions of x alone and n is constant is known as Bernoulli's equation and
Suppose first that n ≠ I and divide throughout by yn so that the given equation becomes
+P =Q
which reduces the given equation after multiplication by (1-n) to the linear equation
Example 10
When this equation is divided throughout by x it is seen to be Bernoulli's equation with n=2.
Proceeding as above, we then divide throughout the equation by y2 and put v= y-l so that
dv/dx=-y-2dy/dx.
Then -
(v/x) = -log x,
i e. l/xy=C+x(l-log x).
Exercises 1 (e)
3. y' =x/y+y.
5. y' + y =xy3
8. (x2-1) y'+xy=exy-2√(x2-1).
CHAPTER 2
In this chapter we shall write Dy to denote dy/dx and Dry to denote d ry/dxr so that the symbol D
D(u+v) =Du+Dv,
Dm(Dny) = Dn(Dmy) = Dm+ny
where any function of D is interpreted as operating on the function which follows it.
= D2y-(a+b) dy +aby
={D2- (a+b)D+ab}y
Hence a second-order operator with constant coefficients may be factorized in the algebraic
sense into two linear factor-;Whose order of arrangement is immaterial. For example
=3(3-D)(2 cos x)
By differentiation, Dekx=kekx,
φ(D)ekx –φ(k)ekx
(b) Operators applied to products of the form e kxV, where k is a constant and V is a Junction of x.
D(ekxV) = ekx(D + k) V
Dn(ekxV) =ekx(D+k)nV.
In a linear differential equation, y and its derivatives occur separately in the first degree only, and
where the a's are given constants and ƒ(x) is a given function of x.
and, in the case when (x) = 0, we obtain the equation φ(D)y =0 which is known as the reduced
equation of (ii).
If y1, y2,… yn are n solutions of the equation φ(D)y = 0 and A1, A2, ... , An are arbitrary
(D-a)y=0
i.e.
, We have and so
y= Aeax
{D2-(a+b)D+ab}y=0. (i)
satisfied when
(D-a)y=0
which contains two arbitrary constants if a≠b is the general solution of (i).
may be treated in the same way if it is assumed that φ(D) has n distinct linear factors (D -k l), (D-
k2),···' (D -kn), where the k's are real or complex. These factors may be arranged in any order
y=A1eklx,y=A2ek2x. ,.,y=Aneknx.
is the general solution of (24.3) when the k's are all distinct, i.e. when φ(D) has no repeated
factors.
If, however, kl=k2=k3=... =kr, while kr+l, kr+z,···' kn are distinct, the first r terms in (2.4) can be
combined into a single term of the form Ae k1x, the number of arbitrary constants in (24.4) is
reduced to n-r+l and (2.4) does not represent the general solution of
2.6. The solution of φ(D)y=O when φ(D) has a repeated factor (D-k1)r
If φ(D) == (D-kl) r(D-kr+1)(D-kr+2)…. (D-kn),
(D-kl)r =0 (i)
Since one solution of equation (i) is A1ek1x, to find its general solution we put y=ek1xV, where V is
a variable dependent on x.
Then (D-kl)r{ek1xV}=0
V =Al +A2x+A3x2+ ... +Arxr-1, where the A's are arbitrary constants.
Hence, corresponding to the factor (D - k 1)r in φ(D) , there is the term (A l +A2x+A3x2+ ... +Arxr-
1
)ek1x, containing r arbitrary constants, in the solution of (24.3). The other terms are as found in §
v= (Al +A2x+A3x2+ ... +Arxr-1 )eklx+Ar+lekr+1x+ ... +Aneknx In practice the values of k l ,,k2… .. in
any particular case are found by taking y=e kx as a trial solution of the given equation. The
Example 1
This equation is
If y=ekx is a solution
(D2-3D-4)ekx=0
(k2-3k-4)ekx=0
(ii) is known as the auxiliary equation of (i); its roots are -1 and 4.
Example 2
The auxiliary equation is k2-4=0; its roots are k=±2. Hence th: general solution is y=Ae2x+Be-2x•
Example 3
y=Ae3ix+Be-3ix
When the roots of the auxiliary equation are purely imaginary, the solution should be
Useful alternative forms to (ii) are y=R cos (3x+a), y=R sin (3x+a), where R and a are
arbitrary.
Example 4
The auxiliary equation is k2+4k+13=0; its roots are k=-2±3i. Hence the general solution
is
y=Ae(-2+3i)x+Be(-2-3i)x
y=Re-2x sin(3x+a).
or
Example 5
I The auxiliary equation is k3+k2-k-1=0, or (k-1)(k+1)2=0; its i roots are k=-1, -1,1.
Example 6
Let y = u be the general solution of the reduced equation φ(D)y=O i.e. the solution containing n
Thus v is any function of x which can be found to satisfy (i), and since the n arbitrary constants
required ill the general solution of (i) are contained in u, no arbitrary constant need appear in v.
In other words the general solution (G.S.) of (i) is the sum of two terms u and v: u, the general
solution of the reduced equation φ(D)y=O, which contains n arbitrary constants and is known as th
complementary Junction (C.F.); v, a particular integral (P.L), i.e. function which satisfies (i) and
A particular integral may sometimes be found by inspection, be since, in general, this is not the
According to this definition the operator is the inverse of the operator φ(p) and it can be
shown that can be broken up into factors (which may be taken in any order) or into partial
Example 12
A P.I. is given by
=
= )
= - + - )
Example 13
Also, x cos 2x is the real part of xe2ix and so to find a P.I. we evaluate
50x =
= (1- +…)x,
= -(i+1)
=
The real part of this expression, i.e. (11-5x) cos 2x-(2-10x) sin 2x, is a P.I. of the given
Example 14
If a particle moves along the x-axis in such a way that its displace ment from 0 at time t is x,
the velocity of the particle at time t is x and its acceleration is x, where dots denote
This is the differential equation of simple harmonic motion. It solution may be written in
If, in addition, there is a resistance proportional to the velocity, the motion of the particle is
referred to as damped harmonic motion and the differential equation of the motion is of the
form
+2p +n2x=0,
where the constant p is positive. There are three cases depending on the nature of the roots
Example 15
Example 16
Example 17
x=e-2t(A +Bt).
In all three cases, as t→ ∞, x→O, i.e. the motion ultimately dies out and the particle tends to a
In Example 15 the motion may be roughly described as being oscillatory with constant
period 2 /5 and with decreasing amplitude Re-2t. It can be shown that successive amplitudes
form a decreasing geometrical progression and the motion is said to be slightly damped.
In Example 16 the motion is said to be heavily damped for both x and x tend to zero as
t→∞and so the particle ultimately comes to rest at the origin. If A and B are of opposite sign,
the particle may pass through the origin once before coming to rest, but the motion is not
In Example 17 the motion is said to be critically damped. If A and B are of opposite sign, the
particle may pass through the origin once before coming to rest there, but the motion is not
If, in addition to the force which causes simple harmonic motion and the force which causes
damping, the particle is acted on by any other force depending only upon the time, the
+2k +n2x=f(t)
In the solution of this equation the complementary function 1£ represents the general
solution for free oscillations, i.e. when there is no applied force f(t). The particular integral v
Since x=u+v and we have already shown that 1£u →0 as t→∞, it follows that x→v as t→∞.
For this reason v is sometimes called the steady state and the part u which dies away is called
the transient.
Example 18
If. + 4 +29x=cos 5t, find x in terms of t and deduce that when t is large the motion of the
We have shown in Example is that the C.F. is e-2t(a cos 5t+b sin 5t). A P.I. is given by the
real part of
Now = =
when t is large, x= (cos 5t+5 sin 5t) approximately, i.e. the motion f the particle is
Example 21
+y=sin t+1,
+ x=cos t,
Dx+y=sin t+ 1………………………………(i)
D2x+Dy=cos t …………………………………….(iii)
y=sint+ l-Aet+Be-t.
The given conditions, x=2 and Y= 1 when t=0 lead to the equations 2=A +B and O=B-A
x=et+e-t
y=sin t+ 1-et+e-t.
Dy=cost_Aet-Be-t
:. y=sint-Aet+Be-t+C .
(D2-I)y=-2sint-1
:. y=aet+be-t+sin t+ 1 .
Substitution from (iv) and (vi) into (i) or (ii) gives a=-A and b=B, so that there are in
fact only two independent arbitrary constants in the solution of (i) and (ii).
It is useful to note that the number of independent arbitrary constants required in the
where ƒ1,ƒ2 F1 and F2 are polynomials with constant coefficients and D == d/dt, corresponds to
To avoid introducing more arbitrary constants than are required, when one of the unknowns
(in this case x) has been determined, the other (in this case y) should if possible be found by
Example 22
=cos t,
i2=0,
(2D+I)i1+Di2=cos t
Di1+(2D+1)i2=O
where D == d/dt.
(3D2+4D+1)2i2=sin t.
Whence
=- (1 +2i) (cost+isint).
= Be- t - A
The, given equation, are each of the first order so that the expressions for i 1 and i2 should contain
only two arbitrary constants. To avoid introducing further constants we eliminate Di 1 between (i)
hence A = , B=-
i2= (5e-t-e- t
-4 cos t-2 sin t).
Exercises 24 ( c)
1. Given that x and y are function, of t such that +=3x-y, +=x+y and x=1, y=0
2. Solve the simultaneous equations +ay=a, +ax=y, given that x=0 and y=1
+2y=5et, +-2x=5et.
It is given that x=-l and y=3 when t=0. moves in a straight line. Show that the point
4. Find x and y in terms of t, given that +y=3x, +2x=2y, and that x=0 and y= .
when t=0.