Skip to content

Integration basics and standard integrals

Integration reverses differentiation. If F(x)=f(x)F'(x)=f(x), then FF is an antiderivative of ff, and

f(x)dx=F(x)+C.\int f(x)\,dx=F(x)+C.

The symbol \int means integrate, f(x)f(x) is the integrand, and dxdx identifies xx as the variable of integration. The constant CC represents every possible constant because differentiation cannot recover a constant that has disappeared.

You should be able to:

  • use negative and fractional indices;
  • simplify algebraic fractions and roots;
  • differentiate powers, exponentials and basic trigonometric functions;
  • substitute values into a function and solve a linear equation.

Review differentiation and gradients and differentiating standard functions if needed.

Since

ddx(x3+7)=3x2andddx(x320)=3x2,\frac{d}{dx}(x^3+7)=3x^2 \quad\text{and}\quad \frac{d}{dx}(x^3-20)=3x^2,

the integrand 3x23x^2 does not have just one antiderivative. It has the family

3x2dx=x3+C.\boxed{\int 3x^2\,dx=x^3+C}.

Different values of CC translate the graph vertically but do not change its gradient at any xx.

Worked example 1: checking by differentiation

Section titled “Worked example 1: checking by differentiation”

Find 12x3dx\int 12x^3\,dx.

We need a function whose derivative is 12x312x^3. Since differentiating x4x^4 produces 4x34x^3, use a coefficient of 33:

12x3dx=3x4+C.\int 12x^3\,dx=3x^4+C.

Check:

ddx(3x4+C)=12x3.\frac{d}{dx}(3x^4+C)=12x^3.

This differentiation check is the most reliable way to detect a missing factor or incorrect power.

For n1n\ne-1,

xndx=xn+1n+1+C.\boxed{\int x^n\,dx=\frac{x^{n+1}}{n+1}+C}.

Increase the power by 11, then divide by the new power. The restriction n1n\ne-1 is essential because dividing by the new power would otherwise mean dividing by zero.

More generally,

axndx=an+1xn+1+C,n1.\int ax^n\,dx=\frac{a}{n+1}x^{n+1}+C, \qquad n\ne-1.

Find

(6x48x3+5x7)dx.\int(6x^4-8x^3+5x-7)\,dx.

Integrate term by term:

(6x48x3+5x7)dx=6(x55)8(x44)+5(x22)7x+C=65x52x4+52x27x+C.\begin{aligned} \int(6x^4-8x^3+5x-7)\,dx &=6\left(\frac{x^5}{5}\right) -8\left(\frac{x^4}{4}\right) +5\left(\frac{x^2}{2}\right)-7x+C\\ &=\boxed{\frac65x^5-2x^4+\frac52x^2-7x+C}. \end{aligned}

The integral of the constant 7-7 is 7x-7x, not 00. Differentiation sends constants to zero; integration asks which function differentiates to the given constant.

Worked example 3: negative and fractional powers

Section titled “Worked example 3: negative and fractional powers”

Find

(4x3+3x2x)dx.\int\left(\frac{4}{x^3}+3\sqrt{x}-\frac{2}{\sqrt{x}}\right)dx.

Rewrite every term as a power:

4x3+3x2x=4x3+3x1/22x1/2.\frac{4}{x^3}+3\sqrt{x}-\frac{2}{\sqrt{x}} =4x^{-3}+3x^{1/2}-2x^{-1/2}.

Now apply the reverse power rule:

(4x3+3x1/22x1/2)dx=4x22+3x3/23/22x1/21/2+C=2x2+2x3/24x+C.\begin{aligned} \int\left(4x^{-3}+3x^{1/2}-2x^{-1/2}\right)dx &=\frac{4x^{-2}}{-2}+\frac{3x^{3/2}}{3/2}-\frac{2x^{1/2}}{1/2}+C\\ &=\boxed{-\frac{2}{x^2}+2x^{3/2}-4\sqrt{x}+C}. \end{aligned}

Notice that increasing 3-3 by 11 gives 2-2. It does not make the index positive.

Find

(5x46x2+x3)dx.\int\left(5x^4-\frac{6}{x^2}+\sqrt[3]{x}\right)dx.
Answer

Write the integrand as 5x46x2+x1/35x^4-6x^{-2}+x^{1/3}:

(5x46x2+x1/3)dx=x5+6x1+34x4/3+C=x5+6x+34x4/3+C.\begin{aligned} \int\left(5x^4-6x^{-2}+x^{1/3}\right)dx &=x^5+6x^{-1}+\frac34x^{4/3}+C\\ &=\boxed{x^5+\frac6x+\frac34x^{4/3}+C}. \end{aligned}

Differentiate each term to verify the signs and coefficients.

Constants can be taken outside an integral, and sums can be integrated term by term:

kf(x)dx=kf(x)dx\int kf(x)\,dx=k\int f(x)\,dx

and

(f(x)±g(x))dx=f(x)dx±g(x)dx.\int\bigl(f(x)\pm g(x)\bigr)dx =\int f(x)\,dx\pm\int g(x)\,dx.

These rules justify the steps used for polynomials. One final +C+C is enough. Giving every term its own constant is not wrong, but those constants combine into a single arbitrary constant.

Integration does not distribute across products:

f(x)g(x)dx(f(x)dx)(g(x)dx)\int f(x)g(x)\,dx \ne \left(\int f(x)\,dx\right)\left(\int g(x)\,dx\right)

in general. Products may require algebra, integration by substitution or integration by parts.

The following results reverse standard derivatives. Trigonometric angles must be in radians.

xndx=xn+1n+1+C,n1,1xdx=lnx+C,x0,exdx=ex+C,axdx=axlna+C,a>0, a1,cosxdx=sinx+C,sinxdx=cosx+C,sec2xdx=tanx+C.\begin{aligned} \int x^n\,dx&=\frac{x^{n+1}}{n+1}+C, && n\ne-1,\\ \int \frac1x\,dx&=\ln|x|+C, && x\ne0,\\ \int e^x\,dx&=e^x+C,\\ \int a^x\,dx&=\frac{a^x}{\ln a}+C, && a>0,\ a\ne1,\\ \int \cos x\,dx&=\sin x+C,\\ \int \sin x\,dx&=-\cos x+C,\\ \int \sec^2x\,dx&=\tan x+C. \end{aligned}

The negative sign in sinxdx\int\sin x\,dx is necessary because

ddx(cosx)=sinx.\frac{d}{dx}(-\cos x)=\sin x.

The integrand 1/x=x11/x=x^{-1} cannot use the reverse power rule: increasing the power gives 00, and division by 00 is undefined. Instead,

ddxlnx=1x\frac{d}{dx}\ln|x|=\frac1x

on any interval not containing 00. The absolute value matters because 1/x1/x is defined for negative as well as positive xx. No single antiderivative can cross x=0x=0, where the integrand is undefined.

Find

(4ex+3x5sinx+2sec2x)dx.\int\left(4e^x+\frac3x-5\sin x+2\sec^2x\right)dx.

Using the table term by term gives

4ex+3lnx+5cosx+2tanx+C.\boxed{4e^x+3\ln|x|+5\cos x+2\tan x+C}.

In particular, 5sinx-5\sin x integrates to +5cosx+5\cos x because differentiating 5cosx5\cos x gives 5sinx-5\sin x.

Worked example 5: an exponential with base 22

Section titled “Worked example 5: an exponential with base 222”

Find 72xdx\int 7\cdot2^x\,dx.

Since ddx(2x)=2xln2\frac{d}{dx}(2^x)=2^x\ln2, dividing by ln2\ln2 compensates for the extra factor:

72xdx=72xln2+C.\boxed{\int 7\cdot2^x\,dx=\frac{7\cdot2^x}{\ln2}+C}.

Do not treat 2x2^x as if it were exe^x.

When a standard function contains ax+bax+b, reverse differentiation introduces a factor of 1/a1/a:

f(ax+b)dx=1aF(ax+b)+C,\int f(ax+b)\,dx=\frac1aF(ax+b)+C,

provided F=fF'=f and a0a\ne0. This is the chain rule in reverse.

Worked example 6: account for the inner derivative

Section titled “Worked example 6: account for the inner derivative”

Find

(e3x+4cos(2x)52x1)dx.\int\left(e^{3x}+4\cos(2x)-\frac{5}{2x-1}\right)dx.

For each term, divide by the derivative of its inner linear expression:

e3xdx=13e3x,4cos(2x)dx=2sin(2x),52x1dx=52ln2x1.\begin{aligned} \int e^{3x}\,dx&=\frac13e^{3x},\\ \int4\cos(2x)\,dx&=2\sin(2x),\\ \int-\frac5{2x-1}\,dx&=-\frac52\ln|2x-1|. \end{aligned}

Therefore

(e3x+4cos(2x)52x1)dx=13e3x+2sin(2x)52ln2x1+C.\boxed{\int\left(e^{3x}+4\cos(2x)-\frac{5}{2x-1}\right)dx =\frac13e^{3x}+2\sin(2x)-\frac52\ln|2x-1|+C}.

Differentiate the answer. The inner derivatives 33, 22 and 22 cancel the compensating factors.

This shortcut applies directly only when the inner expression is linear. More general composite functions belong in integration by substitution.

Find

(6sin(3x)+45x+2)dx.\int\left(6\sin(3x)+\frac4{5x+2}\right)dx.
Answer 2cos(3x)+45ln5x+2+C.\boxed{-2\cos(3x)+\frac45\ln|5x+2|+C}.

Check the first sign carefully:

ddx(2cos(3x))=6sin(3x).\frac{d}{dx}\bigl(-2\cos(3x)\bigr)=6\sin(3x).

An equation for a derivative determines a family of functions. One known point, called an initial condition or boundary condition, determines the value of CC and selects one member of that family.

Worked example 7: use an initial condition

Section titled “Worked example 7: use an initial condition”

Given

dydx=6x24x+3\frac{dy}{dx}=6x^2-4x+3

and y=7y=7 when x=1x=1, find yy in terms of xx.

First integrate:

y=2x32x2+3x+C.y=2x^3-2x^2+3x+C.

Now use (x,y)=(1,7)(x,y)=(1,7):

7=2(1)32(1)2+3(1)+C=3+C.7=2(1)^3-2(1)^2+3(1)+C=3+C.

Hence C=4C=4, so

y=2x32x2+3x+4.\boxed{y=2x^3-2x^2+3x+4}.

Two checks are available. Differentiating gives the stated dy/dxdy/dx, and substituting x=1x=1 gives y=7y=7.

A particle moves in a straight line with velocity

v(t)=6t4.v(t)=6t-4.

At t=2t=2, its displacement from a fixed origin is 55 metres. Find its displacement s(t)s(t).

Since v=ds/dtv=ds/dt,

s=(6t4)dt=3t24t+C.s=\int(6t-4)\,dt=3t^2-4t+C.

Use s(2)=5s(2)=5:

5=3(2)24(2)+C=4+C,5=3(2)^2-4(2)+C=4+C,

so C=1C=1. Therefore

s(t)=3t24t+1 metres.\boxed{s(t)=3t^2-4t+1\text{ metres}}.

The constant has a physical meaning: s(0)=1s(0)=1, so the particle was 11 metre from the origin at time 00.

Given

dydx=3e2x2sinx\frac{dy}{dx}=3e^{2x}-2\sin x

and y=4y=4 when x=0x=0, find yy.

Answer

Integrate first:

y=32e2x+2cosx+C.y=\frac32e^{2x}+2\cos x+C.

At x=0x=0, e0=1e^0=1 and cos0=1\cos0=1, so

4=32+2+C,4=\frac32+2+C,

giving C=12C=\frac12. Thus

y=32e2x+2cosx+12.\boxed{y=\frac32e^{2x}+2\cos x+\frac12}.
  • Omitting +C+C: an indefinite integral represents a family. Include +C+C unless a condition has already fixed it.
  • Using the power rule on x1x^{-1}: x1dx=lnx+C\int x^{-1}\,dx=\ln|x|+C, not an expression involving division by zero.
  • Dividing by the old power: increase the power first, then divide by the new power.
  • Integrating a constant as zero: kdx=kx+C\int k\,dx=kx+C.
  • Losing the trigonometric sign: sinxdx=cosx+C\int\sin x\,dx=-\cos x+C.
  • Multiplying by an inner derivative: integration reverses the chain rule, so for a linear inner function you divide by its derivative.
  • Splitting products: integration is linear over sums, not products.
  • Using degrees: standard trigonometric derivative and integral formulae assume radians.

Try these without looking back.

  1. Find (9x24x3+6)dx\int(9x^2-4x^{-3}+6)\,dx.
  2. Find (5e2x+3cos(4x))dx\int\left(5e^{-2x}+3\cos(4x)\right)dx.
  3. Given f(x)=4x3f'(x)=4x-3 and f(2)=10f(2)=10, find f(x)f(x).
  4. Explain why abf(x)dx\int_a^b f(x)\,dx does not need an arbitrary constant in its final value.
Answers
3x3+2x2+6x+C.\boxed{3x^3+2x^{-2}+6x+C}.

The derivative of 2x22x^{-2} is 4x3-4x^{-3}.

52e2x+34sin(4x)+C.\boxed{-\frac52e^{-2x}+\frac34\sin(4x)+C}.
  1. First integrate:
f(x)=2x23x+C.f(x)=2x^2-3x+C.

Then 10=2(2)23(2)+C=2+C10=2(2)^2-3(2)+C=2+C, so C=8C=8 and

f(x)=2x23x+8.\boxed{f(x)=2x^2-3x+8}.
  1. If F(x)=f(x)F'(x)=f(x), then
abf(x)dx=(F(b)+C)(F(a)+C)=F(b)F(a).\int_a^b f(x)\,dx=(F(b)+C)-(F(a)+C)=F(b)-F(a).

The same constant occurs at both limits and cancels. The next lesson develops this idea fully.