Solution integral  methods rectangle and trapeze