Nonlinear Ordinary Differential Equations
Nonlinear Ordinary Differential Equations
3.1 Introduction
The differential equations met in Chapter 2 were linear in the sense
that they were special cases of the general nth order linear equation
where fly f2, . . . , fn, g are given functions of x. For such equations the
Principle of Superposition applies: an arbitrary linear combination of
individual solutions is also a solution.
Equations which cannot be written in the form of (3.1) are called
non-linear and, for such equations, the Principle of Superposition does
not apply. A typical first-order non-linear equation is
whereas
d2y , dy
\
G(y) dy
"I dx + C (3.6)
where C is a constant.
Example 1
dy CO
dx
(3.7)
X
x^ + u = K(u), (3.12)
ax
or
^ =^ ^ . (3.13)
dx x
This equation is now of separable form.
3.2 Equations with separable variables 55
Example 2
d JL
i
dx x—y'
(3-14)
Writing (3.14) in the form of (3.11), we have
dy _ y/x
(3.15)
dx 1 —y/x
Putting y = xu gives
du u
(3.16)
~ dx 1-u'
or
du u2
(3.17)
dx x{\ — u)
f — ^ d u = I — + ln,4, (3.18)
J u J x
where A is a constant. Integrating both sides, we have
- - - I n n = ln(i4*), (3.19)
Example 3
xg-(,-0* (3.21,
given that y = 1 and dy/dx = 1 at x = 0.
56 Non-linear ordinary differential equations
Since
'(&.& +* (3.22)
dx \ dxl dx dx
then (3.21) can be written
x w
dx\ dx) dx " 'dx' "~'
or, simplifying,
d I dy\ dy d , ~
dx \ dx) dx dx
2
X^=$y + A, (3.25)
^ = j j + \nB, (3.27)
(3 28)
ii^iJTi) ' -
or
Hence
y - l = Bx(y + l), (3.30)
or
3.3 Equations reducible to linear form 57
Example 4 Consider
y = e" 1 . (3.40)
For y = e~x(Ax + B), y + dy/dx = Ae~x. Inserting these into (3.34),
we have
*) + e~x(Ax + B) = 0. (3.41)
Cancelling e~* and using \n(Ac~x) = In A -x, we find
A(\n A - x) + Ax + B = 0, (3.42)
so that
,41n,4 + £ = 0. (3.43)
Substituting back for B> we have a solution
Example 5 Consider
p= dy/dx, (3.46)
we have
d2y/dx2=pdp/dy. (3.47)
Now (3.45) becomes
pdp/dy + 2p2 = y2. (3.48)
This can be written
Accordingly,
P = f = ^V[(r-l)2 + ^ (3.55)
the positive sign being chosen so that p = \ when y = 0. The variables
may now be separated giving
(3.56)
(3.59)
may be solved, as in Example 5 above, by multiplying by the
integrating factor exp(J P(x) dx). The non-linear equation
Example 6 Consider
dy/dx + 2y=xy3. (3.64)
Hence
1 ^ + 1 = *, (3.65)
y dx y
and therefore
1d/1 \ 1.
2 (3.66)
2dx\y ) y2
Writing z = 1/y2, we have
dz/dx-4z = -2x. (3.67)
Multiplying by the integrating factor e~4x, we find
Example 7 Consider
whence
dx x{\-xy2Y {iJl)
=y (3 73)
j+Y ~T- *
We see that (3.73) is an equation of Bernoulli type when viewed as an
equation for x in terms of y. Letting z = 1/x, then
= (3 74)
T~T ~o> '
dy 2y 2
for which the integrating factor is y~K Hence
giving
(3.76)
*- + ^ . (3.80)
dx u dx
But, since S is a solution of (3.78),
dS/dx =p(x)S2 + q(x)S + r(x), (3.81)
and (3.80) becomes
du/dx + [2p(x)S + q(x)]u + p(x) = 0. (3.82)
This equation is of standard first-order linear form which may be
solved by the integrating factor method. Here the integrating factor is
Example 8 Consider
= j-x^dx +Q (3.88)
where C is a constant. Integrating and dividing by xe 2
(3.89)
1.
In (3.78) we consider first the case of p(x) = — 1 so that
dyldx +y2 = q(x)y + r(x). (3.91)
Writing
so that
T- = - T 4 - A ( ? ) > (3-93)
dx zdx z \dxl
(3.91) becomes 2
dz dz
—2q{x)
-q(x)--r(x)z=0. (3.94)
d?- d-x
This is a linear second-order equation for z and appropriate methods
may now be applied (for example, the Frobenius series method used in
Chapter 2 if q and r are simple polynomials). We note that if
p(x) = 4-1 in (3.78), then the substitution
2.
Secondly we consider the case of q(x) = 0 in (3.78) so that
dyldx =p(x)y2 4- r(x). (3.97)
We now make a change of the independent variable x to x', where xr
is defined by
dxf/dx=p(x)y (3.98)
or
Then
dy dy dx' dy
dx dx' dx dx'
64 Non-linear ordinary differential equations
Example 9 Consider
dy/dx = 2xy2 - 2x3. (3.104)
This is a case of (3.78) with q{x) = 0. We therefore change the variable
from x to
% = %dfx=2x% (3 106)
-
and substituting this into (3.104) and cancelling 2x gives
dy/dx' = y2 - x2 = y2 - x'. (3.107)
f
This is now a Riccati equation for y in terms of x' with p(x ) in (3.78)
equal to +1. Following (3.95), we put
1 dz
y—- (3.108)
—4 = *'*- (3.109)
This is Airy's equation discussed in Section 2.9 and hence a solution
for z in terms of x' may be found in terms of Airy functions. The
solution for y is then obtained from (3.108) and finally substituting x2
for*' from (3.105). ^
3.7 The Lane-Emden equation 65
d2y 2 dy
dx xdx
y = l, dy/dx = 0 at x = 0, (3.111)
4d2u/dt2-u + u5 = 0. (3.113)
4vdv/du - M + M5 = 0. (3.114)
Using
cos 0 = 1 - 2 sin2 (0/2), cos a = 1 - 2 sin2 (or/2), (3.130)
(3.129) becomes
Now writing
sin(0/2) = £ s i n 0 , (3.132)
where k = sin(ar/2), then
(3 134)
'w4>)' "
with O^A;^1. Similarly, the elliptic integral of the second kind is
defined by
Example 10 Evaluate
d<t>
1
Jo V(l - 4 sin
Putting 4 sin2 0 = sin2 6, we obtain
rjz/2
68 Non-linear ordinary differential equations
Example 11 Evaluate
dx
(3.138)
h J rn
0
cos
(3.139)
However, 3 — 4 sin 2 <p + sin 4 <p = (3 — sin 2 (p){\ — sin 2 <p) = (3 — sin 2
cos 2 <p. H e n c e
Figure 3.1
k=0
(a)
3.9 Buffing's equation 69
=C-ay2-lby\ (3.143)
wrx+B- <3144)
where B is another constant. For particular values of a, b and C, the
left-hand side can be expressed in terms of an elliptic integral.
Example 12 If
f l = - l y + y \ (3.145)
with boundary conditions y = 0 and dy/dx = l when x = 0, find the
x-value for which y = 1.
Proceeding as above, we have
= 2(—\y +y ) — , (3.146)
Hence
— J sin <p)
using the definition of the complete elliptic integral of the first
kind. ^
1. a = l, b=2
In this case (3.159) becomes
/ + y2 + w2 = 2C. (3.160)
The graph of this family of curves is shown in Figure 3.2. From
(3.160), we see that it is not possible to have C < 0 for any initial
conditions. For any value of C ^ 0, the curve is closed, which indicates
that only periodic solutions of the equation exist for these values of a
and b.
2. a = 1, b = - 2
In this case (3.159) becomes
y4-y2-w2=-2C. (3.161)
Figure 3.2
C=2
72 Non-linear ordinary differential equations
Figure 3.3
c—i-
Problems 3 73
- l ) ^ + >>=0, (3.163)
Problems 3
1. Obtain a solution of the equation
In x x In x
5. Show that the equation
y" = xy + 2y3 + \
f
E. Kreysig, Advanced Engineering Mathematics (Wiley, New York, 1988)
Section 1.10.
* D. W. Jordan and P. Smith, Nonlinear Ordinary Differential Equations,
(O.U.P, Oxford, 1987)
74 Non-linear ordinary differential equations
+
' W2
where C is a constant, satisfies Pinney's equation
y"' + p(x)y = C/y3,
where u and v are independent solutions of
z" + p(x)z = Q
and W = uv' — vu'. (For equations with no first derivative term
dz/dx, W, the Wronskian, is a constant). Hence show that
is a solution of
y" + y = 2/y3.
7. Show that
(l)
J2/V3 V(2M 4 - 3M2 + 1) " V2 \ V2 ' 3 / '
where F and £ are elliptic integrals of the first and second kinds,
respectively.
8. Show that the inhomogeneous Duffing equation
y" + ay 4- by3 = A cos(3cot)
has an exact solution
y = \-g-j cos(o>o,
provided