This is covered in basic differential equation courses.
1) First find the solution to the homogeneous equation, this is called the complementary solution.
Homogeneous eq:
[tex]x'' + 4x = 0[/tex].
2) Assume that the solution is of the form [tex]x = e^{rt}[/tex], where r is some constant. Then [tex]x'' = r^{2}e^{rt}[/tex].
3) Substitute:
[tex]r^{2}e^{rt} + 4e^{rt} = 0[/tex]
This simplifies to [tex]r^{2} + 4 = 0[/tex] because [tex]e^{rt} > 0[/tex]. Solving this yields r = -2i. This means that the general solution is [tex]x = Asin2t + Bcos2t[/tex], A and B are unknown constants. Using the boundary condition we find that A = 0, B = 0.
4) Now find the solution to your original question by assuming that x is of the form [tex]x = Atsin(2t) + Btcos(2t)[/tex]. This is the particular solution.
5) Differentiate: [tex]x' = Asin(2t) + 2Atcos(2t) + Bcos(2t) - 2Btsin(2t)[/tex]
[tex]x'' = 2Acos(2t) + 2Acos(2t) - 4Atsin(2t) - 2Bsin(2t) - 2Bsin(2t) - 4Btcos(2t)[/tex]
[tex]= 4Acos(2t) - 4Atsin(2t) - 4Bsin(2t) - 4Btcos(2t)[/tex].
6) Plug in: [tex]4Acos(2t) - 4Atsin(2t) - 4Bsin(2t) - 4Btcos(2t) + 4Axsin(2t) + 4Btcos(2t)[/tex]
[tex]= 8sin(2t), 4Acos(2t) - 4Bsin(2t) = 8sin(2t), A = 2, B = 0[/tex]
7) The general solution is the particular solution and complementary solution:
[tex]x = 2tsin(2t)[/tex] (complementary solution was 0)