Calculating the area under a straight line can be done with geometry. Calculating the area under a curved line requires calculus. Often the **area under a curve** can be interpreted as the accumulated amount of whatever the function is modeling. Suppose a car’s speed in meters per second can be modeled by a quadratic for the first 8 seconds of acceleration:

\begin{align*}s(t)=t^2\end{align*}

How far has the car traveled in 8 seconds?

### Finding the Area Under a Curve

The area under a curve can be approximated with rectangles equally spaced under a curve as shown below. For consistency, you can choose whether the boxes should hit the curve on the left hand corner, the right hand corner, the maximum value, or the minimum value. The more boxes you use the narrower the boxes will be and thus, the more accurate your approximation of the area will be.

**Subintervals** are created when an interval is broken into smaller, equally sized intervals. The blue approximation uses right handed boxes for the height of each subinterval. The red approximation assigns the height of the box to be the minimum value of the function in each subinterval. The green approximation assigns the height of the box to be the maximum value of the function in each subinterval. The yellow approximation uses left handed boxes. Rectangles above the \begin{align*}x\end{align*}

Using boxes to estimate the area under a curve is called a **Riemann Sum. **Take the function\begin{align*}f(x)=\frac{1}{2}x-2\end{align*}

The area of the first box is 2 times the height of the function evaluated at 3:

\begin{align*}2 \cdot \left(\frac{1}{2} \cdot 3-2 \right)=3-4=-1\end{align*}

Because this box is under the \begin{align*}x\end{align*}-axis, its area is negative.

The area for each of the rest of the boxes is 2 times the height of the function evaluated at 5, 7 and 9.

\begin{align*}2 \cdot \left(\frac{1}{2} \cdot 5-2 \right)=5-4=1\end{align*}

\begin{align*}2 \cdot \left(\frac{1}{2} \cdot 7-2 \right)=7-4=3\end{align*}

\begin{align*}2 \cdot \left(\frac{1}{2} \cdot 9-2 \right)=9-4=5 \end{align*}

The approximate sum of the total area under the curve is: \begin{align*}-1+1+3+5=8\end{align*} square units.

All four of the area approximations shown earlier get better as the number of boxes increase. In fact, the limit of each approximation as the number of subintervals(boxes) increases to infinity is the precise area under the curve.

This is where the calculus idea of an integral comes in. An **integral** is the limit of a sum as the number of summands increases to infinity. A **summand** is one of many pieces being summed together.

\begin{align*}\int f(x)=\lim \limits_{n \to \infty}\sum \limits_{i=1}^n (Area \ of \ box \ i)\end{align*}

The symbol on the left is the calculus symbol of an integral.

### Examples

#### Example 1

Earlier, you were asked to determine how far a car travels in 8 seconds. You can use the area under the curve to find the total distance traveled in the first 8 seconds. Since the quadratic is a curve you must choose the number of subintervals you want to use and whether you want right or left handed boxes for estimating. Suppose you choose 8 left handed boxes of width one.

\begin{align*}x\end{align*} | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Area of box to the right |
1⋅0 | 1⋅1 | 1⋅4 | 1⋅9 | 1⋅16 | 1⋅25 | 1⋅36 | 1⋅49 |

The approximate sum is \begin{align*}1+4+9+16+25+36+49=140\end{align*}. This means that the car traveled approximately 140 meters in the first 8 seconds.

#### Example 2

Evaluate the exact area under the curve used earlier, \begin{align*}f(x)=\frac{1}{2}x-2\end{align*}, using the area formula for a triangle.

Remember that the area below the \begin{align*}x\end{align*} axis is negative while the area above the \begin{align*}x\end{align*} axis is positive.

Negative Area: \begin{align*}\frac{1}{2} \cdot 3 \cdot 1.5=\frac{9}{4}\end{align*}

Positive Area: \begin{align*}\frac{1}{2} \cdot 5 \cdot 2.5=\frac{25}{4}\end{align*}

Area under the curve between 1 and 8: \begin{align*}\frac{25}{4}-\frac{9}{4}=\frac{16}{4}=4\end{align*}

If you compare this answer to the approximation from earlier, it appears that approximations that are 2 units wide produce an area with significant error.

#### Example 3

Logan travels by bike at 20 mph for 3 hours. Then she gets in a car and drives 60 mph for 2 hours. Sketch both the distance vs. time graph and the rate vs. time graph. Use an area under the curve argument to connect the two graphs.

Distance vs. Time:

Rate vs. Time:

The slope of the first graph is 20 from 0 to 3 and then 60 from 3 to 5. The second graph is a graph of the slopes from the first graph. If you calculate the area of the second graph at the key points 0, 1, 2, 3, 4 and 5 you will see that they align perfectly with the points on the first graph.

\begin{align*}x\end{align*} | \begin{align*}x\end{align*}Area under curve from 0 to |

0 | 0 |

1 | 20 |

2 | 40 |

3 | 60 |

4 | 120 |

5 | 180 |

#### Example 4

Approximate the area under the curve using eight subintervals and right endpoints.

\begin{align*}f(x)=3x^2-1, \ -1 \le x \le 7\end{align*}

While a graph is helpful to visualize the problem and drawing each box can help give meaning to each summand, it is not always necessary. Since there are going to be 8 subintervals over the total interval of \begin{align*}-1 \le x \le 7\end{align*}, each interval is going to have a width of 1. The height of each interval is going to be at the right hand endpoints of each subinterval (0, 1, 2, 3, 4, 5, 6, 7).

\begin{align*}\sum height \cdot width=\sum_{i=0}^7(3i^2-1) \cdot 1=412\end{align*}

#### Example 5

Approximate the area under the curve using twenty subintervals and left endpoints.

\begin{align*}f(x)=x^x, \ 1 \le x \le 3\end{align*}

When the number of subintervals gets large and the subintervals get extremely narrow it will be impossible to draw an accurate picture. This is why using summation notation and thinking through what the indices and the argument will be is incredibly important. With 20 subintervals between \begin{align*}[1,3]\end{align*}, each interval will be 0.1 wide. Left endpoints means that the first box has a height of \begin{align*}f(1)\end{align*} and the second box has a height of \begin{align*}f(1.1)\end{align*}.

\begin{align*}\sum height \cdot width &=f(1) \cdot 0.1+f(1.1) \cdot 0.1+f(1.2) \cdot 0.1+ \cdots +f(2.9) \cdot 0.1 \\ &=0.1(f(1)+f(1.1)+ \cdots f(2.9)) \\ &=0.1 \cdot \sum \limits_{i=10}^{29} f \left(\frac{i}{10} \right) \\ &=0.1 \cdot \sum \limits_{i=10}^{29} \left(\frac{i}{10} \right)^{\left(\frac{i}{10} \right)} \\ & \approx 12.47144\end{align*}

Your calculator can compute summations when you go under the math menu.

### Review

1. Approximate the area under the curve using eight subintervals and right endpoints.

\begin{align*}f(x)=x^2-x+1, \ 0 \le x \le 8\end{align*}

2. Approximate the area under the curve using eight subintervals and left endpoints.

\begin{align*}f(x)=x^2-2x+1, \ -4 \le x \le 4\end{align*}

3. Approximate the area under the curve using twenty subintervals and left endpoints.

\begin{align*}f(x)=\sqrt{x+3}, \ 0 \le x \le 4\end{align*}

4. Approximate the area under the curve using 100 subintervals and left endpoints. Compare to your answer from #3.

\begin{align*}f(x)=\sqrt{x+3}, \ 0 \le x \le 4\end{align*}

5. Approximate the area under the curve using eight subintervals and left endpoints.

\begin{align*}f(x)=\cos(x), \ 0 \le x \le 4\end{align*}

6. Approximate the area under the curve using twenty subintervals and left endpoints.

\begin{align*}f(x)=\cos(x), \ 0 \le x \le 4\end{align*}

7. Approximate the area under the curve using 100 subintervals and left endpoints.

\begin{align*}f(x)=\cos(x), \ 0 \le x \le 4\end{align*}

The following graph shows the rate (in miles per hour) vs. time (in hours) for a car.

8. Describe what is happening with the car.

9. How far did the car travel in 5 hours?

The following graph shows the rate (in feet per second) vs. time (in seconds) for a car.

10. Describe what is happening with the car. In particular, what is happening in the first 3 seconds?

11. How far did the car travel in 5 seconds?

The following graph shows the function \begin{align*}f(x)=-(x-4)^2+16\end{align*}, which represents the rate (in feet per second) vs. time (in seconds) for a runner.

12. Describe what is happening with the runner. In particular, what happens after 4 seconds?

13. Use rectangles to approximate the total distance (in feet) that the runner traveled in the 8 seconds. Try to get as good an approximation as possible.

14. Explain how an integral is like the opposite of a derivative.

15. How do integrals relate to sums?

### Review (Answers)

To see the Review answers, open this PDF file and look for section 14.9.