← Back to Math 055

2.5 Solutions by Substitutions: Class Notes

2.5a

We will use substitutions to solve DEs (and IVPs) of the following types.

(y2+xy)dx+x2dy=0

An equation of the form M(x,y)dx+N(x,y)dy=0 is a homogeneous equation, if the coefficient functions possess the property f(tx,ty)=tαf(x,y) (with the same α for both functions).

Tip: Here dx and dy are differentials.

For the equation above, check the coefficient of dx:

M(x,y)=y2+xyM(tx,ty)=(ty)2+(tx)(ty)=t2y2+t2xy=t2(y2+xy)=t2M(x,y)

So M has the property with α=2. The same is true of N(x,y)=x2, since N(tx,ty)=t2x2=t2N(x,y).

Substitution:

Use either

y=uxdy=xdu+udxorx=vydx=ydv+vdy

dydx−y=exy2

The DE dydx+P(x)y=f(x)yn is called Bernoulli’s equation.

Tip: Here dydx is the derivative, and n≠1 (when n=1 or n=0, the equation is already linear).

Substitution:

u=y1−n

In the equation above, n=2, so

u=y−1⇒y=u−1⇒dydx=−1u2dudx.

The equation dydx=f(Ax+By+C) can be converted to a separable equation using the substitution u=Ax+By+C.

Differentiate the substitution, then solve for the derivative dydx:

u=Ax+By+C⇒dudx=A+Bdydx⇒dydx=1B(dudx−A)

dydx=3x+2y3x+2y+2

For this equation, let u=3x+2y+2, so dudx=3+2dydx.

2.5b

Example

Solve the given differential equation by using an appropriate substitution.

(y2+xy)dx+x2dy=0

Solution

This is a homogeneous DE. We can use either y=ux or x=vy; here we use y=ux, so dy=xdu+udx.

Substitute for y and dy:

(u2x2+x·ux)dx+x2(xdu+udx)=0

u2x2dx+ux2dx+x3du+x2udx=0

Combine the dx terms, and divide out x2:

(u2+2u)dx+xdu=0(separable)

Separate the variables:

duu2+2u=−1xdx

Use partial fractions (PFD) on the left side: 1u(u+2)=1/2u−1/2u+2.

∫(1/2u−1/2u+2)du=∫(−1x)dx

12ln⁡|uu+2|=−ln⁡|x|+ln⁡c1=ln⁡|c1x|

Multiply by 2 and exponentiate (the constant c12 is renamed c):

uu+2=cx2

Back-substitute: y=ux, so u=yx.

y/xy/x+2=cx2⇒yy+2x=cx2

(Multiply the top and bottom of the left side by x.)

Answer: x2y=c(y+2x)

2.5c

Example

dydx−y=exy2

Solution

This is a Bernoulli equation with n=2.

u=y1−n⇒u=y−1⇒y=u−1

dydx=−1u2dudx

Substitute for dydx, y, and y2:

−1u2dudx−1u=ex1u2

Multiply by −u2. The result is linear:

dudx+u=−ex

P(x)=1, so the integrating factor is μ=e∫dx=ex.

ddx(exu)=−e2x

exu=−12e2x+c1

u=−12ex+c1e−x=−ex2+c1ex=−e2x+c2ex

Here c=2c1.

Back-substitute u=1y:

1y=c−e2x2ex

Answer: y=2exc−e2x

Example

3(1+t2)dydt=2ty(y3−1)

Solution

We want the form dydt+P(t)y=f(t)yn. Distribute, and move the y term to the left:

3(1+t2)dydt+2ty=2ty4

dydt+2t3(1+t2)y=2t3(1+t2)y4

This is a Bernoulli equation with n=4.

u=y1−4=y−3⇒y=u−1/3

Then

dydt=−13u−4/3dudt,y4=u−4/3.

Substitute:

−13u−4/3dudt+2t3(1+t2)u−1/3=2t3(1+t2)u−4/3

Multiply by −3u4/3 (this changes the signs of the other two terms). The result is linear:

dudt−2t1+t2u=−2t1+t2

μ=e∫−2t1+t2dt=e−ln⁡(1+t2)=11+t2

ddt[11+t2u]=−2t(1+t2)2

11+t2u=11+t2+c

u=1+c(1+t2)

Back-substitute u=y−3:

Answer: y−3=1+c(1+t2)

This implicit form is fine. Explicitly,

y=[1+c(1+t2)]−1/3.

2.5d

Example

Solve the given initial-value problem.

dydx=3x+2y3x+2y+2,y(−1)=−1

Solution

Let u=3x+2y+2. Then

dudx=3+2dydx⇒dydx=12(dudx−3)

Since 3x+2y=u−2, the DE becomes

12(dudx−3)=u−2u=1−2u

dudx=2u−4u+3=5u−4u

Separate the variables:

∫u5u−4du=∫dx

Long division gives u5u−4=15+4/55u−4:

∫(15+4/55u−4)du=∫dx

(For the second term, substitute t=5u−4, dt=5du.)

15u+425ln⁡|5u−4|=x+c1

Multiply by 5:

u+45ln⁡|5u−4|=5x+c2

Back-substitute u=3x+2y+2 (so 5u−4=15x+10y+6):

3x+2y+2+45ln⁡|15x+10y+6|=5x+c2

Move 3x and the 2 to the right side and combine the constants:

2y−2x+45ln⁡|15x+10y+6|=c

Apply y(−1)=−1: when x=−1, y=−1, so c=0+45ln⁡|−19|=45ln⁡19.

Answer: 2y−2x+45ln⁡|15x+10y+6|=45ln⁡19

Another choice of substitution

You could also let u=3x+2y. Then 12(dudx−3)=uu+2, which leads to dudx=5u+6u+2 and u+25u+6du=dx. Including the constant 2 in u gives a simpler fraction to integrate.