# Ordinary Differential Equations/Substitution 1

As we saw in a previous example, sometimes even though an equation isn't separable in its original form, it can be factored into a form where it is. Another way you can turn non-separable equations into separable ones is to use **substitution methods**.

## Contents

## General substitution procedure[edit]

All substitution methods use the same general procedure:

- Take a term of the equation and replace it with a variable
*v*. The key is that the new variable must cover*all*instances of the variable*y*. Otherwise substitution would not help. - Solve for in terms of and . To do this, take the equation where is the term you replaced and take its derivative.
- Plug in and solve for .
- Plug into the original term replaced, and solve for .

## Constant coefficient substitution[edit]

Lets say we have an equation with a term *ay+bx+c*, such as

where G is a function. This is non-separable. But we can sometimes solve these equations by turning the term into a function *v*, defining *v*(*x,y*) and finding *v*'(*x,y,y*').

The trick with the derivation of v is that y is also a function of x. The derivative of v thus becomes

In maxima this looks like so:

- (%i1) v:a*y(x)+b*x+c;

and

- (%i2) diff(v,x);

yielding

- (%o1) a*(dy/dx)+b

Next, we rearrange terms and solve for *y*'(*x,v,v*'):

Now plug v back into the original equation, , and get it into the form

Solve for v, that is integrate on both sides:

Once you have v(x), plug back into the definition of v(x) to get y(x).

It is highly suggested that one should not memorize this equation, and instead remember the method of solving the problem. The final equation is rather obscure and easy to forget, but if one knows the method, he/she can always solve it. It will also help if one uses other substitution methods.

### Example 1[edit]

Lets replace the quantity being raised to a power with *v*.

Now lets find *v*'.

Solve for *y*'

Plug in for *y* and *y*':

Now we solve for *v*, using the methods we learned in Separable Variables:

Now that we have *v*(*x*), plug back in and find *y*(*x*).

## Other methods[edit]

These are not the only possible substitution methods, just some of the more common ones. Substitution methods are a general way to simplify complex differential equations. If you ever come up with a differential equation you can't solve, you can sometimes crack it by finding a substitution and plugging in. Just look for something that simplifies the equation. Remember that between *v* and *v*' you must eliminate the *y* in the equation.

### Example 2[edit]

This equation isn't separable, and none of the methods we previously used will quite work. Let's use a custom substitution of *v=y*^{2}+*x*-1. Solve for *v*':

Plug into the original equation

Solve for *v*

Now plug in and get *y*

Pretty easy after using that substitution. Keep this method in mind, you will use this for more complex equations.