Hello everyone. I am having trouble with this math problem:
(b) Use the error estimate to find the smallest value of n that can be chosen in order to guarantee that the midpoint rule Mn approximates the integral ∫01(ex^2)dx to within 10-5.
The formula |Em| ≤ (K(b-a)3)/24n2 applies for |f "(x)| ≤ K.
My issue is that I don't know how to get a constant for the value K, so I don't know what to do next. Here are the steps I went through...
Part (a) had me solve ∫01(ex^2)dx with the midpoint rule for n=6. I ended up getting ~ 1.456409832. This is not very important for my issue, but I thought I'd mention it anyway.
Now I here is my work for part (b)...
f(x) = ex^2, so f '(x) = 2xex^2, and f "(x) = 2(x2xex^2+ex^2) = 4x2ex^2+2ex^2
Now, plugging that in, I get | 4x2ex^2+2ex^2 | ≤ K.
But how do I find K? In my book, I only get examples where f "(x) ends up being a constant value, so then | f "(x) | ends up being equal to K. What do I do when f "(x) contains variables?
Can someone help me understand this? Thanks.
(b) Use the error estimate to find the smallest value of n that can be chosen in order to guarantee that the midpoint rule Mn approximates the integral ∫01(ex^2)dx to within 10-5.
The formula |Em| ≤ (K(b-a)3)/24n2 applies for |f "(x)| ≤ K.
My issue is that I don't know how to get a constant for the value K, so I don't know what to do next. Here are the steps I went through...
Part (a) had me solve ∫01(ex^2)dx with the midpoint rule for n=6. I ended up getting ~ 1.456409832. This is not very important for my issue, but I thought I'd mention it anyway.
Now I here is my work for part (b)...
f(x) = ex^2, so f '(x) = 2xex^2, and f "(x) = 2(x2xex^2+ex^2) = 4x2ex^2+2ex^2
Now, plugging that in, I get | 4x2ex^2+2ex^2 | ≤ K.
But how do I find K? In my book, I only get examples where f "(x) ends up being a constant value, so then | f "(x) | ends up being equal to K. What do I do when f "(x) contains variables?
Can someone help me understand this? Thanks.