I think that the questionner could be addressed to the mathematical subject named Differential Galois Theory.
A first accessible reading could be J.F. Ritt "Integration in finite terms. Liouville's theory of elementary methods", Columbia University Press, 1948.
The corresponding google wikipedia page could be another starting point. http://en.wikipedia.org/wiki/Differential_Galois_theory

