# Thread:

1. ## Value of sin x for different intervals

I have been asked what the average value of the sin x for the interval greater or equal to 0 and less than or equal to 2 pi. I just plugged in the two end values and since both are = 0 the answer is, of course, 0.

Then I was asked what the average value of this is between 0 and pi

Obviously I am doing something wrong because the answer is 2/pi!!! Please advise on how to do these correctly. Thank you very much

2. You are right actually!

The average is 2/pi. Why do you think it is wrong?

3. Average value of a function f(x) in the interval between a and b is
$\frac{\int^{b}_{a}f(x)~dx}{b-a}$

4. ## value of sin x

So, if I have this right it goes like this:

it would be the value of -cos x from 0 to pi divided by pi - 0

-cos pi + -cos 0 /pi = 1+1 / pi or 2/pi Is this correct figuring? Thanks so much for helping out quickly!

5. Originally Posted by Frostking
So, if I have this right it goes like this:

it would be the value of -cos x from 0 to pi divided by pi - 0

-cos pi + -cos 0 /pi = 1+1 / pi or 2/pi Is this correct figuring? Thanks so much for helping out quickly!
Yes
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 1, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9328169822692871, "perplexity_flag": "middle"}