1.8: Substitution
( \newcommand{\kernel}{\mathrm{null}\,}\)
- Apply substitution to simplify and solve non-separable differential equations.
- Solve Bernoulli equations using the substitution
Just as when solving integrals, one method to try is to change variables to end up with a simpler equation to solve.
Substitution
The equation
y′=(x−y+1)2
is neither separable nor linear. What can we do? How about trying to change variables, so that in the new variables the equation is simpler. We use another variable v, which we treat as a function of x. Let us try
v=x−y+1.
We need to figure out y′ in terms of v′, v and x. We differentiate (in x) to obtain v′=1−y′. So y′=1−v′. We plug this into the equation to get
1−v′=v2
In other words, v′=1−v2. Such an equation we know how to solve by separating variables:
11−v2dv=dx
So
12ln|v+1v−1|=x+C,or|v+1v−1|=e2x+2C,orv+1v−1=De2x,
for some constant D. Note that v=1 and v=−1 are also solutions.
Now we need to “unsubstitute” to obtain
x−y+2x−y=De2x
and also the two solutions x−y+1=1 or y=x, and x−y+1=−1 or y=x+2. We solve the first equation for y.
x−y+2=(x−y)De2x,x−y+2=Dxe2x−yDe2x,−y+yDe2x=Dxe2x−x−2,y(−1+De2x)=Dxe2x−x−2,y=Dxe2x−x−2De2x−1.
Note that D=0 gives y=x+2, but no value of D gives the solution y=x.
Substitution in differential equations is applied in much the same way that it is applied in calculus. You guess. Several different substitutions might work. There are some general things to look for. We summarize a few of these in Table 1.8.1.
When you see | Try substituting |
---|---|
yy′ | v=y2 |
y2y′ | v=y3 |
(cosy)y′ | v=siny |
(siny)y′ | v=cosy |
y′ey | v=ey |
Usually you try to substitute in the “most complicated” part of the equation with the hopes of simplifying it. The above table is just a rule of thumb. You might have to modify your guesses. If a substitution does not work (it does not make the equation any simpler), try a different one.
Bernoulli Equations
There are some forms of equations where there is a general rule for substitution that always works. One such example is the so-called Bernoulli equation.1
y′+p(x)y=q(x)yn
This equation looks a lot like a linear equation except for the yn. If n=0 or n=1, then the equation is linear and we can solve it. Otherwise, the substitution v=y1−n transforms the Bernoulli equation into a linear equation. Note that n need not be an integer.
Solve
xy′+y(x+1)+xy5=0, y(1)=1
Solution
First, the equation is Bernoulli p(x)=x+1x ( and q(x)=−1 ). We substitute
v=y1−5=y−4,v′=−4y−5y′
In other words, (−14)y5v′=y′. So
xy′+y(x+1)+xy5=0,−xy54v′+y(x+1)+xy5=0,−x4v′+y−4(x+1)+x=0,−x4v′+v(x+1)+x=0,
v′−4(x+1)xv=4
Now the equation is linear. We can use the integrating factor method. In particular, we use Formula (1.6.2). Let us assume that x>0 so |x|=x. This assumption is OK, as our initial condition is x=1. Let us compute the integrating factor. Here p(s) from Formula (1.6.2) is −4(s+1)s.
e∫x1p(s)ds=exp(∫x1−4(s+1)sds)=e−4x−4ln(x)+4=e−4x+4x−4=e−4x+4x4,e−∫x1p(s)ds=e4x+4ln(x)−4=e4x−4x4
We now plug in to Formula (1.6.2)
v(x)=e−∫x1p(s)ds(∫x1e∫t1p(s)ds4dt+1),=e4x−4x4(∫x14e−4t+4t4dt+1)
Note that the integral in this expression is not possible to find in closed form. As we said before, it is perfectly fine to have a definite integral in our solution. Now “unsubstitute”
y−4=e4x−4x4(4∫x1e−4t+4t4dt+1),y=e−x+1x(4∫x1e−4t+4t4dt+1)1/4
Remember Formula (1.6.2) when we solve y′+p(x)y=f(x)
if we let
r(x)=e∫p(x)dx
then
y=e−∫p(x)dx(∫e∫p(x)dxf(x)dx+C)
Homogeneous Equations
Another type of equations we can solve by substitution are the so-called homogeneous equations. Suppose that we can write the differential equation as
y′=F(yx)
Here we try the substitutions
v=yxand thereforey′=v+xv′
We note that the equation is transformed into
v+xv′=F(v)orxv′=F(v)−vorv′F(v)−v=1x
Hence an implicit solution is
∫1F(v)−vdv=ln|x|+C
Solve
x2y′=y2+xy,y(1)=1
Solution
We put the equation into the form y′=(yx)2+yx. We substitute v=yx to get the separable equation
xv′=v2+v−v=v2
v−2dv=1xdx
which has a solution
∫1v2dv=ln|x|+C,−1v=ln|x|+C,v=−1ln|x|+C.
We unsubstitute
yx=−1ln|x|+C,y=−xln|x|+C
We want y(1)=1, so
1=y(1)=−1ln|1|+C=−1C
Thus C=−1 and the solution we are looking for is
y=−xln|x|−1
Footnotes
[1] There are several things called Bernoulli equations, this is just one of them. The Bernoullis were a prominent Swiss family of mathematicians. These particular equations are named for Jacob Bernoulli (1654–1705).
Contributors and Attributions
- Jiří Lebl (Oklahoma State University).These pages were supported by NSF grants DMS-0900885 and DMS-1362337.