Lecture 8 - Substitution Methods
Lecture 8 - Substitution Methods
In this lecture, we will learn to use various substitution techniques to transform a differential equation into
one of the forms that we can solve using previously studied algorithms. We will use one kind of
substitution to transform a non-separable equation into a separable one. We will use another kind of
substitution to transform a non-linear equation into a linear equation. The idea behind the substitution
methods is exactly the same as the idea behind the substitution rule of integration: by performing a
substitution, we transform a differential equation into a simpler one.
dy y − 4x
Problem: Solve the differential equation = x−y .
dx
Solution: This is not a linear differential equation and it is also not separable! So no method we learned
so far applies outright. But through a substitution, we will transform this equation into a separable one.
Step 1: Make the substitution u(x) = y/x.
First we calculate du .
dx
du = dy · 1 + y · − 1 = dy · 1 − y
dx dx x x2 dx x x2
Next, we rewrite the differential equation in terms of u instead of y. On the right side, the most
straightforward way to do this is to solve y = ux and substitute ux for y. A quicker way is to multiply the
numerator and the denominator of the expression by 1/x. On the left side, the way to do this is to solve for
dy
in terms of du .
dx dx
y
y − 4x (1/x) · (y − 4x) −4
Right side: x − y = = x y =u −4
(1/x) · (x − y) 1− 1 − u
x
dy y y
Left side: = ( du + 2 ) · x = x du + x = x du + u
dx dx x dx dx
So we have:
du u−4
x +u=
dx 1−u
We perform some algebra:
x du = 1u −− 4 − u = u − 4 − u(1 − u) = u − 4 − u + u2 = u2 − 4
dx u 1−u 1−u 1−u
So we have:
du u2 − 4
x =
dx 1−u
(Note: using this substitution implies x 6= 0!)
Step 2: Check whether the equation is separable.
This equation is separable: 12− u du = x
1.
u − 4 dx
Step 3: Solve 12− u du = x 1.
dx
R 1−u Ru 1− 4
du = x dx
u2 − 4 R
Right side: x 1 dx = ln |x| + C
R 1−u
Left side: du
u2 − 4
We use integration by partial fractions.
1 − u = A + B = A(u + 2) + B(u − 2) .
u2 − 4 u−2 u+2 u2 − 4
A(u + 2) + B(u − 2) = 1 − u
u(A + B) + 2A − 2B = 1 − u
A + B = −1 and 2A − 2B = 1
A = −1/4 and B = −3/4
R 1−u R 1 R 1
2 du = −1/4 u − 2 du − 3/4 u + 2 du = −1/4 ln |u − 2| − 3/4 ln |u + 2| + D
u −4
So we have: −1/4 ln |u − 2| − 3/4 ln |u + 2| = ln |x| + E
−1/4(ln |u − 2| + ln |u + 2|3 ) = ln |x| + E
1
2
(y − 2x)(y + 2x)3 = G
Notice that if the original equation was even slightly different, for example:
dy y 2 − 4x
=
dx x−y
the substitution u(x) = y/x would not turn it into a separable equation and our method would fail!
dy x2 + 3y 2
Problem: Solve the differential equation = 2xy .
dx
Solution:
Step 1: Make the substitution u(x) = y/x.
dy 1 y
We already calculated du in the previous problem: du = · −
dx dx dx x x2
Next, we rewrite the differential equation in terms of u instead of y. In this case, the quick way to do this
is to multiply the numerator and the denominator of the expression on the left by 1/x2 ! (The slow way is
to use the equation y = ux.)
x2 + 3y 2 (1/x2 )(x2 + 3y 2 ) 1 + 3(y/x)2 2
Right side: 2xy = (1/x2 )(2xy) = = 1 +2u3u
2y/x
dy
Left side: = x du + u as before!
dx dx
So we have:
du 1 + 3u2
x +u=
dx 2u
2 2
We perform some algebra: x du 1 + 3u
= 2u − u = 1 + 3u − 2u2 = 1 + u2
dx 2u 2u
du 1 + u2
x=
dx 2u
Step 2: Check whether the equation is separable.
The equation is separable: 2u 2 du = x1.
1 + u dx
Step 3: Solve 2u 2 du = x 1.
1 + u dx
R 2u R 1
du = x dx
1 + u2 R 1
Right side: x dx = ln |x| + C
R 2u
Left side: du
1 + u2
We use the substitution rule of integration.
w(u) = 1 + w2
dw = 2u.
du
dw
R 2u R du R 1
2 du = w du = w dw = ln |w| + D = ln(1 + u2 ) + D.
1+u
Notice that we removed the absolute value since 1 + u2 > 0!
So we have: ln(1 + u2 ) = ln |x| + E
3
2
eln(1+u )
= eln |x|+E = eln |x| eE = F eln |x|
1 + u2 = F |x|
Step 4: Substitute back u(x) = y/x.
1 + (y/x)2 = F |x|
x2 + y 2
= F |x|
x2
x + y = F |x|3
2 2
1 2 2 3
F (x + y ) = |x|
±F 1 (x2 + y 2 ) = x3
1 2 2 3
G (x + y ) = x (G = ±F )
x2 + y 2 = Gx3
2 3 2
y = Gx − x p
y = ± Gx3 − x2
Our next problem will require a different kind of substitution.
dy
Problem: Solve the differential equation = (4x − y + 1)2 .
dx
Solution: As was the case with the previous examples, this equation is not linear and neither it is
separable. Also, the substitution u(x) = y/x is not going to work here because the resulting equation will
not be separable.
Step 1: Make the substitution u(x) = 4x − y.
dy
First we calculate du = 4 − .
dx dx
Next, we rewrite the differential equation in terms of u.
Right side: (4x − y + 1)2 = (u + 1)2
dy
Left side: = 4 − du
dx dx
So we have: 4 − du = (u + 1)2
dx
du
= 4 − (u + 1)2
dx
Step 2: Check whether the equation is separable.
du
The equation is separable: dx = 1.
4 − (u + 1)2
du
Step 3: Solve dx = 1.
4 − (u + 1)2
R 1 R
2 du = 1 dx
4 − (u + 1)R
Right side: 1 dx = x + C
Left side:
R 1 du
4 − (u + 1)2
We will use integration by partial fractions.
R 1 du =
R 1 du =
R 1 du = −
R 1 du
4 − (u + 1)2 4 − (u2 + 2u + 1) −(u2 + 2u − 3) (u + 3)(u − 1)
1 A(u − 1) + B(u + 3)
= uA B
+3 + u−1 =
(u + 3)(u − 1) (u + 3)(u − 1)
A(u − 1) + B(u + 3) = 1
u(A + B) − A + 3B = 1
A + B = 0 and −A + 3B = 1
A = −1/4 and B = 1/4
1 du = − 14 ( u−1 1 (− ln |u +3|+ ln |u −1|+D) = − 1 ln u − 1 +E
R R R 1
− +3 du + u−1 du) = − 4 4 u+3
(u + 3)(u − 1)
1
(E = − 4 D)
u − 1
So we have: − 1 4 ln u + 3 = x + F (F = C − E)
4
− 1
ln u = G − 4x (G = −4F )
˛u + 3 ˛
˛u − 1˛
ln˛˛ ˛
e u + 3 = eG−4x
˛
u − 1
u + 3 = He−4x (H = eG )
r
5t
y=±
2 + Ct5
dy
Problem: Solve the differential equation + 4 y = x3 y 2 , x > 0.
dx x
Solution:
Step 1: Make a substitution u(x) = y −(n−1) .
Since n = 2, we make the substitution u(t) = y −1 .
dy
Next, we calculate du = −y −2 .
dx dx
Next, we rewrite the differential equation in terms of u. We multiply every term of the original equation by
y −n , in our case y −2 .
dy
y −2 + 4 y −1 = x3
dx x
So we have: − du + x 4 u = x3 .
dx
du 4
− u = −x3
dx x
This is a linear equation!
Step 2: Solve du − x 4 u = −x3 .
dx
4
µ(x) = e − x dx = e−4 ln(x) = eln(x ) = x−4 = 14
−4
R
x
1 u = R − 1 x3 dx + C = − R x dx + C = − ln(x) + C
4 4
x x
Notice that ln |x| = ln(x) since x > 0.
u = −x4 ln(x) + Cx4
Step 3: Substitute back u(x) = y −1 .
y −1 = −x4 ln(x) + Cx4
1
y=
−x4 ln(x) + Cx4