implement manual integration of some integrals of roots