πAI Math Solver

Calculators

Integral Calculator

An integral calculator with steps: type a function, get its antiderivative — the power rule, trig integrals, and the constant C, all shown.

Type a function, pick the variable, click Calculate.

Type or handwrite the full problem — the AI will solve it and explain every step

How to use this integral calculator

Type a function, click Calculate. This integral calculator gives exact indefinite integrals instantly, right on the page.

  • Function to integrate — the box comes pre-filled with x^2. Replace it with any function, or tap an example button such as sin(x), 1/x, 2x + 3, e^x, or cos(x)
  • With respect to — pick the variable of integration: x, y, or t, matching the dxdx (or dydy, dtdt) in your problem

Click Calculate and the integral calculator returns the indefinite integral: for the pre-filled x2x^2 it gives x33+C\dfrac{x^3}{3} + C — the whole family of functions whose derivative is x2x^2, constant included.

This page is more than a static integral 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 integral of 2x + 3?” The AI reads it and integrates it step by step.
  • Take a photo of your homework. No typing: the AI reads the integrand and shows every step of the integration.
  • Ask about the ideas, not just the answer. “Why does every integral end in + C?” The AI explains step by step — every result still comes from the integral calculator on this page, so nothing is guessed.
  • Work backwards, then keep asking. Give an answer and ask what was integrated, or hand over a definite-integral word problem with bounds. Follow-up questions are welcome: ask “why?” as often as you need — the integral calculator page keeps teaching.

What an integral computes

An integral reads two ways, and both are true at once.

Reading one: run differentiation backwards. You know a derivative — say 2x2x — and you ask which function it came from. x2x^2 works, because differentiating x2x^2 gives 2x2x. That reverse question is integration, and its answer is called an antiderivative. This is the reading the integral calculator computes.

Reading two: accumulate area. The same symbol measures the area under a curve, stacked from infinitely many thin slices — each one f(x)f(x) tall and dxdx wide. Speed accumulates into distance; a rain rate accumulates into total rainfall.

The notation carries both readings:

∫f(x) dx\int f(x)\,dx

SymbolMeaning
∫\intthe integral sign — a stretched S, for sum
f(x)f(x)the integrand — the function you typed
dxdxthe tiny slice of the xx-axis being summed

One symbol, one fact underneath: accumulating slices and reversing a derivative are the same operation. On this page the integral calculator works the reverse reading; ask the AI box below about areas when you need the other one.

Methods the calculator uses

The method you will reach for most, on this integral calculator and in every calculus course, is the power rule for integrals:

∫xn dx=xn+1n+1+C(n≠−1)\int x^n\,dx=\dfrac{x^{n+1}}{n+1}+C \quad (n\neq-1)

Raise the exponent by one, divide by the new exponent, add C. It works because it is the derivative power rule played backwards: when you differentiate xn+1n+1\dfrac{x^{n+1}}{n+1}, the n+1n+1 in front cancels the one you divide by, and the exponent drops back to nn.

Two companions make the rule cover whole expressions:

  • The sum rule. The integral of a sum is the sum of the integrals — integrate 2x+32x + 3 one term at a time, as Example 2 below shows.
  • The constant multiple. A coefficient rides along outside: ∫2x dx=2⋅x22=x2\int 2x\,dx = 2 \cdot \dfrac{x^2}{2} = x^2.

One exponent is forbidden: n=−1n = -1. Raising it by one gives x0/0x^0/0, and division by zero stops the rule cold — 1x\dfrac{1}{x} integrates to ln⁡∣x∣+C\ln\left|x\right| + C instead, a law unto itself. Beyond powers, the integral calculator also carries the standard shapes: sin⁡x\sin x, cos⁡x\cos x, and exe^x each integrate to a close cousin, worked in Example 2.

Example 1 - the power rule

Evaluate ∫x2 dx\int x^2\,dx — the function pre-filled in the integral calculator above.

  1. Raise the exponent: x2x^2 becomes x3x^3.
  2. Divide by the new exponent: x33\dfrac{x^3}{3}.
  3. Add the constant:

∫x2 dx=x33+C\int x^2\,dx=\dfrac{x^3}{3}+C

Read the answer as a family, not a single curve: x33+C\dfrac{x^3}{3} + C covers every upward and downward shift of one cubic, and every member of that family has slope x2x^2.

Now check — and make this a habit for life: an integral is correct exactly when differentiating it gives back the integrand.

ddx(x33)=3x23=x2\dfrac{d}{dx}\left(\dfrac{x^3}{3}\right)=\dfrac{3x^2}{3}=x^2

The derivative returns x2x^2 exactly, so the integral holds. No table lookup, no luck involved — the check is mechanical and always works. The integral calculator above confirms x33+C\dfrac{x^3}{3} + C in one click; the AI box below will show the check line by line if you ask.

Example 2 - trig and sums

Two more integrations, both one click away in the integral calculator.

A trig integral. Type sin(x):

∫sin⁡x dx=−cos⁡x+C\int \sin x\,dx=-\cos x+C

Mind the minus sign — sine integrates to minus cosine. It is the single most-dropped sign in calculus, and it survives every shortcut: differentiate −cos⁡x-\cos x and you get sin⁡x\sin x back, sign and all.

A sum, term by term. Type 2x + 3:

  1. Split it: the sum rule turns one integral into two — ∫2x dx\int 2x\,dx and ∫3 dx\int 3\,dx.
  2. Integrate each: 2x2x gives 2⋅x22=x22 \cdot \dfrac{x^2}{2} = x^2; the constant 33 integrates to 3x3x.
  3. Recombine, one C for the whole answer:

∫(2x+3) dx=x2+3x+C\int (2x+3)\,dx=x^2+3x+C

Check by differentiating: 2x+32x + 3 comes straight back, one term per term. Both examples run live in the integral calculator above — type each one and compare the steps with what you get by hand.

Why every integral ends in + C

Differentiation erases constants. The derivative of x2x^2, of x2+3x^2 + 3, and of x2−3x^2 - 3 is 2x2x every time, because a constant shifts a curve up or down without tilting it. So when the integral calculator runs the machinery backwards, the height is already lost — x33\dfrac{x^3}{3}, x33+3\dfrac{x^3}{3} + 3, and x33−3\dfrac{x^3}{3} - 3 all differentiate to x2x^2. No reverse step can choose among them, so the answer is the whole family at once, written with one + C.

A single known point picks the member you need: if the curve passes through a known value, substitute it and solve for C. That is how word problems turn a family into one curve.

Three slips the integral calculator sees every day:

  1. Dropping the + C. Without it you report one curve out of infinitely many. Write it every time, even on quick work.
  2. Using the power rule on 1x\dfrac{1}{x}. n=−1n = -1 is the forbidden exponent — the answer is ln⁡∣x∣+C\ln\left|x\right| + C, not a power.
  3. Forgetting to distribute over a sum. ∫(2x+3) dx\int(2x+3)\,dx integrates both terms: x2+3x+Cx^2 + 3x + C. Stopping at x2x^2 loses half the answer.
Problem 1

Evaluate ∫ 3x² dx. Check your answer with the integral calculator above.

⏱ 00:00
Page 1
Problem 2

Evaluate ∫ cos x dx. Check your answer with the integral calculator above.

⏱ 00:00
Page 1

Frequently asked questions

1

How do I integrate a function?

Match it to a rule: powers take the integral power rule — raise the exponent, divide by the new one — sums integrate term by term, and standard shapes like $\sin x$ come from a short table. The integral calculator above does the matching for you and returns the whole family, + C included.

2

What is the basic integration rule?

The power rule: $\int x^n\,dx = \dfrac{x^{n+1}}{n+1} + C$, valid for every exponent except $n = -1$. Raise the exponent, divide by the new exponent, add C. It is the rule the integral calculator applies first on almost every polynomial you type.

3

What does the + C mean?

It stands for every constant the derivative erased. $x^2$, $x^2 + 3$, and $x^2 - 3$ all have derivative $2x$, so reversing the derivative can only give the family — one curve for each C. The integral calculator writes + C on every indefinite answer for exactly this reason.

4

What is the integral of 1/x?

$\ln\left|x\right| + C$. The power rule breaks at $n = -1$ because it would divide by zero, so $\dfrac{1}{x}$ is its own special case. Type `1/x` into the integral calculator above and it returns the logarithm, not a power.

5

What is the difference between a definite and indefinite integral?

An indefinite integral is a family of functions, written with + C — what this integral calculator computes. A definite integral has bounds and evaluates to one number, the signed area between them. Give the AI box below a definite integral and it computes the number with every step shown.

6

How do I check my integral?

Differentiate your answer. You must get back exactly the function you started with: differentiating $\dfrac{x^3}{3} + C$ gives $x^2$, so the integral holds. It is one differentiation — ask the AI on this integral calculator page to run the check line by line.

Related practice