Warning: This site may not display properly on devices or windows with a small amount of screen width. While everthing is still accessible, be aware that sometimes parts will be hidden and require scrolling horizontally. It is recommended you view this in a larger window or in landscape mode
Skip to content

First order ode formulas reference

Separable

Requirements
- able to write the equation in the form where all of one variable times all of the other variable is equal to the original equation.

Form

dydx=P(x)G(y)

General Solution

H(y)=1G(y)
H(y)dx[dydx=P(x)G(y)]
H(y)dy=P(x)dxH(y)dy=P(x)dx
OR
dyG(y)=P(x)dxdyG(y)=P(x)dx

Linear

Requirements
- The dependent variable and all its derivatives are a power of 1
- All the coefficients of the differential equation and the function that it equals are constants or depend only on the independent variable

Form

y+P(x)y=Q(x)

General Solution

I(x)=eP(x)dx
y=1I(x)(I(x)Q(x)dx+c)

Bernoulli

Form

y+P(x)y=Q(x)yn

General Solution

I(x)=e(1n)P(x)dx
y1n=1I(x)((1n)Q(x)I(x)dx+c)

Linear is just a bernoulli with n = 0

Homogeneous

Requirements
- All degrees have to be the same
- all variables are in the form of y/x

Form

dydx=F(yx)

General Solution

v=yxy=vx
ddx(y=vx)dydx=xdvdx+v
xdvdx+v=F(v)
dvF(v)v=dxxdvF(v)v=dxx
  • Substitute back in yx for all the v's

G(ax+by)

Form

dydx=G(ax+by)

General Solution

ddx(v=ax+by)dvdx=a+bdydxdydx=1b(dvdxa)
1b(dvdxa)=G(v)dvdx=bG(v)+a
dvbG(v)+a=dxdvbG(v)+a=dx

Exact

Form

M(x,y)dx+N(x,y)dy=0

General Solution
1.
Check if it is exact

Fx=Fx=M(x,y)Fxy=My
Fy=Fy=N(x,y)Fyx=Nx
  • if Fxy=Fyx equation is exact
  • if not exact, try to find a function that when multiplied into the equation will make it exact

for x's

  • MyNxN if only x's remain
μ(x,y)=eMyNxNdx

for y's

  • NxMyM if only y's remain
μ(x,y)=eNxMyMdy

Multiply this integrating factor into the original equation

μ(x,y)[M(x,y)dx+N(x,y)dy=0]
μMdx+μNdy=0

Your new M and N is this equation

2.

M=FxF(x,y)=(Mdx)+g(y)ORN=FyF(x,y)=(Ndy)+h(x)

Take the partial derivative with respect to the other variable of this new equation

Fy[(Mdx)+g(y)]=Fy(Mdx)+g(y)
Fy=NN=Fy(Mdx)+g(y)
OR
Fx[(Ndy)+h(x)]=Fx(Ndy)+h(x)
Fx=MM=Fx(Ndy)+h(x)

3.

A lot will cancel leaving you with

g(y)=Some Stuffg(y)dx=(Some Stuff)dx
g(y)=(Some Stuff)dx
OR
h(x)=Some Stuffh(x)dy=(Some Stuff)dy
h(x)=(Some Stuff)dy

substitute g(y) or f(x) back into the equation from step 2
replace F(x,y) with c

Brine/Mixing problems

Will give volume and concentration going in and volume and concentration going out
The general set up is

dAdt=(Rate inRate out)
dAdt=FiCiFoCoV+t(FiFo)

Fi = Flow rate in
Fo = Flow Rate out
Ci = Concentration in
Co = Concentration out
V = total volume of container
t = time

this should be able to be simplified into either a linear or separable differential equation

Newtons law of Cooling

dTdt=k(TaT)dT(TaT)=kdtln|TaT|=kt+c|TaT|=cekt
TTaT(t)=cekt+Ta
T<TaT(t)=Tacekt

Newtonian mechanics

Net force is equal to the total forces supporting minus the total forces resisting ( +Fres because this is set up for resistance being negative)

Fnet=Fg+Fresma=mgvb
mdvdt=mgvbdvmgvb=dtm
1bln|mgvb|=tm+cmgvb=cetbm
v=cetbm+mgb
assuming that v=0 at t=0
0=c+mgbc=mgbv=mgbebtm+mgb
vdt=(mgbebtm+mgb)dt
x=m2gb2ebtm+mgbt+c
assuming that x=0 and t=0
0=m2gb2+cc=m2gb2
x=m2gb2ebtm+mgbtm2gb2

resistance is proportional to a square
- in this example an object is shot upwards with an initial velocity with k being an air resistance constant and being proportional to v2

velocity with respect to time

mdvdt=mgkv2mdvmg+kv2=dtmkdvmgk+v2=dt
mk1mgkarctan(vmgk)=t+c
At time t=0, velocity v=vi (initial velocity)
c=marctan(vimgk)kmgk
marctan(vmgk)kmgk+marctan(vimgk)kmgk=t

velocity with respect to position

dvdxmv=mgkv2mvdvmg+kv2=dx
mvdvmg+kv2=dxu=mg+kv2du=2kvdv
m2kduu=dxmln|mg+kv2|2k=x+c
At position x=0, velocity v=vi (initial velocity)
c=mln|mg+kvi2|2k
mln|mg+kv2|2k+mln|mg+kvi2|2k=x

Alternative way to solve these types of problems using limits of integration

Lets assume its the same problem above where an object is being shot up and the air resistance k is proportional to v2 and want to find how long the object is in the air when it reaches its peak.

kv2
m=3kgvi=500mseck=.1g=9.81msec2

Everything is the same until we get to the part where we want to integrate. Rather than finding the indefinite version and solving for the constants with the given values, we can just use the limits of integration

vivfmkdvmgkv2=titfdt
50003.1(1(3)(9.81).1v2)dv=0tfinaldt
tfinal=2.6869...sec

Both will give the same answer but this method can save some time, especially when using a calculator to numerically solve the integral.
Note: if you were to solve the generalized integral with the vf,vf,ti, and tf limits, you will get the same arctan equation as above.