Antiderivative Calculator

Compute indefinite integrals (antiderivatives) of polynomials, trigonometric, exponential, and logarithmic functions instantly. Each result includes the integration rule applied, step-by-step working, and the constant of integration +C.

∫ Polynomials ∫ Trig Functions ∫ Exponential & Log 📋 Step-by-Step 📱 Mobile Ready
Antiderivative Calculator
Select a function type, choose from examples or type your own, then click Calculate.
Quick Examples — Click to Load
Enter f(x) — the function to integrate
Tip: Use ^ for powers (e.g. x^3), * for multiplication, and standard function names (sin, cos, tan, exp, ln).
⚠ Could not parse this expression. Please check your input and try again, or choose from the examples above.
Rule: Power Rule
∫ f(x) dx =
∫ x² dx
=
x³/3
+ C (constant of integration)
Rule applied: ∫ xⁿ dx = xⁿ⁺¹/(n+1) + C  (Power Rule, n ≠ -1)
Step-by-Step Solution
✅ Verification — Differentiation Check d/dx of the result should equal the original function.
4 Function Types — Poly, Trig, Exp, Log
📋
Step-by-Step — Rule shown
Verified — Differentiation check
🔒
Private — No data stored
📱
Mobile Ready

How to Use This Antiderivative Calculator

Four simple steps to compute any antiderivative with full step-by-step working.

1

Choose Function Type

Select the tab for your function type — Polynomial, Trigonometric, Exponential, or Logarithmic. This filters the quick examples and hints shown.

2

Click an Example or Type Your Own

Click any quick-example button to load a preset function, or type your own in the input field using standard notation: ^ for powers, * for multiplication, and function names like sin, cos, exp, ln.

3

Set Variable & Options

The variable defaults to x but can be changed to t, u, or any single letter. Optionally set a multiplier to scale the function, and choose your constant name (C by default).

4

Read Your Result

See the antiderivative, the integration rule applied, full step-by-step working, and a differentiation check confirming the result is correct.

Standard Antiderivative Rules — Quick Reference

The integration rules used by this calculator — the same rules taught in every calculus course worldwide.

f(x)∫ f(x) dxRule NameNotes / Conditions
xⁿxⁿ⁺¹/(n+1) + CPower Rulen ≠ -1
1/x = x⁻¹ln|x| + CLog RuleSpecial case of power rule when n = -1
k (constant)kx + CConstant Rulek is any real number
sin(x)-cos(x) + CTrig RuleBasic sine antiderivative
cos(x)sin(x) + CTrig RuleBasic cosine antiderivative
tan(x)-ln|cos(x)| + CTrig / Log RuleDerived from substitution
sec²(x)tan(x) + CTrig RuleAntiderivative of sec squared
csc²(x)-cot(x) + CTrig RuleAntiderivative of csc squared
eˣ + CExponential Rulee is Euler's number ≈ 2.71828
aˣ/ln(a) + CExponential Rulea > 0, a ≠ 1
ln(x)x·ln(x) - x + CIntegration by Partsx > 0
1/√(1-x²)arcsin(x) + CInverse Trig Rule|x| < 1
1/(1+x²)arctan(x) + CInverse Trig RuleAll real x

Understanding Antiderivatives and Indefinite Integrals

An antiderivative of a function f(x) is any function F(x) whose derivative equals f(x). In other words, if F'(x) = f(x), then F(x) is an antiderivative of f(x). The process of finding an antiderivative is called antidifferentiation or indefinite integration, and the result is written as ∫ f(x) dx = F(x) + C.

The constant of integration (+C) appears in every antiderivative because differentiation destroys constants — when you differentiate x² + 5, the 5 disappears. When you reverse the process, you cannot know what constant was there, so the answer must represent the entire family of functions that differ only by a constant.

The relationship between differentiation and integration is the Fundamental Theorem of Calculus — one of the most important results in all of mathematics. Part 1 states that if F(x) = ∫f(t)dt from a to x, then F'(x) = f(x). Part 2 provides the evaluation formula that allows definite integrals to be computed from antiderivatives.

  • Power Rule: ∫ xⁿ dx = xⁿ⁺¹/(n+1) + C (n ≠ -1)
  • Special case: ∫ x⁻¹ dx = ln|x| + C
  • ∫ sin(x) dx = -cos(x) + C (note the negative sign)
  • ∫ eˣ dx = eˣ + C (unique — equals its own antiderivative)
  • Sum Rule: ∫ [f(x) + g(x)] dx = ∫ f(x) dx + ∫ g(x) dx
  • Constant Multiple: ∫ k·f(x) dx = k · ∫ f(x) dx

∫ Why -cos(x) for sin(x)?

The antiderivative of sin(x) is -cos(x) + C — the negative sign surprises many students. The reasoning: d/dx[-cos(x)] = -(-sin(x)) = sin(x). Verify it yourself: differentiate -cos(x) and you get sin(x). The antiderivative of cos(x), by contrast, is +sin(x) without the negative: d/dx[sin(x)] = cos(x). These signs are a constant source of errors on calculus exams — memorise them both carefully.

📑 The Power Rule — Why It Works

The Power Rule for integration is the reverse of the Power Rule for differentiation. Since d/dx[xⁿ] = nxⁿ⁻¹, to reverse this process you increase the exponent by 1 and divide by the new exponent: ∫ xⁿ dx = xⁿ⁺¹/(n+1) + C. The division by (n+1) compensates for what differentiation would multiply by. The only exception is n = -1, because you cannot divide by zero — this case gives ln|x| + C instead.

✅ Verifying Any Antiderivative

You can always verify an antiderivative by differentiating it — if you get back your original function, the antiderivative is correct. This is how our calculator's verification step works: it differentiates the computed result and checks that it matches the original input. If they match, the result is confirmed. This self-checking property of integration makes it one of the few areas of mathematics where you can easily verify your own answer.

📚 When Integration Requires Special Techniques

The basic rules handle many common functions, but more complex functions require advanced techniques. Integration by Parts handles products like x·sin(x) or x·eˣ using the formula ∫u dv = uv - ∫v du. Substitution (u-substitution) handles composite functions like ∫ sin(2x) dx by substituting u = 2x. Partial fractions handles rational functions by decomposing them into simpler fractions. Trigonometric substitution handles expressions with √(a²-x²).

Antiderivative Calculator FAQs

Common questions about antiderivatives, indefinite integrals, and how to use this calculator.

An antiderivative of a function f(x) is any function F(x) such that F'(x) = f(x). For example, since d/dx[x³] = 3x², the antiderivative of 3x² is x³ + C. The +C represents any constant, because constants differentiate to zero. Antiderivatives are also called indefinite integrals and are written as ∫ f(x) dx = F(x) + C.
The constant of integration (+C) appears because differentiation destroys constants. If you differentiate x² + 7 or x² - 3 or x² + 1,000,000, all of them produce 2x. So when you reverse the process (integrate 2x), you cannot know what constant was in the original function. The answer x² + C represents the entire infinite family of functions whose derivative is 2x — any specific value of C gives a valid antiderivative.
An antiderivative and an indefinite integral are the same thing — ∫ f(x) dx = F(x) + C. A definite integral ∫[a to b] f(x) dx is different — it evaluates to a specific number representing the signed area under f(x) between x=a and x=b. Definite integrals are computed using the Fundamental Theorem of Calculus: ∫[a to b] f(x) dx = F(b) - F(a), where F(x) is any antiderivative of f(x). This calculator computes indefinite integrals (antiderivatives) only.
Differentiate the result — if you get back the original function, the antiderivative is correct. For example, to verify that ∫ cos(x) dx = sin(x) + C: take d/dx[sin(x) + C] = cos(x) + 0 = cos(x) ✓. This self-checking property makes integration one of the few areas of mathematics where verification is straightforward. Our calculator performs this check automatically and shows the verification step.
The antiderivative of 1/x (which equals x⁻¹) is ln|x| + C — the natural logarithm of the absolute value of x. This is the special case of the power rule where n = -1. The standard power rule formula xⁿ⁺¹/(n+1) fails here because it would require dividing by zero (n+1 = 0 when n = -1). The absolute value bars in ln|x| are important — they extend the domain to include negative values of x, since ln(x) is only defined for x > 0.

About This Antiderivative Calculator

This calculator applies standard integration rules — Power Rule, Constant Rule, Trigonometric rules, Exponential rules, and Logarithmic rules — to compute antiderivatives of common functions. Results include the integration rule applied, step-by-step working, and a differentiation-based verification check. The calculator handles sums and differences of terms using the Sum Rule of integration.

This tool is designed for educational purposes and handles standard calculus functions. Very complex expressions, products of functions requiring integration by parts, composite functions requiring substitution, and partial fractions may not be computable — use the function type tabs and examples for best results. For formal academic work, verify results manually using differentiation.

Ready to Compute an Antiderivative?

Use the free antiderivative calculator above or explore all our math and education tools.

∫ Compute Antiderivative All Math Tools
Scroll to Top