Solves basic intregrals