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
- 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².
- Press the Integrate button.
- Read the Antiderivative (symbolic) panel for the result, which always ends in + C.
- 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.
- 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.