Normally what's on the RHS of your equation (the "forcing term" as I'll call it) will be a trig function, an exponential function or a polynomial. Usually your particular integral will simply be something of the same form.
So if the forcing term is
cos4x then you put
yp=Acos4x+Bsin4x. If the forcing term is
e3x then you put
yp=Ae3x. If the forcing term is
x2+3 then you put
yp=Ax2+Bx+C. The key things to note here are that for trig functions you need to include both sines and cosines, because of the way their derivatives work; and for polynomials you need to match the highest power of the polynomial (you don't need to go higher).
This sometimes doesn't work when the complimentary function forms part of the forcing term. So for example if your forcing term was
e2x and your characteristic polynomial was
λ2−3λ+2=(λ−1)(λ−2), then your complimentary function would contain an
e2x term. In this case, you'd notice that you can't solve for the particular integral, so you have to multiply by
x; i.e. put
yp=Axe2x. Similarly, say you had
sin2x in your forcing term and your characteristic polynomial was
λ2+4, then the same thing would happen.
The very worst-case scenario is if your forcing term is, say,
e2x and your characteristic polynomial is
λ2−4λ+4=(λ−2)2. Then your complimentary function would be
(Ax+B)e2x, and so even trying
yp=Cxe2x wouldn't work because part of the complimentary function contains it. In this case you need to go even further and put
yp=Cx2e2x.
Hope this helps.