For y'' + 2y' equated to 0, write u2 + 2u or u(u + 2) = 0, which gives u = 0 or u = -2.
Then build the homogeneous or complementary solution as yc = C1e0t + C2e-2t or C1 + C2e-2t.
For y'' + 2y' = 3 alone, one attempts yp = A0 (an undetermined constant),
but A0 is part of yc (for C1 = A0). A0 must then be modified.
Equate yp to A0t (which is not part of yc) to gain the correct form for a particular solution.
For [yp, yp', yp''] = [A0t, A0, 0], build 0 + 2A0 = 3 or A0 = 3/2. Then yp is 1.5t.
For y'' + 2y' = 4sin 2t alone, assume a particular solution of the form
yp = Asin 2t + Bcos 2t with
yp' = 2Acos 2t − 2Bsin 2t and
yp'' = -4Asin 2t − 4Bcos 2t.
From yp'' + 2yp' = 4sin 2t, come to
(-4A − 4B)sin 2t + (4A − 4B)cos 2t = 4sin 2t.
{-4A − 4B = 4; 4A − 4B = 0} has a simultaneous solution of A = B = -0.5.
Then adjust yp = Asin 2t + Bcos 2t to yp = -0.5sin 2t + -0.5cos 2t.
The solution sought is then "tacked together" as y = C1 + C2e-2t + 1.5t − 0.5sin 2t − 0.5cos 2t.