Chapter 19

Integral Calculus and Accumulation

The Concept of Accumulation and Riemann Sums

Introduction

In calculus, many important quantities are found by adding up many small pieces. This idea is called accumulation. For example, if you know the speed of a car at each moment, you can find the total distance traveled by adding small distance changes over time. If you know the height of a curve above the x-axis, you can estimate the area under the curve by adding the areas of many thin rectangles.

This is the main idea behind Riemann sums. A Riemann sum is a method for approximating total area or total accumulated change by dividing an interval into smaller parts and adding rectangular pieces. As the rectangles get thinner, the approximation becomes more accurate.

This lesson will explain what accumulation means, how left, right, and midpoint Riemann sums work, and how these ideas connect to antiderivatives and the Fundamental Theorem of Calculus.

1. The idea of accumulation

Suppose a quantity changes over an interval from \(x=a\) to \(x=b\). If the rate of change is given by a function \(f(x)\), then the total accumulated change can be approximated by multiplying the rate on a small interval by the width of that interval, then adding all those small pieces.

For one small interval of width \(\Delta x\), the amount accumulated is approximately

$$f(x)\Delta x$$

If we divide the whole interval into many subintervals, then the total accumulation is approximately

$$f(x_1)\Delta x+f(x_2)\Delta x+f(x_3)\Delta x+\cdots+f(x_n)\Delta x$$

This is a Riemann sum.

Geometrically, each term represents the area of a rectangle:

  • height = value of the function
  • width = \(\Delta x\)

So a Riemann sum can be used to estimate:

  • the area under a curve
  • the net accumulated change of a quantity

2. Dividing an interval into subintervals

Let the interval be \([a,b]\). If we divide it into \(n\) equal parts, then the width of each subinterval is

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

We then choose one x-value in each subinterval to determine the height of the rectangle.

The three most common choices are:

  • Left endpoint: use the left side of each interval
  • Right endpoint: use the right side of each interval
  • Midpoint: use the middle of each interval

If the partition points are

$$x_0=a,\ x_1=a+\Delta x,\ x_2=a+2\Delta x,\ \dots,\ x_n=b$$

then:

  • Left Riemann sum: $$L_n=\sum_{i=1}^{n} f(x_{i-1})\Delta x$$
  • Right Riemann sum: $$R_n=\sum_{i=1}^{n} f(x_i)\Delta x$$
  • Midpoint Riemann sum: $$M_n=\sum_{i=1}^{n} f\left(\frac{x_{i-1}+x_i}{2}\right)\Delta x$$

3. Left, right, and midpoint sums visually

Imagine the graph of a function on an interval.

For a left sum, each rectangle touches the curve at the left side of the subinterval. For a right sum, each rectangle touches the curve at the right side. For a midpoint sum, each rectangle touches the curve in the middle.

If the function is increasing on the interval:

  • the left sum usually underestimates the area
  • the right sum usually overestimates the area

If the function is decreasing:

  • the left sum usually overestimates
  • the right sum usually underestimates

The midpoint sum is often more accurate than left or right sums because it uses a value closer to the average height on each interval.

4. Worked Example 1: Left and right sums for a simple function

Approximate the area under \(f(x)=x^2\) on \([0,2]\) using \(n=4\) rectangles.

Step 1: Find \(\Delta x\)

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

The subintervals are:

$$[0,0.5],\ [0.5,1],\ [1,1.5],\ [1.5,2]$$

Step 2: Left Riemann sum

The left endpoints are:

$$0,\ 0.5,\ 1,\ 1.5$$

Now evaluate the function:

$$f(0)=0^2=0$$ $$f(0.5)=0.25$$ $$f(1)=1$$ $$f(1.5)=2.25$$

Add the rectangle areas:

$$L_4=\left(0+0.25+1+2.25\right)\left(\frac{1}{2}\right)$$ $$L_4=(3.5)\left(\frac{1}{2}\right)=1.75$$

Step 3: Right Riemann sum

The right endpoints are:

$$0.5,\ 1,\ 1.5,\ 2$$

Function values:

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

Add the rectangle areas:

$$R_4=\left(0.25+1+2.25+4\right)\left(\frac{1}{2}\right)$$ $$R_4=(7.5)\left(\frac{1}{2}\right)=3.75$$

Conclusion: The true area lies between \(1.75\) and \(3.75\). Since \(f(x)=x^2\) is increasing on \([0,2]\), the left sum is an underestimate and the right sum is an overestimate.

5. Worked Example 2: Midpoint sum

Use the midpoint Riemann sum to approximate the area under \(f(x)=x^2\) on \([0,2]\) with \(n=4\).

We already know that \(\Delta x=0.5\).

The midpoints of the four subintervals are:

$$0.25,\ 0.75,\ 1.25,\ 1.75$$

Evaluate the function:

$$f(0.25)=0.0625$$ $$f(0.75)=0.5625$$ $$f(1.25)=1.5625$$ $$f(1.75)=3.0625$$

Add the rectangle areas:

$$M_4=\left(0.0625+0.5625+1.5625+3.0625\right)(0.5)$$ $$M_4=(5.25)(0.5)=2.625$$

This estimate is between the left and right sums, and it is usually closer to the exact area.

6. Net area and accumulated change

Riemann sums do not always give just geometric area. They also measure accumulated change.

If the function is above the x-axis, the rectangles have positive area. If the function is below the x-axis, the rectangles count as negative. So a Riemann sum gives net signed area, which means positive areas minus negative areas.

This is important in real situations. For example:

  • if \(v(t)\) is velocity, then summing \(v(t)\Delta t\) gives change in position
  • positive velocity moves forward, negative velocity moves backward
  • the result is net change, not total distance

7. Worked Example 3: Accumulated change from a rate

A particle has velocity \(v(t)=2t+1\) for \(0\le t\le 3\). Use a right Riemann sum with \(n=3\) to approximate the change in position.

Step 1: Find \(\Delta t\)

$$\Delta t=\frac{3-0}{3}=1$$

The subintervals are:

$$[0,1],\ [1,2],\ [2,3]$$

Step 2: Use right endpoints

The right endpoints are:

$$1,\ 2,\ 3$$

Evaluate velocity:

$$v(1)=2(1)+1=3$$ $$v(2)=2(2)+1=5$$ $$v(3)=2(3)+1=7$$

Step 3: Form the sum

$$R_3=v(1)(1)+v(2)(1)+v(3)(1)$$ $$R_3=3+5+7=15$$

So the approximate change in position is

$$15$$

Because velocity is increasing, a right sum gives an overestimate here.

8. From Riemann sums to the definite integral

Riemann sums are approximations. But what happens if we use more and more rectangles, making each one thinner?

As \(n\) increases, the approximation improves. In the limit, the Riemann sum becomes the definite integral:

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

This integral represents the exact accumulated change, or the exact net area under the curve from \(x=a\) to \(x=b\).

So we can think of the definite integral as the value that Riemann sums approach when the number of rectangles becomes very large.

9. The Fundamental Theorem of Calculus

Calculating a large Riemann sum by hand can be slow. The Fundamental Theorem of Calculus gives a much faster way.

If \(F(x)\) is an antiderivative of \(f(x)\), meaning

$$F'(x)=f(x)$$

then

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

This means we can find exact accumulated change by:

  1. finding an antiderivative
  2. evaluating it at the upper limit
  3. subtracting its value at the lower limit

10. Worked Example 4: Compare a Riemann sum to the exact value

Find the exact area under \(f(x)=x^2\) on \([0,2]\), and compare it to the midpoint estimate from Example 2.

Step 1: Find an antiderivative

$$\int x^2\,dx=\frac{x^3}{3}+C$$

So an antiderivative is

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

Step 2: Apply the Fundamental Theorem of Calculus

$$\int_0^2 x^2\,dx=\left[\frac{x^3}{3}\right]_0^2$$ $$=\frac{2^3}{3}-\frac{0^3}{3}$$ $$=\frac{8}{3}$$

So the exact area is

$$\frac{8}{3}\approx 2.667$$

From Example 2, the midpoint estimate was

$$M_4=2.625$$

This is very close to the exact value. That shows how useful midpoint sums can be.

11. Important ideas to remember

  • Accumulation means adding many small changes to find a total.
  • A Riemann sum approximates total accumulation using rectangles.
  • The width of each rectangle is usually $$\Delta x=\frac{b-a}{n}$$
  • Left, right, and midpoint sums use different sample points for the rectangle heights.
  • For increasing functions, left sums tend to be low and right sums tend to be high.
  • The definite integral is the exact value that Riemann sums approach.
  • The Fundamental Theorem of Calculus lets us evaluate many integrals exactly using antiderivatives.

12. Common mistakes

  • Using the wrong \(\Delta x\): Always compute $$\Delta x=\frac{b-a}{n}$$ carefully.
  • Mixing up left and right endpoints: Left uses the beginning of each interval; right uses the end.
  • Forgetting to multiply by \(\Delta x\): The sum of function values alone is not the area estimate.
  • Ignoring negative values: If the graph is below the x-axis, the contribution is negative in accumulated change.
  • Thinking a Riemann sum is exact: It is usually an approximation unless you take the limit and use the definite integral.

Brief Summary

Riemann sums help us estimate total area and accumulated change by adding the areas of thin rectangles. Left, right, and midpoint sums differ by where the height of each rectangle is chosen. As the number of rectangles increases, the estimate approaches the definite integral. The Fundamental Theorem of Calculus then allows us to compute this exact accumulated value using antiderivatives.

Put what you read to the test

You've worked through The Concept of Accumulation and Riemann Sums. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.

The Definite Integral

Lesson: The Definite Integral

In calculus, we often want to answer questions about total accumulation. For example, we may want to know the total distance traveled from a velocity graph, or the area between a curve and the x-axis.

The mathematical tool used for this is the definite integral. It gives an exact value for accumulated change over an interval, and it can also represent geometric area.

In this lesson, you will learn what a definite integral means geometrically and analytically, how it comes from Riemann sums, and how to evaluate it using the Fundamental Theorem of Calculus.

1. What is a definite integral?

If we write

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

this is called the definite integral of the function \(f(x)\) from \(x=a\) to \(x=b\).

It represents the net area between the graph of \(y=f(x)\) and the x-axis from \(x=a\) to \(x=b\).

  • Area above the x-axis counts as positive.
  • Area below the x-axis counts as negative.

So the definite integral does not always mean ordinary area. It means signed area, also called net area.

2. Geometric idea: area under a curve

Suppose you want the area under the curve \(y=f(x)\) from \(x=a\) to \(x=b\). If the graph is a straight line or a simple shape, you may be able to use geometry.

But if the graph is curved, it is harder to find the exact area directly. So we approximate the area using many thin rectangles.

This is the main idea behind a Riemann sum.

3. Riemann sums: approximating with rectangles

Divide the interval \([a,b]\) into \(n\) small subintervals of equal width:

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

On each subinterval, choose a sample point and use the function value there as the height of a rectangle.

The approximate total area is

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

This is called a Riemann sum.

Here:

  • \(\Delta x\) is the width of each rectangle,
  • \(f(x_i)\) is the height of the rectangle,
  • \(f(x_i)\Delta x\) is the area of one rectangle.

When we add all the rectangles, we get an approximation of the total area or accumulation.

4. From approximation to exact value

If we use more and more rectangles, each rectangle becomes thinner, and the approximation gets better.

The exact value is found by taking the limit 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$$

This is the formal definition of the definite integral.

So the definite integral is the limit of an infinite Riemann sum.

5. Important notation

  • \(\int\) is the integral sign.
  • \(a\) is the lower limit.
  • \(b\) is the upper limit.
  • \(f(x)\) is the function being integrated.
  • \(dx\) shows the variable and reminds us that the widths are measured in the x-direction.

For example, in

$$\int_1^4 (2x+3)\,dx$$

we are finding the net area under \(y=2x+3\) from \(x=1\) to \(x=4\).

6. Left, right, and midpoint sums

There are different ways to choose the sample point in each subinterval:

  • Left Riemann sum: use the left endpoint,
  • Right Riemann sum: use the right endpoint,
  • Midpoint sum: use the midpoint.

All of these are approximations. As \(n\) becomes very large, they approach the same exact value, provided the function behaves nicely on the interval.

7. Evaluating definite integrals using antiderivatives

Although the definite integral is defined using limits of sums, in practice we usually evaluate it using antiderivatives.

This is possible because of the Fundamental Theorem of Calculus.

If \(F'(x)=f(x)\), then

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

This means:

  1. Find an antiderivative \(F(x)\) of \(f(x)\),
  2. Substitute the upper limit \(b\),
  3. Subtract the value at the lower limit \(a\).

This is often written as

$$\int_a^b f(x)\,dx = \left[F(x)\right]_a^b = F(b)-F(a)$$

8. Worked Example 1: Exact area from geometry

Find \(\int_0^3 x\,dx\) using geometry.

The graph of \(y=x\) from \(x=0\) to \(x=3\) forms a right triangle under the line.

The base is \(3\) and the height is \(3\).

So the area is

$$\frac{1}{2}\times 3 \times 3 = \frac{9}{2}$$

Therefore,

$$\int_0^3 x\,dx = \frac{9}{2}$$

This example shows the geometric meaning of the definite integral.

9. Worked Example 2: Approximate with a Riemann sum

Approximate \(\int_0^2 x^2\,dx\) using a right Riemann sum with \(n=4\).

Step 1: Find \(\Delta x\)

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

Step 2: Find the right endpoints

The subintervals are:

  • \([0,0.5]\)
  • \([0.5,1]\)
  • \([1,1.5]\)
  • \([1.5,2]\)

The right endpoints are

$$0.5,\ 1,\ 1.5,\ 2$$

Step 3: Evaluate the function at those points

$$f(x)=x^2$$ $$f(0.5)=0.25,\quad f(1)=1,\quad f(1.5)=2.25,\quad f(2)=4$$

Step 4: Form the Riemann sum

$$\sum f(x_i)\Delta x = (0.25+1+2.25+4)\left(\frac{1}{2}\right)$$ $$= 7.5\left(\frac{1}{2}\right)=3.75$$

So the right Riemann sum approximation is

$$\int_0^2 x^2\,dx \approx 3.75$$

This is only an approximation because we used a finite number of rectangles.

10. Worked Example 3: Evaluate exactly using the Fundamental Theorem of Calculus

Find

$$\int_0^2 x^2\,dx$$

Step 1: Find an antiderivative

An antiderivative of \(x^2\) is

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

Step 2: Apply the limits

$$\int_0^2 x^2\,dx = \left[\frac{x^3}{3}\right]_0^2$$ $$= \frac{2^3}{3}-\frac{0^3}{3} = \frac{8}{3}$$

So the exact value is

$$\int_0^2 x^2\,dx = \frac{8}{3}$$

Notice that

$$\frac{8}{3} \approx 2.67$$

This is different from the right Riemann sum value \(3.75\), because the approximation used only 4 rectangles. If we used more rectangles, the Riemann sum would get closer to \(\frac{8}{3}\).

11. Worked Example 4: Net area when the graph goes below the x-axis

Evaluate

$$\int_{-1}^{2} x\,dx$$

Step 1: Find an antiderivative

$$F(x)=\frac{x^2}{2}$$

Step 2: Apply the limits

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

So the definite integral is

$$\int_{-1}^{2} x\,dx = \frac{3}{2}$$

Why is the answer positive?

From \(-1\) to \(0\), the graph of \(y=x\) lies below the x-axis, so that part counts as negative area. From \(0\) to \(2\), the graph lies above the x-axis, so that part counts as positive area.

The positive area is larger than the negative area, so the net result is positive.

12. Key properties of definite integrals

  • \(\int_a^a f(x)\,dx = 0\)
  • \(\int_a^b f(x)\,dx = -\int_b^a f(x)\,dx\)
  • \(\int_a^b [f(x)+g(x)]\,dx = \int_a^b f(x)\,dx + \int_a^b g(x)\,dx\)
  • \(\int_a^b kf(x)\,dx = k\int_a^b f(x)\,dx\), where \(k\) is a constant
  • If \(c\) is between \(a\) and \(b\), then
$$\int_a^b f(x)\,dx = \int_a^c f(x)\,dx + \int_c^b f(x)\,dx$$

These properties help simplify and check calculations.

13. Definite integral as accumulated change

The definite integral is not only about area. It also measures total accumulated change.

For example, if \(v(t)\) is velocity, then

$$\int_a^b v(t)\,dt$$

gives the net change in position from time \(a\) to time \(b\).

If a rate tells you how fast something changes, then the definite integral adds up that rate over time or over an interval.

This is why definite integrals are so important in calculus.

14. Common mistakes to avoid

  • Confusing definite and indefinite integrals: a definite integral has limits and gives a number.
  • Forgetting the lower limit: always compute \(F(b)-F(a)\), not just \(F(b)\).
  • Ignoring negative area: parts below the x-axis subtract from the total.
  • Using too few rectangles in a Riemann sum and expecting an exact answer: a finite Riemann sum is an approximation.
  • Mixing up \(\Delta x\) and function values: rectangle area is height times width, \(f(x_i)\Delta x\).

15. How everything connects

The definite integral can be understood in two connected ways:

  • Geometrically: it is the net area under a curve.
  • Analytically: it is the limit of a Riemann sum.

Then the Fundamental Theorem of Calculus connects this idea to antiderivatives, giving us an efficient way to find exact values.

Brief Summary

A definite integral, written as \(\int_a^b f(x)\,dx\), gives the exact net area or total accumulation over an interval. It is defined as the limit of a Riemann sum, where many thin rectangles approximate the region under a curve. In practice, we usually evaluate definite integrals using antiderivatives and the Fundamental Theorem of Calculus: \(\int_a^b f(x)\,dx=F(b)-F(a)\).

Put what you read to the test

You've worked through The Definite Integral. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.

Antiderivatives and Indefinite Integrals

Antiderivatives and Indefinite Integrals

In calculus, you have already learned how to differentiate a function. Differentiation tells us the rate at which something changes. Now we study the reverse idea: antidifferentiation.

An antiderivative of a function is a function whose derivative gives the original function. In other words, if differentiating takes us forward, then finding an antiderivative takes us backward.

For example, since \(\frac{d}{dx}(x^3)=3x^2\), an antiderivative of \(3x^2\) is \(x^3\).

This reverse process is written using the indefinite integral symbol:

$$\int f(x)\,dx$$

This means “find the family of all antiderivatives of \(f(x)\).”

The result of an indefinite integral is not just one function. It is a whole family of functions that differ by a constant. That is why we always add \(C\), called the constant of integration.

For example, all of these functions have the same derivative:

$$x^3,\quad x^3+2,\quad x^3-7,\quad x^3+100$$

Each one has derivative \(3x^2\), because the derivative of any constant is 0. So we write:

$$\int 3x^2\,dx = x^3 + C$$

Here, \(C\) stands for any real number.

Why is the constant of integration necessary?

When we differentiate, constants disappear. For example:

$$\frac{d}{dx}(x^2+5)=2x \qquad \text{and} \qquad \frac{d}{dx}(x^2-12)=2x$$

So if we only know the derivative \(2x\), we cannot tell whether the original function was \(x^2+5\), \(x^2-12\), or \(x^2+C\). That is why every indefinite integral must include \(C\).

Definition

If \(F'(x)=f(x)\), then:

$$\int f(x)\,dx = F(x)+C$$

This says that the indefinite integral of \(f(x)\) is the family of all functions whose derivative is \(f(x)\).

Basic antiderivative rules

Most indefinite integrals in Grade 12 come from reversing common derivative rules.

  • Power rule for antiderivatives:
    If \(n\neq -1\), then $$\int x^n\,dx = \frac{x^{n+1}}{n+1}+C$$
  • Constant multiple rule:
    $$\int kf(x)\,dx = k\int f(x)\,dx$$
  • Sum and difference rule:
    $$\int \left(f(x)\pm g(x)\right)dx = \int f(x)\,dx \pm \int g(x)\,dx$$
  • Integral of a constant:
    $$\int a\,dx = ax + C$$

A very important caution

The power rule for antiderivatives works only when \(n\neq -1\). So:

$$\int x^{-1}\,dx = \int \frac{1}{x}\,dx$$

does not follow the usual power rule. In later study, this integral becomes \(\ln|x|+C\). For now, just remember that \(x^{-1}\) is a special case.

How to find an indefinite integral

  1. Look at the function you are integrating.
  2. Identify each term separately.
  3. Apply the appropriate antiderivative rule.
  4. Simplify the result.
  5. Always add \(C\).

Worked Example 1: A basic power rule integral

Find:

$$\int 6x^5\,dx$$

Step 1: Use the constant multiple rule.

$$\int 6x^5\,dx = 6\int x^5\,dx$$

Step 2: Apply the power rule for antiderivatives.

$$6\int x^5\,dx = 6\left(\frac{x^6}{6}\right)+C$$

Step 3: Simplify.

$$\int 6x^5\,dx = x^6 + C$$

Check:

$$\frac{d}{dx}(x^6+C)=6x^5$$

So the answer is correct.

Worked Example 2: A polynomial with several terms

Find:

$$\int (4x^3-2x+7)\,dx$$

Integrate each term separately.

$$\int (4x^3-2x+7)\,dx = \int 4x^3\,dx - \int 2x\,dx + \int 7\,dx$$

Now apply the rules:

$$\int 4x^3\,dx = 4\cdot \frac{x^4}{4}=x^4$$ $$\int 2x\,dx = 2\cdot \frac{x^2}{2}=x^2$$ $$\int 7\,dx = 7x$$

Put the terms together:

$$\int (4x^3-2x+7)\,dx = x^4 - x^2 + 7x + C$$

Check:

$$\frac{d}{dx}(x^4-x^2+7x+C)=4x^3-2x+7$$

Worked Example 3: Fractional and negative powers

Find:

$$\int \left(3x^{1/2}+2x^{-3}\right)dx$$

Integrate each term separately.

$$\int 3x^{1/2}\,dx + \int 2x^{-3}\,dx$$

First term:

$$\int 3x^{1/2}\,dx = 3\left(\frac{x^{3/2}}{3/2}\right)=3\left(\frac{2}{3}x^{3/2}\right)=2x^{3/2}$$

Second term:

$$\int 2x^{-3}\,dx = 2\left(\frac{x^{-2}}{-2}\right)=-x^{-2}$$

So the full answer is:

$$\int \left(3x^{1/2}+2x^{-3}\right)dx = 2x^{3/2} - x^{-2} + C$$

Check:

$$\frac{d}{dx}(2x^{3/2})=2\cdot \frac{3}{2}x^{1/2}=3x^{1/2}$$ $$\frac{d}{dx}(-x^{-2})=2x^{-3}$$

So the answer is correct.

Worked Example 4: Finding a family of functions

Suppose \(f'(x)=5x^4-8\). Find \(f(x)\).

This means we need an antiderivative of \(5x^4-8\):

$$f(x)=\int (5x^4-8)\,dx$$

Integrate term by term:

$$f(x)=5\left(\frac{x^5}{5}\right)-8x+C$$ $$f(x)=x^5-8x+C$$

This is a family of possible functions, not just one function.

If extra information is given, we can find the exact value of \(C\).

For example, if we also know that \(f(1)=4\), then:

$$f(1)=1^5-8(1)+C=4$$ $$1-8+C=4$$ $$-7+C=4$$ $$C=11$$

So in that case, the specific function is:

$$f(x)=x^5-8x+11$$

Connection to accumulated change

Antiderivatives are important because they help us measure accumulated change and area in calculus. If a function gives a rate of change, then its antiderivative gives the total change that has built up.

This idea becomes especially important when studying definite integrals and the Fundamental Theorem of Calculus. Before doing that, it is essential to understand that an indefinite integral gives a whole family of functions.

Common mistakes to avoid

  • Forgetting \(C\): Every indefinite integral must include the constant of integration.
  • Using the power rule incorrectly: Remember to add 1 to the exponent, then divide by the new exponent.
  • Not integrating every term: In a polynomial, each term must be integrated separately.
  • Treating \(\int x^{-1}dx\) like a normal power: \(x^{-1}\) is a special case.
  • Confusing differentiation and antidifferentiation: Antidifferentiation reverses the derivative process.

Quick comparison: derivative vs antiderivative

  • If \(f(x)=x^4\), then \(f'(x)=4x^3\).
  • If \(g(x)=4x^3\), then an antiderivative is \(x^4+C\).

Differentiation gives one answer. Antidifferentiation gives a family of answers because of the missing constant.

Practice to think about

Try these on your own:

  • \(\int 9x^2\,dx\)
  • \(\int (2x^5+3x^2-4)\,dx\)
  • If \(h'(x)=6x-1\), find \(h(x)\)

Brief Summary

An antiderivative reverses differentiation. The notation \(\int f(x)\,dx\) means find the indefinite integral, which is the family of all functions whose derivative is \(f(x)\).

Because constants disappear when differentiated, every indefinite integral must include the constant of integration, \(C\). To evaluate indefinite integrals, use rules such as the power rule, the constant multiple rule, and the sum rule, and always check your answer by differentiating.

Put what you read to the test

You've worked through Antiderivatives and Indefinite Integrals. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.

Properties of Definite Integrals

Properties of Definite Integrals help us simplify and evaluate integrals without always finding the antiderivative first. These properties are especially useful when the limits change, when a function is split into parts, or when the graph has symmetry.

In 12th Grade calculus, a definite integral such as \(\int_a^b f(x)\,dx\) represents the accumulated change of \(f(x)\) from \(x=a\) to \(x=b\). It can also represent signed area between the graph and the \(x\)-axis. Positive area above the axis is counted positively, and area below the axis is counted negatively.

This lesson focuses on four main algebraic properties:

  • Interval additivity
  • Boundary reversal
  • Linearity
  • Symmetry

Once you understand these, many definite integral questions become much shorter and easier.

1. Interval Additivity

If a point \(c\) lies between \(a\) and \(b\), then:

$$\int_a^b f(x)\,dx = \int_a^c f(x)\,dx + \int_c^b f(x)\,dx$$

This means you can split an integral across an interval. The total accumulation from \(a\) to \(b\) is the sum of the accumulation from \(a\) to \(c\) and from \(c\) to \(b\).

This property is useful when:

  • the function changes behavior at some point,
  • you are given values of smaller integrals,
  • or you want to break a difficult interval into simpler parts.

For example, if you know:

$$\int_1^4 f(x)\,dx = 7 \quad \text{and} \quad \int_4^6 f(x)\,dx = -2$$

then:

$$\int_1^6 f(x)\,dx = \int_1^4 f(x)\,dx + \int_4^6 f(x)\,dx = 7 + (-2) = 5$$

2. Boundary Reversal

If the limits of integration are reversed, the sign of the integral changes:

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

This makes sense because accumulation from left to right has the opposite sign of accumulation from right to left.

A special case happens when the limits are the same:

$$\int_a^a f(x)\,dx = 0$$

There is no interval, so there is no accumulation.

3. Linearity of Definite Integrals

The definite integral is linear. This gives us two very important rules.

(a) Sum or difference of functions

$$\int_a^b \big(f(x) \pm g(x)\big)\,dx = \int_a^b f(x)\,dx \pm \int_a^b g(x)\,dx$$

(b) Constant multiple rule

$$\int_a^b kf(x)\,dx = k\int_a^b f(x)\,dx$$

where \(k\) is a constant.

Together, these allow us to pull constants out and split complicated expressions into simpler integrals.

For example:

$$\int_0^2 (3x^2 - 4x + 5)\,dx = 3\int_0^2 x^2\,dx - 4\int_0^2 x\,dx + \int_0^2 5\,dx$$

This is often the first step before evaluating with antiderivatives.

4. Symmetry Properties

Symmetry can greatly reduce work, especially when the interval is of the form \([-a,a]\).

There are two main types of symmetry you should know.

(a) Even functions

A function is even if:

$$f(-x)=f(x)$$

Its graph is symmetric about the \(y\)-axis. For an even function:

$$\int_{-a}^a f(x)\,dx = 2\int_0^a f(x)\,dx$$

This happens because the left and right sides contribute equal amounts.

Common even functions include \(x^2\), \(x^4\), and \(\cos x\).

(b) Odd functions

A function is odd if:

$$f(-x)=-f(x)$$

Its graph has rotational symmetry about the origin. For an odd function:

$$\int_{-a}^a f(x)\,dx = 0$$

This happens because the area on one side cancels the signed area on the other side.

Common odd functions include \(x\), \(x^3\), and \(\sin x\).

Important note: symmetry rules only apply when the limits are symmetric, like \([-3,3]\), \([-5,5]\), or \([-a,a]\).

Useful Basic Results

  • $$\int_a^a f(x)\,dx = 0$$
  • $$\int_a^b f(x)\,dx = -\int_b^a f(x)\,dx$$
  • $$\int_a^b k\,dx = k(b-a)$$ for a constant \(k\)
  • $$\int_a^b (f(x)+g(x))\,dx = \int_a^b f(x)\,dx + \int_a^b g(x)\,dx$$
  • $$\int_a^b (f(x)-g(x))\,dx = \int_a^b f(x)\,dx - \int_a^b g(x)\,dx$$
  • $$\int_a^b kf(x)\,dx = k\int_a^b f(x)\,dx$$
  • $$\int_a^b f(x)\,dx = \int_a^c f(x)\,dx + \int_c^b f(x)\,dx$$

Worked Example 1: Using interval additivity

Suppose:

$$\int_2^5 f(x)\,dx = 8 \quad \text{and} \quad \int_5^9 f(x)\,dx = -3$$

Find \(\int_2^9 f(x)\,dx\).

Solution:

By interval additivity,

$$\int_2^9 f(x)\,dx = \int_2^5 f(x)\,dx + \int_5^9 f(x)\,dx$$

Substitute the given values:

$$\int_2^9 f(x)\,dx = 8 + (-3)=5$$

Answer: \(\int_2^9 f(x)\,dx = 5\)

Worked Example 2: Using boundary reversal

Given:

$$\int_1^7 f(x)\,dx = 12$$

Find \(\int_7^1 f(x)\,dx\).

Solution:

Reverse the limits, so the sign changes:

$$\int_7^1 f(x)\,dx = -\int_1^7 f(x)\,dx$$

Therefore,

$$\int_7^1 f(x)\,dx = -12$$

Answer: \(-12\)

Worked Example 3: Using linearity

Evaluate:

$$\int_0^3 (2x+4)\,dx$$

Solution:

First use linearity:

$$\int_0^3 (2x+4)\,dx = 2\int_0^3 x\,dx + \int_0^3 4\,dx$$

Now evaluate each part using antiderivatives.

For \(\int_0^3 x\,dx\):

$$\int_0^3 x\,dx = \left[\frac{x^2}{2}\right]_0^3 = \frac{9}{2}$$

For \(\int_0^3 4\,dx\):

$$\int_0^3 4\,dx = 4(3-0)=12$$

So:

$$2\int_0^3 x\,dx + \int_0^3 4\,dx = 2\left(\frac{9}{2}\right)+12 = 9+12=21$$

Answer: $$\int_0^3 (2x+4)\,dx = 21$$

Worked Example 4: Using symmetry

Evaluate:

$$\int_{-2}^2 (x^3+5x)\,dx$$

Solution:

Look at the function:

$$f(x)=x^3+5x$$

Check whether it is odd:

$$f(-x)=(-x)^3+5(-x)=-x^3-5x=-(x^3+5x)=-f(x)$$

So \(f(x)\) is an odd function. The interval is symmetric: \([-2,2]\).

Therefore, by the symmetry property:

$$\int_{-2}^2 (x^3+5x)\,dx = 0$$

Answer: \(0\)

One More Symmetry Example

Evaluate:

$$\int_{-3}^3 (x^2+1)\,dx$$

The function \(x^2+1\) is even because:

$$f(-x)=(-x)^2+1=x^2+1=f(x)$$

So:

$$\int_{-3}^3 (x^2+1)\,dx = 2\int_0^3 (x^2+1)\,dx$$

Now evaluate:

$$2\int_0^3 (x^2+1)\,dx = 2\left[\frac{x^3}{3}+x\right]_0^3$$

$$=2\left(\frac{27}{3}+3\right)=2(9+3)=24$$

Answer: \(24\)

How to Choose the Right Property

  1. Check the limits. Are they reversed? Are they the same? Are they symmetric like \([-a,a]\)?
  2. Check the function. Is it a sum, difference, or constant multiple? Is it even or odd?
  3. If values of smaller integrals are given, think about interval additivity.
  4. If the integrand is long, use linearity to split it into simpler pieces.

Common Mistakes to Avoid

  • Forgetting the negative sign when reversing the limits.
  • Using symmetry when the interval is not symmetric. For example, \(\int_{-2}^3 x^3\,dx\) is not automatically 0.
  • Confusing odd and even functions.
  • Thinking definite integrals always mean positive area. They represent signed area.
  • Not splitting correctly when using interval additivity.

Quick Check

  • If \(\int_0^4 f(x)\,dx=6\), then \(\int_4^0 f(x)\,dx=-6\).
  • If \(\int_1^3 f(x)\,dx=2\) and \(\int_3^6 f(x)\,dx=5\), then \(\int_1^6 f(x)\,dx=7\).
  • If \(f(x)\) is odd, then \(\int_{-a}^a f(x)\,dx=0\).
  • If \(f(x)\) is even, then \(\int_{-a}^a f(x)\,dx=2\int_0^a f(x)\,dx\).

Summary

The properties of definite integrals allow you to manipulate integrals algebraically before evaluating them. You can split intervals, reverse limits, separate sums and constant multiples, and use symmetry for even and odd functions.

These properties save time and often make difficult problems much simpler. When solving a question, always look first for structure in the limits and the function before doing long calculations.

Put what you read to the test

You've worked through Properties of Definite Integrals. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.

The Fundamental Theorem of Calculus (Part 1)

Introduction

In calculus, a definite integral such as \(\int_a^b f(x)\,dx\) represents the accumulated change of a quantity from \(x=a\) to \(x=b\). It can also represent the signed area between the graph of \(f(x)\) and the \(x\)-axis over that interval.

If we tried to find this value only by adding many tiny pieces, the process would take a long time. The Fundamental Theorem of Calculus (Part 1) gives us a much faster method. It connects two big ideas in calculus: antiderivatives and definite integrals.

This theorem tells us that if we know an antiderivative of a function, we can evaluate a definite integral by finding the difference between antiderivative values at the endpoints of the interval.

The Main Idea

Suppose \(f(x)\) is continuous on the interval \([a,b]\), and suppose \(F(x)\) is an antiderivative of \(f(x)\). That means

$$F'(x)=f(x).$$

Then the Fundamental Theorem of Calculus says

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

This is often written using bracket notation:

$$\int_a^b f(x)\,dx = \left[F(x)\right]_a^b = F(b)-F(a).$$

What this means: to evaluate a definite integral, you do not add a constant \(C\) when using the antiderivative. You simply:

  1. Find an antiderivative \(F(x)\) of the integrand.
  2. Substitute the upper limit \(b\).
  3. Substitute the lower limit \(a\).
  4. Subtract: upper value minus lower value.

Why this is useful

Before this theorem, definite integrals were built from Riemann sums, which add up many narrow rectangles to estimate total accumulation. The Fundamental Theorem shows that this accumulation can be found exactly by using antiderivatives.

So the theorem creates a bridge:

  • Riemann sums and area tell us what a definite integral means.
  • Antiderivatives tell us how to compute it efficiently.

Important notes

  • A definite integral gives a number, not a function.
  • The expression \(F(b)-F(a)\) is called evaluating the antiderivative at the boundaries.
  • The result is signed area: area above the \(x\)-axis counts as positive, and area below the \(x\)-axis counts as negative.
  • If the graph goes below the \(x\)-axis, the definite integral may be negative.

How to Evaluate a Definite Integral

  1. Write the integral clearly.
  2. Find an antiderivative of the function inside the integral.
  3. Use the limits of integration.
  4. Simplify carefully.

For example, if you need to compute

$$\int_1^4 3x^2\,dx,$$

an antiderivative of \(3x^2\) is \(x^3\). Then

$$\int_1^4 3x^2\,dx = \left[x^3\right]_1^4 = 4^3-1^3 = 64-1 = 63.$$

Worked Example 1: A basic polynomial integral

Evaluate

$$\int_0^2 x^2\,dx.$$

Step 1: Find an antiderivative.

An antiderivative of \(x^2\) is

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

Step 2: Apply the theorem.

$$\int_0^2 x^2\,dx = \left[\frac{x^3}{3}\right]_0^2.$$

Step 3: Substitute the bounds.

$$= \frac{2^3}{3}-\frac{0^3}{3} = \frac{8}{3}-0 = \frac{8}{3}.$$

Answer: \(\frac{8}{3}\)

This means the accumulated change, or signed area, from \(x=0\) to \(x=2\) is \(\frac{8}{3}\).

Worked Example 2: A polynomial with more than one term

Evaluate

$$\int_1^3 (2x+5)\,dx.$$

Step 1: Find an antiderivative.

An antiderivative of \(2x+5\) is

$$F(x)=x^2+5x.$$

Step 2: Apply the theorem.

$$\int_1^3 (2x+5)\,dx = \left[x^2+5x\right]_1^3.$$

Step 3: Evaluate at the upper bound.

$$F(3)=3^2+5(3)=9+15=24.$$

Step 4: Evaluate at the lower bound.

$$F(1)=1^2+5(1)=1+5=6.$$

Step 5: Subtract.

$$24-6=18.$$

Answer: \(18\)

Worked Example 3: An integral with a negative result

Evaluate

$$\int_0^2 (-4x)\,dx.$$

Step 1: Find an antiderivative.

An antiderivative of \(-4x\) is

$$F(x)=-2x^2.$$

Step 2: Apply the theorem.

$$\int_0^2 (-4x)\,dx = \left[-2x^2\right]_0^2.$$

Step 3: Substitute the bounds.

$$= -2(2^2)-\big(-2(0^2)\big) = -8-0 = -8.$$

Answer: \(-8\)

The result is negative because the graph of \(y=-4x\) is below the \(x\)-axis on the interval \([0,2]\). The definite integral measures signed area, so below the axis gives a negative value.

Worked Example 4: Using trigonometric functions

Evaluate

$$\int_0^{\pi} \sin x\,dx.$$

Step 1: Find an antiderivative.

An antiderivative of \(\sin x\) is

$$F(x)=-\cos x.$$

Step 2: Apply the theorem.

$$\int_0^{\pi} \sin x\,dx = \left[-\cos x\right]_0^{\pi}.$$

Step 3: Substitute the bounds.

$$= -\cos(\pi)-\big(-\cos(0)\big).$$

Now use \(\cos(\pi)=-1\) and \(\cos(0)=1\):

$$= -(-1)-(-1)=1+1=2.$$

Answer: \(2\)

Common mistakes to avoid

  • Adding \(C\): For definite integrals, you do not need \(+C\). That is only used with indefinite integrals.
  • Forgetting the order: Always do upper limit minus lower limit, so \(F(b)-F(a)\), not the other way around.
  • Not using parentheses: When substituting the lower bound, use parentheses carefully, especially with negatives.
  • Confusing area and signed area: A definite integral can be negative if the function is below the \(x\)-axis.

Definite integral vs. indefinite integral

It is important to tell these apart.

  • Indefinite integral: $$\int f(x)\,dx = F(x)+C$$ This gives a family of antiderivatives.
  • Definite integral: $$\int_a^b f(x)\,dx = F(b)-F(a)$$ This gives one numerical value.

Connection to accumulation

You may see a definite integral used in situations involving motion, growth, or total change. For example, if \(f(x)\) gives a rate of change, then

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

gives the total accumulated change from \(a\) to \(b\).

This is why the Fundamental Theorem of Calculus is so important. It lets us move from a rate of change to a total change by using antiderivatives.

Quick practice ideas

Try using the theorem on each of these:

  • $$\int_0^1 4x^3\,dx$$
  • $$\int_2^5 (x-1)\,dx$$
  • $$\int_0^3 6\,dx$$

As you practice, always ask yourself:

  • What is the antiderivative?
  • What are the interval boundaries?
  • Did I subtract in the correct order?

Summary

The Fundamental Theorem of Calculus (Part 1) says that if \(F'(x)=f(x)\), then

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

This allows us to evaluate definite integrals quickly by finding an antiderivative and subtracting its value at the endpoints. It connects the idea of accumulated change and signed area with the process of antidifferentiation.

Put what you read to the test

You've worked through The Fundamental Theorem of Calculus (Part 1). Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.

The Fundamental Theorem of Calculus (Part 2)

Lesson: The Fundamental Theorem of Calculus (Part 2)

In calculus, two big ideas appear again and again: differentiation, which measures rate of change, and integration, which measures accumulated change or area. At first, these ideas may seem unrelated. The Fundamental Theorem of Calculus shows that they are actually deeply connected.

In this lesson, we focus on Part 2 of the theorem. This part explains what happens when we differentiate a function that is defined by an integral. In other words, it proves that integration and differentiation undo each other in a very precise way.

This is one of the most important results in all of calculus, because it lets us move between area, accumulation, and derivatives with confidence.

1. The idea of an accumulation function

Suppose we define a new function by

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

Here, \(f(t)\) is the function we are accumulating, and \(a\) is a fixed starting point. The variable at the top of the integral is \(x\), so as \(x\) changes, the amount of accumulated area changes too.

This kind of function is called an accumulation function. It measures the net area under the curve \(y=f(t)\) from \(t=a\) to \(t=x\).

For example, if

$$F(x)=\int_0^x t^2\,dt$$

then \(F(x)\) gives the area under \(y=t^2\) from \(0\) to \(x\).

2. Statement of the Fundamental Theorem of Calculus (Part 2)

If \(f\) is continuous on an interval, and

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

then

$$F'(x)=f(x).$$

This means that if you build a function by accumulating the values of \(f\), then differentiating that accumulation function gives you back the original function.

So differentiation and integration are inverse processes:

  • Integrating \(f\) creates an accumulation function.
  • Differentiating that accumulation function returns \(f\).

3. Why this makes sense intuitively

Think about

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

If we increase \(x\) by a very small amount, say \(h\), then the accumulated area also increases. The extra area is approximately a thin rectangle with:

  • width \(h\)
  • height \(f(x)\)

So the change in area is approximately

$$f(x)\cdot h.$$

Therefore, the rate of change of the accumulation function should be about

$$\frac{f(x)h}{h}=f(x).$$

This is the key reason why \(F'(x)=f(x)\).

4. A more formal derivation

Let

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

To find \(F'(x)\), use the definition of derivative:

$$F'(x)=\lim_{h\to 0}\frac{F(x+h)-F(x)}{h}.$$

Now substitute the definition of \(F\):

$$F'(x)=\lim_{h\to 0}\frac{\int_a^{x+h} f(t)\,dt-\int_a^x f(t)\,dt}{h}.$$

Using properties of definite integrals,

$$\int_a^{x+h} f(t)\,dt-\int_a^x f(t)\,dt=\int_x^{x+h} f(t)\,dt.$$

So

$$F'(x)=\lim_{h\to 0}\frac{1}{h}\int_x^{x+h} f(t)\,dt.$$

This expression is the average value of \(f\) on the interval from \(x\) to \(x+h\). As \(h\to 0\), that interval becomes very small. Because \(f\) is continuous, the average value approaches \(f(x)\).

Therefore,

$$F'(x)=f(x).$$

5. Important note about the variable inside the integral

In an integral like

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

the letter \(t\) is called a dummy variable. It is just a placeholder. We could use another letter:

$$\int_a^x f(u)\,du$$

means exactly the same thing.

What matters is that the upper limit is \(x\), because that is the variable the accumulation depends on.

6. A very useful extension: when the upper limit is not just \(x\)

Sometimes the function is defined like this:

$$F(x)=\int_a^{g(x)} f(t)\,dt.$$

In this case, we combine the Fundamental Theorem of Calculus with the chain rule:

$$F'(x)=f(g(x))\cdot g'(x).$$

This is an important pattern to remember.

For example, if

$$F(x)=\int_1^{x^2} \sqrt{1+t^3}\,dt,$$

then

$$F'(x)=\sqrt{1+(x^2)^3}\cdot 2x=2x\sqrt{1+x^6}.$$

7. Worked Example 1: Basic accumulation function

Find the derivative of

$$F(x)=\int_2^x (3t^2-4t+1)\,dt.$$

Step 1: Recognize the form \(\int_a^x f(t)\,dt\).

Here,

$$f(t)=3t^2-4t+1.$$

Step 2: Apply the Fundamental Theorem of Calculus.

$$F'(x)=f(x)=3x^2-4x+1.$$

Answer:

$$F'(x)=3x^2-4x+1.$$

This example shows the main idea directly: differentiating the integral gives back the integrand, with \(t\) replaced by \(x\).

8. Worked Example 2: Trigonometric function

Find the derivative of

$$G(x)=\int_0^x \cos(5t)\,dt.$$

Step 1: Identify the integrand.

$$f(t)=\cos(5t).$$

Step 2: Apply the theorem.

$$G'(x)=\cos(5x).$$

Answer:

$$G'(x)=\cos(5x).$$

Notice that we do not multiply by 5 here. The variable inside the integral is \(t\), and the upper limit is just \(x\), not \(5x\). So the theorem gives simply \(f(x)\).

9. Worked Example 3: Upper limit is a function of \(x\)

Find the derivative of

$$H(x)=\int_1^{2x+3} \frac{1}{1+t^2}\,dt.$$

Step 1: Identify the inside function.

Here,

$$f(t)=\frac{1}{1+t^2}, \qquad g(x)=2x+3.$$

Step 2: Use the extended form of the theorem.

$$H'(x)=f(g(x))\cdot g'(x).$$

So

$$H'(x)=\frac{1}{1+(2x+3)^2}\cdot 2.$$

Answer:

$$H'(x)=\frac{2}{1+(2x+3)^2}.$$

This example shows how the chain rule appears when the upper limit is not simply \(x\).

10. Worked Example 4: Understanding the inverse relationship

Let

$$P(x)=\int_0^x \left(4-\frac{1}{1+t^2}\right)dt.$$

Find \(P'(x)\), and then evaluate \(P'(1)\).

Step 1: Differentiate using the theorem.

$$P'(x)=4-\frac{1}{1+x^2}.$$

Step 2: Substitute \(x=1\).

$$P'(1)=4-\frac{1}{1+1^2}=4-\frac{1}{2}=\frac{7}{2}.$$

Answer:

$$P'(x)=4-\frac{1}{1+x^2}, \qquad P'(1)=\frac{7}{2}.$$

This means the accumulation function \(P(x)\) is increasing at a rate of \(\frac{7}{2}\) when \(x=1\).

11. Common mistakes to avoid

  • Forgetting that the variable inside the integral is a placeholder. In \(\int_0^x t^3\,dt\), the derivative is \(x^3\), not \(t^3\).
  • Adding an unnecessary chain rule factor. For \(\int_0^x \sin(2t)\,dt\), the derivative is \(\sin(2x)\), not \(2\sin(2x)\).
  • Forgetting the chain rule when the upper limit is a function. For \(\int_0^{x^2} \sin(t)\,dt\), the derivative is \(\sin(x^2)\cdot 2x\).
  • Confusing FTC Part 2 with antiderivatives. Here, we are differentiating a function defined by an integral, not directly evaluating the definite integral first.

12. How this proves integration and differentiation are inverse processes

If

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

then the theorem tells us that

$$F'(x)=f(x).$$

This means integration can build a new function from \(f\), and differentiation immediately recovers the original function.

So if you start with a continuous function \(f\), integrate it from a fixed point to \(x\), and then differentiate, you return to where you started:

$$\frac{d}{dx}\left(\int_a^x f(t)\,dt\right)=f(x).$$

This is exactly what it means for integration and differentiation to be inverse processes.

13. Quick check for understanding

Try these on your own:

  1. If \(F(x)=\int_3^x \sqrt{t+1}\,dt\), find \(F'(x)\).

  2. If \(G(x)=\int_0^{x-2} e^{t^2}\,dt\), find \(G'(x)\).

  3. If \(H(x)=\int_1^x \frac{5}{t}\,dt\), find \(H'(4)\).

Answers:

  1. $$F'(x)=\sqrt{x+1}$$

  2. $$G'(x)=e^{(x-2)^2}\cdot 1=e^{(x-2)^2}$$

  3. $$H'(x)=\frac{5}{x} \Rightarrow H'(4)=\frac{5}{4}$$

14. Summary

The Fundamental Theorem of Calculus Part 2 says that if

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

then

$$F'(x)=f(x),$$

as long as \(f\) is continuous. This shows that differentiation undoes integration.

When the upper limit is a function \(g(x)\), use the chain rule:

$$\frac{d}{dx}\left(\int_a^{g(x)} f(t)\,dt\right)=f(g(x))g'(x).$$

This theorem is powerful because it connects area and accumulation directly to derivatives, which is one of the central ideas of calculus.

Put what you read to the test

You've worked through The Fundamental Theorem of Calculus (Part 2). Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.

Integration via Substitution (u-substitution)

Integration via Substitution (u-substitution) is a method for evaluating integrals by reversing the chain rule. When you see an integral containing a function and its derivative, substitution can turn a complicated expression into a simpler one.

In differentiation, the chain rule tells us that if \(y = F(g(x))\), then \(\dfrac{dy}{dx} = F'(g(x))\cdot g'(x)\). Integration via substitution works in the opposite direction. If an integrand looks like \(F'(g(x))\cdot g'(x)\), then we can often let \(u = g(x)\) and rewrite the integral in terms of \(u\).

This idea is especially useful for composite functions, where one function is inside another, such as \((3x+1)^5\), \(\sin(2x)\), or \(\dfrac{2x}{x^2+4}\).

1. The basic idea

The substitution method uses a new variable, usually \(u\), to simplify the integral.

If we let

$$u = g(x),$$

then we differentiate both sides:

$$\frac{du}{dx} = g'(x) \quad \text{so} \quad du = g'(x)\,dx.$$

This means that if part of the integrand matches \(g'(x)\,dx\), we can replace it with \(du\).

Then the integral changes from an expression in \(x\) to an expression in \(u\), which is often easier to integrate.

2. The general pattern

A common pattern is:

$$\int f(g(x))\,g'(x)\,dx$$

Let \(u = g(x)\). Then \(du = g'(x)\,dx\), so the integral becomes

$$\int f(u)\,du.$$

After integrating with respect to \(u\), if the original problem was an indefinite integral, we must substitute back in terms of \(x\).

3. When should you use substitution?

Substitution is a good choice when:

  • There is an inside function and an outside function.
  • The derivative of the inside function is also present, or is almost present.
  • The integrand looks similar to something that came from the chain rule.

For example, substitution is often useful in integrals like:

  • \(\int (5x-2)^7\,dx\)
  • \(\int \cos(3x)\,dx\)
  • \(\int \dfrac{2x}{x^2+1}\,dx\)
  • \(\int x\sqrt{x^2+4}\,dx\)

4. Steps for u-substitution

  1. Choose a useful substitution, usually the inner expression.
  2. Differentiate to find \(du\).
  3. Rewrite the entire integral in terms of \(u\).
  4. Integrate with respect to \(u\).
  5. Substitute back to write the answer in terms of \(x\), unless the integral has definite bounds that have been changed to \(u\)-values.
  6. Add the constant of integration, \(C\), for indefinite integrals.

5. Worked Example 1: A basic power substitution

Evaluate

$$\int (3x+1)^5\,dx$$

Step 1: Choose a substitution.

The expression inside the power is \(3x+1\), so let

$$u = 3x+1.$$

Step 2: Find \(du\).

$$du = 3\,dx \quad \Rightarrow \quad dx = \frac{1}{3}du.$$

Step 3: Rewrite the integral.

$$\int (3x+1)^5\,dx = \int u^5\left(\frac{1}{3}du\right) = \frac{1}{3}\int u^5\,du.$$

Step 4: Integrate.

$$\frac{1}{3}\int u^5\,du = \frac{1}{3}\cdot \frac{u^6}{6} + C = \frac{u^6}{18} + C.$$

Step 5: Substitute back.

$$\boxed{\int (3x+1)^5\,dx = \frac{(3x+1)^6}{18} + C}$$

Check: If we differentiate \(\dfrac{(3x+1)^6}{18}\), we get

$$\frac{6(3x+1)^5\cdot 3}{18} = (3x+1)^5,$$

so the answer is correct.

6. Worked Example 2: A trigonometric substitution pattern

Evaluate

$$\int \sin(2x)\,dx$$

Step 1: Choose a substitution.

The angle inside the sine function is \(2x\), so let

$$u = 2x.$$

Step 2: Find \(du\).

$$du = 2\,dx \quad \Rightarrow \quad dx = \frac{1}{2}du.$$

Step 3: Rewrite the integral.

$$\int \sin(2x)\,dx = \int \sin(u)\left(\frac{1}{2}du\right) = \frac{1}{2}\int \sin(u)\,du.$$

Step 4: Integrate.

$$\frac{1}{2}\int \sin(u)\,du = \frac{1}{2}(-\cos u) + C = -\frac{1}{2}\cos u + C.$$

Step 5: Substitute back.

$$\boxed{\int \sin(2x)\,dx = -\frac{1}{2}\cos(2x) + C}$$

This makes sense because differentiating \(-\dfrac{1}{2}\cos(2x)\) gives \(\sin(2x)\).

7. Worked Example 3: A rational function

Evaluate

$$\int \frac{2x}{x^2+4}\,dx$$

Step 1: Choose a substitution.

The denominator is \(x^2+4\), and its derivative is \(2x\), which appears in the numerator. So let

$$u = x^2+4.$$

Step 2: Find \(du\).

$$du = 2x\,dx.$$

Step 3: Rewrite the integral.

$$\int \frac{2x}{x^2+4}\,dx = \int \frac{1}{u}\,du.$$

Step 4: Integrate.

$$\int \frac{1}{u}\,du = \ln|u| + C.$$

Step 5: Substitute back.

$$\boxed{\int \frac{2x}{x^2+4}\,dx = \ln|x^2+4| + C}$$

Since \(x^2+4\) is always positive, this can also be written as

$$\ln(x^2+4) + C.$$

8. Worked Example 4: A definite integral

Evaluate

$$\int_0^2 x\sqrt{x^2+1}\,dx$$

This example shows how substitution works with definite integrals.

Step 1: Choose a substitution.

The expression inside the square root is \(x^2+1\), and its derivative is \(2x\), which is closely related to the \(x\) in the integral. Let

$$u = x^2+1.$$

Step 2: Find \(du\).

$$du = 2x\,dx \quad \Rightarrow \quad x\,dx = \frac{1}{2}du.$$

Step 3: Change the limits.

When \(x=0\),

$$u = 0^2+1 = 1.$$

When \(x=2\),

$$u = 2^2+1 = 5.$$

Step 4: Rewrite the integral.

$$\int_0^2 x\sqrt{x^2+1}\,dx = \int_1^5 \sqrt{u}\left(\frac{1}{2}du\right) = \frac{1}{2}\int_1^5 u^{1/2}\,du.$$

Step 5: Integrate.

$$\frac{1}{2}\int_1^5 u^{1/2}\,du = \frac{1}{2}\left[\frac{u^{3/2}}{3/2}\right]_1^5 = \frac{1}{2}\left[\frac{2}{3}u^{3/2}\right]_1^5 = \frac{1}{3}\left[u^{3/2}\right]_1^5.$$

Now evaluate:

$$\frac{1}{3}(5^{3/2} - 1^{3/2}) = \frac{1}{3}(5\sqrt{5} - 1).$$

So the exact value is

$$\boxed{\int_0^2 x\sqrt{x^2+1}\,dx = \frac{5\sqrt{5}-1}{3}}$$

Notice that because we changed the limits to \(u\)-values, we did not need to substitute back to \(x\).

9. Important ideas to remember

Choose the inside function. In many problems, the best choice for \(u\) is the expression inside brackets, roots, trigonometric functions, or denominators.

Look for its derivative. The substitution works best when the derivative of your chosen \(u\) is already present in the integral, or differs only by a constant factor.

Rewrite everything. After choosing \(u\), the goal is to change the whole integral into \(u\)-language. Try not to leave mixed \(x\) and \(u\) terms together.

Do not forget \(C\). Every indefinite integral needs a constant of integration.

For definite integrals, change the bounds. This often makes the process cleaner and avoids having to substitute back at the end.

10. Common mistakes

  • Choosing a poor substitution: If the derivative of your chosen expression does not appear in the integral, the substitution may not simplify the problem.
  • Forgetting to change \(dx\): If \(u = g(x)\), then you must also replace \(dx\) using \(du = g'(x)dx\).
  • Leaving both variables in the integral: After substitution, the integral should be entirely in terms of \(u\).
  • Not substituting back: For indefinite integrals, the final answer should usually be written in terms of \(x\), not \(u\).
  • Forgetting the constant multiple: If \(du\) is not exactly present, you may need to multiply or divide by a constant.

11. Quick pattern recognition

Here are some common forms where substitution helps:

  • $$\int (ax+b)^n\,dx$$
  • $$\int f(ax+b)\,dx$$
  • $$\int \frac{g'(x)}{g(x)}\,dx$$
  • $$\int g'(x)\sqrt{g(x)}\,dx$$
  • $$\int g'(x)e^{g(x)}\,dx$$

For each of these, a natural substitution is usually \(u=g(x)\) or \(u=ax+b\).

12. Practice thinking

When you see an integral, ask yourself:

  • What is the inner function?
  • Is its derivative present?
  • Will replacing it with \(u\) make the integral simpler?

If the answer is yes, u-substitution is probably the right method.

13. Brief summary

Integration via substitution is a way to simplify integrals by reversing the chain rule. You choose a new variable \(u\) for an inner expression, rewrite the differential, and transform the integral into an easier form.

It is especially useful for composite functions such as powers, trigonometric expressions, radicals, and fractions where the derivative of the inside function appears. With practice, you will get better at spotting the right substitution quickly.

Put what you read to the test

You've worked through Integration via Substitution (u-substitution). Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.

Integrating Transcendental Functions

Integrating Transcendental Functions means finding antiderivatives and definite integrals of functions such as exponentials, logarithms, and trigonometric functions. These functions are not polynomials, but they still follow clear integration rules that are essential in calculus.

In this lesson, you will learn how to integrate standard exponential forms, how logarithms appear naturally from certain rational functions, and how to integrate common trigonometric functions. These ideas connect directly to accumulated change and area under curves through the Fundamental Theorem of Calculus.

Reminder: If a function is an antiderivative of another, then differentiating the antiderivative gives back the original function. So integration is the reverse process of differentiation.

For example, if

$$\frac{d}{dx}(x^3)=3x^2,$$

then

$$\int 3x^2\,dx=x^3+C.$$

For transcendental functions, we use the same idea: think about which function differentiates to the one we are integrating.

1. Integrating exponential functions

Exponential functions are functions where the variable is in the exponent. The most important exponential function in calculus is \(e^x\), because it is its own derivative.

$$\frac{d}{dx}(e^x)=e^x$$

So its integral is especially simple:

$$\int e^x\,dx=e^x+C$$

This also works with a constant multiple in the exponent, but we must account for the chain rule in reverse.

$$\int e^{kx}\,dx=\frac{1}{k}e^{kx}+C \qquad (k\neq 0)$$

This is because

$$\frac{d}{dx}\left(\frac{1}{k}e^{kx}\right)=\frac{1}{k}\cdot ke^{kx}=e^{kx}$$

For exponential functions with base \(a\), where \(a>0\) and \(a\neq 1\), the derivative rule is

$$\frac{d}{dx}(a^x)=a^x\ln a$$

So the integral must divide by \(\ln a\):

$$\int a^x\,dx=\frac{a^x}{\ln a}+C$$

More generally, if the exponent is \(kx\), then

$$\int a^{kx}\,dx=\frac{a^{kx}}{k\ln a}+C \qquad (k\neq 0)$$

Key exponential integration formulas

  • \(\int e^x\,dx=e^x+C\)
  • \(\int e^{kx}\,dx=\frac{1}{k}e^{kx}+C\)
  • \(\int a^x\,dx=\frac{a^x}{\ln a}+C\)
  • \(\int a^{kx}\,dx=\frac{a^{kx}}{k\ln a}+C\)

2. Integrals that produce logarithms

One of the most important integration facts in calculus is that the integral of \(\frac{1}{x}\) is not a power rule result. Instead, it gives a logarithm:

$$\int \frac{1}{x}\,dx=\ln|x|+C$$

The absolute value is important because \(\frac{1}{x}\) is defined for both positive and negative \(x\), except at \(x=0\). The expression \(\ln|x|\) works on both sides of zero.

This result comes from the derivative rule

$$\frac{d}{dx}(\ln|x|)=\frac{1}{x}$$

A very common extension is:

$$\int \frac{1}{ax+b}\,dx=\frac{1}{a}\ln|ax+b|+C \qquad (a\neq 0)$$

This again reverses the chain rule. Since

$$\frac{d}{dx}(ax+b)=a,$$

we divide by \(a\).

More generally, whenever you see the derivative of an expression over the expression itself, a logarithm is likely to appear:

$$\int \frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+C$$

This pattern is very useful at 12th Grade level. It helps you recognize when a logarithm should be the answer.

3. Integrating trigonometric functions

Trigonometric functions are also transcendental functions, and several of their integrals come directly from derivative facts.

First, recall these derivatives:

  • \(\frac{d}{dx}(\sin x)=\cos x\)
  • \(\frac{d}{dx}(\cos x)=-\sin x\)

So the corresponding integrals are:

$$\int \cos x\,dx=\sin x+C$$ $$\int \sin x\,dx=-\cos x+C$$

Other important trigonometric integrals come from these derivatives:

  • \(\frac{d}{dx}(\tan x)=\sec^2 x\)
  • \(\frac{d}{dx}(\cot x)=-\csc^2 x\)
  • \(\frac{d}{dx}(\sec x)=\sec x\tan x\)
  • \(\frac{d}{dx}(\csc x)=-\csc x\cot x\)

Therefore:

$$\int \sec^2 x\,dx=\tan x+C$$ $$\int \csc^2 x\,dx=-\cot x+C$$ $$\int \sec x\tan x\,dx=\sec x+C$$ $$\int \csc x\cot x\,dx=-\csc x+C$$

Key trigonometric integration formulas

  • \(\int \cos x\,dx=\sin x+C\)
  • \(\int \sin x\,dx=-\cos x+C\)
  • \(\int \sec^2 x\,dx=\tan x+C\)
  • \(\int \csc^2 x\,dx=-\cot x+C\)
  • \(\int \sec x\tan x\,dx=\sec x+C\)
  • \(\int \csc x\cot x\,dx=-\csc x+C\)

4. Definite integrals and accumulated change

When an integral has limits, it represents accumulated change. If \(F'(x)=f(x)\), then by the Fundamental Theorem of Calculus,

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

This lets us compute exact areas or net change for transcendental functions just as we do for polynomials.

For example,

$$\int_0^1 e^x\,dx=[e^x]_0^1=e^1-e^0=e-1$$

And

$$\int_0^{\pi} \sin x\,dx=[-\cos x]_0^{\pi}=(-\cos \pi)-(-\cos 0)=1-(-1)=2$$

These values represent net area or total accumulated change over the interval.

Worked Example 1: Basic exponential integral

Evaluate

$$\int 5e^{3x}\,dx$$

Step 1: Focus on \(e^{3x}\). We know

$$\int e^{kx}\,dx=\frac{1}{k}e^{kx}+C$$

So

$$\int e^{3x}\,dx=\frac{1}{3}e^{3x}+C$$

Step 2: Include the constant multiple 5.

$$\int 5e^{3x}\,dx=5\cdot \frac{1}{3}e^{3x}+C=\frac{5}{3}e^{3x}+C$$

Answer:

$$\int 5e^{3x}\,dx=\frac{5}{3}e^{3x}+C$$

Worked Example 2: Exponential function with base \(a\)

Evaluate

$$\int 2^x\,dx$$

Use the formula

$$\int a^x\,dx=\frac{a^x}{\ln a}+C$$

Here \(a=2\), so

$$\int 2^x\,dx=\frac{2^x}{\ln 2}+C$$

Answer:

$$\int 2^x\,dx=\frac{2^x}{\ln 2}+C$$

Worked Example 3: Logarithmic form

Evaluate

$$\int \frac{1}{4x-7}\,dx$$

This matches the pattern

$$\int \frac{1}{ax+b}\,dx=\frac{1}{a}\ln|ax+b|+C$$

Here \(a=4\), so

$$\int \frac{1}{4x-7}\,dx=\frac{1}{4}\ln|4x-7|+C$$

Check:

$$\frac{d}{dx}\left(\frac{1}{4}\ln|4x-7|\right)=\frac{1}{4}\cdot \frac{4}{4x-7}=\frac{1}{4x-7}$$

Answer:

$$\int \frac{1}{4x-7}\,dx=\frac{1}{4}\ln|4x-7|+C$$

Worked Example 4: Definite integral with a trigonometric function

Evaluate

$$\int_0^{\pi/2} \cos x\,dx$$

Step 1: Find an antiderivative of \(\cos x\).

$$\int \cos x\,dx=\sin x+C$$

Step 2: Apply the limits.

$$\int_0^{\pi/2} \cos x\,dx=[\sin x]_0^{\pi/2}$$ $$=\sin\left(\frac{\pi}{2}\right)-\sin(0)=1-0=1$$

Answer:

$$\int_0^{\pi/2} \cos x\,dx=1$$

Common mistakes to avoid

  • Using the power rule on \(\frac{1}{x}\): \(\frac{1}{x}=x^{-1}\), but the usual power rule does not apply when the exponent is \(-1\). The correct result is \(\ln|x|+C\).
  • Forgetting the factor from the chain rule: For example, \(\int e^{5x}\,dx\neq e^{5x}+C\). The correct answer is \(\frac{1}{5}e^{5x}+C\).
  • Forgetting \(\ln a\) for \(a^x\): \(\int 3^x\,dx\neq 3^x+C\). It is \(\frac{3^x}{\ln 3}+C\).
  • Sign errors with trig functions: Since \(\frac{d}{dx}(\cos x)=-\sin x\), it follows that \(\int \sin x\,dx=-\cos x+C\).
  • Dropping absolute value in logarithms: Write \(\ln|x|\) or \(\ln|ax+b|\) unless you know the expression is always positive on the domain.

How this connects to accumulation and area

In integral calculus, the definite integral measures how a quantity builds up over an interval. If the rate of change is exponential, logarithmic, or trigonometric, these integration rules let you find the total accumulation exactly.

For instance, if a rate is given by \(r(t)=e^t\), then the total change from \(t=0\) to \(t=2\) is

$$\int_0^2 e^t\,dt=[e^t]_0^2=e^2-1$$

If a curve is above the \(x\)-axis, the definite integral also gives the geometric area under the curve over that interval.

Summary of the main formulas

  • $$\int e^x\,dx=e^x+C$$
  • $$\int e^{kx}\,dx=\frac{1}{k}e^{kx}+C$$
  • $$\int a^x\,dx=\frac{a^x}{\ln a}+C$$
  • $$\int \frac{1}{x}\,dx=\ln|x|+C$$
  • $$\int \frac{1}{ax+b}\,dx=\frac{1}{a}\ln|ax+b|+C$$
  • $$\int \cos x\,dx=\sin x+C$$
  • $$\int \sin x\,dx=-\cos x+C$$
  • $$\int \sec^2 x\,dx=\tan x+C$$
  • $$\int \csc^2 x\,dx=-\cot x+C$$
  • $$\int \sec x\tan x\,dx=\sec x+C$$
  • $$\int \csc x\cot x\,dx=-\csc x+C$$

Final thought: The best way to get comfortable with integrating transcendental functions is to connect each integral to a derivative you already know. Ask yourself, “What function differentiates to this?” That question will guide you to the correct antiderivative.

Put what you read to the test

You've worked through Integrating Transcendental Functions. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.

Introduction to Integration by Parts

Introduction to Integration by Parts

In differentiation, you learned the product rule:

$$\frac{d}{dx}[u(x)v(x)] = u(x)\frac{dv}{dx} + v(x)\frac{du}{dx}$$

Integration by parts is the method that reverses this idea. It helps us find integrals where the integrand is a product of two different kinds of functions, such as:

  • an algebraic function and an exponential function, for example, \(x e^x\)
  • an algebraic function and a trigonometric function, for example, \(x\sin x\)
  • an algebraic function and a logarithmic function, for example, \(x\ln x\)

This method is especially useful when ordinary substitution does not work well.

How the formula is derived

Start with the product rule:

$$\frac{d}{dx}(uv) = u\frac{dv}{dx} + v\frac{du}{dx}$$

Now integrate both sides:

$$\int \frac{d}{dx}(uv)\,dx = \int u\frac{dv}{dx}\,dx + \int v\frac{du}{dx}\,dx$$

This gives:

$$uv = \int u\,dv + \int v\,du$$

Rearranging, we get the formula for integration by parts:

$$\int u\,dv = uv - \int v\,du$$

This is the main formula you need to remember.

The integration by parts formula

$$\int u\,dv = uv - \int v\,du$$

Here:

  • \(u\) is the part you choose to differentiate
  • \(dv\) is the part you choose to integrate
  • \(du\) is the derivative of \(u\)
  • \(v\) is the integral of \(dv\)

Why choosing \(u\) carefully matters

The goal is to make the new integral, \(\int v\,du\), simpler than the original one.

In many cases, a good strategy is to choose \(u\) as the function that becomes simpler when differentiated. For example:

  • polynomials get simpler: \(x^3 \to 3x^2\)
  • \(\ln x\) becomes simpler: \(\ln x \to \frac{1}{x}\)
  • inverse trig functions often work well as \(u\)

A useful guide is the order:

  • Logarithmic
  • Inverse trigonometric
  • Algebraic
  • Trigonometric
  • Exponential

This is often remembered as LIATE. If more than one type of function appears in a product, choose \(u\) from the function that comes earlier in this list.

LIATE is a helpful guide, not a strict rule. Always check whether your choice makes the integral easier.

Step-by-step method

  1. Write the integral in the form \(\int u\,dv\).
  2. Choose \(u\) and \(dv\).
  3. Differentiate \(u\) to get \(du\).
  4. Integrate \(dv\) to get \(v\).
  5. Substitute into the formula: \(\int u\,dv = uv - \int v\,du\).
  6. Simplify and evaluate the remaining integral.
  7. Do not forget the constant of integration \(C\) for indefinite integrals.

Worked Example 1: \(\int x e^x\,dx\)

This is a product of an algebraic function \(x\) and an exponential function \(e^x\). By LIATE, choose:

$$u = x \quad \text{and} \quad dv = e^x\,dx$$

Now find \(du\) and \(v\):

$$du = dx \quad \text{and} \quad v = e^x$$

Use the formula:

$$\int x e^x\,dx = uv - \int v\,du$$ $$= x e^x - \int e^x\,dx$$ $$= x e^x - e^x + C$$

Factor if you want a cleaner final answer:

$$\int x e^x\,dx = e^x(x-1)+C$$

Why this worked: differentiating \(x\) made it simpler, and integrating \(e^x\) stayed easy.

Worked Example 2: \(\int x\cos x\,dx\)

This is a product of an algebraic function and a trigonometric function. Choose:

$$u = x \quad \text{and} \quad dv = \cos x\,dx$$

Then:

$$du = dx \quad \text{and} \quad v = \sin x$$

Apply integration by parts:

$$\int x\cos x\,dx = uv - \int v\,du$$ $$= x\sin x - \int \sin x\,dx$$

Since \(\int \sin x\,dx = -\cos x\), we get:

$$x\sin x - (-\cos x) + C$$ $$= x\sin x + \cos x + C$$

So,

$$\int x\cos x\,dx = x\sin x + \cos x + C$$

Worked Example 3: \(\int \ln x\,dx\)

This example is important because it shows that integration by parts can be used even when there is only one visible function.

Rewrite the integral as:

$$\int \ln x\,dx = \int 1\cdot \ln x\,dx$$

Now choose:

$$u = \ln x \quad \text{and} \quad dv = dx$$

Then:

$$du = \frac{1}{x}\,dx \quad \text{and} \quad v = x$$

Apply the formula:

$$\int \ln x\,dx = uv - \int v\,du$$ $$= x\ln x - \int x\left(\frac{1}{x}\right)dx$$ $$= x\ln x - \int 1\,dx$$ $$= x\ln x - x + C$$

So,

$$\int \ln x\,dx = x\ln x - x + C$$

Why this worked: choosing \(u=\ln x\) gave a derivative of \(\frac{1}{x}\), which made the new integral very simple.

Worked Example 4: \(\int x^2 e^x\,dx\)

Sometimes integration by parts must be used more than once.

First choose:

$$u = x^2 \quad \text{and} \quad dv = e^x\,dx$$

Then:

$$du = 2x\,dx \quad \text{and} \quad v = e^x$$

Apply the formula:

$$\int x^2 e^x\,dx = x^2 e^x - \int 2x e^x\,dx$$

Now we still need to evaluate \(\int 2x e^x\,dx\). Factor out the 2:

$$= x^2 e^x - 2\int x e^x\,dx$$

We already know how to do \(\int x e^x\,dx\), but let us do it again using integration by parts.

Choose:

$$u = x \quad \text{and} \quad dv = e^x\,dx$$

Then:

$$du = dx \quad \text{and} \quad v = e^x$$

So:

$$\int x e^x\,dx = x e^x - \int e^x\,dx = x e^x - e^x$$

Substitute this back:

$$\int x^2 e^x\,dx = x^2 e^x - 2(x e^x - e^x) + C$$

Simplify:

$$= x^2 e^x - 2x e^x + 2e^x + C$$

Factor out \(e^x\):

$$\int x^2 e^x\,dx = e^x(x^2 - 2x + 2) + C$$

Definite integrals with integration by parts

The same formula can be used for definite integrals:

$$\int_a^b u\,dv = \left[uv\right]_a^b - \int_a^b v\,du$$

Here, \(\left[uv\right]_a^b\) means evaluate \(uv\) at the upper limit and subtract its value at the lower limit.

For example, to evaluate \(\int_0^1 x e^x\,dx\):

Let \(u=x\) and \(dv=e^x\,dx\), so \(du=dx\) and \(v=e^x\).

$$\int_0^1 x e^x\,dx = \left[xe^x\right]_0^1 - \int_0^1 e^x\,dx$$ $$= \left[xe^x\right]_0^1 - \left[e^x\right]_0^1$$ $$= (1\cdot e - 0) - (e - 1) = 1$$

Common mistakes to avoid

  • Choosing \(u\) poorly: if differentiating \(u\) makes things more complicated, try switching your choice.
  • Forgetting the minus sign: the formula is \(uv - \int v\,du\), not \(uv + \int v\,du\).
  • Integrating \(dv\) incorrectly: be careful when finding \(v\).
  • Stopping too early: sometimes you must use integration by parts more than once.
  • Forgetting \(+C\): every indefinite integral needs a constant of integration.

Quick check: when should you try integration by parts?

It is a good method to try when:

  • the integrand is a product of two different types of functions
  • one factor becomes simpler after differentiating
  • simple substitution does not help
  • you are integrating functions like \(\ln x\), \(x e^x\), \(x\sin x\), or \(x^2 e^x\)

Brief Summary

Integration by parts is a technique based on reversing the product rule. Its formula is

$$\int u\,dv = uv - \int v\,du$$

To use it well, choose \(u\) so that its derivative is simpler, and choose \(dv\) so that it can be integrated easily. With practice, this method becomes a powerful tool for integrating products of algebraic, trigonometric, exponential, and logarithmic functions.

Put what you read to the test

You've worked through Introduction to Integration by Parts. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.