Ordinary Differential Equations/Substitution 2

From testwiki
Revision as of 08:59, 14 August 2022 by imported>SHB2000 (substituion->substitution - Fix a typo in one click)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

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

Constant velocity

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

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

vx=v0cos(θ)
vy=v0sin(θ)

Using simple trig, we can remove the theta.

vx=v0xx2+y2
vy=v0yx2+y2

Now we divide the two to find dydx.

dydx=v0yx2+y2v0xx2+y2=yx

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


Motion against a current

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.

dxdt=v0cos(θ)=v0xx2+y2

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

dydt=v0sin(θ)+r=v0yx2+y2+r

You can get dydx by dividing the two equations

dydx=yx+rx2+y2v0x

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

dydx=yx+rx2x2+y2x2v0
dydx=yx+rv01+y2x2


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

v=yx
y=vx
y=v+vx
v+vx=v+rv01+v2
v=rxv01+v2

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

dv1+v2=rxv0
dv1+v2=rxv0

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

ln(v+1+v2)=rv0ln(x)+C
v+1+v2=eln(xrv0)+C
v+1+v2=Cxrv0

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

1+v2=Cxrv0v
1+v2=Cx2rv02vCxrv0+v2
2vCxrv0=C2x2rv01
v=Cxrv0212Cxrv0

Plugging in for v, we get

yx=Cxrv0212Cxrv0

We can solve for y by multiplying through by x

y=Cxrv0+12x2Cxrv0
y=C2xrv0+112Cxrv0+1


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.

Template:BookCat