Im doing my DE and were going over complimentery and undetermined coeffeceints. Complimentery equations I could spout out all day long , but the undetermined coeffeceints is giving me some problems.

One of my main problems is im not quiet sure on what to subsitute for on the coeffeceints when the right side of the equations is a repeated root, or a trig function. Also i cant really ask the teacher as it is an online course. Some examples of my problems are:

PROBLEM 1)

y(double dervitave) + 3y = -48(x^2)(e^3x)

i got the complimentery as yc= e^x(c1cos((squareroot(3))x)+C2sin(sqareroot 3))

but i go to build the coeffecients i get stuck. i have come up with A(e^4x)+ B(x(e^4x))+(c(x^2)(e^4x))

its suppose to come out :

y=(c1cos((squareroot(3))x)+C2sin(sqareroot 3))+((-4x^2)+4x-(4/3))(e^3x)

PROBLEM 2)

y(double der.) +4y = 3sin2x

im not sure what to expand this out to anymore...as when i set up the coeffecients i get (Acos(2x))+(bsin(2x)) which once i take the first and second derviate and subsitute i get all my coeffecients =0 which means i need to expand, but i am not sure what i would add to expand it....

I know this post is lengty and ugly but i would greatly appreciate any help or tips to get with the coeffecent building thanks!