(a) When 0≤x≤1, then x2≤1 and x+1≥1, so ∣f′′(x)∣=∣x+1∣x2≤11=1.
(b) To find the maximum value of a function over a closed interval, we test the function's values at the endpoints of the interval and at its critical points inside the interval. The critical points are where the function's derivative is zero or does not exist.
The function we're trying to maximize is ∣f′′(x)∣=∣x+1∣x2=x+1x2=f′′(x) (since our interval only contains nonnegative numbers). So, the critical points occur when f′′′(x)=0 or does not exist. We find f′′′(x) Using the quotient rule.
f′′′(x)00=(x+1)2(x+1)(2x)−x2=(x+1)2x2+2x=x+1x(x+2)=xorx=−1orx=−2
The only critical point in [0,1] is x=0. So, the extrema of f′′(x) over [0,1] will occur at its endpoints. Indeed, since f′′′(x)≥0 for all x in [0,1], f′′(x) is increasing over this interval, so its maximum occurs at x=1. That is,
∣f′′(x)∣≤f′′(1)=21
(c) The absolute error using the midpoint rule is at most 24n2M(b−a)3. Using M=1, if we want this to be no more than 10−5, we find an acceptable value of n with the following calculation:
24n2M(b−a)324n2124105n≤10−5≤10−5≤n2≥65(b−a=1,M=1)
(d) The absolute error using the midpoint rule is at most 24n2M(b−a)3. Using M=21, if we want this to be no more than 10−5, we find an acceptable value of n with the following calculation:
24n2M(b−a)348n2148105n≤10−5≤10−5≤n2≥46(b−a=1,M=21)
Remark: how accurate you want to be in these calculations depends a lot on your circumstances. Imagine, for instance, that you were finding M by hand, using this to find n by hand, then programming a computer to evaluate the approximation. For a simple integral like this, the difference between computing time for 65 intervals versus 46 is likely to be miniscule. So, there's not much to be gained by the extra work in (b). However, if your original sloppy M gave you something like n=1000000, you might want to put some time into improving it, to shorten computation time. Moreover, if you were finding the approximation by hand, the difference between adding 46 terms and adding 65 terms would be considerable, and you would probably want to put in the effort up front to find the most accurate M possible.