Skip to main content

Integration

Integration is the process of finding the integral of a function. It is the reverse process of differentiation, and is used to find the area under a curve, the volume of a solid, and many other quantities.

Table of Contents

Area Under a Curve through Accumulation of Infinitesimal Areas

Imagine a curve like this one:

This is a curve defined by the function . Let this be the velocity of a vehicle at time (imagine it as a reading on the speedometer).

From differentiation we know that the derivative of the displacement function is the velocity function . In other words, .

If we want to find the displacement of the vehicle at time , we need to find a function whose derivative is . This is known as the antiderivative of .

A visual representation of this is the area under the curve of from to . Since you can't just find the area (for now), you can approximate it by finding the area of rectangles.

A visualization is shown below:

Area Under a Curve

Options

For each rectangle at time , the width is and the height is . Hence, the area of the rectangle is . The total area is the sum of the areas of all the rectangles:

Because , the sum becomes a "continuous sum". This is what we call an integral:

Accumulation of Areas and the Fundamental Theorem of Calculus

Now, let's consider how to actually compute the area. Recall that the area of the velocity curve is equivalent to the displacement of the vehicle.

In other words:

Additionally, recall that to find the slope of a function, we took an infinitesimal change in and found the change in . We can apply the same principle here: if we increment , then we can calculate the change in the area.

At time , if we increment by , then the area will be added by another rectangle, as shown above in green. The width of the rectangle is and the height is . Therefore:

And if we rearrange:

And as :

We have derived something known as the fundamental theorem of calculus:

The Antiderivative

As shown above, the fundamental theorem of calculus states that the antiderivative of a function is the area under the curve of the function.

To find the antiderivative of a function, we take what we know about differentiation and work backwards.

For example, consider the antiderivative of . Recall that the derivative of is . To get rid of the coefficient, simply divide by ; so the derivative of is .

If we posit , then and .

Therefore, the antiderivative of is .

Antiderivative Notation

The antiderivative of a function is denoted as . When we took the antiderivative of , we can write it as:

HOWEVER, we are missing something. Let's say . Then the antiderivative of is .

Recall that the antiderivative is the function whose derivative is the original function.

Since the derivative of is , it is the antiderivative of . However, the derivative of is as well, as well as the derivative of , and so on, since the derivative of a constant is .

Visually, this looks like moving the antiderivative up and down the -axis:

We can denote this constant as . Therefore, we can revise our antiderivative as:

We have now found the antiderivative of , known as the power rule of integration.

Definite Integrals

Now let's connect the antiderivative to the area under the curve. Using what we know so far:

However, what do we set as? It can't be any constant, since the area under the curve is a specific value. To solve this conundrum, we introduce the concept of a definite integral. Let's say we want to find the area under the curve of from to . This is obviously , so, plugging this into Equation :

Therefore, . This is the basis of the definite integral:

We can also replace with any arbitrary constant. For example, if we want to find the area under the curve of from to :

Notice that the area under the curve is derived solely from the endpoints and , and nothing in between.

Proof of the Fundamental Theorem of Calculus

The fundamental theorem of calculus states two things:

While we have shown it intuitively, we can also prove it rigorously. Both are equally important, as the intuitive visualization helps people understand the concept and helps the concept stick in their minds, while the rigorous proof ensures the validity and correctness of the concept.

Proof of the First Part

First, let be a function continuous on .

Let be the accumulation function of where .

Using the definition of the derivative, the derivative of is:

As shown in the graph, the numerator can be represented as the area under the curve of from to . Therefore:

The Mean-Value Theorem states:

Which is a fancy way of saying that there is some rectangle whose area is exactly the area under the segment of the curve. It's called the Mean-Value Theorem because the right-hand side is the average value of the function over the interval .

Therefore:

Since , as .

Therefore:

Riemann Sums

When we approximated the area under the curve of , we used rectangles. Now we will go into more detail about this process.

What we did is known as a Riemann sum. Let's once again consider the velocity function :

Riemann sums can be categorized into different types:

  • The left Riemann sum uses the left endpoint of each interval as the height of the rectangle.
  • The right Riemann sum uses the right endpoint of each interval as the height of the rectangle.
  • The midpoint Riemann sum uses the midpoint of each interval as the height of the rectangle.
  • The trapezoidal Riemann sum uses a trapezoid instead of a rectangle.

The general procedure for a Riemann sum is as follows:

  1. Identify . As we know, the area of each rectangle is . In the interval , since there are rectangles, the width of each rectangle is .

  2. Identify . As shown in the graph, can be represented as plus all the arrows pointing to the right. Therefore, .

  3. Using the above values, identify the area of each th rectangle. The area of each rectangle can be represented as .

  4. Identify and sum all the areas. The total area is the sum of all the areas of the rectangles:

    Identifying the bounds of the sum depends on the type of Riemann sum used:

    • For a left Riemann sum, start at and end at .
    • For a right Riemann sum, start at and end at .
    • For a midpoint Riemann sum, start at and end at .

    For example, the left Riemann sum can be represented as:

Trapezoidal Rule

The trapezoidal Riemann sum is a more accurate approximation of the area under the curve than the rectangular Riemann sums.

Recall that the area of a trapezoid is , where is the height and and are the bases.

In this case, if we split the area into trapezoids, is and and are and respectively. Therefore, the area of each trapezoid is .

The total area is the sum of all the areas of the trapezoids:

If we let , then we don't need to use the trapezoidal rule, as the Riemann sum will converge to the actual area under the curve no matter what is used.

Integral as a Limit of Riemann Sums

If we let , then the Riemann sum will converge to the actual area under the curve.

Therefore, we can generalize the area under the curve as the limit of as :

Proof using Epsilon-Delta

Firstly, the above can be formalized into a theorem:

Let be a function continuous on . The limit of the Riemann sum of over as the mesh of the partition approaches is equivalent to the integral of over .

The proof of this theorem is quite complex, but it can be done using the - definition of a limit.

  1. Definitions

    • Partition: A partition of is a finite set of points such that .

    • Mesh: The mesh of a partition is the maximum length of the subintervals , denoted as .

    • Riemann Sum: For a given partition and a set of points , the Riemann sum of over is:

    These definitions are a formalization of the Riemann sum we have been discussing. What it's saying is that you can choose any intervals inside , then choose any point as the height of the rectangle, and the sum of all the areas of the rectangles will be the Riemann sum. This definition helps because it is independent of the type of the Riemann sum.

  2. Continuity

    • Since is continuous on , it is uniformly continuous on . Hence, for any , there exists a such that for any where , .
  3. Convergence

    • Let be given. Since is uniformly continuous on , choose such that for any where , .

    • Next, let be a partition of with mesh . This is possible because the mesh of the partition can be made arbitrarily small.

    • For each subinterval of the partition, choose a point .

    • The difference between the Riemann sum and the definite integral can be evaluated as follows:

    The proof uses the Mean Value Theorem (MVT). For a continuous function on , there exists a point such that . Next, since the width of each interval is less than , , and by uniform continuity, . Therefore:

    As such, in conclusion, for any , there exists a such that for any partition with mesh , . This is the definition of a limit, and hence the Riemann sum converges to the integral.

    Hence:

For example, consider this integral:

Let's go through our steps:

  1. Identify . Since the interval is , .
  2. Identify . .
  3. Identify the area of each th rectangle. The area of each rectangle is .

Therefore, the Riemann sum is:

And the area under the curve is:

Accumulation Functions: Functions Defined by Integrals

A function can be defined by an integral. For example, consider the following function:

This is known as an accumulation function. The reason it's called an accumulation function is because of what we've discussed above; treating integrals as an accumulation of areas.

The derivative of an accumulation function can be derived using the fundamental theorem of calculus:

Sometimes the upper bound of the integral isn't just , but a function of . For example:

The derivative of this function can be found using the chain rule. Set another function as:

And set :

Therefore, the derivative of is:

Generalizing this, the derivative of an accumulation function with a variable upper bound is:

Many functions are defined using integrals because they are easier to work with, and some cannot be expressed in terms of elementary functions.

A common example is the error function:

The error function is used in statistics and probability theory, and is used to calculate the probability of a random variable falling within a certain range.

Another common example is the gamma function:

The gamma function is a generalization of the factorial function, and is used in many areas of mathematics.

Behavior of Accumulation Functions

The behavior of accumulation functions can be quite complex. For example, consider the following function:

And let be the accumulation function of :

Because of the fundamental theorem of calculus, the derivative of is . Using this, we can use to derive the behavior of .

For example, at , , so those are the critical points of . At , , so is increasing.

At , , so is decreasing.

Properties of Definite Integrals

Since integrals are the accumulation of areas; the continuous analog of the sum, they have many properties that are similar to sums.

Variable Notation

The variable of integration can be anything. For example, the following two integrals are equivalent:

With this in mind; sometimes variables can be confusing. Consider a problem where we have the velocity of a particle and we want to find the position of the particle at time .

Here, while it seems like we only have as a variable, we actually have two variables:

  • The upper bound of the integral, which is a specific value.
  • The variable of integration, which is a dummy variable that is used to represent the function.

One way to get around this is to use a different variable for the variable of integration, like :

This is common in physics and engineering.

Signs

When the area is above the -axis, it is positive. When the area is below the -axis, it is negative.

If the upper bound is less than the lower bound, you sort of "go backwards" and the entire integral is negated.

As such,

This can also be shown through the Riemann sum. Consider the Riemann sum for each integral:

Let's think about what is. Recall that .

Hence, for the first integral, , and for the second integral, .

Since , the Riemann sum for the second integral is the negation of the Riemann sum for the first integral.

Another way to show this is through the fundamental theorem of calculus. Recall that for a function with derivative , the integral of from to is .

If we flip it:

One application of this is to evaluate accumulation functions where the function parameter is on the lower bound. For example:

This can be rewritten as:

Linearity

Let's think about the integral of a sum of functions:

Where and .

The graph for and is shown below:

If we once again consider the Riemann sum, we can split the integral into separate rectangles:

Notice how the rectangle for is the sum of the rectangles for and . Therefore we can intuitively say that:

This is known as the linearity of integrals.

Singular Points

The integral of a function at a singular point is .

For example, consider the function :

The integral of from to is because there's no width at all.

Scaling

If you scale a function by a constant, then the integral is scaled by that constant.

Consider the function , and :

Now let's consider the integral of and from to :

Notice how, once again, the rectangle for is scaled by compared to the rectangle for .

Therefore, we can say that:

Adjacency

Consider a function :

Notice how if you add the areas for from to and to , you get the area for from to .

Therefore, we can say that:

Note that does not have to be in the interval . A way to show this is through the fundamental theorem of calculus. Let be the antiderivative of :

Notice how this does not depend on the value of .

Example Problem: Input on Both Bounds

Consider the following accumulation function:

Identify the derivative of .

Let's first rewrite the accumulation function using Adjacency.

Next, consider the first integral. is on the bottom, so we can flip the integral to move it to the top:

Thus, the accumulation function can be rewritten as:

The derivative of can be found using the fundamental theorem of calculus and the chain rule:

Cheat Sheet of Properties

Here is a cheat sheet of the properties of definite integrals:

PropertyFormula
Signs
Linearity
Singular Points
Scaling
Adjacency

Common Antiderivatives

Since the derivative of an antiderivative is the original function, we can use this to compute antiderivatives.

We've already gone over the intuition for many derivatives. Here are some common antiderivatives:

FunctionAntiderivative

Reversing the Chain Rule

Sometimes, the antiderivative of a function is not immediately obvious. In such cases, substitution can be used.

The first type of substitution is the -substitution, which is basically the chain rule in reverse. Consider the following integral:

Now, there's two ways to do this. The first way is to use the chain rule in reverse, and the second way is to use -substitution. -substitution tends to be much easier, but reverse chain rule lets you do it a lot faster.

Reverse Chain Rule

Recall the chain rule:

We have a composite function , and the derivative of is . As such we have all the components of the chain rule:

In this case is , so is . By reversing the chain rule, the antiderivative is:

-Substitution

We have a composite function , and the derivative of is . As such, we can let :

Hence, the integral can be rewritten as:

-Substitution in Definite Integrals

-substitution can also be used in definite integrals. Consider the following integral:

This can be solved by letting and :

BUT WAIT! We changed the function from to , so we need to change the bounds as well. The bounds are and , so when , , and when , .

Therefore the new bounds should be and :

It's clearer if we label the variables in the bounds as well:

Integration by Long Division

Long division, a technique you may have learned in elementary school, can also be used in algebra. The difference is that instead of dividing numbers, you are dividing polynomials.

For example, consider the following integral:

The first step is to divide by . Recall from elementary school that you find the largest multiple of the quotient in the highest place value. Here, instead of the highest place value, you are looking at the highest degree term, .

The largest multiple of in is , so you multiply by to get .

You get a remainder of . Repeat the process; find the largest multiple of in - it's .

As such, the integral can be rewritten as:

Example Problem: Integration by Long Division

Evaluate the following integral:

Once again, we can use long division to divide by .

The highest-degree term in is . Hence to get , multiply by :

This time we have a remainder of . Once again, recall from elementary school that you can express as . For example . Hence, the integral can be rewritten as:

The integral of is , and the integral of can be found using -substitution:

Therefore, the integral is:

Integration by Completing the Square

Completing the square is a technique used to solve quadratic equations. It can also be used in integration.

For example, consider the following integral:

The first step is to complete the square in the denominator. Recall that to complete the square, you need to find the value that makes the square a perfect square trinomial.

We will first need to remove the coefficient of by factoring out :

Next, complete the square in the denominator.

Now, let's factor out the in the denominator:

Now, let :

We need to get the to match . Therefore, multiply the numerator by and divide the fraction outside by :

The integral of is . Therefore, the integral is:

Integration by Parts

Integration by parts is a technique used to integrate the product of two functions.

Let's say we have and whose derivatives are and respectively. The product rule states that:

Integrating both sides with respect to :

Rearranging the equation, we get:

This is the formula for integration by parts. The idea is to choose and such that the integral on the right-hand side is easier to solve than the integral on the left-hand side.

Example Problem: Integration by Parts -

Evaluate the following integral:

We have a product of and . Determining which is and which is comes down to the right hand side, specifically .

Therefore, we assign such that is easy, and asssign such that is easy.

Choose because , and choose because .

Plugging into and using :

Example Problem: Integration by Parts -

Evaluate the following integral:

Integration by Parts works for products of two functions, but this is a singular function!

However, you can add another term simply by multiplying by :

We assign such that is easy, and asssign such that is easy.

Choose because , and choose because .

Plugging into and using :

Example Problem: Integration by Parts -

Evaluate the following integral:

We shall first use Integration by Parts like before:

The integral on the right can be solved using Integration by Parts again:

Integration through Trigonometric Substitution

Trigonometric Substitution is another way to substitute variables to make integration easier.

Trigonometric Substitution with Sine

Consider this integral:

Using our current understanding, it would be very difficult to solve this integral. However, looking at the radical in the denominator, it looks very similar to the Pythagorean Theorem. Therefore, we can construct a right triangle to visualize this:

Through the Pythagorean Theorem, the red line is , which is the denominator of the expression in Equation .

Set angle to be the opposite of . As such,

We have derived the fact that . Differentiating both sides w.r.t (just like we did with -substitution),

Take the original integral and substitute Equation into it:

Then, substitute into it:

We can solve Equation for in terms of :

Therefore:

Another way to derive Equation through the Pythagorean Identity:

The advantage of this is that we do not have to construct a right triangle to derive it.

We can also make a general procedure for trigonometric substitution: For an integral that contains , make the substitution .

Trigonometric Substitution with Tangent

When we performed trigonometric substitution with , we had the pattern of . If we put this into a right triangle, then is the hypotenuse.

Now we look at an integral like this:

In an integral in this form, and are the sides of the right triangle. As such, we can once again construct a triangle and use as our substitutent variable:

Using this triangle:

Using the Pythagorean Theorem, the length of the green line/hypotenuse is . Hence:

We can substitute this back into :

Now substitute into it:

Finally, substitute :

Example Problem: Trigonometric Substitution -

Evaluate the following integral:

To solve this, we first need to get rid of the coefficient of ;

This becomes an integral of the form where . As such we can make the substitution . Differentiating both sides w.r.t , and solving for in terms of :

Calculate the denominator:

Recall the Pythagorean identity (which can be derived using the unit circle). Therefore:

Substituting this, along with Equation back into :

Substituting :

Integration by Partial Fractions

Partial fractions is a technique used to integrate rational functions.

Consider the following integral:

Maybe the first thing you think of is to see if the nuemrator is the derivative of the denominator, and if it is, then you can use -substitution. However, this is not the case here. Instead, we can use partial fractions.

We can factor :

The key is that the denominator is a product, which means we can split it into two fractions:

This can be thought of as the reverse of what you would usually do when adding fractions.

Note the variables and - although we know that the fraction can be split into two, we don't know what the numerators are. We can solve for them by multiplying both sides by the denominator:

We now have two terms in the numerator, one with and one without . Since all we did is rewrite the original fraction, we can equate the fraction in and :

We can equate the coefficients of and the constant terms, forming a system of equations:

Solving this system of equations, we get and .

Solving the System of Equations

Since the first equation has and the second has , we can add the two equations to eliminate :

Then, we can simply substitute back into the first equation to get :

Substitute and back into :

Now we can integrate the two terms by reversing the chain rule:

Therefore, the integral at can be rewritten as:

Improper Integrals

Integrals can contain bounds that are infinity. Alternatively, the integrand might have a vertical asymptote in its interval. These violate the typical assumptions for integrals, and are hence called improper integrals. Some improper integrals can be calculated using limits.

Convergent Improper Integrals

Consider the following improper integral:

An integral from to means the area under the curve that begins at and never ends:

Since you can't add infinite things, you consider what the area approaches as the upper bound approaches infinity - a limit:

Having a finite area, this integral is convergent.

Divergent Improper Integrals

Unlike a convergent integral, a divergent integral goes to infinity.

For instance:

Since , we can drop the absolute values.

As such, this integral is divergent.

Worked Examples

Example Problem: Combining and Trigonometric Substitution

Evaluate the following integral:

Since we have , we can substitute . As always:

Therefore, the integral at can be rewritten as:

With odd powers of trigonometric functions, it is often helpful to separate them.

Here, if we let be , then we need to make . To do so, we can make use of the Pythagorean identity once again:

This should be relatively obvious - we have a function of something (), as well as the derivative of that thing (). Therefore we can apply -substitution:

Hence:

We can manipulate to derive an expression for :

Finally, substituting this back into , and performing some algebra, we get the result:

(More examples to come.)

Summary

Integration is the process of finding the antiderivative of a function.

Indefinite integrals are integrals without bounds, while definite integrals have bounds, and describe the area under the curve.

Accumulation functions are used to find the total accumulation of a quantity over a given interval, and are defined via definite integrals.

The integral is formally defined as the limit of Riemann sums:

where and .

The fundamental theorem of calculus states that the integral of a function is the antiderivative of that function:

There are several techniques to solve integrals:

  • -substitution/reverse chain rule is used to simplify the integrand by substituting a variable :

  • Algebraic manipulation, such as long division, completing the square, or partial fractions, can simplify the integrand.

  • Integration by parts is used to integrate the product of two functions:

  • Trigonometric substitution is used to substitute trigonometric functions to simplify the integrand:

    Generally, for , substitute , and for , substitute .

Improper integrals are integrals with infinite bounds or vertical asymptotes. They can be convergent or divergent.