y′′′+y=3+e−x+5e2x
The solutions to a nonhomogeneous equation are of the form
y(x)=yc(x)+yp(x) ,
where yc is the general solution to the associated homogeneous equation and yp is a particular solution.
The associated homogeneous equation:
y′′′+y=0
The general solution of this equation is determined by the roots of the characteristic equation:
λ3+1=0
(λ+1)(λ2−λ+1)=0
λ1=−1
(λ2−λ+1)=0
D=b2−4ac=1−4=−3
λ2,3=21±i3 , where i=−1 .
yc(x)=c1e−x+e2x(c2cos23x+c3sin23x) .
The particular solution of the differential equation:
yp(x)=A+xBe−x+Ce2x
yp′=Be−x−xBe−x+2Ce2x
yp′′=−2Be−x+xBe−x+4Ce2x
yp′′′=3Be−x−xBe−x+8Ce2x
Now put these into the original differential equation to get:
3Be−x−xBe−x+8Ce2x+A+xBe−x+Ce2x=3+e−x+5e2x
Equating coefficients, we get
A=3; B=31; C=95.
yp(x)=3+3xe−x+95e2x
Answer: y=c1e−x+e2x(c2cos23x+c3sin23x)+3+3xe−x+95e2x .
Comments