Integrals are a fundamental tool for a range of activities in fields such as mathematics, physics, and engineering. In this article, we’ll take a macro look at what integrals are, before moving on to work step by step through various possible uses.

Whereas we use derivatives in calculus to compute instantaneous rates of change of functions, integrals measure net change or total change of functions over an interval.

For example, if you were driving along an interstate highway and you had a function $f\left(t\right)$ that measured the distance (in miles) from your starting location as a function of the time t (in hours) since you started driving, then the integral

$\int_2^4f\left(t\right)\operatorname dt$

would represent the total distance traveled between hours 2 and 4 of your trip.

Integrals are used throughout physics, engineering, and math to compute quantities such as area, volume, mass, physical work, and more. In this article, we’ll explore the basics behind integrals, the difference between definite and indefinite integrals, and some basic strategies for computing them.

Definite vs Indefinite Integrals

All of the various applications of integrals we mentioned in the previous section are examples of definite integrals. In general, a definite integral looks like this:

$\int_a^bf\left(x\right)\operatorname dx$

The mathematical definition of a definite integral is a little complicated, but in practice we can think of the notation above as representing the net change of the function $f$ over the interval from $x=a$ to $x=b$. This value happens to coincide with the signed area between the graph of $f$ and the x-axis:

Indefinite integralsarise from the way that we typically compute definite integrals. Most of the time, we evaluate definite integrals using the Fundamental Theorem of Calculus or FTC):

$\int_a^bf\left(x\right)\operatorname dx=F\left(b\right)-F\left(a\right)\newline\text{ where }F'\left(x\right)=f\left(x\right)$

In words, to evaluate the integral of a function $f$ over an interval $a\leq x\leq b$, we need to find a function $F$ whose derivative is $f$; evaluate that function at the two endpoints of the interval; and then subtract those two values. For example, to compute an integral of the function $f\left(x\right)=x^2$, we could use the function $F\left(x\right)=\frac13x^3$, since the derivative of the latter is $x^2$:

The function $F$ used in the FTC is called an antiderivativeof $f$: it’s a function whose derivative is $f$. This is where indefinite integrals come in: we use the notation

$\int f\left(x\right)\operatorname dx$

for the general antiderivative of $f$. Based on the example above, we would have

$\int x^2\operatorname dx=\frac13x^3+C$

where the extra "+C" term is there to take into account all of the functions whose derivative are x^2.

In summary: definite integrals—those with bounds on the integral symbol—are extremely useful for computing areas and net changes of functions, and we can extend them to compute other quantities, such as mass and volume. To actually evaluate a definite integral, however, we need to find an indefinite integral (i.e., an antiderivative).

Integrals of Common Functions

The process of computing antiderivatives can be tricky, as it’s not as algorithmic as finding derivatives. Fortunately, to get us started using integrals, there are a few functions for which finding the antiderivative is not too difficult. Here are the indefinite integrals of some simple functions that you’ll encounter frequently.

Integrals of Power Functions

Just like derivatives, there’s a “Power Rule” for integrals. Can you guess what it is from the pattern in this table?

We'll cover the general rule in greater depth below, in the Power Rule section.

Integrals of Exponential and Logarithmic Functions

The exponential and logarithmic functions play key roles throughout both theoretical and applied mathematics. Notice that because $e^x$ is its own derivative, it’s also its own antiderivative!

Integrals of Trigonometric Functions

Trigonometric functions are useful in any situation that involves periodicbehavior, where a function takes on the same values in repeating intervals.

As with derivatives, there are a handful of rules we can use to find antiderivatives of complicated functions based on our knowledge of simpler antiderivatives. For each rule, we’ve provided a few examples to show how it works.

The Power Rule

The Power Rule for integrals is something of an opposite to the usual Power Rule for differentiation:

$\int x^k\operatorname dx=\frac1{k+1}x^{k+1}+C$

Notice that this doesn’t work if $k=-1$, since then we have division by zero on the right side of the equation. (The antiderivative of $x^{-1}$ is shown in the table in the previous section.) Here are a couple examples of the Power Rule:

Because derivatives and integrals are closely related, they obey some similar algebraic properties. In particular, integrals follow the same rules regarding sums, differences, and constant multiples of functions:

So the integral of a sum or difference is the same as the sum or difference of the integrals, and we can “pull” constants outside of integrals. Here are a couple examples of those three rules used together:

This is probably the most useful rule for computing integrals, even though it takes some time to master it. On paper, the formula for substitution is, once again, an opposite of sorts, this time to the Chain Rule for derivatives:

We can apply substitution to an integral whenever we can identify a piece$\left(u\left(x\right)\right)$ of the integrand whose derivative <katex>\left(u'\left(x\right)\right)also appears in the integrand. Let’s work through an example to see how this goes. This time, we’ll find the indefinite integral of:

$\int2x\;e^x\operatorname dx$

Notice that the integrand $2x\;e^x$ fits the criterion for using substitution: if we define $u\left(x\right)=x^2$, then the derivative $u'\left(x\right)=2x$ also appears in the integrand. So we substitute $u=x^2$ into this integral. We replace $x^2$ with $u$ and $2x\operatorname dx$ with $du$:

This leaves us with a simpler integral that we can compute (using the tables above, for instance):

$\int e^u\operatorname du=e^u+C$

To finish the process, we plug $u=x^2$ back into the antiderivative we found:

$\int2x\;e^{x^2}\operatorname dx=e^{x^2}+C$

(Remember, the goal with integrals is to find functions whose derivatives are the functions we are given. So we can always check our work by taking the derivative of our result, $\frac d{\operatorname dx}\left(e^{x^2}+C\right)=2x\;e^{x^2}$ via the Chain Rule, to see if we get the function we started with.)

Here’s another example. Let’s compute

$\int\frac x{\sqrt{x^2-1}}\operatorname dx$

We’d like to substitute $u=x^2-1$ here, but the derivative of that is $2x$, which doesn’t appear in the integrand. However, we can rewrite the integral in a clever way to make that happen:

Now we can substitute $u=x^2-1$ and $\operatorname du=2x\operatorname dx$, which simplifies the integral into something we can compute using the Power Rule:

Outlier (from the co-founder of MasterClass) has brought together some of the world's best instructors, game designers, and filmmakers to create the future of online college.