The integral we want to find a solution for is:
∫13(x2−x+1)dx
To begin, we see it's on the interval [1,3]. Using this we can calculate what Δx is.
ΔxΔx=nb−a=n3−1=n2
Next, we calculate xi∗.
xi∗xi∗=a+(Δx)i=1+n2⋅i=1+n2i
Now, we can find f(xi∗).
f(x)f(xi∗)f(xi∗)f(xi∗)f(xi∗)=x2−x+1=(xi∗)2−(xi∗)+1=(1+n2i)2−(1+n2i)+1=1+n4i+n24i2−1−n2i+1=1+n2i+n24i2
Next, we take the summation.
i=1∑n[1+n2i+n24i2]⋅n2
Because the n2 term doesn't have an i in it, we can write it outside the summation.
n2i=1∑n[1+n2i+n24i2]
The summation can be distributed to each term inside the brackets.
n2[i=1∑n1+i=1∑nn2i+i=1∑nn24i2]
This can be simplified.
n2[i=1∑n1+n2i=1∑ni+n24i=1∑ni2]
Now we can substitute in the summation formulas we defined above.
n2[n+n2(2n(n+1))+n24(6n(n+1)(2n+1))]
The term outside can be distributed in.
2+n24⋅2n(n+1)+n38⋅6n(n+1)(2n+1)
Simplifying gives,
2+2⋅nn+1+34⋅n22n2+3n+1
Next, we take the limit.
n→∞lim[2+2⋅nn+1+34⋅n22n2+3n+1]
We can distribute the limit across each term.
n→∞lim2+n→∞lim2⋅nn+1+n→∞lim34⋅n22n2+3n+1
This can be simplified.
n→∞lim2+2n→∞limnn+1+34n→∞limn22n2+3n+1
Now, take the limit.
2+2(1)+34(2)
Finally, we get:
∫13(x2−x+1)dx=320