Calculator
Integral Calculator with Steps
Evaluate definite and indefinite integrals with the technique named before it is used, every substitution written in full, and the limits converted rather than quietly carried along.
Solve a integral problem now
First solution freeHow to use it
Write the integrand and say whether there are limits: “integrate x cos x dx” and “evaluate the integral of x cos x from 0 to pi” produce different work. Name the variable if it is not . If you already tried a substitution and got stuck, paste your attempt in — the follow-up questions on a solution are free, so it is cheaper to ask why your failed than to start over. The calculus solver takes the same input when the integral is one part of a longer question.
The method behind it
Integration is differentiation run backwards. An antiderivative of is any function whose derivative is , and because constants differentiate to zero there is always a whole family of them — hence the .
A definite integral is a number, not a family, and the fundamental theorem of calculus is what connects the two ideas. It says the signed area under a curve is the change in any antiderivative across the interval, so the cancels.
Only two techniques do most of the work. Substitution reverses the chain rule: if the integrand contains a composite function multiplied by , then setting converts the whole thing into a standard form.
Integration by parts reverses the product rule. Integrating both sides of and rearranging gives the formula, and the whole game is choosing so that the integral on the right is easier than the one you started with.
LIATE is the ordering that usually gets that choice right: logarithmic, inverse trigonometric, algebraic, trigonometric, exponential. Whichever factor appears earlier in that list becomes , because differentiating it simplifies the problem while integrating it would not. The reasoning behind the ordering is set out in the integration by parts and LIATE guide, and choosing the inner function for a substitution covers the other half.
One structural point worth internalising: substitution needs the inner derivative to already be present, by parts does not. If you scan for the derivative and it is genuinely absent, stop looking and try by parts, partial fractions, or an algebraic rewrite instead of forcing a that will not close.
Worked examples
Worked example
- 1
A polynomial multiplied by a trig function, and the derivative of x is not lurking anywhere useful. LIATE puts algebraic ahead of trigonometric, so x becomes u.
- 2
Differentiate u and integrate dv. The constant of integration is left out here; it reappears at the end.
- 3
Substitute into the by-parts formula.
- 4
The remaining integral is standard, and note the double negative: the antiderivative of sine is minus cosine.
- 5
Check by differentiating: the product rule gives sin x + x cos x, and the last term contributes minus sin x, leaving exactly x cos x.
Answer
Worked example
- 1
The exponent is a composite and its derivative, 2x, is present up to the constant 2. That is the signal for substitution.
- 2
Convert the limits now rather than back-substituting later. They are x-values, and the new integral is in u.
- 3
Rewrite the whole integral in u. Nothing in x may survive this step.
- 4
Integrate and apply the new limits.
- 5
Simplify. To three decimal places this is 26.799, which is a useful sanity check against a numerical estimate.
Answer
Which technique should you use?
Most wasted time on an integral is spent committing to the wrong technique and pushing on. Two questions — is there a composite with its own derivative present, and are the factors of genuinely different types — settle the choice before you write a line.
Choose an integration technique
Look at the integrand as a whole. Which description fits it?
Common mistakes
Losing the constant of integration
An indefinite integral is a family of functions, not one function. Write as you write the antiderivative, not as an afterthought. In differential equations the missing constant is not a presentation issue — it destroys the solution.
Leaving a stray x after substituting
Once you commit to , every and the must be converted. If an survives, the substitution has not worked; either solve for in terms of and continue, or abandon that choice of .
Keeping the old limits
In a definite integral the limits are values of . After substituting they must become values of , or you must back-substitute to before evaluating. In the example above, using 0 to 2 on the integral would give instead of 26.80.
Practice
Answers are checked here — nothing is sent anywhere.
- 1
- 2
- 3