∫ Free · Instant · Full step-by-step solution

Integral Calculator
with steps — indefinite, definite, improper, double, triple & line integrals

Type any function and get the exact antiderivative with the rule used at every step — powers, 1/x, trig, exponentials, by parts and substitution. Switch tabs for definite, improper, double, triple and line integrals. Free, unlimited, no sign-up.

Class 11 & 12CBSE · TN BoardJEEEngineering MathsB.Sc.

Online integral calculator — enter your function

INDEFINITE INTEGRAL CALCULATOR ✓ Steps included
Tap to insert
Try an example
🛡 Free · runs in your browser · nothing stored Exact answers verified automatically

Syntax: ^ power · * multiply · pi, e · functions sin cos tan sec csc cot ln log sqrt abs exp arctan arcsin. Example: 3x^2 + sin(2x) - 1/x.

Stuck on the method, not just the answer? Ask StudyHelpAI free — explained in English or Tamil →

How to Use the Integral Calculator

Four steps — the same flow for every type of integral.

1
Choose the type
Indefinite for the general antiderivative, Definite for area between limits, Improper for infinite limits, then Double, Triple or Line.
2
Type the function
Use ^ for powers and * for multiply — or tap the keypad buttons. Bracket the inside of functions: sin(2x).
3
Add limits if needed
For definite and improper integrals enter a and b (you can use pi, e, inf, -inf).
4
Press Calculate
Read the answer, then scroll to the step-by-step solution showing every rule used.

Integration of 1/x (and −1/x)

Quick answer: ∫ 1/x dx = ln|x| + C, and therefore ∫ −1/x dx = −ln|x| + C. The modulus |x| is needed because 1/x is defined for negative x too, while ln x exists only for x > 0.
Why is it ln|x|?

The power rule ∫xⁿ dx = xⁿ⁺¹/(n+1) fails at n = −1 (division by zero), so 1/x needs its own rule.

  1. d/dx [ln x] = 1/x for x > 0
  2. d/dx [ln(−x)] = 1/x for x < 0
  3. Both cases combine into ln|x|
Related results
  1. ∫ 1/(ax + b) dx = (1/a)·ln|ax + b| + C
  2. ∫ k/x dx = k·ln|x| + C
  3. ∫₁ᵉ 1/x dx = ln e − ln 1 = 1
  4. ∫₀¹ 1/x dx diverges (ln 0 → −∞)
  5. ∫₁^∞ 1/x dx diverges (ln ∞ → ∞)

Worked Integral Examples

The same methods the calculator uses — handy for checking your own working.

Indefinite · power rule

∫ (3x² + 2x − 5) dx

  1. Integrate term by term: 3x³/3 + 2x²/2 − 5x
x³ + x² − 5x + C
Definite

∫₀² (3x² + 2x) dx

  1. Antiderivative: x³ + x²
  2. F(2) − F(0) = (8 + 4) − 0
12
By parts

∫ x·eˣ dx

  1. u = x, dv = eˣ dx → du = dx, v = eˣ
  2. uv − ∫v du = x·eˣ − eˣ
eˣ(x − 1) + C
Substitution

∫ 2x/(x² + 1) dx

  1. Let u = x² + 1, so du = 2x dx
  2. ∫ du/u = ln|u|
ln(x² + 1) + C
Improper

∫₁^∞ 1/x² dx

  1. Antiderivative: −1/x
  2. Limit at ∞ is 0; at 1 it is −1 → 0 − (−1)
1 (converges)
Double integral

∬ xy dA over 0 ≤ x ≤ 1, 0 ≤ y ≤ 2

  1. Inner: ∫₀² xy dy = 2x
  2. Outer: ∫₀¹ 2x dx = 1
1
Triple integral

∭ (x + y + z) dV over the unit cube [0,1]³

  1. Each variable contributes ½ × 1 × 1
  2. Three terms: 3 × ½
3/2 = 1.5
Line integral

∫C (x² + y²) ds on the unit circle x = cos t, y = sin t

  1. x² + y² = 1 and |r′(t)| = 1
  2. ∫₀^2π 1 dt
2π ≈ 6.2832

Common Integrals & Integration Rules

The standard results behind every step the calculator shows.

Function f(x)∫ f(x) dx
k (constant)kx + C
xⁿ (n ≠ −1)xⁿ⁺¹/(n+1) + C
1/xln|x| + C
eˣeˣ + C
aˣaˣ/ln a + C
sin x−cos x + C
cos xsin x + C
tan x−ln|cos x| + C
sec² xtan x + C
csc² x−cot x + C
1/(1 + x²)arctan x + C
1/√(1 − x²)arcsin x + C
ln xx ln x − x + C
Constant multiple∫k·f dx = k·∫f dx
Sum rule∫(f + g) dx = ∫f dx + ∫g dx
Substitutionlet u = g(x), then ∫f(g(x))·g′(x) dx = ∫f(u) du
By parts∫u dv = uv − ∫v du

Always add + C to an indefinite integral. For a definite integral the constant cancels: ∫ₐᵇ f dx = F(b) − F(a).

Types of Integral Calculators on This Page

Indefinite integral calculator

Finds the general antiderivative F(x) + C. Exact results for polynomials, 1/x, exponentials, trig functions, rational functions, and products solved by parts or substitution.

Definite integral calculator

Computes ∫ₐᵇ f(x) dx = F(b) − F(a) — the signed area under the curve. Limits can be numbers or expressions like pi/2.

Improper integral calculator

Handles infinite limits (inf, −inf) and endpoint singularities, and tells you whether the integral converges or diverges.

Double integral calculator online

Evaluates ∬ f(x,y) dA with constant limits or y-limits that depend on x — rectangles, triangles and regions between curves.

Triple integral calculator

Evaluates ∭ f(x,y,z) dV over a box or a region with variable y- and z-limits, integrating z first, then y, then x.

Line integral calculator

Computes ∫C f(x,y) ds along a curve given as x(t), y(t), using the arc-length element ds = √(x′² + y′²) dt.

Free Online Integral Calculator with Steps

This integral calculator is built for students who want more than a final number. For indefinite integrals it applies the real calculus rules — power rule, reciprocal rule, standard trig and exponential forms, partial fractions, integration by parts and u-substitution — and lists the rules it used, so you can copy the method into your answer sheet. Every symbolic answer is automatically checked by differentiating it numerically, so wrong antiderivatives are never shown.

As an online integral calculator it also covers the harder cases students search for: a definite integral calculator for area under a curve, an improper integral calculator for infinite limits, a double integral calculator and triple integral calculator that accept variable limits, and a line integral calculator for parametric curves. When a function has no elementary antiderivative (for example e^(−x²)), the definite and improper modes switch to accurate numerical integration and say so.

Everything runs in your browser, so results are instant and nothing you type is stored. Looking for related tools? Try the polynomial calculator, the GPA calculator or browse all free online calculators. For full explanations of limits, derivatives and integration, see our Maths homework help or ask the AI tutor below the calculator.

← Back to Maths Homework Help
FAQ

Integral calculator — common questions

The integral of 1/x is ln|x| + C. The absolute value is needed because 1/x is defined for negative numbers, while the natural log is only defined for positive ones. It follows that the integral of −1/x is −ln|x| + C.

Yes. For indefinite integrals it lists every rule applied (power rule, substitution, by parts, partial fractions and so on) and confirms the answer by differentiation. Definite, improper, double, triple and line integrals show the working for each stage.

An indefinite integral is the general antiderivative F(x) + C and is itself a function. A definite integral ∫ₐᵇ f(x) dx = F(b) − F(a) is a single number — the signed area under the curve between a and b — so no constant C is needed.

Enter inf or -inf as a limit in the Improper tab. The calculator evaluates the limit of the antiderivative (or uses a convergence-tested numerical method) and tells you whether the integral converges to a number or diverges. For example, ∫₁^∞ 1/x² dx = 1 but ∫₁^∞ 1/x dx diverges.

It integrates the inner variable first (y between its limits, which may depend on x) and then integrates that result over x. Enter y-limits such as 0 and x to integrate over a triangle, or constants for a rectangle.

For a scalar field f(x, y) along a curve x(t), y(t), the line integral is ∫ f(x(t), y(t))·√(x′(t)² + y′(t)²) dt over the chosen range of t. Enter the field, the parametric equations and the t-range and the calculator does the rest.

Some integrals (such as e^(−x²)) have no elementary antiderivative. In Definite and Improper mode the calculator then uses accurate numerical integration (Simpson's Rule) and labels the result as approximate. In Indefinite mode it tells you no standard rule applies.

Use ^ for powers (x^2), * for multiplication (3*x or just 3x), sqrt(x) for roots, and brackets for function inputs: sin(2x), ln(x), e^(3x), arctan(x). The keypad above inserts these for you. Use pi for π and inf for infinity.

Yes — completely free with no sign-up, no daily limit and no data stored. All calculations happen in your browser.

Scroll to Top