Ordinary Differential Equations:Cheat Sheet/First Order Ordinary Differential Equations

From testwiki
Jump to navigation Jump to search

Linear, Inhomogeneous Type

General Form

dydx+p(x)y=q(x)

Solution

y(x)=u(x)q(x)dx+Cu(x), where

  • C is a constant and
  • u(x)=ep(x)dx

Separable

General Form

dydx=g(x)h(y)

Solution

Rearrange to get dyh(y)=g(x)dx, and integrate

Bernoulli's

General Form

dydx+p(x)y=q(x)yn

Solution

Substitute v=y1n

Exact Equations

General Form

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

Solution

Solution is of the form F(x,y)=C, a constant, where Fx=M and Fy=N

Approximation Methods

Let y=f(x,y),y(0)=y0

Euler's Method

Euler's method with step size h is given by:

yn+1=yn+hf(xn,yn).

Improved Euler's Method

Improved Euler's method with step size h is given by:

yn+1=yn+h2[f(xn,yn)+f(xn+1,y¯n+1)],y¯n+1=yn+hf(xn,yn).

Runge-Kutta Method of Fourth Order

For step size h,

yn+1=yn+h6[k1+2k2+2k3+k4], where

  • k1=f(xn,yn)
  • k2=f(xn+h2,yn+h2k1)
  • k3=f(xn+h2,yn+h2k2)
  • k4=f(xn+h,yn+hk3)

Template:Chapter navigation