Integral calculus

Antiderivative of a function

Definition - Antiderivative of a function. Given a function f(x), the function F(X) is an antiderivative or primitive function of f if it satisfies that F(x)=f(x) xDom(f).

Example. The function F(x)=x2 is an antiderivative of the function f(x)=2x as F(x)=2x on R.

Roughly speaking, the calculus of antiderivatives is the reverse process of differentiation, and that is the reason for the name of antiderivative.

Indefinite integral of a function

As two functions that differs in a constant term have the same derivative, if F(x) is an antiderivative of f(x), so will be any function of the form F(x)+k kR. This means that, when a function has an antiderivative, it has an infinite number of antiderivatives.

Definition - Indefinite integral. The indefinite integral of a function f(x) is the set of all its antiderivatives; it is denoted by

f(x)dx=F(x)+C where F(x) is an antiderivative of f(x) and C is a constant.

Example. The indefinite integral of the function f(x)=2x is 2xdx=x2+C.

Interpretation of the integral

We have seen in a previous chapter that the derivative of a function is the instantaneous rate of change of the function. Thus, if we know the instantaneous rate of change of the function at any point, we can compute the change of the function.

Example. What is the space covered by an free falling object?

Assume that the only force acting upon an object drop is gravity, with an acceleration of 9.8 m/s2. As acceleration is the the rate of change of the speed, that is constant at any moment, the antiderivative is the speed of the object,

v(t)=9.8t m/s

And as the speed is the rate of change of the space covered by object during the fall, the antiderivative of the speed is the space covered by the object,

s(t)=9.8tdt=9,8t22.

Thus, for instance, after 2 seconds, the covered space is s(2)=9.8222=19.6 m.

Linearity of integration

Given two integrable functions f(x) and g(x) and a constant kR, it is satisfied that

  1. (f(x)+g(x))dx=f(x)dx+g(x)dx,
  2. kf(x)dx=kf(x)dx.

This means that the integral of any linear combination of functions equals the same linear combination of the integrals of the functions.

Elementary integrals

  • adx=ax+C, with a constant.
  • xndx=xn+1n+1+C if n1.
  • 1xdx=ln|x|+C.
  • exdx=ex+C.
  • axdx=axlna+C.
  • sinxdx=cosx+C.
  • cosxdx=sinx+C.
  • tanxdx=ln|secx|+C.
  • secxdx=ln|secx+tanx|+C.
  • cscxdx=ln|cscxcotx|+C.
  • cotxdx=ln|sinx|+C.
  • sec2xdx=tanx+C.
  • csc2xdx=cotx+C.
  • secxtanxdx=secx+C.
  • cscxcotxdx=cscx+C.
  • dxa2x2=arcsinxa+C.
  • dxa2+x2=1aarctanxa+C.
  • dxxx2a2=1asec1xa+C.
  • dxa2x2=12aln|x+axa|+C.

Techniques of integration

Unfortunately, unlike differential calculus, the is not a foolproof procedure to compute the antiderivative of a function. However, there are some techniques that allow to integrate some types of functions. The most common methods of integration are

  • Integration by parts
  • Integration by reduction
  • Integration by substitution
  • Integration of rational functions
  • Integration of trigonometric functions

Integration by parts

Theorem - Integration by parts. Given two differentiable functions u(x) and v(x),

u(x)v(x)dx=u(x)v(x)u(x)v(x)dx,

or, writing u(x)dx=du and v(x)dx=dv,

udv=uvvdu.

From the rule for differentiating a product we have

(uv)=uv+uv

and computing the integrals both sides we get

(uv)dx=uvdx+uvdxuv=vdu+udvudv=uvvdu.

To apply this method we have to choose the functions u and dv in a way so that the final integral is easier to compute than the original one.

Example. To integrate xsinxdx we have to choose u=x and dv=sinxdx, so du=dx and v=cosx, getting xsinxdx=xcosx(cosx)dx=xcosx+sinx. If we had chosen u=sinx and dv=xdx, we would have got a more difficult integral.

Integration by reduction

The reduction technique is used when we have to apply the integration by parts several times.

If we want to compute the antiderivative In that depends on a natural number n, the reduction formulas allow us to write In as a function of In1, that is, we have a recurrent relation  In=f(In1,x,n) so by computing the first antiderivative I0 we should be able to compute the others.

Example. To compute In=xnexdx applying integration by parts, we have to choose u=xn y dv=exdx, so du=nxn1dx and v=ex, getting

 In=xnexdx=xnexnxn1exdx=xnexnIn1.

Thus, for instance, for n=3 we have

x3exdx=I3=x3ex3I2=x3ex3(x2ex2I1)==x3ex3(x2ex(xexI0)=x3ex3(x2ex(xexex)==ex(x33x2+6x6).

Integration by substitution

From the chain rule for differentiating the composition of two functions

f(g(x))=f(g(x))g(x),

we can make a variable change u=g(x), so du=g(x)dx, and get

f(g(x))g(x)dx=f(u)du=f(u)+C=f(g(x))+C.

Example. To compute the integral of 1xlogxdx we can make the substitution u=logx, so du=1xdx, and we have

dxxlogx=1logx1xdx=1udu=log|u|+C.

Finally, undoing the substitution we get

1xlogxdx=log|logx|+C.

Integration of rational functions

Partial fractions decomposition

A rational function can be written as the sum of a polynomial (with an immediate antiderivative) plus a proper rational function, that is, a rational function in which the degree of the numerator is less than the degree of the denominator.

On the other hand, depending of the factorization of the denominator, a proper rational function can be expressed as a sum of simpler fractions of the following types

  • Denominator with a single linear factor: A(xa)
  • Denominator with a linear factor repeated n times : A(xa)n
  • Denominator with a single quadratic factor: Ax+Bx2+cx+d
  • Denominator with a quadratic factor repeated n times: Ax+B(x2+cx+d)n

Antiderivatives of partial fractions

Using the linearity of integration, we can compute the antiderivative of a rational function from the antiderivative of these partial fractions

Axadx=Alog|xa|+C,A(xa)ndx=A(n1)(xa)n1+C si n1.Ax+Bx2+cx+d=A2log|x2+cx+d|+2BAc4dc2arctan2x+c4dc2+C.

Integration of a rational function with a denominator with linear factors

Example. Consider the function f(x)=x2+3x5x33x+2.

The factorization of the denominator is x33x+2=(x1)2(x+2); it has a single linear factor (x+2) and a linear factor (x1), repeated two times. In this case the decomposition in partial fractions is:

x2+3x5x33x+2=Ax1+B(x1)2+Cx+2==A(x1)(x+2)+B(x+2)+C(x1)2(x1)2(x+2)==(A+C)x2+(A+B2C)x+(2A+2B+C)(x1)2(x+2)

and equating the numerators we get A=16/9, B=1/3 and C=7/9, so

x2+3x5x33x+2=16/9x1+1/3(x1)2+7/9x+2.

Finally, integrating each partial fraction we have

x2+3x5x33x+2dx=16/9x1dx+1/3(x1)2dx+7/9x+2dx==1691x1dx13(x1)2dx791x+2dx==169ln|x1|+13(x1)79ln|x+2|+C.

Integration of a rational function with a denominator with simple quadratic factors

Example. Consider the function f(x)=x+1x24x+8.

In this case the denominator cannot be factorised as a product of linear factors, but we can write

x24x+8=(x2)2+4,

so

x+1x24x+8dx=x2+3(x2)2+4dx==x2(x2)2+4dx+3(x2)2+4dx==12ln|(x2)2+4|+32arctan(x22)+C.

Integration of trigonometric functions

Integration of sinnxcosmx with n or m odd

If f(x)=sinnxcosmx with n or m odd, then we can make the substitution t=sinx or t=cosx, to convert the function into a polynomial.

Example.

sin2xcos3xdx=sin2xcos2xcosxdx=sin2x(1sin2x)cosxdx,

and making the substitution t=sinx, so dt=cosxdx, we have

sin2x(1sin2x)cosxdx=t2(1t2)dt=t2t4dt=t33t55+C.

Finally, undoing the substitution we have

sin2xcos3xdx=sin3x3sin5x5+C.

Integration of sinnxcosmx with n and m even

If f(x)=sinnxcosmx with n and m even, then we can make the following substitutions to simplify the integration

sin2x=12(1cos(2x))cos2x=12(1+cos(2x))sinxcosx=12sin(2x)

Example.

sin2xcos4xdx=(sinxcosx)2cos2xdx=(12sin(2x))212(1+cos(2x))dx==18sin2(2x)dx+18sin2(2x)cos(2x)dx,

the first integral is of the same type and the second one of the previous type, so sin2xcos4xdx=132x132sin(2x)+124sin3(2x).

Products of sines and cosines

The equalities

sinxcosy=12(sin(xy)+sin(x+y))sinxsiny=12(cos(xy)cos(x+y))cosxcosy=12(cos(xy)+cos(x+y))

transform products in sums, simplifying the integration.

Example.

sinxcos2xdx=12(sin(x2x)+sin(x+2x))dx==12sin(x)dx+12sin3xdx==12cos(x)16cos3x+C.

Rational functions of sines and cosines

If f(x,y) is a rational function then the function f(sinx,cosx) can be transformed in an rational function of t with the following substitutions

tanx2=tsinx=2t1+t2cosx=1t21+t2dx=21+t2dt.

Example.

1sinxdx=12t1+t221+t2dt=1tdt=log|t|+C=log|tanx2|+C.

Definite integral

Definition - Definite integral. Let f(x) be a function which is continuous on an interval [a,b]. Divide this interval into n subintervals of equal width Δx and choose an arbitrary point xi from each subinterval. The definite integral of f from a to b is defined to be the limit

abf(x)dx=limni=1nf(xi)Δx.

Riemann sums

Theorem - First fundamental theorem of Calculus. If f(x) is continuous on the interval [a,b] and F(x) is an antiderivative of f on [a,b], then

abf(x)dx=F(b)F(a)

Example. Given the function f(x)=x2, we have

12x2dx=[x33]12=233133=73.

Properties of the definite integral

Given two functions f(x) and g(x) integrable on [a,b] and kR the following properties are satisfied:

  • ab(f(x)+g(x))dx=abf(x)dx+abg(x)dx (linearity)

  • abkf(x)dx=kabf(x)dx (linearity)

  • abf(x)dxabg(x)dx si f(x)g(x) x[a,b] (monotony)

  • abf(x)dx=acf(x)dx+cbf(x)dx for any c(a,b) (additivity)

  • abf(x)dx=baf(x)dx

Area calculation

Area between a positive function and the x axis

If f(x) is an integrable function on the interval [a,b] and f(x)0 x[a,b], then the definite integral

abf(x)dx

measures the area between the graph of f and the x axis on the interval [a,b].

Area of a positive function

Area between a negative function and the x axis

If f(x) is an integrable function on the interval [a,b] and f(x)0 x[a,b], then the area between the graph of f and the x axis on the interval [a,b] is

abf(x)dx.

Area of a negative function

Area between a function and the x axis

In general, if f(x) is an integrable function on the interval [a,b], no matter the sign of f on [a,b], the area between the graph of f and the x axis on the interval [a,b] is

ab|f(x)|dx.

Area of a function

Area between two functions

If f(x) and g(x) are two integrable functions on the interval [a,b], then the area between the graph of f and g on the interval [a,b] is ab|f(x)g(x)|dx.

Area between two function
Previous
Next