Solve the following ordinary differential equation (ODE):
u′′+u′+u=1
解析
齐次方程 u′′+u′+u=0 的特征方程
r2+r+1=0⇒r=2−1±i3.
因此
uh=e−x/2(C1cos23x+C2sin23x).
取常数特解 up=1(代入可得 1)。
通解为
u(x)=1+e−x/2(C1cos23x+C2sin23x).
英文解析
The characteristic equation of the homogeneous equation u′′+u′+u=0 is r2+r+1=0⇒r=2−1±i3.
Therefore uh=e−x/2(C1cos23x+C2sin23x).
Taking a constant particular solution up=1 (substituting yields 1).
The general solution is u(x)=1+e−x/2(C1cos23x+C2sin23x).