First, we solve the homogeneous equation y′′−6y′+9y=0. The characteristic equation is r2−6r+9=0. This factors as (r−3)2=0, so we have a repeated root r=3. Therefore, the general solution to the homogeneous equation is yh=c1e3x+c2xe3x, where c1 and c2 are arbitrary constants. Next, we find a particular solution to the non-homogeneous equation y′′−6y′+9y=xe3x. Since e3x and xe3x are solutions to the homogeneous equation, we try a particular solution of the form yp=(Ax3+Bx2)e3x. We compute the derivatives:
yp′=(3Ax2+2Bx)e3x+3(Ax3+Bx2)e3x=(3Ax3+(3A+2B)x2+2Bx)e3x yp′′=(9Ax2+(6A+4B)x+2B)e3x+3(3Ax3+(3A+2B)x2+2Bx)e3x=(9Ax3+(9A+6B+9A)x2+(6A+4B+6B)x+2B)e3x=(9Ax3+(18A+6B)x2+(6A+10B)x+2B)e3x Substituting into the differential equation, we get:
(9Ax3+(18A+6B)x2+(6A+10B)x+2B)e3x−6(3Ax3+(3A+2B)x2+2Bx)e3x+9(Ax3+Bx2)e3x=xe3x (9A−18A+9A)x3+(18A+6B−18A−12B+9B)x2+(6A+10B−12B)x+2Be3x=xe3x (0)x3+(3B)x2+(6A−2B+10B−12B)x+2B=x (3B)x2+(6A−2B)x+2B=x (6A−2B)x+(6A−2B)x=xe3x (6A−2B)x=x Comparing coefficients, we must have 3B=0 and 6A−2B=1. So B=0 and 6A=1, which means A=61. Thus, yp=61x3e3x. Therefore, the general solution is y=yh+yp=c1e3x+c2xe3x+61x3e3x.