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=14∫04x dxf_{\text{avg}} = \frac{1}{4}\int_{0}^{4} x\,dx

favg=2\displaystyle f_{\text{avg}} = 2
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=14−0∫04x dx=14∫04x dx\begin{aligned} f_{\text{avg}} &= \frac{1}{4 - 0}\int_{0}^{4} x\,dx \\ &= \frac{1}{4}\int_{0}^{4} 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)=x22F(x) = \frac{x^{2}}{2}
  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)

    [x22]04=8−(0)=8\begin{aligned} \left[\frac{x^{2}}{2}\right]_{0}^{4} &= 8 - \left(0\right) \\ &= 8 \end{aligned}
  4. Divide by the width

    Divide the integral by 44.

    favg=84=2\begin{aligned} f_{\text{avg}} &= \frac{8}{4} \\ &= 2 \end{aligned}
  5. Result

    The average value of the function on the interval.

    favg=2f_{\text{avg}} = 2
04
The area between y = x and the x-axis from x = 0 to x = 4

Worked examples