Let us find the general solution of the ordinary differential equation (D2+2D+1)y=e−xlnx using method of variation of parameters. The characteristic equation k2+2k+1=0 of the homogeneous differential equation is equivalent to (k+1)2=0, and hence has the roots k1=k2=−1. The general solution of the non-homogeneous equation is of the form y=C1(x)e−x+C2(x)xe−x.
Therefore, we should solve the following system
{C1′e−x+C2′xe−x=0−C1′e−x+C2′e−x−C2′xe−x=e−xlnx
which is equivalent to
{C1′=−C2′x−C1′+C2′−C2′x=lnx
{C1′=−C2′xC2′x+C2′−C2′x=lnx
{C1′=−C2′xC2′=lnx
{C1′=−xlnxC2′=lnx
It follows that
C1(x)=−∫xlnxdx=
|u=lnx,dv=xdx,du=xdx,v=2x2 |
=−21x2lnx+21∫xdx
=−21x2lnx+4x2+C1
C2(x)=∫lnxdx=
|u=lnx,dv=dx,du=xdx,v=x |
=xlnx−∫dx
=xlnx−x+C2.
We conclude that the general solution is
y=(−21x2lnx+4x2+C1)e−x+(xlnx−x+C2)xe−x or
y=(21x2lnx−43x2+C1+C2x)e−x.
Comments