Let us solve the differential equation (D2−2D+3)y=x2. Its characteristic equation k2−2k+3=0 is equivalent to (k−1)2=−2, and hence has the roots k1=1+i2 and k2=1−i2. Therefore, the general solution is of the form y=ex(C1cos(2x)+C2sin(2x))+yp, where yp=ax2+bx+c. It follows that yp′=2ax+b,yp′′=2a. We have the equation 2a−2(2ax+b)+3(ax2+bx+c)=x2, which is equivalent to 3ax2+(−4a+3b)x+(−2b+3c)=x2. It follows that 3a=1,−4a+3b=0,−2b+3c=0. Then a=31,b=94,c=278. We conclude that the general solution is the following:
Comments