Study and Productivity

How to Integrate Step by Step: Choosing Substitution, Parts or Partial Fractions

A student guide to integration: choosing the right technique, worked substitution and by-parts examples, common slips and checking by differentiating.

Saizul Amin
Saizul Amin3 Nov 2026 · 5 min read
How to Integrate Step by Step: Choosing Substitution, Parts or Partial Fractions

How to Integrate Step by Step: Choosing Substitution, Parts or Partial Fractions

Most students find differentiation comfortable and integration stressful. The reason is simple. Differentiating follows a recipe: product rule, chain rule, done. Integrating asks you to look at an expression and recognise its shape first. Once you know the handful of shapes that appear in exams, the panic fades. This guide sets out a decision order, works two complete examples and shows the quickest way to check your answer.

A decision order that works

Before reaching for anything clever, run through these questions in order.

  1. Can the integrand be split into a sum, with constants pulled outside? Do that first.
  2. Is each piece a standard result? Powers (x^n becomes x^(n+1)/(n+1) for n not equal to -1), 1/x gives ln|x|, e^x stays e^x, sin x integrates to -cos x, cos x to sin x.
  3. Is there a function together with its own derivative, such as 2x next to x^2 + 1? That signals substitution.
  4. Is it a product of two unrelated types, such as x times cos x or x^2 times e^x? That signals integration by parts.
  5. Is it a fraction of polynomials? Factor the bottom and use partial fractions.
  6. Powers of sine and cosine need identities such as sin^2 x = (1 - cos 2x)/2.

Worked example 1: substitution

Find the integral of 2x(x^2 + 1)^3 dx.

The inner function is x^2 + 1 and its derivative, 2x, sits outside the bracket. Let u = x^2 + 1, so du = 2x dx. The whole integral collapses to the integral of u^3 du, which is u^4/4 + C. Putting x back gives (x^2 + 1)^4/4 + C.

For the definite version from 0 to 1, either change the limits (u runs from 1 to 2) or substitute back. Using u: (2^4 - 1^4)/4 = 15/4 = 3.75.

Worked example 2: integration by parts

Find the integral of x cos x dx.

The formula is: integral of u dv = uv - integral of v du. The LIATE order (logarithm, inverse trig, algebraic, trig, exponential) says the algebraic factor x should be u, because it becomes simpler when differentiated. So u = x, du = dx, dv = cos x dx and v = sin x.

Then the integral equals x sin x - integral of sin x dx = x sin x + cos x + C.

From 0 to pi/2: at the top, (pi/2)(1) + 0 = pi/2. At the bottom, 0 + 1 = 1. The value is pi/2 - 1, roughly 0.5708. A quick sketch of x cos x on that interval shows it is positive throughout, so a positive answer below about 0.8 is plausible.

Mistakes markers see again and again

  • Forgetting + C on an indefinite integral. Many mark schemes deduct for it.
  • Substituting u but leaving a stray dx. Every x and every dx must be replaced before you integrate.
  • Choosing u = cos x in the example above. The new integral becomes harder, which is a sign to swap the roles.
  • Keeping the old x limits after changing to u. Either convert the limits or return to x before evaluating.
  • Applying the power rule to 1/x and writing x^0/0. The exponent -1 is the single exception and gives ln|x|.
  • Sign slips with trig: the antiderivative of sin x carries a minus sign.

How to check your own answer

Differentiation is the perfect test because it is mechanical. Take x sin x + cos x and differentiate it: the product rule gives sin x + x cos x, then minus sin x from the second term. What remains is x cos x, the original integrand, so the answer is right. Do this every time on homework; it takes thirty seconds and catches nearly every sign error.

Your answer may look different from a classmate's and still be correct. Two antiderivatives can differ by a constant, for instance sin^2 x/2 and -cos^2 x/2, since their difference is exactly 1/2.

For definite integrals, a rough estimate helps. Multiply the width of the interval by a typical height of the curve and see whether your result is in the right region.

Doing it with the tool

Type the integrand into the Integral Calculator with Steps, using ^ for powers, and tick the definite option if you want limits. The working names each rule as it is applied, so you can compare it line by line with your own attempt. It also differentiates the result before showing it, and for definite integrals it draws the shaded area. The practice mode is useful before a test: write the antiderivative yourself, then open the solution only once you have committed to an answer.

A good routine is to attempt a problem on paper, then enter it and look only at the method name. If you chose the same technique, finish by hand and compare at the end.

Limits

The calculator is a rule-based study aid, not a full algebra system. Some integrals, such as sin(x^2) or e^(-x^2), have no answer in elementary functions, and the tool does not invent one; it gives a numerical value for definite versions instead. Improper integrals with infinite limits are not covered. Most importantly, reading a solution is not the same as producing one, so do not rely on it in place of your own written working.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages