5  Integration

Aims

Learning outcomes

5.1 Reverse to differentiation

  • when a function f(x) is known we can differentiate it to obtain the derivative f(x)
  • the reverse process is to obtain f(x) from the derivative
  • this process is called integration
  • apart from simple reversing differentiation integration comes very useful in finding areas under curves, i.e. the area above the x-axis and below the graph of f(x), assuming that f(x) is positive
  • the symbol for integration is and is known as “integral sign”

E.g. let’s take a function f(x)=x2. Suppose we only have a derivative, which is f(x)=2x and we would like to find the function given this derivative. Formally we write: 2xdx=x2+c

where:

  • the term 2x within the integral is called the integrand
  • the term dx indicates the name of the variable involved, here x
  • c is constant of integration

5.2 What is constant of integration?

  • Integration reverses the process of differentiation, here, given our example function f(x)=x2 that we pretended we do not know, we started with the derivative f´(x)=2x and via integration we obtained back the very function 2xdx=x2
  • However, many function can result in the very same derivative since the derivative of a constant is 0 e.g. a derivatives of f(x)=x2, f(x)=x2+10 and f(x)=x2+12 all equal to f(x)=2x
  • We have to take this into account when we are integrating, i.e. reverting differentiation. As we have no way of knowing what the original function constant is, we add it in form of c, i.e. unknown constant, called the constant of integration.

5.3 Table of integrals

Similar to differentiation, in practice we can use tables of integrals to be able to find integrals in simple cases

Common functions and their integrals, k denotes a constant {#tbl:integrals}
Function f(x) Integral f(x)dx
constantk kx+c
x x22+c
kx kx22+c
xn xn+1n+1+cifn1
kxn kxn+1n+1+c
ex ex+c
ekx ekxk+c
1x ln(x)+c

E.g.

  • 4x3dx=4x3+13+1=x4+c
  • (x2+x)dx=x33+x22+c (note: we can evaluate integrals separately and add them as integration as differentiation is linear)

5.4 Definite integrals

  • the above examples of integrals are indefinite integrals, the result of finding an indefinite integral is usually a function plus a constant of integration

  • we have also definite integrals, so called because the result is a definite answer, usually a number, with no constant of integration

  • definite integrals are often used to areas bounded by curves or, as we will cover later on, estimating probabilities

  • we write: abf(x)dx where:

  • abf(x)dx is called the definite integral of f(x) from a to b

  • the numbers a and b are known as lower and upper limits of the integral

E.g. let’s look at the function f(x)=x plotted below and calculate a definite integral from 0 to 2.

Graph of function f(x)=x

We write 02f(x)dx=02xdx=[12x2]02=12(2)212(0)2=2 so first find the integral and then we evaluate it at upper limit and subtracting the evaluation at the lower limit. Here, the result it 2. What would be the result if you tried to calculate the triangle area on the above plot, area defined by the blue vertical lines drawn at 0 and 2 and horizontal x-axis? The formula for the triangle area is Area=12baseheight so here Area=1222=2 the same result as achieved with integration.

Exercises

Exercise 5.1 (Integrate) Integrate:

  1. 2dx
  2. 2xdx
  3. (x4+x2+1)dx
  4. exdx
  5. e2xdx
  6. 2xdx
  7. 242xdx
  8. 04(x2+1)dx

Answers

Solution. Exercise 5.1

  1. 2dx=2x+c
  2. 2xdx=2x22=x2+c
  3. (x4+x2+1)dx=x55+x33+x+c
  4. exdx=ex+c
  5. e2xdx=12e2x
  6. 2xdx=21xdx=2lnx+c
  7. 242xdx=[x2]24=164=12
  8. 04(x2+1)dx=[x33+x]04=433+40=643+4=763