Free calculus tool
Integral Calculator
Type a function, see it typeset as you go, and get the antiderivative with the steps.
Integral calculator
What you can type
The input reads ordinary calculator notation, the same as the derivative calculator. Multiplication signs are optional, brackets can be round, square or curly, and every function below accepts its argument with or without parentheses.
| Notation | Type it as | Renders as |
|---|---|---|
| Powers | x^3x**3x³ | |
| Implicit multiplication | 2x sin(x)2*x*sin(x) | |
| Division | (x + 1)/(x - 1) | |
| Roots | sqrt(x)cbrt(x)x^(1/2) | |
| Exponentials | e^(2x)exp(2x)2^x | |
| Natural logarithm | ln(x) | |
| Trigonometry | sin(x)cos 2xtan(x)sec(x)csc(x)cot(x) | |
| Powers of functions | sin^2(x)sin(x)^2 | |
| Inverse trigonometry | arctan(x)atan(x)arcsin(x) | |
| Absolute value | |x|abs(x) | |
| Constants | pie | |
| Greek variables | theta^2sin(alpha) |
Every answer carries + C. An indefinite integral is a whole family of functions, not one: any two antiderivatives of the same function differ by a constant, so the C is part of the answer rather than a decoration on it. For a second or third antiderivative there is a constant per integration, and the answer says so.
Any single letter is a variable, and so is a spelled-out Greek name like theta. When an expression contains more than one, choose which to integrate with respect to; the rest are treated as constants.
The techniques it uses
Integration is a search, not a procedure: unlike differentiating, there is no single rule that always applies, so the calculator tries techniques in the order a student would. Each step says which one it used.
Linearity
Term by term, with constants pulled out front. Tried first, because it turns one integral into several simpler ones.
Power rule
Any constant exponent except -1, where dividing by n + 1 would divide by zero. That one case gives a logarithm instead.
The n = -1 case
The absolute value matters: 1/x is defined for negative x too, and ln x alone would not be.
Substitution
The chain rule run backwards. Found by trying each subexpression as u and checking whether the integrand divided by u' comes out in terms of u alone.
Integration by parts
For a product of unlike things. u is chosen by LIATE — logarithm, inverse trig, algebraic, trig, exponential — so what is left to integrate is simpler.
Partial fractions
For a ratio of polynomials. The bottom is factored and the fraction split, which turns one hard integral into a sum of logarithms and arctangents.
Completing the square
Turns any quadratic under a root or a fraction into a standard form, which is what makes one rule cover a whole family.
Power reduction
Double-angle and Pythagorean identities, for powers of sine, cosine and tangent that no substitution touches.
Not every function has an elementary antiderivative. e^(x^2), sin(x)/x and sqrt(1 + x^3) have none at all — that is a theorem, not a gap in this calculator — so when it says it cannot find one, that is sometimes the true answer. Differentiating always works; integrating does not.
Elementary antiderivatives
And the elementary antiderivatives it composes with them. Each one also works with a function of x inside, once substitution has dealt with the inner derivative:
Questions
Why is there always a + C?
Because an indefinite integral is a family of functions rather than one function. Differentiating kills a constant, so every antiderivative of the same integrand differs from the others only by one, and the C stands for all of them at once. Leaving it off is the single most common way to lose a mark on an integration question.
Does it show the steps?
Yes. Open "Show the steps" under any result and you get one line per technique, naming it and showing what the integral becomes. A substitution line says what u and du are, an integration by parts line says what u and dv are, and a partial fractions line shows the decomposition before it is integrated.
Why does it sometimes say it cannot do one?
Two different reasons. Some integrands have no elementary antiderivative at all — e to the x squared and sin x over x are the standard examples, and that is a theorem rather than a limitation. Others need a technique this calculator does not cover, such as trigonometric substitution or the Weierstrass substitution. Either way it says so instead of guessing.
How do I know the answer is right?
Because it was checked before you saw it. Every candidate antiderivative is differentiated and compared against what you typed, at several values, and anything that does not match is not shown. You can do the same check by hand, and on an exam you should: differentiating your answer is the fastest way to catch a slip.
Why does my answer look different from the calculator's?
Two antiderivatives can differ by a constant and still both be right, so your version and this one may simply have absorbed a different constant into C. They can also be algebraically different but equal: sin squared x over 2 and minus cos squared x over 2 differ by a constant, and the two halves of a partial fraction answer can be combined into a single logarithm. If you are unsure, differentiate both.
Can it do definite integrals?
No. This one finds antiderivatives. For a definite integral, take the antiderivative it gives you and evaluate it at the two limits, subtracting the lower from the upper — being careful that the function has no discontinuity between them, which is where that shortcut goes wrong.
Is anything I type stored or sent anywhere?
No. The parser, the integration techniques and the check that verifies the answer are all JavaScript running in your browser, with no request to any server. Nothing you type is stored, logged or sent, and the page works with your connection off once it has loaded.
Integration is where calculus gets hard
Differentiating is a procedure you can follow. Integrating is a search: the work is recognising which technique a problem wants, and that is what practice with someone watching actually builds. We tutor UBC and SFU integral calculus and BC Calculus 12 one-on-one, starting from the problem in front of you.
