Let us solve the differential equation x2y′′−2xy′−4y=x2+2logx.
Let us use the transformation x=et. Then yx′=yt′e−t, yx2′′=(yt2′′−yt′)e−2t.
We get the equation e2t(yt2′′−yt′)e−2t−2etyt′e−t−4y=e2t+2t, which is equivalent to
yt2′′−3yt′−4y=e2t+2t.
The characteristic equation k2−3k−4=0 of the differential equation yt2′′−3yt′−4y=0 is equivalent to(k−4)(k+1)=0, and hence has the roots k1=4, k2=−1.
Therefore, the general solution of the last differential equation is y(t)=C1e4t+C2e−t+yp, where yp=ae2t+bt+c. It follows that yp′=2ae2t+b, yp′′=4ae2t, and hence we get
4ae2t−3(2ae2t+b)−4(ae2t+bt+c)=e2t+2t.
It follows that −6ae2t−4bt−3b−4c=e2t+2t, and hence −6a=−1, −4b=2, −3b−4c=0. Consequently, a=61, b=−21, c=−43b=83.
We conclude that y(t)=C1e4t+C2e−t+61e2t−21t+83.
Therefore, the general solution of the differential equation x2y′′−2xy′−4y=x2+2logx is y(x)=C1x4+C2x−1+61x2−21logx+83.
Comments