x2y′′−2xy′−4y=x2+2lnx The corresponding homogeneous differental equation
x2y′′−2xy′−4y=0 Auxiliary equation
x2(xr)′′−2x(xr)′−4xr=0
xr(r(r−1)−2r−4)=0
r2−3r−4=0
(r+1)(r−4)=0
r1=−1,r2=4 The general solution of the homogeneous differential equation is
yh=xc1+c2x4 Find the particular solution of the non-homogeneous differential equation
yp=Ax2+Bx+C+Dlnx
yp′=2Ax+B+xD
yp′′=2A−x2D Substitute
2Ax2−D−4Ax2−2Bx−2D
−4Ax2−4Bx−4C−4Dlnx=x2+2lnx
−6A=1
−6B=0
−3D−4C=0
D=−21
A=−61,B=0,C=83
yp=−61x2+83−21lnx The general solution of the given non-homogeneous differential equation is
y=xc1+c2x4−61x2+83−21lnx
Comments