Solution
= Solution
The <characteristic equation> has the repeated root $r=-3$. Its <homogeneous solution> is therefore $(C_1+C_2x)e^{-3x}$. For a <particular solution>, try $y_p=Ax+B$. Substitution gives $9Ax+6A+9B=3x+1$, so $A=1/3$ and $B=-1/9$. Thus the <general solution> is
$$
\boxed{y(x)=(C_1+C_2x)e^{-3x}+\frac x3-\frac19}.
$$
The extra factor $x$ in the second homogeneous term is required by the repeated root.