I'm trying to solve a boundary layer problem but I've ran into some trouble when it comes to solving the second order ODE's that have come up. I've been attempting to apply the method of undetermined coefficients, but I suspect I'm doing something wrong when it comes to finding the particular solution.
Here's an example of the problem I'm having,
$y_{1}''+y_{1}'=xe^{-x}-1+A_{0}(1-e^{-x}),\hspace{10mm} y_{1}(0)=0$
where the right hand side has come from me solving the homogeneous case and plugging it in, where
$y_{0}=1+A_{0}(e^{-x})$
and the RHS is $-xy_{0}'-y_{0}$
Apparently the answer I should be getting is
$y(x)=-x+A_{0}(x-\frac12 x^{2}e^{-x})+A_{1}(e^{-x}-1)$
but after trying a few different particular solutions I can't seem to see how it comes out.
Any help would be appreciated.