Lesson1 5 PDF
Lesson1 5 PDF
Lesson1 5 PDF
Substitutions
In this section, we will transform the equation
dy
= f (x, y)
dx
into another differential equation by the substitution
y = g(x, u)
dy ∂g dx ∂g du
= +
dx ∂x dx ∂u dx
du
= gx (x, u) + gu (x, u) .
dx
dy
Replacing dx by f (x, y) and replacing the y in f (x, y) by g(x, u), we get
du
f (x, g(x, u)) = gx (x, u) + gu (x, u) .
dx
du
Solving for dx gives
f (x,g(x,u))−gx (x,u)
and if we call F (x, u) the function gu (x,u) , we have
du
= F (x, u).
dx
Once this new ODE is solved, and its solution is found, say u = ϕ(x), then
we have the solution of our original equation as
y = g(x, ϕ(x)).
Homogeneous Equations
We will now discuss another technique for solving nonlinear (not linear) first-
order differential equations. If the right side of the equation y ′ = f (x, y) can be
expressed as a function of the ratio xy only, i.e.,
y ′ = F ( xy ),
or
xn M (1, u)dx + xn N (1, u)[udx + xdu] = 0,
or
dx N (1, u)du
+ = 0.
x M (1, u) + uN (1, u)
And one may then solve the resulting equation as stated in the previous method.
The following example illustrates how to solve first-order homogeneous
equations.
1 cosu
dt = du,
t sin u
which is a separable equation. Integrating both sides, we have
ln |t| = ln | sin u| + C,
More Substitutions
Differential equations of the form
dy a1 x + b1 y + c1
= , with c1 ̸= 0, c2 ̸= 0,
dx a2 x + b2 y + c2
or
(a1 x + b1 y + c1 )dx + (a2 x + b2 y + c2 )dy = 0
can be made homogeneous provided that the lines a1 x + b1 y + c1 = 0 and
a2 x + b2 y + c2 = 0 are not parallel, i.e., a1 b2 ̸= a2 b1 using one of the two
following methods.
Method 1
This method uses a translation of the Origin (0, 0) to the intersection point
P (h, k) of the two lines given by the solution of the 2 by 2 system of linear
equations {
a1 x + b1 y + c1 = 0
a2 x + b2 y + c2 = 0
Then, we make the substitutions
{
x = x̄ + h
y = ȳ + k
5
giving
(a1 x̄ + b1 ȳ)dx̄ + (a2 x̄ + b2 ȳ)dȳ = 0.
Example 2 Solve
2x − y + 1
y′ = .
x+y
We find that h = − 31 , k = 13 , giving
with x̄ ̸= 0 or
3x + 1 2 3y − 1 2 √ 3y − 1 1
log |2( ) +( ) | = C4 − 2 tan−1 ( √ ), x ̸= .
3 3 2(3x + 1) 3
Method 2
This method uses substitution
{
u = a1 x + b1 y + c1
v = a2 x + b2 y + c2
giving {
du = a1 dx + b1 dy
dv = a2 dx + b2 dy
a system to be solved for dy and dx, which, when substituted in our problem,
gives a solvable system.
Example 3 Solve
2x − y + 1
y′ = .
x+y
We find that du = 2dx − dy, dv = dx + dy, giving
du + dv du − 2dv
dx = , dy = − ,
3 3
and
du + dv du − 2dv
u( ) − v( ) = 0,
3 3
or
(u − v)du + (u + 2v)dv = 0.
6
dv t−1
(tv − v)(tdv + vdt) + (tv + 2v)dv = 0 or + 2 dt = 0, v ̸= 0.
v t +2
And the solution is
1 1 1 t
log |v| + log(t2 + 2) − √ tan−1 (t2 + 2) − √ tan−1 ( √ ) = C,
2 2 2 2
with v ̸= 0 or
√ 2x − y + 1
log[(2x − y + 1)2 + 2(x + y)2 ] = C + 2 tan−1 ( √ ), x + y ̸= 0.
2(x + y)
More generally, if
y ′ = f (ax + by + c),
use u = ax + by + c as a substitution and get u′ = a + bf (u) to be solved as
∫
du
= x + c.
a + bf (u)
u−ax−c
Then obtain x(u) before finding u and y = b .
Bernouilli Equation
Bernoulli equations are ordinary differential equations of the form
dv
+ (1 − n)p(x)v = (1 − n)q(x),
dx
we can slove by the integrating factor method to get
∫
∫ ∫
y 1−n = e(n−1) p(x)dx {(1 − n) q(x)e(1−n) p(x)dx dx + C}.
7
4y 3 y ′ + 4xy 4 = 4x.
Example 5 Solve xy ′ + y = y 2 ln x.
Set y = u(x)v(x) and substitute to get (the modified ODE)
xvu′ + u(xv ′ + v) = u2 v 2 ln x,
and solve xv ′ + v = 0. Then obtain v = x1 to be put back into the modified ODE
to get
u2
u′ = 2 ln x.
x
And by separation of variables, we have
∫
1 ln x ln x 1
− = dx = − − − C.
u x2 x x
That is
x 1
u= , or y = , C constant.
1 + cx + ln x 1 + cx + ln x