Troubleshooting the Average Value of a Function

AI Thread Summary
The average value of a function can be calculated using the formula \(\frac{\int_a^b f(x)\,dx}{b-a}\), which represents the area under the curve converted into a rectangle. A specific example discussed involves the integral \(\frac{\int_{-1}^{1} e^{-x^2} \,dx}{-2}\), which contains an error due to an extra negative in the denominator. The expression can be simplified to \(\int_0^1 e^{-x^2}\,dx\), requiring numerical integration for evaluation. The numerical result provided by Mathematica for this integral is approximately 0.746824. Understanding these concepts is crucial for accurately determining the average value of functions.
tandoorichicken
Messages
245
Reaction score
0
I forgot the formula for the average value of a function.
Is that f(b) - f(a) = f'(c)(b-a) or am I thinking of something else?
 
Physics news on Phys.org
Try:

\frac{\int_a^b f(x)\,dx}{b-a}}

Just remember that you're turning the area under the curve into a rectangle of base (b - a). The height is the average value.

cookiemonster
 
okay, the actual problem now becomes
\frac{\int_{-1}^{1} e^{-x^2} \,dx}{-2}
any takers?
 
You've got an extra negative in the denominator.

The expression can be simplified at most to:

\int_0^1 e^{-x^2}\,dx

Which must be integrated numerically. Mathematica gives:

\int_0^1 e^{-x^2}\,dx = .746824

cookiemonster
 
I multiplied the values first without the error limit. Got 19.38. rounded it off to 2 significant figures since the given data has 2 significant figures. So = 19. For error I used the above formula. It comes out about 1.48. Now my question is. Should I write the answer as 19±1.5 (rounding 1.48 to 2 significant figures) OR should I write it as 19±1. So in short, should the error have same number of significant figures as the mean value or should it have the same number of decimal places as...
Thread 'A cylinder connected to a hanging mass'
Let's declare that for the cylinder, mass = M = 10 kg Radius = R = 4 m For the wall and the floor, Friction coeff = ##\mu## = 0.5 For the hanging mass, mass = m = 11 kg First, we divide the force according to their respective plane (x and y thing, correct me if I'm wrong) and according to which, cylinder or the hanging mass, they're working on. Force on the hanging mass $$mg - T = ma$$ Force(Cylinder) on y $$N_f + f_w - Mg = 0$$ Force(Cylinder) on x $$T + f_f - N_w = Ma$$ There's also...

Similar threads

Back
Top