Given, (D2−6D+9)y=x+e2xThe characteristic equation
p2−6p+9=0
⇒(p−3)(p−3)=0
⇒p=3,3 ....(real and equal roots)
C.F. (A+Bx)e3x
P.I1=C0+C1x
⇒(D2−6D+9)(C0+C1x)=x
⇒−6C1+9C0+9C1x=x
⇒−6C1+9C0=0
⇒9C1=1; 9C0=23
⇒C1=19;C0=227
⇒P.I.=(x9+227)
⇒P.I2=1D2−6D+9e2x=14−−12+9e2x=e2x
The general solution is
y=(A+Bx)e3x+x9+227+e2x