# Ordinary Differential Equations/Substitution 2

Substitution methods are really applicable anywhere you can find a differential equation. However, there's very few instances where you will always give a certain substitution. You generally pick one and plug it in as needed. So I'll give situations where you could use a substitution method, although you may later learn better methods.

## Parametric equations[edit]

One time where you may need it is when solving parametric equations. Lets say we're given functions for velocity in two dimensions- and . If we want to solve for , you have to divide . This works out to be . When you do this, you will frequently (although not always) get a chance to use substitution.

### Constant velocity[edit]

Lets say we're swimming across a river with constant velocity . The river has no current. We start swimming at an angle of with respect to the shore. Solve for

The first thing we need to do is break the velocity into x and y components. This is fairly simple.

Using simple trig, we can remove the theta.

Now we divide the two to find .

Now this is simple to solve separably. It could also be solved via substituion. This is a trivial example, but it can be made more complicated.

### Motion against a current[edit]

Imagine the same swimmer. Now there is a current with speed r going straight up the river (positive y direction). How does this change our example?

The x component is still the same.

And in the y direction we also have a term due to the current.

You can get by dividing the two equations

We can move the x into the root to simplify the equation a bit

Well, this complicated equation looks like a case for substitution.

That looks like a nice, easily solved separable equation. Let solve it.

The left end is an ugly integral. Just trust me on it.

Lets try to get rid of that root. Isolate it, and square both sides.

Plugging in for v, we get

We can solve for y by multiplying through by x

This complicated equation does make sense- the bigger the current, the further you go in the y direction as a portion of the x.

If you ever find an equation this evil in real life, do yourself a favor and buy a computer program to solve it.