First, we find the homogeneous solution.
The characteristic equation is r2−3r=0, which factors as r(r−3)=0. The roots are r1=0 and r2=3. The homogeneous solution is yh=c1e0x+c2e3x=c1+c2e3x. Next, we find a particular solution.
Since the right-hand side is x3, we would normally try a polynomial of the form Ax3+Bx2+Cx+D. However, since r=0 is a root of the characteristic equation, we must multiply by x. So, we try a particular solution of the form: yp=x(Ax3+Bx2+Cx+D)=Ax4+Bx3+Cx2+Dx yp′=4Ax3+3Bx2+2Cx+D yp′′=12Ax2+6Bx+2C Substituting into the differential equation:
(12Ax2+6Bx+2C)−3(4Ax3+3Bx2+2Cx+D)=x3 12Ax2+6Bx+2C−12Ax3−9Bx2−6Cx−3D=x3 −12Ax3+(12A−9B)x2+(6B−6C)x+(2C−3D)=x3 Comparing coefficients:
−12A=1, so A=−121 12A−9B=0, so 12(−121)−9B=0, which gives −1−9B=0, so B=−91 6B−6C=0, so 6(−91)−6C=0, which gives −32−6C=0, so C=−91 2C−3D=0, so 2(−91)−3D=0, which gives −92−3D=0, so D=−272 Thus, yp=−121x4−91x3−91x2−272x The general solution is y=yh+yp=c1+c2e3x−121x4−91x3−91x2−272x