Math · free · step by step

Integral Calculator

Find indefinite integrals with every step (substitution, integration by parts, trig identities) and definite integrals with the area shaded on a graph, including limits at infinity.

∫x⁢exdx

Integral

∫x⁢exdx=x⁢ex−ex+C

Step by step

Graph of f and its integral

Reference

Integration rules

RuleFormulaExample
Power rule∫ xⁿ dx = xⁿ⁺¹/(n + 1) + C, n ≠ −1∫x4dx=x55+C
Log rule∫ 1/x dx = ln|x| + C∫1xdx=ln(|x|)+C
Exponential rule∫ eᵃˣ dx = eᵃˣ/a + C∫e3⁢xdx=e3⁢x3+C
Sum and constant multiple∫ (a·f + b·g) dx = a∫f dx + b∫g dx∫6⁢x2+4⁢x−5dx=2⁢x3+2⁢x2−5⁢x+C
Substitution∫ f(g(x))·g′(x) dx = ∫ f(u) du∫x⁢ex2dx=ex22+C
Integration by parts∫ u dv = u·v − ∫ v du∫x⁢cos(x)dx=x⁢sin(x)+cos(x)+C
Trig identitysin²x = (1 − cos 2x)/2∫sin2(x)dx=−sin(2⁢x)4+x2+C
Arctangent form∫ 1/(x² + a²) dx = (1/a)·arctan(x/a) + C∫1x2+9dx=arctan(x3)3+C

Quick answers

Common integrals

f(x)∫ f(x) dx
sin(x)−cos(x)+C
cos(x)sin(x)+C
tan(x)−ln(|cos(x)|)+C
sec2(x)tan(x)+C
exex+C
2x2xln(2)+C
1xln(|x|)+C
ln(x)x⁢ln(x)−x+C
x2⁢x323+C
1x2+1arctan(x)+C
11−x2arcsin(x)+C
x⁢exx⁢ex−ex+C

Worked examples

Definite integrals

More math

Other math tools

Questions

Integral Calculator FAQ

Free, private and works offline: everything is worked out in your browser.

How do I calculate an integral?

Type the function, for example x e^x. The indefinite integral appears with every rule used: for x e^x, integration by parts gives x·e^x - e^x + C. For an area, choose Definite and enter the limits.

What is the difference between definite and indefinite integrals?

An indefinite integral is a family of functions whose derivative is the function you typed, written with + C. A definite integral from a to b is a single number: the signed area between the curve and the x-axis.

Why is there a + C?

Every constant has derivative 0, so x² + 5 and x² − 2 both differentiate to 2x. The + C stands for that unknown constant.

Does it show the steps?

Yes. Each step names the rule (power rule, substitution, integration by parts, trig identity…), shows what it turns the integral into, and ends with the simplified answer. Every answer is checked by differentiating it back.

Can it do integrals with infinity as a limit?

Yes. Type inf or ∞ as a limit. For example, the integral of e^(−x²) from −∞ to ∞ is √π ≈ 1.772453851. If an integral does not converge, the calculator says so.

Why does it say there is no formula?

Some functions, such as e^(−x²), sin(x²) and sin(x)/x, have no antiderivative made of ordinary functions. Their definite integrals still have values, so choose Definite to get the number.

Is the area below the x-axis counted?

As negative. A definite integral adds area above the axis and subtracts area below it, so the integral of sin(x) from 0 to 2π is 0. The shaded graph shows both parts.

Is my work private?

Yes. Everything is worked out in your browser and nothing you type is sent anywhere.

Built and maintained by Zubaer Ahammed · Updated · Runs on your device; nothing you add is uploaded