This is
[tex]\frac{d^2r}{dt^2}= -t- 5sin(r)[/tex]?
First, it is not a matter of directly integrating nor is this a "separable" equation. Rather, this is a "linear second order differential equation with constant coefficients". The corresponding homogeneous equation is [itex]d^2r/dt^2+ t= 0[/itex]. It's characteristic equation is [itex]\lambda^2+ 1= 0[/itex] which has roots [itex]\pm i[/itex]. That means the general solution to the corresponding homogeneous equation is of the for [itex]r= C_1cos(t)+ C_2sin(t)[/itex]. To complete the solution, start with [itex]r= At cos(t)+ Bt sin(t)[/itex]. Differentiate that twice, put it into the equation, and find A and B so that it satifies the equation. The add that to the previous general equation.
(I have the feeling, from your post, that you might not recognise any of those words. If you have not studied "linear differential equations", where did you get this problem?)