Since this is over a month old, and R1ckr()11 sent me a pm about it:
You can solve the corresponding homogeneous equation by trying a solution of the form [itex]y= x^r[/itex]. [itex]y'= rx^{r-1}[/itex], and [itex]y''= r(r-1)x^{r- 2}[/itex] so that [itex]x^2y''- 4xy'+ 6y= r(r-1)x^r- 4rx^r+ 6x^r= (r^2- 5r+ 6)x^r= 0[/itex]. Solving that equation gives r= 3 and r= 2 so that [itex]y_1= x^3[/itex] and [itex]y_2= x^2[/itex] are independent solutions to the homogeneous equation.
Now look for a solution to the entire equation of the form [itex]y= u(x)x^2+ v(x)x^3[/itex]. Differentiating, [itex]y'= u'x^2+ 2ux+ v'x^3+ 3vx^2[/itex]. There are, in fact, an infinite number of solutions of that form so we "narrow the search" by requiring that [itex]u'x^2+ v'x^3= 0[/itex]. That leaves [itex]y'= 2ux+ 3vx^2[/itex].
Differentiating again, [itex]y''= 2u'x+ 2u+ 3v'x^2+ 6vx[/itex].
Putting those into the differential equation, [itex]x^2y''- 4xy'+ 6y= (2u'x^3+ 2x^2u+ 3v'x^4+ 6vx^3)- (8ux^2+ 12vx^4)+ (6ux^2+6vx^3)[/itex][itex]= 2u'x^3+ 3v'x^4= x^4sin(x)[/itex]. That means we have the two equations:
[itex][itex]u'x^2+ v'x^3= 0[/itex] and [itex]2u'x^3+ 3v'x^4= x^4sin(x)[/itex] that we can solve "algebraically" for u' and v'. <br />
<br />
If we multiply the first equation by 2x and subtract it from the second, the u' terms cancel and we have [itex]v'x^4= x^4sin(x)[/itex]. That is the same as [itex]v'= sin(x)[/itex] so that [itex]v(x)= -cos(x)[/itex].<br />
<br />
If we multiply the first equation by 3x and subtract it from the second, the v' terms cancel and we have [itex]-u'x^3= x^4sin(x)[/itex]. That is the same as [itex]u'= -xsin(x)[/itex]. Integrating by parts, [itex]u= xcos(x)- sin(x)[/itex]. <br />
<br />
That is, <br />
[tex]y(x)= Cx^3+ Dx^2+ x^3 cos(x)- x^2sin(x)- x^3cos(x)= Cx^3+ Dx^2- x^2sin(x)[/tex].[/itex]