Integration primer

16 December 2018

1 Simple cases

Simplest case is xnx^n

xndx=1n+1×xn+1=xn+1n+1\int x^n \, dx = \frac 1{n+1} \times x^{n+1} = \frac{x^{n+1}}{n+1}

1.1 Reverse chain rule for form ax+bax+b

f(ax+b)dx=1af(ax+b)+c\int f' (ax+b) \, dx = \frac 1 a f(ax+b) + c

If unsure about this, add 1 to the index, differentiate, and then adjust the constant.

e.g. (2x+1)2dx=16(2x+1)3\int (2x+1)^2 \, dx = \frac 1 6 (2x+1)^3

Adding one to the index and differentiating:
ddx((2x+1)3)=3×(2x+1)2×2=6(2x+1)2\frac d{dx} ( ( 2x+1 )^3 ) = 3 \times (2x+1)^2 \times 2 = 6 (2x+1)^2

Adjusting the constant accordingly:
ddx(16(2x+1)3)=3×16×(2x+1)2×2=(2x+1)2\frac d{dx} ( \frac 1 6 (2x+1)^3 ) = 3 \times \frac 1 6 \times (2x+1)^2 \times 2 = (2x+1)^2

1.2 Standard functions

Standard results, below, can be used to integrate. As can be seen in the table below, these are the standard differentiation results, but going the other way i.e. integrating rather than differentiating.

xndx=1n+1xn+1+c\int x^n \, dx = \frac 1{n+1} x^{n+1} + c
exdx=ex+c\int e^x \, dx = e^x + c
1xdx=lnx+c\int \frac 1 x \, dx = \ln \mid x \mid + c
(cosx)dx=sinx+c\int (\cos x) \, dx = \sin x + c
(sinx)dx=cosx+c\int (\sin x) \, dx = - \cos x + c
(sec2x)dx=tanx+c\int (\sec^2 x) \, dx = \tan x + c
(cscxcotx)dx=cscx+c\int (\csc x \cot x) \, dx = - \csc x + c
(secxtanx)dx=secx+c\int (\sec x \tan x) \, dx = \sec x + c
(csc2x)dx=cotx+c\int (\csc^2 x) \, dx = - \cot x + c

Differentiation Integration
ddx(xn)=nxn1\frac{d}{dx} (x^n) = nx^{n-1} xndx=1n+1xn+1+c\int x^n \, dx = \frac 1{n+1} x^{n+1} + c
ddx(ekx)=kekx\frac{d}{dx} (e^{kx}) = ke^{kx} exdx=ex+c\int e^x \, dx = e^x + c
ddx(lnx)=1x\frac{d}{dx} (\ln x) = \frac 1 x 1xdx=lnx+c\int \frac {1}{x} \, dx = \ln \mid x \mid + c
ddx(akx)=akxklna\frac{d}{dx} (a^{kx}) = a^{kx} k \ln a
ddx(sinkx)=kcoskx\frac{d}{dx} (\sin kx) = k \cos kx (cosx)dx=sinx+c\int (\cos x) \, dx = \sin x + c
ddx(coskx)=ksinkx\frac{d}{dx} (\cos kx) = - k \sin kx (sinx)dx=cosx+c\int(\sin x) \, dx = - \cos x + c
ddx(tankx)=ksec2kx\frac{d}{dx} (\tan kx) = k \sec^2 kx (sec2x)dx=tanx+c\int(\sec^2 x) \, dx = \tan x + c
ddx(csckx)=kcsckxcotkx\frac{d}{dx} (\csc kx) = - k \csc kx \cot kx (cscxcotx)dx=cscx+c\int (\csc x \cot x) \, dx = - \csc x + c
ddx(seckx)=kseckxtankx\frac{d}{dx} (\sec kx) = k \sec kx \tan kx (secxtanx)dx=secx+c\int (\sec x \tan x) \, dx = \sec x + c
ddx(cotkx)=kcsc2kx\frac{d}{dx} (\cot kx) = -k \csc^2 kx (csc2x)dx=cotx+c\int(\csc^2 x) \, dx = - \cot x + c

In addition to these, there are further standard results for integration

tanxdx=lnsecx+c\int \tan x \, dx = \ln |\sec x| + c secxdx=lnsecx+tanx+c\int \sec x \, dx = \ln |\sec x + \tan x| + c
cotxdx=lnsinx+c\int \cot x \, dx = \ln |\sin x| + c
cscxdx=lncscx+cotx+c\int \csc x \, dx = - \ln |\csc x + \cot x | + c

1.3 Trigonometric identities

Can be used to replace an expression that cannot be integrated with one that can, using the standard results.

e.g. tan2xdx=sec2x1dx=tanxx+c\int \tan ^2 x \, dx = \int \sec^2 x - 1 \, dx = \tan x - x + c

Given

cos2x+sin2x1\cos^2 x + \sin^2 x \equiv 1
1+tan2xsec2x1 + \tan ^2 x \equiv \sec^2 x
tan2xsec2x1\tan^2 x \equiv \sec^2 x - 1

2 Reverse chain rule in the form kf(x)f(x)k \frac{f'(x)}{f(x)}

If in the form kf(x)f(x)k \frac{f'(x)}{f(x)} try lnf(x)\ln |f(x)| and then differentiate to check, and adjust any constant.

e.g. I=cosx3+2sinxdxI = \int \frac {\cos x}{3+2 \sin x} \, dx

Consider

y=ln3+2sinxy = \ln |3+2 \sin x|
dydx=1(3+2sinx)×(2cosx)=2cosx3+2sinx\frac{dy}{dx} = \frac 1 {(3+2 \sin x) \times (2 \cos x)} = \frac{2 \cos x}{3+2 \sin x}

So

I=12ln3+2sinx+cI = \frac 1 2 \ln |3+2 \sin x| + c

3 Reverse chain rule in the form kf(x)(f(x))nk f'(x) ( f(x) )^n

If in the form kf(x)(f(x))nk f'(x) ( f(x) )^n try (f(x))n+1(f(x))^{n+1} and then differentiate to check, and adjust any constant.

e.g. I=x(x2+5)3dxI = \int x (x^2 + 5)^3 \, dx

Consider

y=(x2+5)4y = (x^2 + 5)^4
dydx=4(x2+5)3×2x=8x(x2+5)3\frac{dy}{dx} = 4(x^2 + 5)^3 \times 2x = 8x (x^2 + 5)^3

So

I=18(x2+5)4+cI = \frac 1 8 (x^2 + 5)^4 + c

4 Integration by substitution

Idea is to simplify integration by changing the variable. In this sense similar to the chain rule for differentiation.

Usually the term will be a function of xx multiplied by another function of xx.

  1. Set uu equal to part of the term and set II equal to the original integral
  2. Find xx in terms of uu
  3. Differentiate uu for dudx\frac{du}{dx}
  4. Substitute terms of xx for terms of uu and dxdx for dudu in the integral. Now have II in terms of xx
  5. Substitute uu terms with xx terms to be left with II in terms of xx

Usually you will want to pick a bracketed term in xx to use for uu. If there is e.g. 1 + something in the denominator, use something as your value for uu. Sometimes you may pick a substitution which is not helpful and go round in circles, in which case e.g. in the case where the question directs you to use integration by subsitution, another substitution should be tried.

5 Integration by parts

Starting with a re-arranged version of the product rule for differentiation:

ddx(uv)=udvdx+vdudx\frac d{dx} (uv) = u \frac{dv}{dx} + v \frac{du}{dx}

So: udvdx=ddx(uv)vdudxu \frac{dv}{dx} = \frac{d}{dx} (uv) - v \frac{du}{dx}

Further, given ddx(uv)dx=uv\int \frac{d}{dx} (uv) \, dx = uv then, integrating each term, we are left with the formula for integration by parts:

udvdxdx=uvvdudxdx\int u \frac{dv}{dx} \, dx = uv - \int v \frac{du}{dx} \, dx

Function to be integrated will be in the form ududxdx\int u \frac{du}{dx} \, dx so will need to pick variables for each of uu and dvdx\frac{dv}{dx}

  1. For a function with a lnx\ln x term, set uu as this
  2. Similarly for an xnx^n term, let uu equal this. In the easiest case u=xu=x
  3. If both an xnx^n term and a lnx\ln x term, let uu equal the lnx\ln x term

Note may need to integrate by parts twice

When applying limits be careful to apply separately to the different terms i.e.
I=abudvdxdxI = \int _a^b u \frac{dv}{dx} \, dx
I=[uv]ababvdudxdxI = [uv] _a^b - \int _a^b v \frac{du}{dx} \, dx

Note that the purpose of integration by parts is that vdudxdx\int v \frac{du}{dx} \, dx is easier to integrate than the original term and so it is important to pick uu and dvdx\frac{dv}{dx} accordingly, otherwise one can go around in circles. If terms such as xcosxx \cos x, x2sinxx^2 \sin x, x3exx^3 e^x etc are present, let uu equal the xnx^n term. If an lnx\ln x term e.g. x2lnxx^2 \ln x, let uu equal the lnx\ln x term.

Appendix — things to remember

  1. Integration is just differentiation in reverse and so familiarity with the standard differentation results is important
  2. Remember to separate the term to be integrated into partial fractions if the degree of the polynomial in the numerator is greater than or equal to the degree of the polynomial in the denominator e.g. x3+ax2+b\frac{x^3 + a}{x^2 + b} needs splitting into partial fractions before it can be integrated
  3. Calculation steps may be saved by simplifying the integral as much as possible before substituting limits
  4. Relatedly, often constant terms (even 1-1) can be taken outside of the integral to make life easier
  5. Remember the constant of integration +c+c at the end. For first order differential equations this is only needed on one side of the equation
  6. When adding regions together to get the total area of region(s) under curve(s) do not forget that area is always a positive quantity — so you will be adding positive values