Integral Calculator With Steps: Antiderivatives, Substitution and Integration by Parts

Enter a function and get its antiderivative with the method named: power rule, u-substitution, integration by parts, partial fractions or trig identities. Every result is verified by differentiating it back, and if no elementary answer exists the calculator says so instead of inventing one.

Integral Calculator

Pick a tab, type your numbers and press Calculate. Tap an example chip to see the working first.

What an Integral Is and Why +C Appears

An indefinite integral reverses differentiation. ∫f(x) dx is the family of functions whose derivative is f(x). Because constants vanish when you differentiate, x² + 1 and x² − 40 share the derivative 2x, and the +C records that whole family.

That constant is not decoration. If velocity is v = 3t², then position is t³ + C, and C is where the object started. Drop it and you lose the starting point.

Choosing the Right Method

If the integrand looks likeTryExample
A polynomial or powerPower rule∫x⁴ dx = x⁵/5 + C
A function times its inner derivativeu-substitution∫2x cos(x²) dx = sin(x²) + C
A product of unlike types (x·eˣ, x·sin x, ln x)Integration by parts∫x eˣ dx = (x − 1)eˣ + C
A ratio of polynomialsPartial fractions∫1/(x² − 1) dx = ½ ln|(x−1)/(x+1)| + C
sin² or cos²Half-angle identity∫sin² x dx = x/2 − sin 2x/4 + C

For parts, the LIATE order (Logarithm, Inverse trig, Algebraic, Trig, Exponential) tells you what to call u. It works about nine times in ten and the calculator uses it.

Worked Examples

Integration by parts, twiceTry it in the calculator ↑

∫x²eˣ dx

  1. Let u = x², dv = eˣ dx. Then du = 2x dx, v = eˣ, giving x²eˣ − ∫2x eˣ dx.
  2. Repeat on ∫2x eˣ dx with u = 2x: it equals 2x eˣ − 2eˣ.
  3. Combine: x²eˣ − 2x eˣ + 2eˣ.

Answer: eˣ(x² − 2x + 2) + C

∫1/(x² − 1) dx

  1. Factor: x² − 1 = (x − 1)(x + 1).
  2. Split: 1/(x² − 1) = ½[1/(x − 1) − 1/(x + 1)].
  3. Integrate each piece into a logarithm.

Answer: ½ ln|x − 1| − ½ ln|x + 1| + C

∫sin² x dx

  1. Use sin² x = (1 − cos 2x) ÷ 2.
  2. Integrate: x/2 − sin(2x)/4.

Answer: x/2 − sin(2x)/4 + C

When There Is No Closed Form

Some integrands look harmless but have no antiderivative made of standard functions. Famous ones are e−x², sin x ÷ x, 1/ln x and xx. Liouville proved in the 1830s that this is a true limit of mathematics, not of any calculator.

You can still get a number for a definite integral of these. The definite integral mode computes ∫ e−x² over the whole real line as 1.77245, which is √π, even though no formula for the antiderivative exists.

What We Think Is Overrated, Underrated and Wrong

Overrated: the huge integral table at the back of the textbook. Five basic antiderivatives plus substitution cover most coursework.
Underrated: checking by differentiating. It takes ten seconds and catches nearly every sign and constant slip. The calculator does it automatically and shows you the result.
Wrong: “if I cannot find the integral, I did something wrong”. For the functions listed above nobody can.

Integrals People Search For

SearchAnswerMethod
∫ 1/x dxln|x| + Clog rule
∫ ln x dxx ln x − x + Cby parts, u = ln x
∫ sin²x dxx/2 − sin(2x)/4 + Chalf-angle identity
∫ sec x dxln|sec x + tan x| + Cstandard form
∫ x eˣ dx(x − 1)eˣ + Cby parts
∫ 1/(1 + x²) dxarctan x + Cstandard form
∫ e^(−x²) dx(√π/2) erf(x) + Cno elementary antiderivative

Why Three Different Answers Can All Be Right

For ∫ sin x cos x dx you can get sin²x ÷ 2, or −cos²x ÷ 2, or −cos(2x) ÷ 4. They look different but differ only by constants (for example sin²x ÷ 2 − (−cos²x ÷ 2) = 1/2), so all are correct once +C is attached. The reliable test is to differentiate your answer and compare it with the integrand.

Our Take: What Is Overrated, Underrated and Plain Wrong

Overrated: memorising a table of 30 integrals. Ten standard forms plus substitution and parts cover most courses.

Underrated: differentiating your result. It takes seconds and is the one check that never lies.

Plain wrong: dropping +C or writing ln x instead of ln|x|. Both lose valid answers.

Integral Mistakes That Cost Marks

  • Forgetting +C on indefinite integrals.
  • Writing ∫1/x dx = ln x without absolute value. It is ln|x| + C.
  • Dropping the 1/a when integrating a linear inside: ∫cos(5x) dx = sin(5x)/5.
  • Applying the product rule backwards: ∫fg dx is not ∫f dx × ∫g dx.
  • Substituting u but forgetting to change dx.

Why Students Get Stuck on Integrals, and What a Good Calculator Should Do

Searching for help with integrals usually starts late at night with one problem that will not work out. There is no single rule, so choosing between substitution, parts and tables is the hard part. A good calculator fixes that by showing each step, checking its own answer and explaining the idea in plain words. This section covers what students struggle with, what they want, and how this page responds.

In short: students need to recognise the pattern and finish with the + C, not just see a final number, and a calculator earns trust only when its steps can be checked.

Understand the pain points

What students get stuck on

Most mistakes here are not about arithmetic. They come from one rule applied the wrong way round, which is why seeing every step matters.

Understand the frustrations and desires

What they feel, and what they want

Each frustration points to a wish: a clearer step, a built-in check, an explanation in plain words.

  • Wants the method named before it is applied
  • Wants the answer differentiated back as a check
  • Wants simple cases and hard cases in one place

Build the page around their intent

Each intent has a place on this page

The page follows intent, not features, so each need has a clear starting point.

  • I need an answer now: type the problem into the calculator at the top of this page.Integrate x^2 * e^x
  • I need to understand: the sections below explain the idea in plain words and list the common mistakes.
  • I need to check my work: every step is shown, so the first line that differs from yours is the one to study.
  • I need practice: open the solver, tap + and choose Create Practice Test.
  • I need it explained aloud: in the solver, tap + and choose Create Video.

Integral: Questions People Ask

How do you solve an integral step by step?

Identify the form, pick a method (substitution, parts, partial fractions or a trig identity), integrate, add C and check by differentiating.

What is the integral of 1/x?

ln|x| + C. The absolute value matters because 1/x is defined for negative x as well.

What does the +C mean?

It stands for any constant. Derivatives erase constants, so every antiderivative is only defined up to one.

Why does the calculator say no elementary antiderivative?

Some functions, like e^(−x²), have none. Use the definite integral mode for a numerical value.

How do I check an integral?

Differentiate the answer. If you get the original integrand back, the integral is right.

Is there a difference between integral and antiderivative?

An antiderivative is any function whose derivative is f. The indefinite integral is the whole family F(x) + C.

Why do we add +C to an indefinite integral?

Constants vanish on differentiation, so x² + 5 and x² − 7 have the same derivative 2x. +C represents every possible constant.

What is the integral of 1/x?

ln|x| + C, valid on any interval that does not contain 0.

Why does e^(−x²) have no elementary integral?

It is proven that no combination of ordinary functions has it as a derivative. It is expressed with the error function erf instead.

When do I use integration by parts?

For products such as x eˣ or ln x, using ∫u dv = uv − ∫v du, where u is the factor that gets simpler when differentiated.

↑