Changing variables in separable DEs

changing variables in separable differential equations.jpeg

The steps for changing variables in a separable differential equation

Sometimes we’ll be given a differential equation in the form


and asked to find a general solution to the equation, which will be an equation for ???y??? in terms of ???x???.

In this case, it can be really helpful to use a change of variable to find the solution. To use a change of variable, we’ll follow these steps:

Substitute ???u=y'??? so that the equation becomes ???u=Q(x)-P(x)y???.

Solve for ???y???.

Take the derivative of both sides in order to get ???y'???.

Since ???u=y'???, back-substitute and replace ???y'??? with ???u???.

Solve for ???u'???, then replace ???u'??? with ???du/dx???.

Separate variables to put ???u??? on one side and ???x??? on the other.

Integrate both sides with respect to ???x???, then solve for ???u???.

Since ???u=Q(x)-P(x)y???, back-substitute and replace ???u??? with ???Q(x)-P(x)y???.

Solve for ???y??? in terms of ???x??? to find the general solution.

These steps can be hard to remember and tricky to follow, but the key is to get rid of all of the ???y???, ???y'??? and ???x??? values, and replace them with ???u??? and ???u'???. If you can get the equation entirely in terms of ???u??? and ???u'???, then the rest of the problem should fall into place.

Krista King Math.jpg

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.


A step-by-step walkthrough of how to change variables to solve a separable differential equation

Differential Equations course.png

Take the course

Want to learn more about Differential Equations? I have a step-by-step course for that. :)



Another example of changing variables in a separable differential equation


Use a change of variable to solve the differential equation.



We need to change the current equation so that it is in terms of a new variable ???u??? and its derivative ???u'???. The equation is already solved for ???y'???, which is what we want, so we’ll go ahead and substitute ???u??? for ???y'???.

If ???u=y'???, then



Solving this equation for ???y???, we get


Now we need to find the derivative of ???y???, so we’ll take the derivative of both sides of this equation. Remember, since ???u??? is a function, and not just a variable, its derivative is ???u'???, not just ???1???.


We already said at the beginning of this problem that ???u=y'???, so if we replace ???y'??? on the left side with ???u???, we get


Now that our equation is entirely in terms of ???u??? and ???u'???, we want to solve it for ???u'???.


Since ???u'??? is the same thing as ???du/dx???, we can change the equation to


???du=(u+2)\ dx???

???\frac{1}{u+2}\ du=dx???

change of variables.jpg

Once you change variables and get the variables separated in the differential equation, then you can integrate both sides to find a soltuion

Now that the variables are separated, with the ???u???’s on the left and the ???x???’s on the right, we’ll integrate both sides.

???\int\frac{1}{u+2}\ du=\int{dx}???




Remember that ???e^C??? is a constant, so we can just call it ???C???.


We can remove the absolute value brackets by adding a ???\pm??? to the terms on the right-hand side of the equation.

???u+2=\pm Ce^x???

We can include the ???\pm??? into the constant ???C???.



We know from earlier that ???u=2x+y???. Since we just found that ???u=Ce^x-2???, we can make a substitution for ???u???.


Finally, we solve for ???y??? to find the general solution to the differential equation.


Krista King.png