How to solve a trapezoid rule problem with varying widths?
As the question states. The rest of the problem looks normal, but instead of the widths (w in the calculation) being the same, its varies. Say there are 7 sections, 2 are 50, 3 are 150, and 2 are 100. None if the same width ones are next to each other. So like 50, 100, 50, 150, etc.
How would you solve that problem? By doing separate trapezoid rule equations for each width, then adding the solutions together?
I've never seen an example with different widths and can't find one online.