indefinite integral 1/sqrt(1-kcosx)