Ordinary Differential Equations/First Order Linear 2

From testwiki
Revision as of 06:33, 27 November 2010 by imported>Adrignola (fixed category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Return to Exponential Growth

Remember the population growth problem, where dPdt=(BD)P? Now that we can solve linear equations, we can also solve variations where a factor f(t) is added in. The new equation is dPdt=(BD)P+f(t), and can be solved by the linear methods taught in the last section.

Immigration

Lets say that 1000 people move into a city, in addition to the normal population growth. This can be interpreted by making f(x)=1000. This gives us a linear differential equation to solve

dPdt=kP+1000

dPdtkP=1000


Step 1: Find eP(t)dt

kdt=kt+C

eP(t)dt=Cekt

Letting C=1, we get ekt


Step 2: Multiply through

ektP+ektP=1000ekt

Step 3: Recognize that the left hand is ddteP(t)dty

ddtektP=1000ekt

Step 4: Integrate

(ddtektP)dt=1000ektdt

ektP=1000kemt+C

Step 5: Solve for y

P=1000k+Cekt

See how the answer is a constant addition to the normal solution, as expected.


Hunting

Lets say the government allows 10 animals to be killed a year. This makes f(t)=10t. How does this effect the solution?

dPdt=kP10t

dPdtkP=10t


Step 1: Find eP(t)dt

kdt=kt+C

eP(t)dt=Cekt

Letting C=1, we get ekt


Step 2: Multiply through

ektP+ektP=10tekt

Step 3: Recognize that the left hand is ddteP(t)dty

ddtektP=10tekt

Step 4: Integrate

(ddtektP)dt=10tektdt

ektP=10(kx1)ekxk2+C

Step 5: Solve for y

P=10(kx1)k2+Cekx


Mixture problems

Imagine we have a tank containing a solution of water and some other substance (say salt). We have water coming into the tank with a concentration Ci, at a rate of Ri. We also have water leaving the tank at a concentration Co and rate Ro. We therefore have a change in concentration in the tank of

dxdt=RiCiRoCo

Thinking this through, Ri, Ci, and Ro are constants, but Co depends on the current concentration of the tank, which is not constant. The current concentration is xV where V is the volume of water in the tank. Unfortunately, the volume is changing based on how much water is in the tank. If the tank initially has V0 volume, the volume at time t is V(t)=V0+t(riro). This makes the final equation

x=RiCiRoxV0+t(RiRo)

which is an obvious linear equation. Lets solve it.

x+RoxV0+t(RiRo)=RiCi

Step 1: Find eP(t)dt

RoV0+t(RiRo)=Roln((RiRo)t+V0)RiRo+C

eP(t)dt=CeRoln((RiRo)t+V0)RiRo=C((RiRo)t+V0)RoRiRo

Letting C=1, we get ((RiRo)t+V0)RoRiRo


Step 2: Multiply through

((RiRo)t+V0)RoRiRox+((RiRo)t+V0)RoRiRoRoxV0+t(RiRo)=((RiRo)t+V0)RoRiRoRiCi

Step 3: Recognize that the left hand is ddteP(t)dtx

ddt((RiRo)t+V0)RoRiRox=((RiRo)t+V0)RoRiRoRiCi

Step 4: Integrate

(((RiRo)t+V0)RoRiRox)dt=(RiRo)t+V0)RoRiRoRiCidt

((RiRo)t+V0)RoRiRox=CiV0((RiRo)t+V0)RiV0(RiRo)

Step 5: Solve for y

x=CiV0((RiRo)t+V0)RiV0(RiRo)((RiRo)t+V0)RoRiRo

Ugly, isn't it. Most of the time when dealing with real world mixture problems, you'll plug in much earlier and use numbers, which makes it easier to deal with.

Template:BookCat