This is too long for a comment, so I posted it as an answer. First solve for the homogeneous equation by setting the right hand side to be zero. The auxiliary equation is , which has roots . Therefore the solution for this homogeneous equation is . Now we want to find a particular solution . Normally we set the particular solution to be . However, it duplicates with the solution of the homogeneous solution, therefore, we multiple it with x until no duplication occurs. Therefore, the particular solution is given by .
Let me do another example: to solve .
First solve the homogenous equation . The auxiliary equation is which has double roots . Therefore, the solution for this homogeneous equation is . Now if we want to find a particular solution . Normally we set the particular solution to be . However, it duplicates with the solution of the homogeneous solution, therefore, we multiple it with x and it becomes , but it still duplicates with . Therefore, we mupltiply it by , and the particular solution is given by .