二阶微分方程解法总结 Summary of Second Order Equations

Second Order Equations

Definitions

Second-Order Differential Equation

y=f(t,y,y) y'' = f(t,y,y')

Solution

y(t)=f(t,y(t),y(t)) y''(t) = f(t,y(t),y'(t))

Linear Equations

y+p(t)y+q(t)y=g(t) y'' + p(t)y' + q(t)y = g(t)

Where coefficients p, q, and g can be arbitrary functions of independent variable t, but y, y’, and y’’ must all be first order.

g(t) is called forcing term.

If g(t) = 0, the equation is said to be homogeneous:
y+p(t)y+q(t)y=0 y''+p(t)y'+q(t)y=0

Existence and Uniqueness

Suppose the functions p(t), q(t), and g(t) are continuous on the interval (α,β)(\alpha, \beta). Let t0t_0 be any point in (α,β)(\alpha, \beta). Then for any real numbers y0y_0 and y1y_1 there is one and only one function y(t)y(t) defined on (α,β)(\alpha, \beta), which is a solution to
y+p(t)y+q(t)y=g(t)for α<t<β y''+p(t)y'+q(t)y=g(t) \quad for \ \alpha \lt t \lt \beta
and y(t)y(t) satisfies the initial conditions
y(t0)=y0y(t0)=y1 y(t_0)=y_0 \\ y'(t_0)=y_1

Structure of General Solutions

Suppose that y1y_1 and y2y_2 are both solutions to the homogeneous, linear equation
y+p(t)y+q(t)y=0. y''+p(t)y'+q(t)y=0.
Then the function
y=C1y1+C2y2 y=C_1y_1+C_2y_2
is also a solution.

Linear Combination

A linear combination of the two functions uu and vv is any function of the form
w=Au+Bv, w=Au+Bv,
where AA and BB are constants.

Linear Independent

Two functions u and v are said to be linearly independent on the interval (α,β)(\alpha, \beta) if neither is a constant multiple of the other on that interval. If one is a constant multiple of the other on (α,β)(\alpha, \beta) they are said to be linearly dependent there.

General Solution

Suppose that y1y_1 and y2y_2 are linearly independent solutions to the homogeneous, linear equation
y+p(t)y+q(t)y=0. y''+p(t)y'+q(t)y=0.
Then the general solution is
y=C1y1+C2y2, y=C_1y_1+C_2y_2,
where C1C_1 and C2C_2 are arbitrary constants.

y1y_1 and y2y_2 form a fundamental set of solutions.

Wronskian

The Wronskian of two functions uu and vv is defined to be
KaTeX parse error: Undefined control sequence: \matrix at position 16: W(t)=det\left(\̲m̲a̲t̲r̲i̲x̲{u(t) & v(t)\\ …
Suppose the functions uu and vv are sulutions to the linear, homogeneous equation
y+p(t)y+q(t)y=0 y''+p(t)y'+q(t)y=0
in the interval (α,β)(\alpha, \beta). Then the Wronskian of uu and vv is either identically equal to zero on (α,β)(\alpha, \beta) or it is never equal to zero there.

Use Wronskian to Check Linear Dependency

Suppose the functions uu and vv are solutions to the linear, homogeneous equation
y+p(t)y+q(t)y=0 y''+p(t)y'+q(t)y=0
in the interval (α,β)(\alpha, \beta). Then uu and vv are linearly dependent if and only if their Wronskian is identically zero in (α,β)(\alpha, \beta).

If W(t0)0W(t_0)\neq 0 for some t0t_0 in the interval (α,β)(\alpha, \beta), then u and v are linearly independent in (α,β)(\alpha, \beta). On the other hand, if u and v are linearly independent in (α,β)(\alpha, \beta), then W(t)W(t) never vanishes in (α,β)(\alpha, \beta)

Second-Order Equations and Systems

这一节就是想说明一阶方程和更高阶方程之间的关系

A planner system of first-order equation is a set of two first-order differential equations involving two unknown functions. It might be written as
x=f(t,x,y)y=g(t,x,y), x'=f(t,x,y)\\ y'=g(t,x,y),
where ff and gg are functions of the independent variable tt and the two unknowns xx and yy.

二阶方程y=F(t,y,y)y''=F(t,y,y')可以写成以下一阶系统:
y=vv=F(t,y,v) y' = v\\ v' = F(t,y,v)
如果y是二阶方程的一个解,那么y和v就是上面一阶系统的解

The yv-plan is called the phase plane.

二阶微分方程解法总结 Summary of Second Order Equations

Plotting y and v versus t is the composite plot.

二阶微分方程解法总结 Summary of Second Order Equations

General Solutions to Linear, Homogeneous Equations with Constant Coefficients

Characteristic Equation for a differential equation y+py+qy=0y''+py'+qy=0 is
λ2+pλ+q=0. \lambda^2+p\lambda + q=0.
The polynomial λ2+pλ+q\lambda^2+p\lambda + q is called the characteristic polynomial for the equation. The root(s) of the characteristic equation is called characteristic root.

There are three cases:

  • p24q>0p^2-4q \gt 0, the characteristic equation has two distinct, real roots λ1\lambda_1 and λ2\lambda_2. A fundamental set of solutions is
    y1(t)=eλ1tandy2(t)=eλ2t y_1(t)=e^{\lambda_1 t} \quad and \quad y_2(t)=e^{\lambda_2 t}

  • p24q=0p^2-4q = 0, one repeated real root λ\lambda. Fundamental set of solutions:
    y1(t)=eλtandy2(t)=teλt y_1(t)=e^{\lambda t} \quad and \quad y_2(t)=te^{\lambda t}

  • p24q<0p^2-4q \lt 0, two complex conjugate roots a±iba \pm ib. Fundamental set of solutions:
    y1(t)=eatcos(bt)andy2(t)=eatsin(bt) y_1(t)=e^{at}\cos(bt) \quad and \quad y_2(t)=e^{at}\sin(bt)

Inhomogeneous Equations

y+py+qy=f y''+py'+qy = f

where p=p(t)p=p(t), q=q(t)q=q(t), and f=f(t)f=f(t) are functions of the independent variable tt. ff is called the inhomogeneous term, or the forcing term.

General solution to inhomogeneous equation

Suppose that ypy_p is a particular solution to the inhomogeneous equation, and that y1y_1 and y2y_2 form a fundamental set of solutions to the associated homogeneous equation y+py+qy=0y''+py'+qy=0.

Then the general solution to the inhomogeneous equation is given by
y=yp+C1y1+C2y2, y = y_p + C_1 y_1 + C_2 y_2,
where C1C_1 and C2C_2 are arbitrary constants.

The general solution can also be written as
y=yp+yh y=y_p + y_h
where yh=C1y1+C2y2y_h = C_1 y_1 + C_2 y_2

The Method of Undetermined Coefficients

y+py+qy=f y''+py'+qy=f

where pp and qq are constants.

因为通解的形式是y=yp+yhy=y_p + y_h,而我们之前已经知道了yhy_h的解法,所以现在只要找到一个特解ypy_p就行。怎么找,看f(t)f(t)的形式,然后用待定系数法解出p和q。

二阶微分方程解法总结 Summary of Second Order Equations

特殊情况

f(t)f(t)本身就是齐次方程(homogeneous equation)的解,直接用上面的trial solution就可能导致方程两边不相等。这时候,就在trial solution基础上再乘上t,不行的就再乘t… 例如尝试的trial solution是aertae^{rt},带入方程后造成两边不相等,那就尝试atertate^{rt},如果还不行,再试at2ertat^2e^{rt}

The Method of Variation of Parameters

y+py+qy=f y''+py'+qy = f

  1. Find a fundamental set of solutions y1y_1, y2y_2 to the associated homogeneous equation y+py+qy=0y''+py'+qy=0

  2. Form yp=v1y1+v2y2y_p=v_1 y_1 + v_2 y_2, where v1v_1 and v2v_2 are functions to be determined.

  3. Find v1v_1 and v2v_2 by solving the equations and integrating:
    v1y1+v2y2=0v1y1+v2y2=f(t) v_1' y_1 + v_2' y_2 = 0\\ v_1' y_1' + v_2' y_2' = f(t)

  4. Substitute v1v_1 and v2v_2 into yp=v1y1+v2y2y_p=v_1 y_1 + v_2 y_2

Harmonic Motion

The equation for the motion of a vibrating spring is
my+μy+ky=F(t), my'' + \mu y' + ky = F(t),
where mm is mass, μ\mu is damping constant, and kk is spring constant, F(t) is the external force.

Rewrite the equation as
d2ydt2+μmdydt+kmy=1mF(t), \frac{d^2 y}{dt^2} + \frac{\mu}{m} \frac{dy}{dt} + \frac{k}{m} y = \frac{1}{m} F(t),
and make c=μ2mc = \frac{\mu}{2m}, ω0=km\omega_0 = \sqrt{\frac{k}{m}}, f(t)=F(t)mf(t)=\frac{F(t)}{m}, and x=yx=y, we get the equation
x+2cx+ω02x=f(t). x'' + 2cx' + \omega_0^2 x = f(t).
We refer to this equation as the equation for harmonic motion. cc is called damping constant, and ff is the forcing term.

Unforced Harmonic Motion

x+2cx+ω02x=0 x'' + 2cx' + \omega_0^2 x = 0

where c0c \ge 0 and ω0>0\omega_0 \gt 0 are constants.

Simple harmonic motion

When there is no damping, that is, c=0c=0
x+ω02x=0. x'' + \omega_0^2 x = 0.
The general solution is
x(t)=acos(ω0t)+bsin(ω0t), x(t) = a\cos(\omega_0 t)+b\sin(\omega_0 t),
where a and b are constants.

ω0\omega_0 is called the natural frequency.

Periodicity
T=2πω0 T = \frac{2\pi}{\omega_0}

The general solution to simple harmonic motion can be written as
x(t)=Acos(ω0tϕ) x(t) = A\cos(\omega_0 t - \phi)
where A is the amplitude, ϕ\phi is the phase
A=a2+b2tanϕ=ba A = \sqrt{a^2 + b^2} \\ \tan\phi = \frac{b}{a}
To solve for ϕ\phi, we take arctan(ba)arctan(\frac{b}{a}), but it takes value between π/2-\pi/2 and π/2\pi/2, while ϕ\phi can be from π-\pi to π\pi. Therefore, we take
ϕ={arctan(b/a),if a>0;arctan(b/a)+π,if a<0 and b>0;arctan(b/a)π,if a<0 and b<0. \phi = \left\{ \begin{matrix} \arctan(b/a), & if\ a>0; \\ \arctan(b/a)+\pi, & if\ a<0\ and\ b>0; \\ \arctan(b/a)-\pi, & if\ a<0\ and\ b<0. \end{matrix} \right.
二阶微分方程解法总结 Summary of Second Order Equations

Damped Harmonic Motion

Now c>0c>0,
x+2cx+ω02x=0. x'' + 2cx' + \omega_0^2 x = 0.
The characteristic equation
λ2+2cλ+ω02=0 \lambda^2 + 2c\lambda + \omega_0^2 = 0
has roots
λ1=cc2ω02andλ2=c+c2ω02. \lambda_1 = -c-\sqrt{c^2-\omega_0^2}\quad and\quad \lambda_2 = -c+\sqrt{c^2-\omega_0^2}.
There are three cases for the sign of c2ω02c^2-\omega_0^2, and thus for the general solution:

  1. Underdamped (c2ω02<0c^2-\omega_0^2 < 0, that is, c<ω0c < \omega_0)
    x(t)=ect[C1cos(ωt)+C2sin(ωt)], x(t) = e^{-ct}[C_1\cos(\omega t)+C_2\sin(\omega t)],
    where ω=ω02c2\omega = \sqrt{\omega_0^2 - c^2}

  2. Overdamped (c2ω02>0c^2-\omega_0^2 > 0, that is, c>ω0c > \omega_0)
    x(t)=C1eλ1t+C2eλ2t x(t) = C_1 e^{\lambda_1 t} + C_2 e^{\lambda_2 t}
    where λ1<λ2<0\lambda_1 < \lambda_2 < 0

  3. Critically damped (c2ω02=0c^2-\omega_0^2 = 0, that is, c=ω0c = \omega_0, λ=c\lambda = -c)
    x(t)=C1ect+C2tect x(t) = C_1 e^{-ct} + C_2 te^{-ct}

Forced Harmonic Motion

x+2cx+ω02x=Acos(ωt) x''+2cx'+\omega_0^2 x = A\cos(\omega t)

where AA is the amplitude of the driving force, and ω\omega is the driving frequency

Forced Undamped Harmonic Motion

x+ω02x=Acos(ωt) x''+\omega_0^2 x = A\cos(\omega t)

The associated homogeneous equation is
x+ω02x=0 x''+\omega_0^2x = 0
with general solution
xh=C1cos(ω0t)+C2sin(ω0t) x_h = C_1\cos(\omega_0 t) + C_2\sin(\omega_0 t)
There are two cases for the driving frequency ω\omega:

  1. ωω0\omega \ne \omega_0, that is, the driving frequency is not equal to the natural freq

    The equation becomes x+ω02x=Acos(ω0t)x''+\omega_0^2 x = A\cos(\omega_0 t)

    Using undetermined coefficient method, xp=acos(ωt)+bsin(ωt)x_p=a\cos(\omega t)+b\sin(\omega t)

    We get
    a=Aω02ω2andb=0. a = \frac{A}{\omega_0^2 - \omega^2} \quad and \quad b=0.
    The particular solution is
    xp(t)=Aω02ωcos(ωt) x_p(t) = \frac{A}{\omega_0^2 - \omega}\cos(\omega t)

  2. ω=ω0\omega = \omega_0

    In this case, xp=a cos(ω0t)+b sin(ω0t)x_p=a\ cos(\omega_0 t)+b\ sin(\omega_0 t) is the solution of homogeneous equation xh=C1cos(ω0t)+C2sin(ω0t)x_h = C_1cos(\omega_0 t) + C_2sin(\omega_0 t). Therefore, we look for a particular solution
    xp=t(acos(ω0t)+bsin(ω0t)). x_p = t(a\cos(\omega_0 t) + b\sin(\omega_0 t)).
    We get
    b=A2ω0anda=0. b = \frac{A}{2\omega_0} \quad and \quad a = 0.
    The particular solution is
    xp=A2ω0tsin(ω0t). x_p = \frac{A}{2\omega_0}t\sin (\omega_0 t).
    As tt increases, xpx_p grows larger.

    This case is called resonance.

Forced Damped Harmonic Motion

x+2cx+ω02x=Acos(ωt) x''+2cx'+\omega_0^2 x = A\cos(\omega t)

The associated homogeneous equation:
x+2cx+ω02x=0 x'' + 2cx' + \omega_0^2 x = 0
The characteristic roots are
λ=c±c2ω02 \lambda = -c \pm \sqrt{c^2 - \omega_0^2}
和unforced的时候一样,有三种情况。但是homogeneous equation的通解xhx_h是一样的,不一样的是特解xpx_p.

对于Underdamped情况,即c<ω0c<\omega_0
x(t)=ect[C1cos(ηt)+C2sin(ηt)], x(t) = e^{-ct}[C_1\cos(\eta t)+C_2\sin(\eta t)],
where
η=ω02c2. \eta = \sqrt{\omega_0^2 - c^2}.
就这里与之前unforced不一样,之前用的是ω\omega表示η\eta,但是因为在forced这里已经表示了driving frequency,所以只能换成另外的字母表示,即η\eta

特解还是用待定系数法,通过一系列地计算我们可以得到
xp=G(ω)Acos(ωtϕ). x_p = G(\omega)A\cos(\omega t-\phi).
where
G(ω)=1R G(\omega) = \frac{1}{R}

Rcosϕ=ω02ω2andRsinϕ=2cωR=(ω02ω)2+4c2ω2 R\cos\phi = \omega_0^2 - \omega^2 \quad and \quad R\sin\phi=2c\omega \\ R = \sqrt{(\omega_0^2-\omega)^2 + 4c^2\omega^2}

cosϕ=ω02ω2(ω02ω2)2+4c2ω2sinϕ=2cω(ω02ω2)2+4c2ω2 \cos\phi=\frac{\omega_0^2 - \omega^2}{\sqrt{(\omega_0^2 - \omega^2)^2 + 4c^2\omega^2}} \quad \sin\phi = \frac{2c\omega}{\sqrt{(\omega_0^2 - \omega^2)^2 + 4c^2\omega^2}}

cotϕ=ω02ω22cω cot\phi = \frac{\omega_0^2 - \omega^2}{2c\omega}