Math Solver Free

Integral Calculator

Find antiderivatives term by term — each integration rule shown.

How Indefinite Integrals Work

This integral calculator finds the antiderivative of a function you type in — polynomials, exponentials, trigonometric functions, and 1/x — and shows the integration rule applied to every term, so it doubles as a checking tool for calculus homework. Enter an expression such as 3*x^2 + 2*x in the Integrand f(x) box, press Integrate, and the result appears with + C and a “Rule applied per term” breakdown. Students use it to verify hand-worked answers before submitting them; teachers use it to generate worked examples whose steps students can follow backwards by differentiating.

An indefinite integral is the reverse of differentiation: it finds the antiderivative — the function whose derivative gives back the original. Because differentiating kills constant terms, every antiderivative comes with an unknown constant + C. The power rule does most of the heavy lifting: ∫x^n dx = x^(n+1)/(n+1), for any n except −1.

The Core Rules

  • Power rule: ∫x^n dx = x^(n+1)/(n+1) + C (n ≠ −1).
  • Special case: ∫1/x dx = ln|x| + C.
  • Exponentials: ∫e^x dx = e^x + C; ∫a^x dx = a^x/ln(a) + C.
  • Trigonometry: ∫sin(x) dx = −cos(x) + C; ∫cos(x) dx = sin(x) + C.
  • Constant multiple: ∫k·f(x) dx = k·∫f(x) dx — pull constants out first.

Every symbol, defined: in the expression ∫f(x) dx, ∫ is the integral sign, f(x) is the integrand — the function you start from — and dx names the variable of integration, here x. In the power rule, n is the exponent on x, and the rule fails at n = −1 because n + 1 would be zero; that case gives ln|x| instead. C is the constant of integration, and ln means the natural logarithm, base e.

How to Use the Integral Calculator

  1. Type the function into the Integrand f(x) box using calculator syntax: * for multiplication and ^ for powers, so write 3*x^2 + 2*x, not 3x².
  2. Press the Integrate button.
  3. Read the Antiderivative (symbolic) panel for the result, which always ends in + C.
  4. Open the Rule applied per term list underneath to see which rule handled each term — power, exponential, trig, or the special 1/x case — and copy that reasoning into your own working.
  5. If a term sits outside the basic table, the tool says so and suggests the definite integral calculator for a numeric answer.

Worked Example 1: Integrating x²

Integrate ∫x² dx. Step 1: identify the power — here n = 2. Step 2: apply the power rule in two moves: increase the exponent by one, 2 + 1 = 3, and divide by that new exponent, giving x³/3. Step 3: add the constant of integration, so ∫x² dx = x³/3 + C. Step 4: verify by differentiating, because integration and differentiation undo each other. The derivative of x³/3 is 3x²/3, which simplifies to x² — exactly the function we started with, so the answer is confirmed. This checking habit takes ten seconds and catches most sign and arithmetic slips before they cost marks. Note what did not happen: the exponent was not multiplied by anything, and we divided by 3, the new exponent, not by the original 2 — the two classic power-rule slips.

Worked Example 2: Integrating 3x² + 2x

Integrate ∫(3x² + 2x) dx — the expression pre-filled in the box above. Integrals split over addition, so handle each term separately. Step 1: for 3x², pull the constant 3 out and apply the power rule to x², giving 3 × (x³/3); the 3s cancel, leaving x³. Step 2: for 2x, remember x is x¹, so the rule gives 2 × (x²/2); the 2s cancel, leaving x². Step 3: combine the terms and add one constant for the whole answer: x³ + x² + C. The calculator displays the unsimplified form 3*((x^3)/3) + 2*((x^2)/2) + C with the constant-multiple rule listed per term. One + C covers the whole expression; you never need a separate constant for each term. Verify by differentiating: the derivative of x³ + x² is 3x² + 2x, the original integrand — confirmed.

When Indefinite Integrals Are the Right Tool

Reach for an indefinite integral whenever you know a rate and need the quantity behind it. A physicist who knows a car's velocity function integrates it to recover position. An engineer with a varying current integrates charge flow to size a battery. A student checking a page of calculus homework runs each answer through this calculator, then differentiates any mismatch by hand to find the exact step that went wrong. Teachers, meanwhile, use it to build worked examples where every rule is named, so a class can follow the logic rather than memorise results.

Three Mistakes to Avoid

  • Dropping the + C: an indefinite integral without its constant describes only one curve out of an infinite family, and examiners treat the omission as an incomplete answer in class and in exams.
  • Applying the power rule to 1/x: writing x⁰/0 means dividing by zero — the n = −1 case is the exception that produces ln|x| instead, absolute-value bars included.
  • Dividing by the old exponent: for ∫x², students often write x³/2, dividing by the original power. The rule divides by the new exponent: x³/3. Differentiating your answer exposes this slip instantly.

Beyond the Basic Table

Products, quotients, and compositions need substitution, parts, or partial fractions — techniques this table does not attempt. For a numeric answer over an interval, use our definite integral calculator instead. To check an answer, differentiate it with our derivative calculator — you should get the integrand back.

More calculus answers to check? The math problem solver library includes derivatives, limits and partial derivatives too, all free.

Frequently Asked Questions

What is an indefinite integral?

An indefinite integral is the antiderivative of a function — the whole family of functions whose derivative equals the integrand. Unlike a definite integral, it has no limits and produces a function, not a number. It always includes an unknown constant + C, because infinitely many curves share the same slope pattern, shifted up or down.

What is the power rule for integration?

∫x^n dx = x^(n+1)/(n+1) + C for n ≠ −1: raise the exponent by one, then divide by the new exponent. For example, ∫x² dx = x³/3 + C. The single exception is n = −1, the 1/x case, where the formula would divide by zero — its integral is ln|x| + C instead.

Why is there always a + C?

Differentiation turns every constant into zero, so reversing the process cannot recover which constant was there. The + C stands for all of them at once: x³/3 + 5 and x³/3 − 2 have the same derivative, x². A specific value of C can only be pinned down by extra information, such as one point the curve passes through.

How can I check that my integral is correct?

Differentiate your answer — you should get the integrand back exactly. If you found ∫(3x² + 2x) dx = x³ + x² + C, differentiating term by term gives 3x² + 2x, which matches. If the check fails, compare powers and coefficients first: most errors hide in a wrong exponent or a constant that was never divided through.

Which functions can this calculator integrate?

Any sum of terms from the basic table: powers x^n, constants, 1/x, e^x, other exponentials a^x, sin(x), cos(x), sec²(x), and csc²(x), each with an optional constant multiplier such as 3*x^2. Products, quotients, and compositions — like x·e^x or sin(2x) — need substitution or parts, so the tool flags them instead of guessing.

Is this integral calculator free?

Yes — every tool on Math Solver Free is completely free, with no sign-up, no account, and no usage limits. All calculations run privately in your browser, so the numbers you enter never leave your device, and you can use the calculator as often as you like on any device.

Related Tools & Guides

About the MathSolverFree Team

The MathSolverFree Team builds and maintains the calculators and step-by-step solvers on this site. Every tool is checked against worked textbook examples before it is published, and the method behind each solver is written out in full — in the worked examples on the page and in our guides — so you can see exactly how an answer is reached, not just the answer itself.

How we build and test our tools·More about the team