Learn

Antiderivative Calculator

An antiderivative calculator with steps: type any function. The engine finds its antiderivative instantly, and the AI explains every rule it used.

Type or handwrite any antiderivative problem — the AI fills the calculator and explains each step

How to use this antiderivative calculator

The formula comes pre-filled. Click Calculate. This antiderivative calculator starts with ∫ cos(x) dx already in the math box — the whole formula, ready to edit.

  • One math box, shown as real math. What you type appears in the antiderivative calculator as fractions, roots, and exponents — no special syntax to remember
  • One-tap swaps. The buttons under the box — sin(x), tan(x), cot(x), sqrt(x) and more — replace the whole formula in the antiderivative calculator with one click
  • Edit inside the formula. Change cos to sin, or the x to any expression such as 2x or 4x^3 - 2x + 5. The ∫ and the dx stay where they are; this antiderivative calculator does the rest

Click Calculate and the antiderivative calculator returns your antiderivative: the function whose derivative equals the input. The full family adds + C, because any constant disappears when you differentiate.

This page is more than a static antiderivative calculator — it is also an AI tutor you can ask questions. The question box under the form takes full questions, photos of the problem, and follow-ups:

  • Ask in plain words. "What is the antiderivative of cot x?" The AI reads it, fills the box, and runs this antiderivative calculator for you.
  • Take a photo of your homework. No typing: the AI reads the integrand and fills the antiderivative calculator form.
  • Ask about the ideas, not just the answer. "Why is the antiderivative of 1/x a natural log?" The AI explains step by step — every result still comes from the antiderivative calculator on this page, so nothing is guessed.
  • Work backwards, then keep asking. Give a slope and one point, and the AI shows how the + C gets pinned down. Follow-up questions are welcome: ask "why?" as often as you need.

To check any answer, differentiate it: you must get back exactly the function you typed into the antiderivative calculator.

What an antiderivative really is

Differentiation takes x² down to 2x. The antiderivative runs the question the other way: you know the slope is 2x — which function has that slope?

x² works: its slope at every point is 2x. But so do x² + 3 and x² − 3. Adding a constant shifts a curve up or down without changing its slope, because the derivative of any constant is zero. The antiderivative calculator cannot see the shift, and that is exactly why every antiderivative calculator answer ends in + C. Every output is a family, not a single curve.

-226-4+6x² + 3x² − 3
Antiderivative calculator in one picture: x² − 3 and x² + 3 have the same slope 2x everywhere — reversing a derivative recovers the shape, never the height, so every answer ends in + C

The antiderivative rules the calculator uses

Read the picture: both parabolas have slope 2x at every x. Reversing the derivative recovers the shape of a curve — never its height.

Now the symbols. What this antiderivative calculator computes is written as:

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

Every antiderivative calculator answer is read off this one equation.

SymbolMeaning
\intthe integral sign — it asks "reverse the derivative"
f(x)f(x)the integrand — the function you typed
dxdxthe variable of integration
F(x)F(x)the antiderivative — F(x)=f(x)F'(x) = f(x)
CCthe constant of integration — the invisible height

The antiderivative calculator leans on these core rules:

RuleFormula
Power rule (n1n \neq -1)xndx=xn+1n+1+C\int x^n\,dx = \dfrac{x^{n+1}}{n+1} + C
Constantkdx=kx+C\int k\,dx = kx + C
Reciprocal (the special case)$\int \dfrac{1}{x},dx = \ln\left
Exponentialexdx=ex+C\int e^x\,dx = e^x + C
Cosinecosxdx=sinx+C\int \cos x\,dx = \sin x + C
Sinesinxdx=cosx+C\int \sin x\,dx = -\cos x + C
Sum(f±g)dx=fdx±gdx\int (f \pm g)\,dx = \int f\,dx \pm \int g\,dx
Constant multiplekfdx=kfdx\int kf\,dx = k\int f\,dx

One warning before you feed products to the antiderivative calculator: there is no product rule for integrals. xexdx\int x e^x\,dx is not x22ex\dfrac{x^2}{2} \cdot e^x. Products need their own techniques — ask the AI on this antiderivative calculator page which one applies.

Example 1 - the antiderivative of cos x

Find the antiderivative of cosx\cos x.

  1. Match it to the table: cosine integrates to sine.
  2. So cosxdx=sinx+C\int \cos x\,dx = \sin x + C.
  3. Check by differentiating: ddx(sinx)=cosx\dfrac{d}{dx}(\sin x) = \cos x. The check holds.

The math box of the antiderivative calculator above comes pre-filled with cos(x) — click Calculate and it confirms sin(x) instantly. The same swap covers the rest of the trig family: the antiderivative of sin is cosx+C-\cos x + C, while the antiderivative of tan and of cot each needs one rewrite first. Ask the antiderivative calculator page AI to walk you through it.

Example 2 - a polynomial, term by term

Evaluate (4x32x+5)dx\int (4x^3 - 2x + 5)\,dx.

  1. Split into three integrals — the sum rule lets the antiderivative calculator integrate term by term.
  2. Power rule each term: 4x442x22+5x\dfrac{4x^4}{4} - \dfrac{2x^2}{2} + 5x.
  3. So (4x32x+5)dx=x4x2+5x+C\int (4x^3 - 2x + 5)\,dx = x^4 - x^2 + 5x + C.
  4. Check by differentiating: 4x32x+54x^3 - 2x + 5. The answer holds.

Replace the formula with 4x^3 - 2x + 5 in the antiderivative calculator above and it returns the same result.

Example 3 - pinning down the + C

Slope information alone leaves the height free. One extra point pins it down.

The slope of a curve is dydx=sinx\dfrac{dy}{dx} = \sin x, and the curve passes through (0,3)(0, 3). Find the curve.

  1. Integrate: y=cosx+Cy = -\cos x + C.
  2. Substitute the point: 3=cos0+C=1+C3 = -\cos 0 + C = -1 + C.
  3. So C=4C = 4, and the curve is y=cosx+4y = -\cos x + 4.

That is the whole point of the + C: the antiderivative calculator gives the family, and one known value selects the member you need.

Three Common Antiderivative Mistakes

Three slips the antiderivative calculator sees every day:

  1. Dropping the + C. Without it you report one curve out of an infinite family. Add 10, subtract 1954 — every one differentiates back to the same slope.
  2. Using the power rule on 1/x. The rule needs n1n \neq -1, and x00\dfrac{x^0}{0} is undefined anyway. The antiderivative of 1x\dfrac{1}{x} is lnx+C\ln\left|x\right| + C; the antiderivative calculator handles the special case for you.
  3. Integrating a product as a product of integrals. xexdx\int x e^x\,dx is not x22ex\dfrac{x^2}{2} \cdot e^x — differentiate that and the extra term x2ex2\dfrac{x^2 e^x}{2} appears. Products need by parts or substitution, not the antiderivative calculator table.
Problem 1

The slope of a curve is dy/dx = 4x − 1. The curve passes through the point (1, 3). What is the value of y when x = 3? Check your answer with the antiderivative calculator above.

00:00
Page 1
Problem 2

A car is moving at 44 feet per second when the driver brakes, decelerating at a constant 11 feet per second squared. How many feet does the car travel before it stops? Check your answer with the antiderivative calculator above.

00:00
Page 1

Frequently asked questions

1

Is an antiderivative the same as an integral?

An indefinite integral is exactly the antiderivative family, written $\int f(x)\,dx = F(x) + C$. A definite integral has bounds and boils down to one number. This antiderivative calculator computes the indefinite kind.

2

Why does every antiderivative calculator answer end in + C?

The derivative of a constant is zero, so reversing a derivative cannot recover it. x², x² + 3 and x² − 3 all have slope 2x. The antiderivative calculator returns the whole family, and + C stands for the missing height.

3

How do I check my antiderivative?

Differentiate it. The derivative must give back the function you started with. This check needs no antiderivative calculator — it is a single differentiation.

4

What is the antiderivative of 1/x?

$\ln\left|x\right| + C$. The power rule breaks at $n = -1$, so this case stands on its own. Type `1/x` into the antiderivative calculator above and it returns log(x), the same family member.

5

What is the antiderivative of cot x?

$\ln\left|\sin x\right| + C$, by first rewriting cot x as $\cos x / \sin x$. The antiderivative calculator on this page does the rewrite internally — ask the AI to show the substitution.

6

Does the antiderivative calculator show steps?

The calculator guarantees the result, and the AI on this page explains which rule was applied at each step. Ask it to walk through any answer from the antiderivative calculator.

Related practice