Skip to main content
\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)
[ "article:topic", "definite integral", "authorname:openstax", "average value of a function", "integrable function", "integrand", "net signed area", "total area", "variable of integration", "license:ccbyncsa", "showtoc:no" ]
Mathematics LibreTexts

5.4: Average Value of a Function

  • Page ID
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    5.4 Average Value of a Function

    We often need to find the average of a set of numbers, such as an average test grade. Suppose you received the following test scores in your algebra class: 89, 90, 56, 78, 100, and 69. Your semester grade is your average of test scores and you want to know what grade to expect. We can find the average by adding all the scores and dividing by the number of scores. In this case, there are six test scores. Thus,


    Therefore, your average test grade is approximately 80.33, which translates to a B− at most schools.

    Suppose, however, that we have a function \(v(t)\) that gives us the speed of an object at any time t, and we want to find the object’s average speed. The function \(v(t)\) takes on an infinite number of values, so we can’t use the process just described. Fortunately, we can use a definite integral to find the average value of a function such as this.

    Let \(f(x)\) be continuous over the interval \([a,b]\) and let \([a,b]\) be divided into n subintervals of width \(Δx=(b−a)/n\). Choose a representative \(x^∗_i\) in each subinterval and calculate \(f(x^∗_i)\) for \(i=1,2,…,n.\) In other words, consider each \(f(x^∗_i)\) as a sampling of the function over each subinterval. The average value of the function may then be approximated as


    which is basically the same expression used to calculate the average of discrete values.

    But we know \(Δx=\dfrac{b−a}{n},\) so \(n=\dfrac{b−a}{Δx}\), and we get


    Following through with the algebra, the numerator is a sum that is represented as \(\sum_{i=1}^nf(x∗i),\) and we are dividing by a fraction. To divide by a fraction, invert the denominator and multiply. Thus, an approximate value for the average value of the function is given by


    This is a Riemann sum. Then, to get the exact average value, take the limit as n goes to infinity. Thus, the average value of a function is given by


    Definition: average value of the function

    Let \(f(x)\) be continuous over the interval \([a,b]\). Then, the average value of the function \(f(x)\) (or \(f_{ave}\)) on \([a,b]\) is given by


    Example \(\PageIndex{8}\): Finding the Average Value of a Linear Function

    Find the average value of \(f(x)=x+1\) over the interval \([0,5].\)


    First, graph the function on the stated interval, as shown in Figure.

    Figure \(\PageIndex{10}\):The graph shows the area under the function \((x)=x+1\) over \([0,5].\)

    The region is a trapezoid lying on its side, so we can use the area formula for a trapezoid \(A=\dfrac{1}{2}h(a+b),\) where h represents height, and a and b represent the two parallel sides. Then,


    Thus the average value of the function is


    Exercise \(\PageIndex{7}\)

    Find the average value of \(f(x)=6−2x\) over the interval \([0,3].\)


    Use the average value formula, and use geometry to evaluate the integral.



    Key Concepts

    • The definite integral can be used to calculate net signed area, which is the area above the x-axis less the area below the x-axis. Net signed area can be positive, negative, or zero.
    • The average value of a function can be calculated using definite integrals.

    Key Equations

    • Definite Integral



    average value of a function
    (or \(f_{ave})\) the average value of a function on an interval can be found by calculating the definite integral of the function and dividing that value by the length of the interval
    variable of integration
    indicates which variable you are integrating with respect to; if it is x, then the function in the integrand is followed by dx


    • Gilbert Strang (MIT) and Edwin “Jed” Herman (Harvey Mudd) with many contributing authors. This content by OpenStax is licensed with a CC-BY-SA-NC 4.0 license. Download for free at