Integral calculator with steps
An integral and antiderivative calculator: type in a function and it finds the indefinite integral or evaluates a definite one, showing how — standard integrals, substitution, integration by parts or partial fractions. Every answer is checked by differentiating it.
Type it as you would write it: x^2 or x², sqrt(x) or √x, e^x, ln x, sin(2x), 1/(x^2+4). You can leave out the multiplication sign: 2x, x·e^x.
The integral of x·e^x is x·e^x − e^x + C. Differentiating this answer gives back the integrand — the calculator has checked.
Step-by-step working
Integrating by parts using ∫u dv = uv − ∫v du:
u = x, dv = e^x dxdu = dx, v = e^x∫x·e^x dx = x·e^x − ∫e^x dx= x·e^x − e^x + C
Formula
This is the main method the calculator used for your integral: a standard integral, substitution, integration by parts, partial fractions or the fundamental theorem of calculus. C is the constant of integration.
How we got there
An antiderivative is easy to check: differentiating it must give back the integrand. The calculator runs this check on every answer.
How to integrate by hand
- Split it into terms
∫(3x² − 2x + 5) dx = 3∫x² dx − 2∫x dx + 5∫dx = x³ − x² + 5x + C.
- Look for a function next to its derivative
In ∫2x·e^(x²) dx the factor 2x is the derivative of x². Substituting t = x² gives ∫eᵗ dt = eᵗ + C = e^(x²) + C.
- A polynomial times eˣ, sin x or ln x: integrate by parts
∫x·eˣ dx: u = x, dv = eˣ dx, so du = dx, v = eˣ, and ∫x·eˣ dx = x·eˣ − ∫eˣ dx = x·eˣ − eˣ + C.
- For a definite integral, substitute the limits
∫₀¹ x² dx = [x³/3]₀¹ = 1/3 − 0 = 1/3 — this is F(b) − F(a), the fundamental theorem of calculus.
Integrals refusing to come out? Find a maths tutor for Year 12
Frequently asked questions
Type in the integrand, for example x*e^x. For a definite integral, choose ‘Definite’ and enter the limits. The integral calculator shows the antiderivative or the value, plus every step of the working.
An indefinite integral is the whole family of antiderivatives F(x) + C. A definite integral is a number, F(b) − F(a): the area under the curve between x = a and x = b, with any parts below the x-axis counted as negative.
Standard integrals and linearity, the rule for f(kx + b), substitution, integration by parts (including twice, as for eˣ·sin x), partial fractions, and the double-angle identities for sin²x and cos²x.
Some integrals, such as ∫e^(x²) dx or ∫sin x/x dx, cannot be written in terms of elementary functions at all. Others need methods the calculator does not know yet. It will not show a wrong answer; for a definite integral it gives an approximate value using Simpson's rule instead.
The derivative of a constant is zero, so there are infinitely many antiderivatives: x³/3, x³/3 + 1 and x³/3 − 7 all have the derivative x². The constant of integration C stands for all of them.
As numbers or expressions: 0, 1/2, −3, π, π/2, e, ln 2. The upper limit can be smaller than the lower one — the integral then changes sign.
Integration not clicking?
Book a free introductory lesson with a Mathema tutor. 30 minutes online, no commitment — we find the gap and the plan to close it.
