As written, this 2nd order differential equation is highly non-linear and almost certainly has no analytical solution. If you meant to put t2 on the right-hand side instead of x2, and if cos(a) is also a constant, then there is an analytical solution.