I could definitely use some help with the Trapezoid, Midpoint, and Simpson's rule (where n=6) for: \[\large9\int\limits_{1}^{4}\sqrt{\ln \left| x \right|}\cdot dx\] I think I must be confused by the instructions for these or something because it's not taking my evaluated decimal answers, six significant figures required. (+1 medal as always for steps shown, ty in advance to taking the time to help)
\[\triangle x = \frac{b-a}{n} = \frac{4-1}{6}=\frac{1}{2}\]
And so...
\[ 9 \times\sum_{n = 1}^{6} \frac 12\left ( \sqrt{ \ln \left (1 + (n-1) \frac 1 2 \right ) } + \sqrt{ \ln \left (1 + (n) \frac 1 2 \right ) } \right ) \frac 12 \]
Err what? I know the definition of an integral is the sum of areas as the width of each sample goes to zero, but I've never seen what you've written before like that @experimentX
isn't it asking for numerical integration??
\[T_n= \frac{\triangle x}{2} (f(x_1)+2f(x_2)+...2f(x_{n-1})+f(x_n)\] \[M_n= \triangle x (f(x_1)+f(x_2)+...+f(x_n)\] \[S_n= \frac{\triangle x}{3} (f(x_1)+4f(x_2)+2f(x_3)+2f(x_4)+...2f(x_{n-2})+4f(x_{n-1})+f(x_n)\]
True it is, but it's asking not for exact, it's asking for approximated by these things.
To six decimal places. I keep trying to see if I have an error in my formulas or a typo on the calculator or something
For Simpson's Rule, the coefficients go 1-4-2-4-2-...-2-4-1.
Also, I'm assuming it's a typo, but for Midpoint Rule, the sample points \(x_i^\star\) should be \(x_i^\star=\frac{1}{2}(x_{i-1}+x_i)\)
@blockcolder , Yay finally somebody who knows this stuff! :D So for the midpoint rule, each f(x) should be f(\(x_i^*\)) where that sample point what you wrote above? I'll have to try that again. And yeah, clearly Simpson's rule in my notes was wrong then if that's how it's supposed to go. In the example problem in the text they only worked out one with n=5, not any larger.
\[S_n= \frac{\triangle x}{3} (f(1)+4f(1.5)+2f(2)+4f(2.5)+2f(3)+4f(3.5)+f(4))\] Like this?
You can't use Simpson's Rule for n=5, because it's odd. For n=6, Simpson's Rule should be: \[S_n=\frac{\Delta x}{3}(f(x_0)+2f(x_1)+4f(x_2)+2f(x_3)+4f(x_4)+2f(x_5)+f(x_6))\] You're forgetting to include \(x_0\), btw. \(x_0=a\)
Ok I've gotten everything correct except for the midpoint gentlement
T\(_n \approx\) 23.32200512 S\(_n \approx\) 23.68778685 Ty for your help so far @blockcolder & @experimentX ;-)
I guess I need a bit of a better understanding as to what the terms of the midpoint rule should be?
haven't done midpoint rule yet ... let's see what's on google.
Meh Google didn't help much, it still giving me errors for some reason. There's a second problem tied to this one which also requires using the midpoint, right-endpoint, and left-endpoint based on a drawing posted, not an actual function.
Here take a look @experimentX This is the other one the follows this:
the midpoint rule just says \[ \sum \Delta x f(x + \Delta x/2)\]
Kind of a pain if you ask me, I tried using half-unit samples and as you can see it says NO!
Granted that's a separate problem there, but it's the same midpoint rule.
And you can't just average the right and left endpoints apparently
Which is what I THOUGHT the "midpoint" was all about, no?
seems all right ... L2<M2<R2
the area of that curve must be around 46's
But as you can see I'm getting a big fat NO from anything in the system regarding Midpoint rule, which I feel logical must mean I'm doing something wrong in my process.
logically*
can you give me the function?
You mean for that image one? No that's literally it. The function is what's visually specified, unfortunately
seems like a parabola ... what's your answer?? try to reduce the step size to get more accurate result.
For the one proposed initially for this question/topic where I needed to use 3 different methods, that's as written sqrt(ln|x|)). Reduce to 0.25 samples instead of 0.5?
For \(\triangle x\) I mean
I'm currently trying to compare this topic with this one: http://www.physicsforums.com/showthread.php?t=157496
well ... that gives more accurate result for every numerical integration. For the original problem, Sum[ 9 ( Sqrt[Log[1 + n * 0.5]]), { n, 1 , 5 }] on mathematica gives 41.3457
Sorry, Sum[ 9 ( Sqrt[Log[1 + n * 0.5]])*0.5, { n, 1 , 5 }] = 20.6728
Alas it says no, to this: http://www.wolframalpha.com/input/?i=Sum [+9+%28+Sqrt[Log[1+%2B+n+*+0.5]]%29*0.5%2C+{+n%2C+1+%2C+5+}]
Sorry ... i am not getting accurate results. wait for a while.
err that link broke
I can see why the coefficient out front is 9/2 easily enough, let me the terms...
9*\(\triangle x\)(\(\sqrt{\ln|1.25|}\)+\(\sqrt{\ln|1.75|}\)+\(\sqrt{\ln|2.25|}\)+\(\sqrt{\ln|2.75|}\)+\(\sqrt{\ln|3.25|}\)+\(\sqrt{\ln|3.75|}\))
this is for right sum Sum[ 9 ( Sqrt[Log[1 + n * 0.5 ]])*0.5, { n, 1 , 6 }] = 25.9712 For mid sum Sum[ 9 ( Sqrt[Log[1 + n * 0.5 + 0.25]])*0.5, { n, 0 , 5}] = 24.1294 For left sum Sum[ 9 ( Sqrt[Log[1 + n * 0.5 ]])*0.5, { n, 0 , 5 }] = 20.6728
well ... what value did you get for that??
i think it's better to call it upper sum and lower sum rather than left sum or right sum.
AH HA! 24.12940953421 It wasn't taking 24.1294
Freaking computer, like 9 millionths matters...
online test??
1. How do I manipulate your syntax-based formula for other functions? 2. Can I give you a medal and you give the other guy a medal? I would love to give credit to both of you :D 3. Not quite, online homework stuff.
One of the few parts I'm stuck on
It's only a few points, but I'd rather get as much as I can and understand why, takes pressure off the test
sure ..where are you stuck??
Well it's this section, and part of it it I think is because of the computer being a punk and not taking it if it's not EXACTLY what it wanted
lol
I'll create two new topics @experimentX , so you can get extra medals for your extra effort. It's the same stuff so we're on the same page already, and nobody else seems to want to help out with this mess of calculus so you're GREATLY appreciated. One of the few you and @blockcolder are, and my deepest respects to you both :-)
well ... just check in for value of x Sum[ function goes first, {value of increment, initial value , final value}] in function place modify it by f(x + n*increment step)* increment step.
no probs ... it's all right. BTW i didn't know midpoint formula until now. well, i have unusual learning methods.
Join our real-time social learning platform and learn together with your friends!