What Is an Antiderivative?
An antiderivative of a function f(x) is any function F(x) with F′(x) = f(x) — it answers the question "what was differentiated to get this?" This antiderivative calculator finds F(x) for the standard forms of a first calculus course: powers, reciprocals, exponentials, trigonometric functions, logarithms and the chain forms built from them. Every term of your input is matched to a named rule, the rule is printed next to the term, and the constant of integration C is added at the end — because an antiderivative is never a single function but a whole family, F(x) + C, whose members differ only by a constant.
The Antiderivative Rules You Actually Need
- Power rule: the antiderivative of x^n is x^(n+1)/(n+1), for any n except −1. It also covers square roots (x^(1/2) → (2/3)x^(3/2)) and negative powers.
- The log exception: the antiderivative of 1/x is ln|x| — the one place the power pattern breaks.
- Exponentials: e^x is its own antiderivative; e^(ax + b) divides by a; a^x divides by ln(a).
- Trig: sin becomes −cos, cos becomes sin, sec^2 becomes tan, tan becomes −ln|cos| — each divided by the inner derivative when the argument is ax + b.
- Chain forms: (ax + b)^n and 1/(ax + b) follow the power and log rules with one extra division by a.
- Sums and multiples: antiderivatives are taken term by term, and constants factor out — which is why the calculator can show a rule per term.
How to Use This Calculator
- Type your function using x as the variable and * for multiplication — the field starts with 3*x^2 + 2*x.
- Read F(x) in the dark panel, which updates as you type and always ends in + C.
- Check the rule list under the result: each term of your input is shown with the rule that produced its antiderivative, so you can follow the working line by line.
- If a term is rejected, the message names it and lists the covered forms — forms that need substitution are one click away in the u-substitution calculator.
Worked Example 1: The Antiderivative of 3x^2 + 2x
Work term by term. The constant 3 factors out, and the power rule turns x^2 into x^3/3, giving 3 · (x^3/3) = x^3. The second term: 2 factors out, x becomes x^2/2, giving 2 · (x^2/2) = x^2. Adding the constant of integration: F(x) = x^3 + x^2 + C. Verify by differentiating: 3x^2 + 2x — the original function, as required. That check, differentiating your answer, is the fastest way to catch antiderivative errors by hand.
Worked Example 2: A Mixed Function, x^3 − sin(2x) + 1/x
Three different rules in one problem. The power rule: x^3 → x^4/4. The trig chain rule: sin(2x) → −cos(2x)/2, and the leading minus sign makes the term +(cos(2x))/2 in the sum. The log exception: 1/x → ln|x|. Together: F(x) = x^4/4 + (cos(2x))/2 + ln|x| + C. Notice how each piece is independent — sums are always handled one term at a time, which is precisely the structure the calculator's rule list shows you.
Antiderivative or Integral — Which Tool Do You Need?
If your problem is written with an integral sign and no limits, ∫f(x) dx, it is asking for exactly what this page computes — our integral calculator covers the same ground with the emphasis on integral notation. If the integral has limits, ∫ from a to b, you need a number: find the antiderivative here, then evaluate it at the bounds — or go straight to the definite integral calculator. And if a term hides a chain pattern like x·e^(x^2), that is a job for the u-substitution calculator, which shows the substitution itself step by step.
Three Mistakes to Watch For
First, dropping the + C — on exams it costs marks, and in applications it loses the initial condition. Second, applying the power rule to 1/x and writing x^0/0; the answer is ln|x|, always. Third, forgetting the chain division: the antiderivative of sin(2x) is −cos(2x)/2, not −cos(2x), because the inner function 2x contributes its derivative. When in doubt, differentiate your answer — the derivative calculator will confirm it in seconds.