I need to compile and calculate the function's sum of the integral in interval , while splitting the interval into equal-length parts.

I do know how to do , but how do I do this while splitting it in intervals?

I didn't attend lectures, so I'm stuck at easies parts

can it look like this?