Docsity

ODE Cheat Sheet, Cheat Sheet of Mathematics

Toggle sidebar
bg1
ODE Cheat Sheet
First Order Equations
Separable
y0(x) = f(x)g(y)
Rdy
g(y)=Rf(x)dx +C
Linear First Order
y0(x)+ p(x)y(x) = f(x)
µ(x) = exp Rxp(ξ)dξ Integrating factor.
(µy)0=f µ Exact Derivative.
Solution: y(x) = 1
µ(x)Rf(ξ)µ(ξ)dξ +C
Exact
0 = M(x, y)dx +N(x, y)dy
Solution: u(x, y) = const where
du =∂u
∂x dx +∂u
∂y dy
∂u
∂x =M(x, y),∂ u
∂y =N(x, y)
Condition: My=Nx
Non-Exact Form
µ(x, y) (M(x, y)dx +N(x, y)dy ) = du(x,y)
My=Nx
N∂µ
∂x −M∂µ
∂y =µ∂M
∂y −∂N
∂x .
Special cases
If My−Nx
M=h(y),then µ(y) = exp Rh(y)dy
If My−Nx
N=−h(x),then µ(y) = exp Rh(x)dx
Second Order Equations
Linear
a(x)y00(x) + b(x)y0(x) + c(x)y(x) = f(x)
y(x) = yh(x) + yp(x)
yh(x) = c1y1(x) + c2y2(x)
Constant Coefficients
ay00(x) + by 0(x)+ cy (x) = f(x)
y(x) = erx ⇒ar2+br +c= 0
Cases
Distinct, real roots: r=r1,2, yh(x) = c1er1x+c2er2x
One real root: yh(x)=(c1+c2x)erx
Complex roots: r=α±iβ, yh(x)=(c1cos βx +c2sin β x)eαx
Cauchy-Euler Equations
ax2y00(x) + bxy0(x) + cy (x) = f(x)
y(x) = xr⇒ar(r−1) + br +c= 0
Cases
Distinct, real roots: r=r1,2, yh(x) = c1xr1+c2xr2
One real root: yh(x)=(c1+c2ln |x|)xr
Complex roots: r=α±iβ,
yh(x)=(c1cos(βln |x|) + c2sin(βln |x|))xα
Nonhomogeneous Problems
Method of Undetermined Coefficients
f(x)yp(x)
anxn+···+a1x+a0Anxn+···+A1x+A0
aebx Aebx
acos ωx +bsin ωx A cos ωx +Bsin ωx
Modified Method of Undetermined Coefficients: if any
term in the guess yp(x) is a solution of the homogeneous
equation, then multiply the guess by xk, where kis the
smallest positive integer such that no term in xkyp(x) is a
solution of the homogeneous problem.
Reduction of Order
Homogeneous Case
Given y1(x) satisfies L[y]=0,find second linearly independent
solution as v(x) = v(x)y1(x). z =v0satisfies a separable ODE.
Nonhomogeneous Case
Given y1(x) satisfies L[y]=0,find solution of L[y] = fas
v(x) = v(x)y1(x). z =v0satisfies a first order linear ODE.
Method of Variation of Parameters
yp(x) = c1(x)y1(x) + c2(x)y2(x)
c0
1(x)y1(x) + c0
2(x)y2(x)=0
c0
1(x)y0
1(x) + c0
2(x)y0
2(x) = f(x)
a(x)
Applications
Free Fall
x00(t) = −g
v0(t) = −g+f(v)
Population Dynamics
P0(t) = kP (t)
P0(t) = kP (t)−bP 2(t)
Newton’s Law of Cooling
T0(t) = −k(T(t)−Ta)
Oscillations
mx00(t) + kx(t)=0
mx00(t) + bx0(t) + kx(t)=0
mx00(t) + bx0(t) + kx(t) = F(t)
Types of Damped Oscillation
Overdamped, b2>4mk
Critically Damped, b2= 4mk
Underdamped, b2<4mk
Numerical Methods
Euler’s Method
y0=y(x0),
yn=yn−1+ ∆xf(xn−1, yn−1), n = 1,...,N.
Series Solutions
Taylor Method
f(x)∼P∞
n=0 cnxn, cn=f(n)(0)
n!
1. Differentiate DE repeatedly.
2. Apply initial conditions.
3. Find Taylor coefficients.
4. Insert co efficients into series form for y(x).
Power Series Solution
1. Let y(x) = P∞
n=0 cn(x−a)n.
2. Find y0(x), y 00(x).
3. Insert expansions in DE.
4. Collect like terms using reindexing.
5. Find recurrence relation.
6. Solve for coefficients and insert in y(x) series.
Ordinary and Singular Points
y00 +a(x)y0+b(x)y= 0. x0is a
Ordinary point: a(x), b(x) real analytic in |x−x0|< R
Regular singular point: (x−x0)a(x), (x−x0)2b(x) have
convergent Taylor series about x=x0.
Irregular singular point: Not ordinary or regular singular
point.
Frobenius Method
1. Let y(x) = P∞
n=0 cn(x−x0)n+r.
2. Obtain indicial equation r(r−1) + a0r+b0.
3. Find recurrence relation based on types of ro ots of
indicial equation.
4. Solve for coefficients and insert in y(x) series.
Laplace Transforms
Transform Pairs
cc
s
eat 1
s−a,s>a
tnn!
sn+1 , s > 0
sin ωt ω
s2+ω2
cos ωt s
s2+ω2
sinh at a
s2−a2
cosh at s
s2−a2
H(t−a)e−as
s, s > 0
δ(t−a)e−as, a ≥0, s > 0
pf2
Discount

On special offer

Partial preview of the text

Download ODE Cheat Sheet and more Cheat Sheet Mathematics in PDF only on Docsity!

ODE Cheat Sheet

First Order Equations

Separable

y∫′ (x) = f (x)g(y)

dy g(y) =^

f (x) dx + C

Linear First Order

y′(x) + p(x)y(x) = f (x) μ(x) = exp

∫ x

p(ξ) dξ Integrating factor.

(μy)′^ = f μ Exact Derivative.

Solution: y(x) = (^) μ(^1 x)

f (ξ)μ(ξ) dξ + C

Exact

0 = M (x, y) dx + N (x, y) dy Solution: u(x, y) = const where du = ∂u∂x dx + ∂u∂y dy ∂u ∂x =^ M^ (x, y),^

∂u ∂y =^ N^ (x, y)

Condition: My = Nx

Non-Exact Form

μ(x, y) (M (x, y) dx + N (x, y) dy) = du(x, y) My = Nx N ∂μ∂x − M ∂μ∂y = μ

∂M ∂y −^

∂N ∂x

Special cases

If

My −Nx M =^ h(y),^ then^ μ(y) = exp^

h(y) dy If My^ N− Nx= −h(x), then μ(y) = exp

h(x) dx

Second Order Equations

Linear

a(x)y′′(x) + b(x)y′(x) + c(x)y(x) = f (x) y(x) = yh(x) + yp(x) yh(x) = c 1 y 1 (x) + c 2 y 2 (x)

Constant Coefficients

ay′′(x) + by′(x) + cy(x) = f (x) y(x) = erx^ ⇒ ar^2 + br + c = 0

Cases

Distinct, real roots: r = r 1 , 2 , yh(x) = c 1 er^1 x^ + c 2 er^2 x

One real root: yh(x) = (c 1 + c 2 x)erx

Complex roots: r = α ± iβ, yh(x) = (c 1 cos βx + c 2 sin βx)eαx

Cauchy-Euler Equations

ax^2 y′′(x) + bxy′(x) + cy(x) = f (x) y(x) = xr^ ⇒ ar(r − 1) + br + c = 0

Cases

Distinct, real roots: r = r 1 , 2 , yh(x) = c 1 xr^1 + c 2 xr^2

One real root: yh(x) = (c 1 + c 2 ln |x|)xr

Complex roots: r = α ± iβ, yh(x) = (c 1 cos(β ln |x|) + c 2 sin(β ln |x|))xα

Nonhomogeneous Problems

Method of Undetermined Coefficients

f (x) yp(x) anxn^ + · · · + a 1 x + a 0 Anxn^ + · · · + A 1 x + A 0 aebx^ Aebx a cos ωx + b sin ωx A cos ωx + B sin ωx Modified Method of Undetermined Coefficients: if any term in the guess yp(x) is a solution of the homogeneous equation, then multiply the guess by xk^ , where k is the smallest positive integer such that no term in xk^ yp(x) is a solution of the homogeneous problem.

Reduction of Order

Homogeneous Case

Given y 1 (x) satisfies L[y] = 0, find second linearly independent solution as v(x) = v(x)y 1 (x). z = v′^ satisfies a separable ODE.

Nonhomogeneous Case

Given y 1 (x) satisfies L[y] = 0, find solution of L[y] = f as v(x) = v(x)y 1 (x). z = v′^ satisfies a first order linear ODE.

Method of Variation of Parameters

yp(x) = c 1 (x)y 1 (x) + c 2 (x)y 2 (x) c′ 1 (x)y 1 (x) + c′ 2 (x)y 2 (x) = 0 c′ 1 (x)y′ 1 (x) + c′ 2 (x)y′ 2 (x) = f a^ ((xx))

Applications

Free Fall

x′′(t) = −g v′(t) = −g + f (v)

Population Dynamics

P ′(t) = kP (t) P ′(t) = kP (t) − bP 2 (t)

Newton’s Law of Cooling

T ′(t) = −k(T (t) − Ta)

Oscillations

mx′′(t) + kx(t) = 0 mx′′(t) + bx′(t) + kx(t) = 0 mx′′(t) + bx′(t) + kx(t) = F (t) Types of Damped Oscillation Overdamped, b^2 > 4 mk Critically Damped, b^2 = 4mk Underdamped, b^2 < 4 mk

Numerical Methods

Euler’s Method

y 0 = y(x 0 ), yn = yn− 1 + ∆xf (xn− 1 , yn− 1 ), n = 1,... , N.

Series Solutions

Taylor Method

f (x) ∼

n=0 cnx

n, cn = f^ (n)(0) n!

  1. Differentiate DE repeatedly.
  2. Apply initial conditions.
  3. Find Taylor coefficients.
  4. Insert coefficients into series form for y(x).

Power Series Solution

  1. Let y(x) =

n=0 cn(x^ −^ a)

n.

  1. Find y′(x), y′′(x).
  2. Insert expansions in DE.
  3. Collect like terms using reindexing.
  4. Find recurrence relation.
  5. Solve for coefficients and insert in y(x) series.

Ordinary and Singular Points

y′′^ + a(x)y′^ + b(x)y = 0. x 0 is a Ordinary point: a(x), b(x) real analytic in |x − x 0 | < R Regular singular point: (x − x 0 )a(x), (x − x 0 )^2 b(x) have convergent Taylor series about x = x 0. Irregular singular point: Not ordinary or regular singular point.

Frobenius Method

  1. Let y(x) =

n=0 cn(x^ −^ x^0 )

n+r (^).

  1. Obtain indicial equation r(r − 1) + a 0 r + b 0.
  2. Find recurrence relation based on types of roots of indicial equation.
  3. Solve for coefficients and insert in y(x) series.

Laplace Transforms

Transform Pairs

c

c s eat^

s − a

, s > a

tn^

n! sn+^

, s > 0

sin ωt

ω s^2 + ω^2 cos ωt

s s^2 + ω^2 sinh at

a s^2 − a^2 cosh at

s s^2 − a^2 H(t − a)

e−as s

, s > 0 δ(t − a) e−as, a ≥ 0 , s > 0

Laplace Transform Properties

L[af (t) + bg(t)] = aF (s) + bG(s)

L[tf (t)] = −

d ds

F (s)

L

[ df dt

] = sF (s) − f (0)

L

[ d^2 f dt^2

]

= s^2 F (s) − sf (0) − f ′(0)

L[eatf (t)] = F (s − a) L[H(t − a)f (t − a)] = e−asF (s)

L[(f ∗ g)(t)] = L[

∫ (^) t

0

f (t − u)g(u) du] = F (s)G(s)

Solve Initial Value Problem

  1. Transform DE using initial conditions.
  2. Solve for Y (s).
  3. Use transform pairs, partial fraction decomposition, to obtain y(t).

Special Functions

Legendre Polynomials

Pn(x) = (^2) n^1 n!^ d

n dxn^ (x

(^2) − 1)n (1 − x^2 )y′′^ − 2 xy′^ + n(n + 1)y = 0. (n + 1)Pn+1(x) = (2n + 1)xPn(x) − nPn− 1 (x), n = 1, 2 ,.... g(x, t) = √^1 1 − 2 xt+t^2

∑∞ n=0 Pn(x)t

n, |x| ≤ 1 , |t| < 1.

Bessel Functions, Jp(x), Np(x)

x^2 y′′^ + xy′^ + (x^2 − p^2 )y = 0.

Gamma Functions Γ(x) =

∫ (^) ∞ 0 t

x− (^1) e−t (^) dt, x > 0. Γ(x + 1) = xΓ(x).

Systems of Differential Equations

Planar Systems x′^ = ax + by y′^ = cx + dy. x′′^ − (a + d)x′^ + (ad − bc)x = 0.

Matrix Form

x′^ =

( x′ y′

)

( a b c d

) ( x y

) ≡ Ax.

Guess x = veλt^ ⇒ Av = λv.

Eigenvalue Problem Av = λv. Find Eigenvalues: det(A − λI) = 0 Find Eigenvectors (A − λI)v = 0 for each λ. Cases Real, Distinct Eigenvalues: x(t) = c 1 eλ^1 tv 1 + c 2 eλ^2 tv 2 Repeated Eigenvalue: x(t) = c 1 eλtv 1 + c 2 eλt(v 2 + tv 1 ), where Av 2 − λv 2 = v 1 for v 2. Complex Conjugate Eigenvalues: x(t) = c 1 Re(eαt(cos βt + i sin βt)v) + c 2 Im(eαt(cos βt + i sin βt)v).

Solution Behavior Stable Node: λ 1 , λ 2 < 0. Unstable Node: λ 1 , λ 2 > 0. Saddle: λ 1 λ 2 < 0. Center: λ = iβ. Stable Focus: λ = α + iβ, α < 0. Unstable Focus: λ = α + iβ, α > 0.

Matrix Solutions Let x′^ = Ax. Find eigenvalues λi

Find eigenvectors vi =

( vi 1 vi 2

)

Form the Fundamental Matrix Solution:

Φ =

( v 11 eλ^1 t^ v 21 eλ^2 t v 12 eλ^1 t^ v 22 eλ^2 t

)

General Solution: x(t) = Φ(t)C for C Find C: x 0 = Φ(t 0 )C ⇒ C = Φ−^1 (t 0 )x 0 Particular Solution: x(t) = Φ(t)Φ−^1 (t 0 )x 0. Principal Matrix solution: Ψ(t) = Φ(t)Φ−^1 (t 0 ). Particular Solution: x(t) = Ψ(t)x 0. Note: Ψ′^ = AΨ, Ψ(t 0 ) = I.

Nonhomogeneous Matrix Solutions x(t) = Φ(t)C + Φ(t)

∫ (^) t t 0 Φ

− (^1) (s)f (s) ds

x(t) = Ψ(t)x 0 + Ψ(t)

∫ (^) t t 0 Ψ

− (^1) (s)f (s) ds

2 × 2 Matrix Inverse ( a b c d

)− 1 = (^) det^1 A

( d −b −c a

)