Chapter 3
Chapter 3
dy
g(y) = h(x)
dx
for some functions g(·) and h(·). Formally, multiplying both sides by dx, this produces the form of
the ODE
g(y) dy = h(x) dx
in which all dependence on x and dx has been separated onto one side of the equation with all
dependence on y and dy on the other. In this form, each side of the equation can simply be
integrated to provide a solution
Z Z
g(y) dy = h(x) dx + A
for an arbitrary constant of integration A. It might not always be possible to solve the resulting
formula explicitly for y, but, if that is the case, the formula does at least provide an implicit
relationship between x and the solution y.
Example 1. The ODE (1 − y 2 ) sin(x)y ′ − y cos(x) = 0 can be rearranged, through dividing by y
and by sin(x), to give
1 cos(x)
− y y′ = .
y sin(x)
Integrating both sides therefore gives
Z Z
1 cos(x)
− y dy = dx + A
y sin(x)
so that
ln |y| − 12 y 2 = ln | sin x| + A.
This result cannot be solved explicitly for the solution y(x).
dv
Example 2. The function v(z) satisfies dz = −3z 2 e v with v(0) = 0. Rearranging the ODE gives
dv
e −v = −3z 2
dz
so that Z Z
e −v
dv = −3 z 2 dz + A or − e −v = −z 3 + A
v = − ln(z 3 + 1).
y ′ = f (y/x)
f (z) − z
y ′ = xz ′ + z so that xz ′ + z = f (z) or z ′ =
x
which is a separable equation, that we already know how to solve for z(x).
– The transformation z = y/x reduces an ODE of homogeneous type describing y(x) to a
separable ODE describing z(x).
– Once a solution for z(x) is found, the solution for y(x) is simply y = x z(x).
du √ du u p
tu = u2 + 3t tu becomes = + 3 t/u
dt dt t
after dividing both sides by tu. The right hand side is a function of u/t so that the ODE is of
homogeneous type. It can be turned into a separable ODE using the substitution z(t) = u/t
or
u = tz so that u′ = tz ′ + z giving tz ′ + z = z + 3z −1/2
Simplifying and separating variables gives
Note that the constant of integration can be discarded when determining the integrating factor.
• After multiplying the standard form of the ODE (1) by the integrating factor, it can be rewritten
in the form
d
(y I(x)) = q(x)I(x).
dx
• This can easily be integrated to give
Z
1
y(x) = q(x) I(x) dx
I(x)
• This integration produces one constant of integration which has to be determined from the initial
condition.
• Table 1 shows a step-by-step illustration of how this method works.
• Again, the last step produces the general solution. The specific solution is determined by fixing the
constant via the initial condition.
• Note: The initial condition cannot be placed where either p(x) or q(x) are singular. If the ODE is
given in its general form, a(x)y ′ + b(x)y = c(x), this situation arises at points where the coefficient
multiplying the highest derivative, a(x), vanishes. This is nearly always a “sign of trouble” and we
will encounter other examples throughout this course.
2 FIRST-ORDER ORDINARY DIFFERENTIAL EQUATIONS 11
where yP (x) is any particular solution of the ODE y ′ + p(x) y = q(x), and yH (x) is the general
solution of the corresponding homogenous ODE2 y ′ + p(x) y = 0. This is a generic feature of all
linear ODEs, not just linear ODEs of first order.
2 Do not confuse the “ODE of homogenous type”, discussed in section 2.2.2, with the homogenous linear ODE!