The "basic" solution for a linear, homogeneous, differential equation with constant coefficients is of the form e^{\alpha x} where \alpha is a solution to the associated characteristic equation. From that we also get sine and cosine solutions (if \alpha is complex) and powers of x (if \alpha is a multiple root). The method of "undetermined coefficients" only works if the right hand side of a non-homogeneous equation is one of those types of function.
What you need to use here is called "variation of parameters", that MisterX mentioned before. If u(x) and v(x) are two independent solutions to the homogeneous equation, then a general solution is of the form "Cu(x)+ Dv(x)" where C and D are constants. Those are the "parameters" we are going to vary. Look for solutions of the form p(x)u(x)+ q(x)v(x), with p and q functions of x. With y(x)= p(x)u(x)+ q(x)v(x), y'= p'u+ pu'+ q'v+ qv'. Because there are an infinite number of possible solutions, there are an infinite number of possible "p" and "q". We "narrow the search", and simplify the problem, by searching for solutions such that p'u+ q'v= 0. That leaves y'= pu'+qv' and the second derivative is y''= p'u'+ pu''+ q'v'+ qv''. Now, put those y, y', and y'' into the differential equation.
Because u and v satisfy the homogeneous equation, all terms involving only p and q (without being differentiated) will cancel. Since we required that p'u+ q'v= 0 there were be no p'' or q''. That is, we will have an equation involving only p' and q'. That, together with p'u+ q'v= 0, give us two equations to solve, algebraically, for p' and q'.