Average Value of a Function Calculator

Find the average height of a curve over an interval. The graph draws the rectangle with the same area, so you can see the average instead of just computing it.

Reads as sin⁡(x)\sin\left(x\right)
Try:

Average value

favg=0.63662f_{avg} = 0.63662
-0.50.511.522.533.5-0.50.51cc

Violet = area under f. Amber rectangle = same area, height = average.

Step by step

  1. Formula

    favg=1b−a∫abf(x) dxf_{avg} = \frac{1}{b-a}\int_a^b f(x)\,dx
  2. Integrate

    Antiderivative: F(x)=−cos⁡(x)F(x) = -\cos\left(x\right)

    ∫0πsin⁡(x) dx=2\int_{0}^{\pi} \sin\left(x\right)\,dx = 2
  3. Divide by the interval length

    favg=2π=0.63662f_{avg} = \frac{2}{\pi} = 0.63662
  4. Where f equals its average

    Mean Value Theorem for Integrals.

    c=0.690107, c=2.45149c = 0.690107,\ c = 2.45149

Still stuck? Ask the tutor

An AI tutor reads the problem and steps above and explains them in plain words. It can make mistakes, so check it against the worked steps.

The rectangle that tells you the average

Flatten the region under the curve into a rectangle over the same interval, like levelling sand in a box. Its height is the average value. Where the curve pokes above the rectangle, it fills the gaps where the curve dips below. Formally favg=1b−a∫abf(x) dxf_{avg} = \frac{1}{b-a}\int_a^b f(x)\,dx, and the integral comes from the integral calculator.

Questions students ask

What is the average value of a function?

favg=1b−a∫abf(x) dxf_{avg} = \frac{1}{b-a}\int_a^b f(x)\,dx. It is the height of the rectangle on [a,b][a, b] that has exactly the same area as the region under the curve.

Why divide by b − a?

For a list of numbers you add them and divide by how many. For a function you "add" with an integral and divide by the length of the interval, the continuous version of "how many".

Is there always a point where f equals its average?

Yes, if ff is continuous: that is the Mean Value Theorem for Integrals. The calculator marks every such point cc.

Example: average of sin x on [0, π]?

1π∫0πsin⁡x dx=2π≈0.6366\frac{1}{\pi}\int_0^\pi \sin x\,dx = \frac{2}{\pi} \approx 0.6366. Try it in the calculator.