Hi,
First you solve the homogenous equation y"-4y'-4=0, assuming y=ekx gives k2-4k-4=0, the roots are 2,2 ie repeated real roots so the linearly independent solutions are y1=e2x and y2=xe2x The Wronskian W(x) is y1*y2' -y2*y1'= e4x =0 so y1 and y2 are indeed LI. Now if we define f(x)=e2x *(1+x) which is the RHS of the original ODE then a particular solution is y(x)=u1(x)*y1(x)+u2(x)*y2(x) Where u1 and u2 are given by
u1(x)=-∫(y2(t)*f(t)/W(t))dt and u2(x)=∫(y1(t)*f(t)/W(t))dt
You just have to do substitutions and integrate all of the functions are simple. Let me know if yo have any trouble.
Regards
Jim