Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Antiderivative Calculator

How to use
  1. Type the function in the box f(x)=f(x) =.
  2. Read the antiderivative, written with the constant CC. Learn more about reading the answer
  3. Read Check: differentiating the answer gives back your function.
  4. On the graph the blue curve is ff and the amber curve is the antiderivative FF with C=0C = 0.
  5. How it was found lists the rules used. See which functions it can integrate

Antiderivative
Antiderivative
∫(x3−3x) dx=x44−3x22+C\displaystyle \int \left({x}^{3}-3 x\right)\,dx = \frac{{x}^{4}}{4} - \frac{3{x}^{2}}{2} + C
The one drawn
F(x)=x44−3x22(C=0)\displaystyle F(x) = \frac{{x}^{4}}{4} - \frac{3{x}^{2}}{2} \quad (C = 0)
Check
F′(x)=x3−3x\displaystyle F'(x) = {x}^{3}-3 x
How it was found

An antiderivative of ff is a function FF whose derivative is ff. For f(x)=x3−3xf(x) = {x}^{3}-3 x it is found by reading the differentiation rules backwards.

Rules used: the power rule, ∫xn dx=xn+1n+1\int x^n\,dx = \dfrac{x^{n+1}}{n+1}; a constant factor stays in front; a sum is integrated term by term.

Result: F(x)=x44−3x22F(x) = \frac{{x}^{4}}{4} - \frac{3{x}^{2}}{2}.

Adding any constant CC changes nothing when you differentiate, so there is a whole family of antiderivatives, F(x)+CF(x) + C: the same curve moved up or down.

Check by differentiating: the slope of the amber curve at every xx equals the height of the blue curve there, F′(x)=f(x)F'(x) = f(x).

Drawn by the tool
F(x)=x44−3x22F(x) = \frac{{x}^{4}}{4} - \frac{3{x}^{2}}{2}read-only
f(x)=x3−3xf\left(x\right)={x}^{3}-3 x
F(x)=x44−3x22F(x) = \frac{{x}^{4}}{4} - \frac{3{x}^{2}}{2}


Finding an antiderivative

DemoReversing the power rule
Step 0 of 3
An antiderivative of ff is a function FF whose derivative is ff:

F′(x)=f(x)F'(x) = f(x)


Type a function and the calculator finds one by reading the differentiation rules backwards. The whole family of antiderivatives is the indefinite integral, written

∫f(x) dx=F(x)+C\int f(x)\,dx = F(x) + C

Reading the answer

  • Antiderivative is the result with the constant CC added.
  • The one drawn is the member of the family with C=0C = 0: the amber curve.
  • Check states that differentiating the answer returns your function. The calculator verifies this numerically before showing any formula.

  • If the calculator has no rule for a function it says so instead of guessing.

The constant C

The derivative of a constant is 00, so adding a constant to FF does not change its derivative. If FF is an antiderivative of ff, so is F+CF + C for every number CC, and there are no others on an interval.

On a graph the antiderivatives of one function are the same curve moved up and down. One extra fact, such as the value of FF at a point, picks out a single member of the family.
Three antiderivatives of f(x)=xf(x) = x: the same curve at three heights.

The rules read backwards

    Each differentiation rule gives an integration rule:

  • ∫xn dx=xn+1n+1+C\int x^n\,dx = \dfrac{x^{n+1}}{n+1} + C for n≠−1n \ne -1 (raise the power by one, divide by the new power)
  • ∫1x dx=ln⁡∣x∣+C\int \dfrac{1}{x}\,dx = \ln|x| + C
  • ∫ex dx=ex+C\int e^x\,dx = e^x + C and ∫ax dx=axln⁡a+C\int a^x\,dx = \dfrac{a^x}{\ln a} + C
  • ∫sin⁡x dx=−cos⁡x+C\int \sin x\,dx = -\cos x + C and ∫cos⁡x dx=sin⁡x+C\int \cos x\,dx = \sin x + C
  • a constant factor stays in front, and a sum is integrated term by term.

  • When a linear expression ax+bax + b stands in place of xx, divide by aa: ∫sin⁡(2x) dx=−cos⁡(2x)2+C\int \sin(2x)\,dx = -\dfrac{\cos(2x)}{2} + C.
The slope of sin⁡x\sin x (amber) at each point is the height of cos⁡x\cos x (blue).

What this calculator can integrate

DemoSines, exponentials and a function it cannot do
Step 0 of 3
    The calculator works by rules, so it handles the forms the rules cover:

  • polynomials, also written as products of brackets;
  • powers and roots of xx or of a linear expression, including 1x\dfrac{1}{x} and 1(ax+b)n\dfrac{1}{(ax + b)^n};
  • sin⁡\sin, cos⁡\cos, tan⁡\tan, e ⋅e^{\,\cdot}, a ⋅a^{\,\cdot} and ln⁡\ln of a linear expression;
  • 1x2+1\dfrac{1}{x^2 + 1};
  • sums and constant multiples of these.

  • It does not do integration by parts, substitution with a non-linear inside, or partial fractions, so it refuses functions such as xexx e^x or sin⁡(x2)\sin(x^2). Some functions, e−x2e^{-x^2} among them, have no antiderivative that can be written with ordinary functions at all.

Common mistakes

  • Forgetting +C+ C. One antiderivative is not the whole answer.
  • Using the power rule for 1x\dfrac{1}{x}. It would divide by 00; the answer is ln⁡∣x∣\ln|x|.
  • Multiplying by the inner slope instead of dividing. ∫cos⁡(3x) dx=sin⁡(3x)3+C\int \cos(3x)\,dx = \dfrac{\sin(3x)}{3} + C.
  • Integrating a product factor by factor. ∫fg\int f g is not ∫f⋅∫g\int f \cdot \int g.
  • Dropping the sign on the sine. ∫sin⁡x dx=−cos⁡x+C\int \sin x\,dx = -\cos x + C.