How to solve a differential equation by changing variables
Sometimes the right side of a differential equation is easier to work with as one expression. We can give that expression a new name, find an equation for it, and solve that equation first. Let’s try it with a right side that mixes both variables.
Choose a substitution that simplifies the equation
Let . Here , and differentiating gives . Substitute for to get an equation we can separate.
Separate and integrate
First take a solution for which is nonzero. Divide by and integrate.
The logarithm gives an absolute value, so can be positive or negative. The equation for also has the constant solution . We can include that solution by letting .
Return to the original variable
Since , substitute it back and isolate .
To check the result, differentiate to get . Substituting our solution into gives the same expression. With , the original equation still holds and the solution is .
When can we use the same substitution?
For with constant coefficients and , let . Then , which separates. For a different right side, check the equation for before trying to separate it.