About the Integral Calculator
Integration reverses differentiation: an antiderivative of satisfies . A definite integral adds up signed area and equals by the fundamental theorem of calculus.
The calculator tries standard techniques in order: linearity and the power rule, known table integrals, substitution, integration by parts and partial fractions for simple rational functions. It then differentiates its own answer to confirm it. Some functions, such as , have no elementary antiderivative; for those a definite integral is still evaluated numerically and labeled as such.
Leave both limits empty for an indefinite integral, or fill in both for a definite one.
What is an integral?
Integration is the reverse of differentiation and, at the same time, a way of adding up infinitely many small pieces. An antiderivative of is a function whose derivative is : since , the function is an antiderivative of . The indefinite integral stands for the whole family of antiderivatives, which all differ by a constant, hence the .
The definite integral is a number: the signed area between the graph of and the x-axis from to , with area below the axis counted as negative. It is defined as the limit of Riemann sums, where the interval is cut into thin strips and the areas of rectangles are added. The fundamental theorem of calculus connects the two ideas: if is any antiderivative of , then .
Integrals compute totals from rates: distance from velocity, work from force, mass from density, probability from a density curve and accumulated revenue from a rate of sales.
How to use the Integral Calculator
- Enter the integrand, for example x*e^x or 2x*cos(x^2). You can also type ∫ … dx or "integrate … from 0 to 1".
- Leave the limits empty for an antiderivative, or enter both limits for a definite integral. pi and e are allowed.
- Press Integrate to see the technique used, the antiderivative and, for definite integrals, the evaluation at both limits.
Formulas
Power rule
Substitution
Integration by parts
Fundamental theorem
Worked example: ∫ x·eˣ dx
The worked example finds . The integrand is a polynomial times an exponential, which is the classic case for integration by parts. The calculator uses the tabular method: it differentiates down to 0 (giving , 1, 0), integrates the same number of times, and combines the diagonal products with alternating signs to get . Factored, this is . The result is verified by differentiating it numerically and comparing with at several points.
The solution below is generated by the same engine that powers the calculator above.
Final answer
How we read your problem
Find the indefinite integral (antiderivative) of xe^x with respect to x.
Step-by-step solution
Start with the integral
Integration by parts (tabular method)
Differentiate the polynomial x until it reaches 0, integrate e^x the same number of times, and combine with alternating signs.
Combine the alternating products
Simplify and add the constant of integration
Formulas used
Power rule
An antiderivative F satisfies F′(x) = f(x). Because the derivative of any constant is 0, every antiderivative differs by a constant C.
Verification
- Differentiated the answer and compared it with the integrand at 8 sample points ✓
Detailed explanation
Choosing a technique
There is no single algorithm you can run by hand for every integral, so the skill is recognising the form. Start with linearity: split sums and pull out constant factors, then use the table of basic integrals for powers, exponentials, and the trigonometric functions. If part of the integrand is the derivative of another part, try substitution. If it is a product of two different kinds of function, such as a polynomial and an exponential or a polynomial and a sine, try integration by parts. Rational functions call for partial fractions, and forms like lead to inverse trigonometric functions.
The calculator tries these techniques in a similar order and names the one that succeeded, so its steps double as a guide for which method to reach for next time.
Substitution, step by step
Substitution reverses the chain rule. In the inner function is and its derivative appears as a factor, so set and . The integral becomes , and substituting back gives . The calculator shows each of these lines. If the derivative of the inner function appears only up to a constant multiple, for example , the same substitution works after adjusting by .
Integration by parts and the tabular method
Integration by parts reverses the product rule: . Choose to be the factor that gets simpler when differentiated, usually the polynomial, and to be the factor that is easy to integrate. When is a polynomial of degree , repeating the process times reduces it to zero, and the tabular method organises those repetitions in two columns. That is why the worked example finishes after two rows: the derivative of is 1 and then 0.
Definite integrals and limits
Fill in the lower and upper limits to turn the problem into a definite integral. The calculator finds an antiderivative first and then applies the fundamental theorem: for it uses and computes . Limits may be expressions such as pi/2. If you only need the number, the dedicated definite integral calculator also works when no elementary antiderivative exists, by evaluating the area numerically.
When there is no elementary antiderivative
Some simple-looking functions, such as , and , have antiderivatives that cannot be written with a finite combination of polynomials, roots, exponentials, logarithms and trigonometric functions. This is a proven fact, not a gap in technique. For these inputs the calculator reports that it could not find an antiderivative rather than inventing one, and a definite integral over a specific interval can still be computed numerically.
For example, the definite integral calculator evaluates numerically and labels the result as an approximation.
Why the constant of integration matters
Because the derivative of any constant is zero, , and all have derivative . Their graphs are vertical shifts of one another, and the records that whole family. The constant is pinned down when you have extra information, called an initial condition. If a velocity is and the position at time 0 is 4, integrating gives , and forces . In a definite integral the constant cancels in , which is why it never appears in a numeric answer.
Signed area versus total area
A definite integral counts area above the x-axis as positive and area below it as negative. Over one full period, , even though the curve encloses a positive amount of area: the hump above the axis and the hollow below it cancel exactly. When a problem asks for the total area between a curve and the axis, find where the function changes sign, integrate each piece separately, and add the absolute values. For on that gives .
The same distinction appears in motion problems. Integrating velocity gives the net change in position, while integrating speed, the absolute value of velocity, gives the total distance travelled.
Reading the steps
Each step shows one transformation of the integral, with the rule or table entry in the title and the formula underneath. Linearity steps split the problem into smaller integrals that are solved one at a time and then recombined, so a long integrand produces a longer list of short steps rather than one big leap. When a substitution is used, the line that introduces also shows , which is where you can see why the method applies. The last step always adds the constant of integration for an indefinite integral, or substitutes the limits for a definite one.
Common mistakes
- Forgetting the constant of integration on indefinite integrals.
- Using the power rule for ; the answer is .
- Not adjusting for the inner derivative: .
- Integrating across a vertical asymptote, such as , as if it were an ordinary integral.
- Forgetting to change or convert back the variable after a substitution.
- Integrating a product as the product of the integrals; is not .
Tips
- Look for a function and its derivative appearing together; that signals substitution.
- For by parts, choose as the factor that gets simpler when differentiated (LIATE order).
- Check any antiderivative by differentiating it.
- Check any antiderivative by differentiating it; you should get the integrand back exactly.
- Look for the derivative of an inner function sitting in the integrand; it signals a substitution.
- For integration by parts, choose using the order logarithm, inverse trig, algebraic, trig, exponential.
Frequently asked questions
What is the difference between definite and indefinite integrals?
An indefinite integral is a family of functions . A definite integral has limits and is a number: the signed area between the curve and the x-axis.
Which integration techniques are supported?
Linearity, power rule, standard table integrals, linear and general u-substitution, integration by parts (including repeated, tabular cases), and partial fractions for quadratic denominators.
Why is there a + C?
Every function whose derivative is differs by a constant, so the indefinite integral includes an arbitrary constant .
What happens if no antiderivative is found?
The calculator says so instead of guessing. If you give limits, it still computes the definite integral numerically with adaptive Simpson's rule and marks the answer as approximate.
Can I use pi as a limit?
Yes. Limits may be numbers or expressions such as pi, pi/2 or e.
Does it handle improper integrals?
Not yet. If the integrand is undefined or infinite inside the interval, the calculator reports that the integral is improper rather than returning a misleading number.
How do I choose u in integration by parts?
Pick the factor that becomes simpler when differentiated, usually a polynomial or a logarithm, and let be the factor that is easy to integrate. For , take and .
How do I know when to use substitution?
Look for a function inside another function whose derivative also appears as a factor. In , the inner has derivative , so works.
What is the integral of 1/(x^2 + 1)?
It is the inverse tangent: . The calculator recognises this standard form and the general version.
Integrate your function
Enter a function above, with or without limits, to get the antiderivative, the technique used at each step and a numerical check.