y=ex(C1cosx+C2sinx+1)
齐次特征方程 r2−2r+2=0 的根为 1±i,故齐次通解为 yh=ex(C1cosx+C2sinx)。
令特解 yp=Aex。代入原方程得 Aex=ex,所以 A=1。因此通解为 y=ex(C1cosx+C2sinx+1)。