Documente Academic
Documente Profesional
Documente Cultură
Bishnu P. Lamichhane∗
August 3, 2017
1 Introduction
We start by defining a differential equation (DE).
Note 3 We shall sometimes use the standard abbreviations for the derivative
dy 00 d2 y dy d2 y
of a function: y 0 = ,y = and ẏ = , ÿ = etc. An ordinary dif-
dx dx2 dt dt2
ferential equation involves function(s) of a single independent variable, whereas
a partial differential equation involves function(s) of more than one variable.
Definition 4 (Order and degree) The order of a differential equation is the or-
der of the highest derivative in the equation. The highest power of the highest
derivative occurring in the differential equation is called the degree of the dif-
ferential equation. However, the degree of a differential equation is not defined
if the highest power of the highest derivative is not a natural number.
∗ School of Mathematical and Physical Sciences, University of Newcastle, Callaghan, NSW
2308, bishnu.lamichhane@newcastle.edu.au
1
dy ∂u ∂2u
For example, + xy = 0 is a first order ODE, = is a second order
dx ∂t ∂x2
PDE. The degree of the differential equation
dy
+ xy = 0
dx
is one, whereas the differential equation
2 2 3
d y dy
+ + xy = 0
dx2 dx
is of degree 2.
1
For example, y 00 +ex y 0 − 2 y = cos x is a second order linear ode but (y 0 )2 = −y
x
is not linear.
Let D be the differentiation operator, i.e., Df = f 0 and L be the differential
operator
L = an (x)Dn + an−1 (x)Dn−1 + · · · a1 (x)D + a0 (x),
i.e., Lf (x) = an (x)f (n) + an−1 (x)f (n−1) + · · · + a1 (x)f 0 + a0 (x)f .
2
Example 8 The function y = y(x) = x2 is a solution to the first order linear
ordinary differential equation xy 0 = 2y for all x. To see this, substitute y = x2
into the differential equation to get
Note 9 For physical problems initial values are associated with time, whereas
the boundary values are associated with space.
∂u ∂u
+ = f (x, t) in R × R+ with u(x, 0) = u0 (x),
∂t ∂x
where R+ is the set of positive real numbers. This gives the time-evolution of
u under the assumption that the quantity u is prescribed as u0 (x) at (x, 0) ∈
R × R+ . Another example is to solve
dy
= f (y, t) in R+ with y(0) = y0 .
dt
∂2u ∂2u
+ 2 = f (x, y) in R with u(x, y) = g(x, y) on ∂R,
∂x2 ∂y
where ∂R is the boundary of the rectangle R, and g is a given function on
∂R is a boundary value problem. This problem arises in the steady-state heat
distribution under the given boundary condition. Another example is to solve
d2 y
= f (x, y) in (a, b) with y(a) = ya , y(b) = yb .
dx2
3
Example 12 Initial-Boundary Value Problem
∂u ∂2u
Solve − k 2 = 0, 0 < x < L, t > 0
∂t ∂x
with
The most general first order ordinary differential equation is of the form F (x, y, y 0 ) =
0, for some function F . Do solutions always exist? No – consider the differ-
ential equation (y 0 )2 + 1 = 0, this has no real–valued solution. However, if the
differential equation can be written in the form
4
One very important theorem for the existence and uniqueness of (2.2) is Picard’s
theorem.
Unfortunately, the theorem does not tell whether the solution exists for all x ∈ R.
It may be that the solution only exists for a short while. We note that both
problems
1
y 0 = , y(0) = 0
x
and p
y 0 = 2 |y|, y(0) = 0
do not satisfy the hypothesis of the theorem.
We consider an example.
Example 16
y0 = y2 , y(0) = A,
where A is a real constant. We know how to solve this equation. First assume
that A 6= 0, so y is not equal to zero at least for some x near 0. Thus writing
dx 1 −1 1 1
dy = y 2 , we have x = y + C. This gives y = C−x . If y(0) = A, then C = A .
If A = 0, then y = 0 is a solution.
For example, when A = 1 the solution “blows up” at x = 1. Hence, the so-
lution does not exist for all x even if the equation satisfies all hypotheses of
Picard’s theorem. Even more, we can see that the right hand side function y 2
is continuously differentiable as many times as we want.
√
is 2 y = ln |x| = ln x, as x ≥ 1. But y(x) ≡ 0 also satisfies the same initial
√
y
value problem, that is y 0 = , y(1) = 0 does not have a unique solution.
x
5
Note 18 If there is a number c such that f (x, c) = 0 (i.e. f (x, c) = 0 for all
x), then the constant function y(x) = c is a solution to (2.2).
Constant solutions can tell us much about the behaviour of other solutions of the
ordinary differential equation for large values of the independent variable (such
as x or t).
y 0 = 3y 2/3 , y(2) = 0.
6
Example 22 Consider the initial value problem
y0 = y2 , y(x0 ) = y0 .
Here f (x, y) = y 2 , and hence this satisfies all hypotheses of Picard’s theorem.
Therefore, there exists a unique solution on some interval |x−x0 | ≤ h. However,
and hence this function fails to satisfy the Lipschitz condition of Picard-Lindelof
theorem. Therefore, global uniqueness is not guaranteed.
y 0 + P (x)y = Q(x),
where P and Q are continuous functions of x in the interval [a, b]. Here
and hence
has a unique solution on the entire interval [a, b] if (x0 , y0 ) ∈ [a, b] × (−∞, ∞).
7
Example 26 Consider the example
y 0 = xy, y(0) = y0 .
This problem as a unique solution in any finite interval x ∈ [a, b]. Here
2.1 Exercises
8
3 Solution Methods
In this section, we discuss some solution techniques for solving ordinary differ-
ential equations. We have already discussed two techniques for solving differen-
tial equations: separation of variables and integrating factor technique. In this
section we further explore techniques to solve differential equations.
and
∂F
(x, y) = N (x, y).
∂y
Note that ’exact differential equation’ refers to the exact derivative of a function.
Let M and N be continuously differentiable on D ⊂ R2 . A potential function F
exists if and only if
∂M ∂N
(x, y) = (x, y).
∂y ∂x
Thus the differential equation is ’exact’ if the above condition is satisfied. The
differential equation is ’inexact’ if
∂M ∂N
(x, y) 6= (x, y).
∂y ∂x
Integrating factors
M (x, y) dx + N (x, y) dy = 0
9
to an ’exact’ ODE. Let µ(x, y) (a function of x and y) be an integrating factor
for the above ODE. We multiply the ODE by this function to obtain
and assume that the resulting ODE is ’exact’. This equation is exact if and only
if
∂(µM ) ∂(µN )
= .
∂y ∂x
The main difficulty in this method is to find the function µ. In fact, it satisfies
µx N − µy M = (My − Nx )µ,
where the subscripts x and y denote the partial derivatives with respect to x and
y, respectively. If we can solve the differential equation
µx N − µy M = (My − Nx )µ,
for µ, we have found the integrating factor. This differential equation can be
simplified when µ is a function of x or y only. Let µ be a function of x only.
Then the above differential equation reduces to
µx N = (My − Nx )µ,
which is simplified to
dµ M y − Nx
= µ.
dx N
We can solve this differential equation for µ if the right hand side depends on x
only.
µy M = −(My − Nx )µ,
which is simplified to
dµ Nx − My
= µ.
dy M
We can solve this differential equation for µ if the right hand side depends on y
only. Thus main idea here is to check whether the function
My − Nx
N
depends only on x, or
Nx − M y
M
depends only on y. Then we proceed to find the integrating factor µ. We consider
some examples.
10
Example 35 Consider the initial value problem
My = 2y − 12xy 2 = Nx .
Thus the equation is exact and there exists a function F (x, y) such that
We now integrate the first of the above equations with respect to x holding y
fixed so that
F (x, y) = y 2 x − 2x2 y 3 + 2x + g(y),
where g is a function of y only. Now differentiating this equation with respect
to y partially and using the second of equations (3.3) we have
This yields g 0 (y) = 0 and thus g is a constant. Thus g(y) = c. Without loss of
generality we assume that g(y) = 0. Hence the function F is given by
y 2 x − 2x2 y 3 + 2x = C,
y 2 x − 2x2 y 3 + 2x = 1.
Hence the given equation is not exact. Now we find that the function
My − Nx (2x + y)
=
N xy + 2
depends on both x and y. On the other hand, the function
Nx − M y (−2x − y) 1
= =−
M y(2x + y) y
11
depends only on y. Hence the integrating factor µ is a function of y only, and
R Nx −My
µ(y) = e M dx
= e− ln(y) = 1/y.
Multiplying both sides of the equation by the integrating factor µ(y), we have
(2x + y)dx + (x + 2/y)dy = 0.
Now we integrate this equation as in the previous example using
Fx (x, y) = M (x, y) and Fy (x, y) = N (x, y), (3.4)
where M and N are redefined as
M (x, y) = (2x + y) and N (x, y) = (x + 2/y).
The first equation of (3.4) yields
F (x, y) = x2 + xy + g(y), and Fy (x, y) = x + g 0 (y),
and the second equation of (3.4) yields
x + g 0 (y) = x + 2/y.
Thus g(y) = 2 ln(y), and the solution of the ODE is
x2 + xy + 2 ln(y) = C,
where C is a constant.
12
First Order ODE with Homogeneous Functions
for some real number α, then the function f is a homogeneous function of degree
α. For example, the function f (x, y) = x2 + xy + 3y 2 is a homogeneous function
of order 2. Let M (x, y)dx + N (x, y)dy = 0 be a first order ODE, where M and
N are two homogeneous functions of x and y of the same degree α. Then
The differential equation M (x, y)dx+N (x, y)dy = 0 is now converted to M (1, u)dx+
N (1, u)dy = 0 with y = ux. Thus we have dy = udx + xdu. Using this in the
differential equation M (1, u)dx + N (1, u)dy = 0 we have
xy 2 dy − (x3 + y 3 )dx = 0.
13
Bernoulli’s Equation
This is a linear differential equation in terms of v and we can solve it using the
method of integrating factor. Once we have the solution in terms of v we can
get the solution of the original differential equation by plugging v back into the
expression y −n+1 = v.
Example 38 Solve
xy 0 + y(x + 1) + xy 5 = 0, y(1) = 1.
First, the equation is Bernoulli (P (x) = (x + 1)/x and Q(x) = −1, n = 5). We
substitute
v = y 1−5 = y −4 , v 0 = −4y −5 y 0 .
In other words, (−1/4) y 5 v 0 = y 0 . So
xy 0 + y(x + 1) + xy 5 = 0,
−xy 5 0
v + y(x + 1) + xy 5 = 0,
4
−x 0
v + y −4 (x + 1) + x = 0,
4
−x 0
v + v(x + 1) + x = 0,
4
and finally
4(x + 1)
v0 − v = 4.
x
Let
4(x + 1)
p(x) = − .
x
14
Now the equation is linear. We can use the integrating factor method. Let us
assume that x > 0 so |x| = x. This assumption is fine as our initial condition
is x = 1. Let us compute the integrating factor. Here the integrating factor is
Z x
e−4x+4
Rx −4(s + 1)
e 1 p(s) ds = exp ds = e−4x−4 ln(x)+4 = e−4x+4 x−4 = ,
1 s x4
and hence Rx
e− 1
p(s) ds
= e4x+4 ln(x)−4 = e4x−4 x4 .
Thus the solution is obtained as
Rx
Z x R
t
− p(s) ds p(s) ds
v(x) = e 1 e 1 4 dt + 1
1
x
e−4t+4
Z
= e4x−4 x4 4 dt + 1 .
1 t4
Note that the integral in this expression is not possible to find in closed form.
Note that it is perfectly fine to have a definite integral in our solution. Now
“unsubstitute”
Z x −4t+4
e
y −4 = e4x−4 x4 4 dt + 1 ,
1 t4
e−x+1
y= 1/4 .
R x e−4t+4
x 4 1 t4 dt + 1
15