Let us solve the differential equation y′′+7y′=42x2+5x+1.
The characteristic equation k2+7k=0 has the solutions k1=0 and k2=−7. Therefore, the general solution of the differential equation is of the form y(x)=C1+C2e−7x+yp. Since k=0
is a simple root of the characteristic equation, yp=x(ax2+bx+c)=ax3+bx2+cx.
yp′=3ax2+2bx+c, yp′′=6ax+2b.
It follows that 6ax+2b+7(3ax2+2bx+c)=21ax2+(6a+14b)x+(2b+7c)=42x2+5x+1.
Consequently, 21a=42, 6a+14b=5, 2b+7c=1. Therefore, a=2, b=−21, c=72.
We concude that the general solution of the differential equation is of the form y(x)=C1+C2e−7x+2x3−21x2+72x.
Comments