00:01
All right, for this problem, we are asked to use the error formulas down below to find n such that the error in the approximation of the definite integral of the natural logarithm of x from 3 to 5 is less than 0 .0001 using the trapezoidal rule and then simpsons rule.
00:18
So before we properly get started, we'll want to figure out what the derivatives of our function are.
00:24
So the first is going to be x power of negative 1.
00:26
The second is going to be negative x to the power of negative 2.
00:32
The third is going to be 2 x to the power of negative 3, and the fourth is going to be negative 6 x to the power of negative 4.
00:46
Now on our interval, these are all going to take their maximum value when x is at its least because we are dividing by x.
00:56
So our maximum value for the second derivative is going to be negative 1 over 3 squared, so that's going to be negative 1 over 9.
01:07
And then for our fourth derivative, the maximum value is going to be negative 6 over 3 to the power of 4, which is going to come out to negative 2 over 27.
01:22
So, having that, we can now look at the, let's start with the trapezoidal for part a.
01:31
What we can do is take this expression for the upper bound on the error and rearrange it, or excuse me, take that expression for the upper bound on the error, set it equal to some desired value, then rearrange this equation for n.
01:49
So we can do that without too much struggle here.
01:52
We would do multiply both sides by n squared, divide both by d, and then take the square root of both sides.
01:59
So we'd end up having b minus a cubed times max f double prime divided by 12 times the desired value or desired error.
02:11
So plugging in our values, we have three, or it was between three and five.
02:18
So we'll have two cubed, eight times the maximum value of f double prime, eight times the maximum value of f double prime, 8 times negative 1 over 9...