Introduction to the Integral

Discover the mathematics of accumulation

Have you ever wondered how to find the area of a shape with curved edges? Or how to calculate the total distance traveled when your speed keeps changing? These questions puzzled mathematicians for centuries, and their answers led to one of the most powerful ideas in all of mathematics: the integral.

If you have already studied derivatives, you have learned about rates of change - how fast things are happening at each instant. The integral asks the opposite question: if we know the rate at which something is happening, how much has accumulated over time? This process of “undoing” a derivative, of adding up infinitely many infinitely small pieces, is what integration is all about.

Do not worry if this sounds abstract right now. We will start with something very concrete - finding areas - and build up to the general concept step by step. By the end of this lesson, you will see that integration is a natural and intuitive process, even if the notation takes some getting used to.

Core Concepts

The Area Problem

Let us begin with a simple question: what is the area under a curve?

For a rectangle, you learned the formula $A = \text{base} \times \text{height}$ in elementary school. For a triangle, $A = \frac{1}{2} \times \text{base} \times \text{height}$. But what about the region bounded by a curve like $y = x^2$, the $x$-axis, and two vertical lines?

This is the area problem, and it motivated much of the development of calculus. The key insight is that we can approximate curved regions using shapes we already understand: rectangles.

Consider the region under the curve $y = x^2$ from $x = 0$ to $x = 2$. We cannot directly apply any formula we know, but we can break this region into vertical strips. If we approximate each strip with a rectangle, we get an estimate of the total area. The more rectangles we use, the better our approximation becomes.

Approximating Area with Rectangles

Here is the strategy: divide the interval $[a, b]$ into $n$ equal subintervals, each of width

$$\Delta x = \frac{b - a}{n}$$

For each subinterval, we construct a rectangle. The width of each rectangle is $\Delta x$, but we need to decide how tall to make each one. The height will be the value of the function at some point in that subinterval - but which point?

This choice gives us different types of approximations, each with its own advantages.

Left, Right, and Midpoint Sums

Left Riemann Sum: Use the left endpoint of each subinterval to determine the height.

$$L_n = \sum_{i=0}^{n-1} f(x_i) \Delta x$$

where $x_i = a + i \cdot \Delta x$ for $i = 0, 1, 2, \ldots, n-1$.

Right Riemann Sum: Use the right endpoint of each subinterval to determine the height.

$$R_n = \sum_{i=1}^{n} f(x_i) \Delta x$$

where $x_i = a + i \cdot \Delta x$ for $i = 1, 2, 3, \ldots, n$.

Midpoint Riemann Sum: Use the midpoint of each subinterval to determine the height.

$$M_n = \sum_{i=1}^{n} f\left(\frac{x_{i-1} + x_i}{2}\right) \Delta x$$

Each approach gives a slightly different answer, but as we use more and more rectangles (as $n \to \infty$), all three methods converge to the same value - the exact area under the curve.

For an increasing function, the left sum underestimates the area while the right sum overestimates it. For a decreasing function, the opposite is true. The midpoint sum typically gives a better approximation than either the left or right sum for the same number of rectangles.

The Definite Integral as a Limit

The definite integral is defined as the limit of Riemann sums as the number of rectangles approaches infinity:

$$\int_a^b f(x),dx = \lim_{n \to \infty} \sum_{i=1}^{n} f(x_i^*) \Delta x$$

Here, $x_i^*$ represents any point in the $i$-th subinterval. The remarkable fact is that for continuous functions, this limit exists and is the same regardless of which points we choose in each subinterval.

The definite integral $\int_a^b f(x),dx$ represents the signed area between the curve $y = f(x)$ and the $x$-axis from $x = a$ to $x = b$. The area is positive where $f(x) > 0$ (above the $x$-axis) and negative where $f(x) < 0$ (below the $x$-axis).

This might seem strange at first - negative area? But it makes perfect sense in applications. If $f(t)$ represents velocity, then positive values mean you are moving forward and negative values mean you are moving backward. The signed area gives you your net displacement, not the total distance traveled.

The Fundamental Theorem of Calculus

Now we come to one of the most beautiful results in all of mathematics. The Fundamental Theorem of Calculus (FTC) connects the two main operations of calculus - differentiation and integration - revealing them to be inverse processes.

Fundamental Theorem of Calculus, Part 1:

If $f$ is continuous on $[a, b]$ and we define

$$F(x) = \int_a^x f(t),dt$$

then $F$ is differentiable on $(a, b)$ and $F’(x) = f(x)$.

In other words, if you integrate a function and then differentiate the result, you get back to where you started.

Fundamental Theorem of Calculus, Part 2:

If $f$ is continuous on $[a, b]$ and $F$ is any antiderivative of $f$ (meaning $F’(x) = f(x)$), then

$$\int_a^b f(x),dx = F(b) - F(a)$$

This is extraordinary. It says that to find the area under a curve, you do not need to compute limits of Riemann sums. You just need to find an antiderivative and evaluate it at the endpoints.

We often write $F(b) - F(a)$ as $\bigl[F(x)\bigr]_a^b$ or $F(x)\Big|_a^b$.

Why the Fundamental Theorem Works

The intuition behind the FTC is beautiful. Imagine you are tracking the total rainfall in a bucket over the course of a day. Let $f(t)$ be the rate of rainfall (inches per hour) at time $t$, and let $F(t)$ be the total accumulated rainfall up to time $t$.

The rate at which the total is changing is exactly the current rate of rainfall: $F’(t) = f(t)$. And the total rainfall from time $a$ to time $b$ is the difference $F(b) - F(a)$.

Integration adds up the rate of change to find the total accumulation. Differentiation finds the rate of change from the total accumulation. They are two sides of the same coin.

Notation and Terminology

Term Meaning Example
$\int_a^b f(x),dx$ Definite integral from $a$ to $b$ Signed area under curve
Riemann sum Approximation using rectangles $\sum_{i=1}^n f(x_i) \Delta x$
Integrand The function being integrated $f(x)$ in $\int f(x),dx$
Limits of integration The bounds $a$ (lower) and $b$ (upper) In $\int_0^5$, the limits are 0 and 5
$dx$ Indicates the variable of integration Tells us to integrate with respect to $x$
$\Delta x$ Width of each subinterval $\Delta x = \frac{b-a}{n}$
Antiderivative A function whose derivative is $f$ $F(x)$ where $F’(x) = f(x)$
Fundamental Theorem $\int_a^b f’(x),dx = f(b) - f(a)$ Derivatives and integrals are inverses
Signed area Area counting below $x$-axis as negative $\int_0^{2\pi} \sin x,dx = 0$
Partition Division of $[a,b]$ into subintervals ${0, 0.5, 1, 1.5, 2}$ partitions $[0,2]$

Examples

Example 1: Estimating an Integral with Right Rectangles

Problem: Estimate $\int_0^2 x^2,dx$ using 4 right rectangles.

Solution:

We need to partition the interval $[0, 2]$ into 4 equal subintervals.

First, find the width of each rectangle: $$\Delta x = \frac{2 - 0}{4} = 0.5$$

The subintervals are: $[0, 0.5]$, $[0.5, 1]$, $[1, 1.5]$, $[1.5, 2]$.

For a right Riemann sum, we use the right endpoint of each subinterval. The right endpoints are $x = 0.5, 1, 1.5, 2$.

Now we evaluate $f(x) = x^2$ at each right endpoint:

  • $f(0.5) = 0.25$
  • $f(1) = 1$
  • $f(1.5) = 2.25$
  • $f(2) = 4$

The right Riemann sum is: $$R_4 = [f(0.5) + f(1) + f(1.5) + f(2)] \cdot \Delta x$$ $$R_4 = [0.25 + 1 + 2.25 + 4] \cdot 0.5$$ $$R_4 = 7.5 \cdot 0.5 = 3.75$$

Our estimate is $\int_0^2 x^2,dx \approx 3.75$.

Note: The exact value (which we can find using the FTC) is $\frac{8}{3} \approx 2.67$. Our right sum overestimates because $f(x) = x^2$ is increasing on $[0, 2]$.

Example 2: Integral of a Constant Function

Problem: Evaluate $\int_1^3 2,dx$.

Solution:

When the function is a constant, the region under the curve is simply a rectangle.

The width of the rectangle is $3 - 1 = 2$ (the length of the interval).

The height of the rectangle is $2$ (the constant value of the function).

Therefore: $$\int_1^3 2,dx = 2 \times 2 = 4$$

We can verify this using the FTC. An antiderivative of $f(x) = 2$ is $F(x) = 2x$.

$$\int_1^3 2,dx = F(3) - F(1) = 2(3) - 2(1) = 6 - 2 = 4$$

Both methods give the same answer, as expected.

Example 3: Using the Fundamental Theorem

Problem: Use the Fundamental Theorem of Calculus to evaluate $\int_0^3 2x,dx$.

Solution:

Step 1: Find an antiderivative of $f(x) = 2x$.

We need a function $F(x)$ such that $F’(x) = 2x$.

Using the power rule for antiderivatives, we increase the exponent by 1 and divide by the new exponent: $$F(x) = x^2$$

Check: $\frac{d}{dx}(x^2) = 2x$. Yes, this works.

Step 2: Apply the FTC.

$$\int_0^3 2x,dx = F(3) - F(0) = 3^2 - 0^2 = 9 - 0 = 9$$

Geometric interpretation: The graph of $y = 2x$ from $x = 0$ to $x = 3$ forms a triangle with base 3 and height $2(3) = 6$. The area is $\frac{1}{2} \times 3 \times 6 = 9$, confirming our answer.

Example 4: Comparing Left and Right Sums

Problem: For $f(x) = x^3$ on $[0, 2]$ with $n = 4$ subintervals, compute both the left and right Riemann sums. Which is larger, and why?

Solution:

First, calculate $\Delta x$: $$\Delta x = \frac{2 - 0}{4} = 0.5$$

The partition points are: $x_0 = 0$, $x_1 = 0.5$, $x_2 = 1$, $x_3 = 1.5$, $x_4 = 2$.

Left Riemann Sum: Use left endpoints $x = 0, 0.5, 1, 1.5$.

  • $f(0) = 0$
  • $f(0.5) = 0.125$
  • $f(1) = 1$
  • $f(1.5) = 3.375$

$$L_4 = (0 + 0.125 + 1 + 3.375) \cdot 0.5 = 4.5 \cdot 0.5 = 2.25$$

Right Riemann Sum: Use right endpoints $x = 0.5, 1, 1.5, 2$.

  • $f(0.5) = 0.125$
  • $f(1) = 1$
  • $f(1.5) = 3.375$
  • $f(2) = 8$

$$R_4 = (0.125 + 1 + 3.375 + 8) \cdot 0.5 = 12.5 \cdot 0.5 = 6.25$$

Comparison: The right sum ($6.25$) is larger than the left sum ($2.25$).

Why? The function $f(x) = x^3$ is increasing on $[0, 2]$. For an increasing function:

  • The left endpoint is always the minimum of each subinterval
  • The right endpoint is always the maximum of each subinterval

So the left sum underestimates the area and the right sum overestimates it.

The exact value is $\int_0^2 x^3,dx = \left[\frac{x^4}{4}\right]_0^2 = \frac{16}{4} - 0 = 4$, which is indeed between $2.25$ and $6.25$.

Example 5: Evaluating a Polynomial Integral

Problem: Use the Fundamental Theorem of Calculus to evaluate $\int_1^4 (3x^2 - 2x),dx$.

Solution:

Step 1: Find an antiderivative of $f(x) = 3x^2 - 2x$.

We integrate term by term:

  • The antiderivative of $3x^2$ is $\frac{3x^3}{3} = x^3$
  • The antiderivative of $-2x$ is $\frac{-2x^2}{2} = -x^2$

So an antiderivative is: $$F(x) = x^3 - x^2$$

Check: $F’(x) = 3x^2 - 2x$. Correct.

Step 2: Apply the FTC.

$$\int_1^4 (3x^2 - 2x),dx = \bigl[x^3 - x^2\bigr]_1^4$$

$$= \bigl[4^3 - 4^2\bigr] - \bigl[1^3 - 1^2\bigr]$$

$$= [64 - 16] - [1 - 1]$$

$$= 48 - 0 = 48$$

Example 6: Signed Area with a Function That Crosses the Axis

Problem: Evaluate $\int_{-1}^{2} (x^2 - 1),dx$ and interpret the result geometrically.

Solution:

Step 1: Find an antiderivative of $f(x) = x^2 - 1$.

$$F(x) = \frac{x^3}{3} - x$$

Step 2: Apply the FTC.

$$\int_{-1}^{2} (x^2 - 1),dx = \left[\frac{x^3}{3} - x\right]_{-1}^{2}$$

$$= \left[\frac{8}{3} - 2\right] - \left[\frac{-1}{3} - (-1)\right]$$

$$= \left[\frac{8}{3} - \frac{6}{3}\right] - \left[\frac{-1}{3} + 1\right]$$

$$= \frac{2}{3} - \frac{2}{3} = 0$$

Geometric interpretation: The function $f(x) = x^2 - 1$ equals zero when $x = \pm 1$. Between $x = -1$ and $x = 1$, the parabola is below the $x$-axis (negative values). From $x = 1$ to $x = 2$, it is above the $x$-axis (positive values).

The integral being zero tells us that the negative area (below the axis) exactly cancels the positive area (above the axis). The net signed area is zero, even though there is definitely area enclosed by the curve and the axis.

If we wanted the total area (ignoring signs), we would need to compute: $$\int_{-1}^{1} |x^2 - 1|,dx + \int_{1}^{2} |x^2 - 1|,dx = \int_{-1}^{1} (1 - x^2),dx + \int_{1}^{2} (x^2 - 1),dx$$

Example 7: Midpoint Riemann Sum

Problem: Approximate $\int_0^4 \sqrt{x},dx$ using a midpoint Riemann sum with $n = 4$ subintervals. Compare to the exact value.

Solution:

Calculate $\Delta x$: $$\Delta x = \frac{4 - 0}{4} = 1$$

The subintervals are: $[0, 1]$, $[1, 2]$, $[2, 3]$, $[3, 4]$.

The midpoints are: $x = 0.5, 1.5, 2.5, 3.5$.

Evaluate $f(x) = \sqrt{x}$ at each midpoint:

  • $f(0.5) = \sqrt{0.5} \approx 0.7071$
  • $f(1.5) = \sqrt{1.5} \approx 1.2247$
  • $f(2.5) = \sqrt{2.5} \approx 1.5811$
  • $f(3.5) = \sqrt{3.5} \approx 1.8708$

The midpoint sum is: $$M_4 = (0.7071 + 1.2247 + 1.5811 + 1.8708) \cdot 1 \approx 5.3837$$

Exact value using FTC:

An antiderivative of $\sqrt{x} = x^{1/2}$ is $\frac{x^{3/2}}{3/2} = \frac{2}{3}x^{3/2}$.

$$\int_0^4 \sqrt{x},dx = \left[\frac{2}{3}x^{3/2}\right]_0^4 = \frac{2}{3}(4)^{3/2} - 0 = \frac{2}{3}(8) = \frac{16}{3} \approx 5.3333$$

The midpoint approximation of $5.3837$ is quite close to the exact value of $5.3333$, with an error of only about $0.95%$.

Key Properties and Rules

Understanding these properties will help you work with integrals efficiently and recognize patterns that simplify calculations.

Linearity Properties

Constant Multiple Rule: $$\int_a^b c \cdot f(x),dx = c \int_a^b f(x),dx$$

You can factor constants out of an integral. This makes sense: if you double the height of every rectangle in a Riemann sum, you double the total area.

Sum and Difference Rule: $$\int_a^b [f(x) \pm g(x)],dx = \int_a^b f(x),dx \pm \int_a^b g(x),dx$$

The integral of a sum equals the sum of the integrals. This allows you to break complex integrands into simpler pieces.

Properties Involving Limits of Integration

Reversing Limits: $$\int_a^b f(x),dx = -\int_b^a f(x),dx$$

Swapping the limits of integration changes the sign. Intuitively, you are now measuring area in the “backward” direction.

Zero-Width Interval: $$\int_a^a f(x),dx = 0$$

If the lower and upper limits are the same, there is no interval to integrate over, so the integral is zero.

Additivity of Intervals: $$\int_a^b f(x),dx + \int_b^c f(x),dx = \int_a^c f(x),dx$$

You can split an integral at any point and add the pieces back together. This is useful when a function has different formulas on different parts of the interval, or when it crosses the $x$-axis.

Comparison Properties

Non-negativity: If $f(x) \geq 0$ for all $x$ in $[a, b]$, then $\int_a^b f(x),dx \geq 0$.

Monotonicity: If $f(x) \leq g(x)$ for all $x$ in $[a, b]$, then $\int_a^b f(x),dx \leq \int_a^b g(x),dx$.

Bounding: If $m \leq f(x) \leq M$ for all $x$ in $[a, b]$, then $m(b-a) \leq \int_a^b f(x),dx \leq M(b-a)$.

This last property gives you quick bounds on an integral without having to compute it exactly.

Real-World Applications

The integral appears throughout science, engineering, economics, and everyday life. Here are some of the most common applications.

Distance from Velocity

If $v(t)$ is your velocity at time $t$, then the integral

$$\int_{t_1}^{t_2} v(t),dt$$

gives your displacement (net change in position) from time $t_1$ to time $t_2$.

For example, if you drive north at 60 mph for one hour and then south at 30 mph for one hour, your displacement is $60 - 30 = 30$ miles north, even though you traveled a total distance of 90 miles.

If velocity is always positive (you never reverse direction), then displacement equals total distance traveled. Otherwise, you need to account for the signed area.

Total Cost from Marginal Cost

In economics, the marginal cost $MC(x)$ is the cost of producing one additional unit when you are already producing $x$ units. The integral

$$\int_a^b MC(x),dx$$

gives the total cost of increasing production from $a$ units to $b$ units.

Similarly, if $MR(x)$ is marginal revenue, then $\int_a^b MR(x),dx$ gives the additional revenue from selling units $a$ through $b$.

Work Done by a Variable Force

In physics, work equals force times distance - but only when the force is constant. If the force varies with position, you need integration:

$$W = \int_a^b F(x),dx$$

This is essential for problems involving springs (where force depends on displacement), gravity (where force depends on distance from a planet), and many other situations.

Accumulation Over Time

Integration naturally models any process where something accumulates over time:

  • Population growth: If $r(t)$ is the rate of population change, then $\int_0^T r(t),dt$ is the total population change over time $T$.

  • Water flow: If $f(t)$ is the rate of water flowing into a tank (gallons per minute), then $\int_0^t f(s),ds$ is the total amount of water added by time $t$.

  • Pollution: If $p(t)$ is the rate at which pollutants enter a lake, then $\int_0^T p(t),dt$ is the total amount of pollution added over the time period.

  • Drug concentration: In pharmacology, integrating the rate of drug absorption gives the total amount of drug in the bloodstream.

Average Value of a Function

The average value of a function $f$ on the interval $[a, b]$ is defined as:

$$f_{\text{avg}} = \frac{1}{b-a} \int_a^b f(x),dx$$

This generalizes the idea of an average to continuous functions. For example, if $T(t)$ is the temperature at time $t$, the average temperature over a day is

$$T_{\text{avg}} = \frac{1}{24} \int_0^{24} T(t),dt$$

Self-Test Problems

Test your understanding with these practice problems. Try to solve each one before checking the answer.

Problem 1: Evaluate $\int_2^5 3,dx$ using the geometric interpretation.

Show Answer

The region under $y = 3$ from $x = 2$ to $x = 5$ is a rectangle with width $5 - 2 = 3$ and height $3$.

$$\int_2^5 3,dx = 3 \times 3 = 9$$

Problem 2: Set up (but do not compute the limit of) a right Riemann sum for $\int_1^3 x^2,dx$ with $n$ subintervals.

Show Answer

The interval is $[1, 3]$, so $\Delta x = \frac{3-1}{n} = \frac{2}{n}$.

The right endpoints are $x_i = 1 + i \cdot \Delta x = 1 + \frac{2i}{n}$ for $i = 1, 2, \ldots, n$.

The right Riemann sum is: $$R_n = \sum_{i=1}^{n} f\left(1 + \frac{2i}{n}\right) \cdot \frac{2}{n} = \sum_{i=1}^{n} \left(1 + \frac{2i}{n}\right)^2 \cdot \frac{2}{n}$$

Problem 3: Use the Fundamental Theorem of Calculus to evaluate $\int_0^2 (4x - 3),dx$.

Show Answer

Step 1: Find an antiderivative of $f(x) = 4x - 3$. $$F(x) = 2x^2 - 3x$$

Step 2: Apply the FTC. $$\int_0^2 (4x - 3),dx = [2x^2 - 3x]_0^2 = [2(4) - 6] - [0] = 8 - 6 = 2$$

Problem 4: If $\int_0^5 f(x),dx = 12$ and $\int_0^5 g(x),dx = 7$, find $\int_0^5 [2f(x) - 3g(x)],dx$.

Show Answer

Using linearity properties: $$\int_0^5 [2f(x) - 3g(x)],dx = 2\int_0^5 f(x),dx - 3\int_0^5 g(x),dx$$ $$= 2(12) - 3(7) = 24 - 21 = 3$$

Problem 5: Evaluate $\int_{-2}^{2} x^3,dx$ without computing an antiderivative. (Hint: Consider the symmetry of the function.)

Show Answer

The function $f(x) = x^3$ is an odd function, meaning $f(-x) = -f(x)$.

When you integrate an odd function over a symmetric interval $[-a, a]$, the positive and negative areas cancel exactly.

Therefore, $\int_{-2}^{2} x^3,dx = 0$.

We can verify: $\left[\frac{x^4}{4}\right]_{-2}^{2} = \frac{16}{4} - \frac{16}{4} = 0$.

Problem 6: If $\int_1^4 f(x),dx = 10$ and $\int_1^7 f(x),dx = 25$, find $\int_4^7 f(x),dx$.

Show Answer

Using the additivity property: $$\int_1^7 f(x),dx = \int_1^4 f(x),dx + \int_4^7 f(x),dx$$

$$25 = 10 + \int_4^7 f(x),dx$$

$$\int_4^7 f(x),dx = 15$$

Problem 7: Evaluate $\int_1^8 \frac{3}{\sqrt[3]{x^2}},dx$.

Show Answer

First, rewrite the integrand: $\frac{3}{\sqrt[3]{x^2}} = 3x^{-2/3}$.

Find the antiderivative: $$F(x) = 3 \cdot \frac{x^{1/3}}{1/3} = 9x^{1/3}$$

Apply the FTC: $$\int_1^8 3x^{-2/3},dx = [9x^{1/3}]_1^8 = 9(8^{1/3}) - 9(1^{1/3}) = 9(2) - 9(1) = 18 - 9 = 9$$

Problem 8: A particle moves along a line with velocity $v(t) = t^2 - 4t + 3$ meters per second. Find the displacement of the particle from $t = 0$ to $t = 3$ seconds.

Show Answer

Displacement is the integral of velocity: $$\text{Displacement} = \int_0^3 (t^2 - 4t + 3),dt$$

Find the antiderivative: $$F(t) = \frac{t^3}{3} - 2t^2 + 3t$$

Evaluate: $$\left[\frac{t^3}{3} - 2t^2 + 3t\right]_0^3 = \left[\frac{27}{3} - 18 + 9\right] - [0]$$ $$= 9 - 18 + 9 = 0$$

The particle returns to its starting position after 3 seconds, so the displacement is 0 meters.

Summary

Here are the key ideas from this lesson:

  • The definite integral $\int_a^b f(x),dx$ represents the signed area between the curve $y = f(x)$ and the $x$-axis from $x = a$ to $x = b$.

  • We can approximate integrals using Riemann sums - adding up the areas of rectangles. Left, right, and midpoint sums use different points to determine rectangle heights.

  • As the number of rectangles increases, Riemann sums converge to the exact integral: $$\int_a^b f(x),dx = \lim_{n \to \infty} \sum_{i=1}^{n} f(x_i^*) \Delta x$$

  • The Fundamental Theorem of Calculus connects integration and differentiation: if $F’(x) = f(x)$, then $$\int_a^b f(x),dx = F(b) - F(a)$$

  • Key properties of integrals include:

    • Linearity: constants factor out, sums split apart
    • Reversing limits changes the sign
    • Integrals over adjacent intervals can be combined
  • Integrals have wide applications: finding areas, computing distances from velocities, total quantities from rates, work from variable forces, and average values of functions.

  • For increasing functions, left sums underestimate and right sums overestimate. For decreasing functions, the opposite is true.

  • The integral gives signed area: regions below the $x$-axis contribute negatively, which is meaningful in applications like displacement.

You now have the foundational understanding of integration. In future lessons, you will learn techniques for finding antiderivatives of more complex functions and explore further applications of this powerful tool.