Average Value of a Function Calculator

Type a function and an interval to find its average value.

Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).

A number such as 0 or 1/2, pi, e, inf or -inf.

A number larger than the lower limit, pi, e, inf or -inf.

Try

Result

You enteredfavg=1π∫0πsin⁡x dxf_{\text{avg}} = \frac{1}{\pi}\int_{0}^{\pi} \sin x\,dx

favg=2π≈0.63662\displaystyle f_{\text{avg}} = \frac{2}{\pi} \approx 0.63662
Show the work
  1. Average value of a function

    The average of ff over an interval is the area under it divided by the width of the interval: the height of the rectangle with the same area.

    Using 1b−a∫abf(x) dx\frac{1}{b - a}\int_a^b f(x)\,dx

    favg=1π−0∫0πsin⁡x dx=1π∫0πsin⁡x dx\begin{aligned} f_{\text{avg}} &= \frac{1}{\pi - 0}\int_{0}^{\pi} \sin x\,dx \\ &= \frac{1}{\pi}\int_{0}^{\pi} \sin x\,dx \end{aligned}
  2. Antiderivative

    An antiderivative of the integrand is found (see the integral calculator for the working of this step).

    F(x)=−cos⁡xF(x) = -\cos x
  3. Fundamental theorem of calculus

    Evaluate the antiderivative at the two limits and subtract.

    Using ∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a)

    [−cos⁡x]0π=1−(−1)=2\begin{aligned} \left[-\cos x\right]_{0}^{\pi} &= 1 - \left(-1\right) \\ &= 2 \end{aligned}
  4. Divide by the width

    Divide the integral by π\pi.

    favg=2πf_{\text{avg}} = \frac{2}{\pi}
  5. Result

    The average value of the function on the interval.

03.141593
The area between y = sin(x) and the x-axis from x = 0 to x = 3.141593

Worked examples