Skip to main content

Section 5.2 The Definite Integral

In this section, we will formalize the three approximation methods and investigate a new concept called definite integral. We will explore some basic properties of definite integrals.

Investigation 5.2.1.

Recall the big goal in SectionΒ 5.1 is to compute the area under the curve. Let’s see if we can come up with some basic formulas we can use directly.
Let \(a\) and \(b\) be positive real numbers such that \(a < b\text{.}\) Find the area of the following function over the indicated interval.

(a)

\(f(x) = K\) over \([a,b]\) for any positive real number \(K\text{.}\)
Hint.
Graph it out! Label the region of interest! What shape is it?
Solution.
Let’s first graph the function and highlight the region of interest.
Figure 5.2.1. The graph of \(y = K\) with the region under the curve on \([a,b]\) shaded.
Observe that the region is a rectangle with the width of \(b - a\) and height of \(K\text{.}\) Hence, the area under the curve is
\begin{equation*} \text{Area} = K(b - a) \end{equation*}

(b)

\(g(x) = x\) over \([0,b]\)
Hint.
Graph it out! Label the region of interest! What shape is it?
Solution.
Let’s first graph the function and highlight the region of interest.
Figure 5.2.2. The graph of \(y = x\) with the region under the curve on \([0,b]\) shaded.
Observe that the region is a triangle with the width of \(b\) and height of \(b\text{.}\) Hence, the area under the curve is
\begin{equation*} \text{Area} = \frac{1}{2}\cdot b\cdot b = \frac{b^2}{2} \end{equation*}

(c)

\(h(x) = x^2\) over \([0,b]\)
Hint.
Graph it out! Label the region of interest! What shape is it?
P.S.: It is fine if we can’t match the shape up with a known geometric shape. Richard actually solved this problem in the previous section with some fancy symbol-pushing algebra.
Solution.
Let’s first graph the function and highlight the region of interest.
Figure 5.2.3. The graph of \(y = x^2\) with the region under the curve on \([0,b]\) shaded.
Observe that the highlighted region isn’t a known geometric shape with an area formula. So we can’t find the area geometrically...
Richard worked out the problem using \(\displaystyle \lim_{N\to\infty} R_N\) in the previous section.
Feel free to expand ExampleΒ 5.1.23 to see what the answer is.

Subsection Riemann Sum and Definite Integral

Recall the approximation methods we learned in SectionΒ 5.1: we partitioned some closed interval on the \(x\)-axis to equal parts and construct rectangles on them. This is a special case of the Riemann Sum.
Riemann sum is a more relaxing (and generalized) version of the three approximation methods we learned. We don’t require equal width of the rectangles and we don’t have to pick the same point on each interval to compute the height.
To specify a Riemann sum, we choose a partition and a set of sample points:
  • Partition \(P\) of size \(N\text{:}\) a choice of points that divides \([a,b]\) into \(N\) subintervals (not necessarily of equal width).
    \begin{equation*} P: a = x_0 < x_1 < x_2 < \cdots < x_N = b \end{equation*}
  • Sample points \(C = \left\{c_1, c_2, \ldots, c_N\right\}\text{:}\) \(c_i\) belongs to the subinterval \(\left[x_{i-1}, x_i\right]\) for all \(i = 1, \ldots, N\) (and could be any point in the subinterval).
The lenth of the \(i\)th subinterval is \(\Delta x_i = x_i - x_{i-1}\text{.}\) The Riemann sum in the sum of the \(f\left(c_i\right)\Delta x_i\) terms that are determined by \(P\) and \(C\text{.}\) This is denoted by
\begin{equation*} R(f,P,C) = \sum_{i = 1}^N f\left(c_i\right)\Delta x_i \end{equation*}
Figure 5.2.4. Construction of \(R(f,P,C)\)

Example 5.2.5.

Find the Riemann sum \(R(f,P,C)\) for the function \(f(x) = x^2 + x\text{,}\) the partition
\begin{equation*} P = \left\{0,1,2.5,3.2,5\right\} \end{equation*}
and the choice of sample points
\begin{equation*} C = \left\{0.5,2,3,4.5\right\} \end{equation*}
Hint.
Let’s graph the function first. The label each subinterval and locate the sample point in each of them. Based on this, you should be able to construct four rectangles.
Solution.
Below is the diagram of the four rectangles:
Figure 5.2.6. Construction of \(R(f,P,C)\) for \(f(x)=x^2+x\text{,}\) with \(P=\{0,1,2.5,3.2,5\}\) and \(C=\{0.5,2,3,4.5\}\text{.}\)
From the diagram, we can determine the area of each rectangles.
  • 1st rectangle: the width is \(1 - 0 = 1\) and the height is \(f(0.5) = 0.75\text{.}\)
  • 2nd rectangle: the width is \(2.5 - 1 = 1.5\) and the height is \(f(2) = 6\text{.}\)
  • 3rd rectangle: the width is \(3.2 - 2.5 = 0.7\) and the height is \(f(3) = 12\text{.}\)
  • 4th rectangle: the width is \(5 - 3.2 = 1.8\) and the height is \(f(4.5) = 24.75\text{.}\)
Hence, the Riemann sum is
\begin{align*} R(f,P,C) \amp= 1\cdot 0.75 + 1.5\cdot 6 + 0.7\cdot 12 + 1.8\cdot 24.75 \\ \amp= 0.75 + 9 + 8.4 + 44.55 \\ \amp= 62.7 \end{align*}
The Riemann sum of \(62.7\) is an approximation of the area under the curve.
As discussed in SectionΒ 5.1, the more rectangles we use to approximate the area under the curve, the more accurate our approximation is. Similarly, with smaller and smaller of each of the width of the rectangle (which forces us to use more and more rectangles to approximate the area), the more accurate the area is.
The difference here is that the width are not necessarily equal. To make sure each rectangle has really really really small width, we want to make sure the maximum width, denoted as \(||P||\text{,}\) is very very very small. Then we can say that the area under the curve is
\begin{equation*} \text{Area} = \lim_{||P||\to 0} R(f,P,C) = \lim_{||P||\to 0} \sum_{i = 1}^N f\left(c_i\right)\Delta x_i \end{equation*}
As mentioned, again in SectionΒ 5.1, it is impossible to find the area of infinite rectangle strips. But you know how to find the area of an arbitrary rectangle strip. This is called a representative rectangle.
Figure 5.2.7. Representative Rectangle with width of \(\Delta x\) and the height of \(f(x)\text{.}\)
Imagine each representative rectangle will have the width \(\Delta x \to 0\text{.}\) Then the area under the curve will equal to the sum of the area of all representative rectangles. Mathematically speaking, we call it the definite integral.
To break down each component,
  • the integral sign, \(\int\text{,}\) means summation (a cursive S).
  • the \(f(x)\) is the function value at some random point \(x\text{,}\) which works like the height of the representative rectangle. This is also called the integrand.
  • the \(dx\) is the width of the representative rectangle (\(dx\) means \(\Delta x\) when the change is really really really small). This is also called the differential.
  • the \(a\) and the \(b\) tells us about the interval. They are called the limits of integration. \(a\) is the lower limit and \(b\) is the upper limit.
Unlike in MTH 251 where I made a big deal on the concept of differentiability, I will not ask you any question on whether or not a function is integrable. This is an analysis concept. For the purpose of this class, just remember that \(f\) is integrable over \([a,b]\) if \(f\) is continuous on a closed interval \([a,b]\text{.}\)

Subsection Definite Integral and Signed Area

Now we will investigate the relationship between the area and the definite integral.

Example 5.2.9.

Find the value of \(\displaystyle \int_1^3 2\, dx\text{.}\)
Hint.
The integrand is \(f(x) = 2\) and the interval we care about here is \([1,3]\text{.}\) Recall we defined the definite integrals using Riemann sum, which is a method to approximate the area under the curve.
To help you visualize the problem, I graphed the function and labeled the interval for you. What does the definite integral represent in this graph?
Figure 5.2.10. The graph of \(f(x) = 2\text{.}\)
Solution.
Remember the definite integral is the limit of the Riemann sum, where we obtain the area of the rectangles by multiplying the width by some function values that acts as the height.
You can imagine that the height of any representative rectangle is \(2\text{.}\)
The combined width of all rectangles is \(3 - 1 = 2\text{.}\)
Hence, \(\displaystyle \int_1^3 2\, dx = 2\cdot(3 - 1) = 2\cdot 2 = 4\)
You can see that the definite integral represents the area of the enclosed region (how surprising... ).

Example 5.2.11.

Find the value of \(\displaystyle \int_1^3 -2\, dx\text{.}\)
Hint.
The integrand is \(g(x) = -2\) and the interval we care about here is \([1,3]\text{.}\) Recall we defined the definite integrals using Riemann sum, which is a method to approximate the area under the curve.
To help you visualize the problem, I graphed the function and labeled the interval for you. What does the definite integral represent in this graph?
Figure 5.2.12. The graph of \(g(x) = -2\)
Solution.
Remember the definite integral is the limit of the Riemann sum, where we obtain the area of the rectangles by multiplying the width by some function values that acts as the height.
But the issue here is that the function value is \(-2\text{...}\) This can’t be the height (since height, geometrically speaking, cannot be negative).
This is a place in math that we have to follow the definition if a conflict arise. Since the definition of the definite integral emphasizes the function value, we will need to use \(-2\) in our computation.
Similarly, the width of all rectangles is \(3 - 1 = 2\text{.}\)
Hence, \(\displaystyle \int_1^3 -2\cdot (3 -1) = -2 \cdot 2 = -4\)
Hmm... \(-4\) can’t be the area of the enclosed region. This is what we called the signed area (it kind of look like the area of the enclosed region but this is negative).

Definition 5.2.13. Signed Area.

The signed area is the area above the \(x\)-axis minus the area below the \(x\)-axis. That is, we treat the area above the \(x\)-axis as positive area and the area below the \(x\)-axis as negative area.
It turns out that the definite integral \(\int_a^b f(x)\, dx\) computes the signed area of the region between the graph of \(f\) and the \(x\)-axis over the interval \([a,b]\text{.}\)

Example 5.2.14.

Find the value of \(\displaystyle \int_0^{12} f(x)\, dx\text{,}\) where the graph of \(y = f(x)\) is shown below:
Figure 5.2.15. The graph of \(y = f(x)\)
Hint.
Observe that the region has three parts, two semi-circles and a triangle.
Do we know how to find their respective signed area?
Solution.
The first semi-circle occurs in the interval \([0,2]\text{.}\) Since the region is above the \(x\)-axis, the integral equals to the area.
\begin{equation*} \int_0^2 f(x)\, dx = \frac{1}{2}\pi(1)^2 = \frac{\pi}{2} \end{equation*}
Next, there is a triangle in the interval \([2,6]\text{.}\) Observe that this region is below the \(x\)-axis, the integral equals to the negative of the area.
\begin{equation*} \int_2^6 f(x) = -\frac{1}{2}\cdot 4\cdot 2 = -4 \end{equation*}
Alternatively, you can see that the "height" of the triangle, using the function value, is \(-2\text{.}\)
The last region is another semi-circle in the interval \([6,12]\text{.}\) This region is above the \(x\)-axis so the integral equals to its area.
\begin{equation*} \int_6^{12} f(x)\, dx = \frac{1}{2}\pi (3)^2 = \frac{9\pi}{2} \end{equation*}
Putting all these three pieces together, we obtain
\begin{equation*} \int_0^{12} f(x)\, dx = \frac{\pi}{2} - 4 + \frac{9\pi}{2} \approx 11.7079632679 \end{equation*}

Subsection Properties of Definite Integral

There are various properties of definite integrals. I will put these properties down and let’s see if you can make sense of them. Feel free to use them as you see fit.
We called the sum rule and the constant multiple rule combined as the linearity of definite integral.
Furthermore, we can summarize three more formulas to help us evaluate definite integral from the investigation tasks in the beginning of this section.
  • \(\displaystyle \displaystyle \int_a^b K\, dx = K(b - a)\)
  • \(\displaystyle \displaystyle \int_0^b x\, dx = \frac{b^2}{2}\)
  • \(\displaystyle \displaystyle \int_0^b x^2\, dx = \frac{b^3}{3}\)
With these formulas in our toolkit, we can actually evaluate some definite integrals without relying on the graph.

Example 5.2.17.

Evaluate the definite integral \(\displaystyle \int_0^1 \left(2x^2 - x + 4\right)\, dx\)
Hint.
Remember that we want to find the signed area of the function \(f(x) = 2x^2 - x + 4\) on the interval \([0,1]\text{.}\) This will be difficult to solve it geometrically or using Riemann sum. One of the reasons is because the function is too complicated...
So can we split up the definite integral into smaller pieces so we can tackle one piece at a time?
Solution.
\begin{align*} \int_0^1 \left(2x^2 - x + 4\right)\, dx \amp= 2\int_0^1 x^2\, dx - \int_0^1 x\, dx + \int_0^1 4\, dx \amp\amp\text{by linearity} \\ \amp= 2\cdot \frac{1^3}{3} - \frac{1^2}{2} + 4(1-0) \\ \amp= \frac{25}{6} \end{align*}
We will develop a lot of formulas (and a big theorem) to help us evaluate definite integrals. Make sure you keep a list of formulas so you have all the formulas in one sheet you can look up.

Worksheet Some Exercises for this section

I included some practice problems that cover some main concepts in this section. You don’t need to turn it in, but I highly encourage you to work on this with your classmates. I may take problems here to be your in-class practice problems, homework problems, and/or exam problems. Reach out to Richard for help if you get stuck or have any questions.
I will only include the final answer to some of the problems for you to check your result. If you want to check your work, talk to Richard and he is happy to discuss the process with you.

Exercise Group.

The graph of \(y = f(x)\) is shown below. Evaluate each integral using this graph.
Figure 5.2.18. The graph of \(y = f(x)\)

5.

Find the Rieman sum \(R(f,P,C)\) for \(f(x) = 2x + 3\text{,}\) \(P = \left\{-4, -1, 1, 4, 8\right\}\text{,}\) and \(C = \left\{-3, 0, 2, 5\right\}\text{.}\)

6.

Evaluate the definite integral \(\displaystyle \int_\pi^\pi \sin^2(x)\cos^4(x)\, dx\)

Exercise Group.

Given that
\begin{equation*} \int_0^1 f(x)\, dx = 1, \qquad \int_0^2 f(x)\, dx = 4, \qquad \int_1^4 f(x)\, dx = 7 \end{equation*}
evaluate the following definite integrals.

11.

Justify grapically, with pretty pictures and explanation that
  1. If \(f\) is a continuous odd function, then \(\displaystyle \int_{-a}^a f(x)\, dx = 0\)
  2. If \(g\) is a continuous even function, then \(\displaystyle \int_{-a}^a g(x)\, dx = 2\int_0^a g(x)\, dx\)