Algebra & Calculus

Integral Calculator

Type a function of x for an antiderivative, or add lower and upper limits for a definite integral. Each step names the rule used, and definite results are checked against a numerical estimate.

Use x, + − × ÷ ^, sin, cos, tan, e^x, ln, sqrt. Example: (2x+1)^3
Try an example:
Answer x³ + x² − 5x + C
  • Check: differentiating the answer gives back the original function.
Step-by-step working 6 steps
  1. 1
    The indefinite integral
    ∫ (3x² + 2x − 5) dx
  2. 2
    Sum rule
    ∫ (3x² + 2x − 5) dx = ∫ 3x² dx + ∫ 2x dx + ∫ −5 dx

    Integrate term by term.

  3. 3
    Power rule
    ∫ 3x² dx = x³

    ∫ xⁿ dx = xⁿ⁺¹/(n+1), for n ≠ −1.

  4. 4
    Power rule
    ∫ 2x dx = x²

    ∫ xⁿ dx = xⁿ⁺¹/(n+1).

  5. 5
    Constant rule
    ∫ −5 dx = −5x

    ∫ c dx = c·x.

  6. 6
    Antiderivative
    F(x) = x³ + x² − 5x + C

    C is the constant of integration: every antiderivative differs by a constant.

How to use the integral calculator

  1. Type the function of x.
  2. Leave the limits blank for an antiderivative, or enter both for a definite integral.
  3. Follow each rule to the antiderivative F(x).
  4. For limits, read F(b) − F(a) and the numerical check.

Integration rules used

∫ xⁿ dx = xⁿ⁺¹/(n+1) + C   (n ≠ −1)
∫ 1/x dx = ln|x| + C
∫ eᵏˣ dx = eᵏˣ/k + C
∫ sin(kx) dx = −cos(kx)/k + C
∫ cos(kx) dx = sin(kx)/k + C
∫ₐᵇ f(x) dx = F(b) − F(a)

The solver handles sums of these forms with linear arguments. For anything else it says so, or gives a labelled numerical value if you enter limits.

Worked examples

Each example below is generated by the same calculator you used above, so the working always matches the answer.

∫ 3x² + 2x − 5 dx
Answer x³ + x² − 5x + C
  • Check: differentiating the answer gives back the original function.
Step-by-step working 6 steps
  1. 1
    The indefinite integral
    ∫ (3x² + 2x − 5) dx
  2. 2
    Sum rule
    ∫ (3x² + 2x − 5) dx = ∫ 3x² dx + ∫ 2x dx + ∫ −5 dx

    Integrate term by term.

  3. 3
    Power rule
    ∫ 3x² dx = x³

    ∫ xⁿ dx = xⁿ⁺¹/(n+1), for n ≠ −1.

  4. 4
    Power rule
    ∫ 2x dx = x²

    ∫ xⁿ dx = xⁿ⁺¹/(n+1).

  5. 5
    Constant rule
    ∫ −5 dx = −5x

    ∫ c dx = c·x.

  6. 6
    Antiderivative
    F(x) = x³ + x² − 5x + C

    C is the constant of integration: every antiderivative differs by a constant.

∫₀² (3x² + 2x − 5) dx
Answer 2
  • Exact antiderivative: x³ + x² − 5x
Step-by-step working 8 steps
  1. 1
    The definite integral
    ∫ from 0 to 2 of (3x² + 2x − 5) dx
  2. 2
    Sum rule
    ∫ (3x² + 2x − 5) dx = ∫ 3x² dx + ∫ 2x dx + ∫ −5 dx

    Integrate term by term.

  3. 3
    Power rule
    ∫ 3x² dx = x³

    ∫ xⁿ dx = xⁿ⁺¹/(n+1), for n ≠ −1.

  4. 4
    Power rule
    ∫ 2x dx = x²

    ∫ xⁿ dx = xⁿ⁺¹/(n+1).

  5. 5
    Constant rule
    ∫ −5 dx = −5x

    ∫ c dx = c·x.

  6. 6
    Antiderivative
    F(x) = x³ + x² − 5x
  7. 7
    Fundamental theorem of calculus
    ∫ = F(2) − F(0)
    F(2) = 2
    F(0) = 0
    = 2
  8. 8
    Numerical check (Simpson’s rule)
    ≈ 2

    An independent estimate that should agree with the exact result.

∫ sin(2x+1) dx
Answer −cos(2x + 1)/2 + C
  • Check: differentiating the answer gives back the original function.
Step-by-step working 3 steps
  1. 1
    The indefinite integral
    ∫ (sin(2x + 1)) dx
  2. 2
    Sine rule
    ∫ sin(2x + 1) dx = −cos(2x + 1)/2

    ∫ sin(kx+b) dx = −cos(kx+b)/k.

  3. 3
    Antiderivative
    F(x) = −cos(2x + 1)/2 + C

    C is the constant of integration: every antiderivative differs by a constant.

∫₁⁴ √x dx
Answer 4.666667
  • Exact antiderivative: 2x^(3/2)/3
Step-by-step working 5 steps
  1. 1
    The definite integral
    ∫ from 1 to 4 of (√(x)) dx
  2. 2
    Power rule
    ∫ √(x) dx = 2x^(3/2)/3

    ∫ xⁿ dx = xⁿ⁺¹/(n+1), for n ≠ −1.

  3. 3
    Antiderivative
    F(x) = 2x^(3/2)/3
  4. 4
    Fundamental theorem of calculus
    ∫ = F(4) − F(1)
    F(4) = 5.33333333
    F(1) = 0.66666667
    = 4.66666667
  5. 5
    Numerical check (Simpson’s rule)
    ≈ 4.66666667

    An independent estimate that should agree with the exact result.

∫ 1/(3x+2) dx
Answer ln|3x + 2|/3 + C
  • Check: differentiating the answer gives back the original function.
Step-by-step working 3 steps
  1. 1
    The indefinite integral
    ∫ (1/(3x + 2)) dx
  2. 2
    Reciprocal of a linear expression
    ∫ 1/(3x + 2) dx = ln|3x + 2|/3

    ∫ 1/(kx+b) dx = ln|kx+b|/k.

  3. 3
    Antiderivative
    F(x) = ln|3x + 2|/3 + C

    C is the constant of integration: every antiderivative differs by a constant.

∫₀¹ eˣ dx
Answer 1.718282
  • Exact antiderivative: e^x
Step-by-step working 5 steps
  1. 1
    The definite integral
    ∫ from 0 to 1 of (e^x) dx
  2. 2
    Exponential rule
    ∫ e^x dx = e^x

    ∫ eᵏˣ⁺ᵇ dx = eᵏˣ⁺ᵇ/k.

  3. 3
    Antiderivative
    F(x) = e^x
  4. 4
    Fundamental theorem of calculus
    ∫ = F(1) − F(0)
    F(1) = 2.71828183
    F(0) = 1
    = 1.71828183
  5. 5
    Numerical check (Simpson’s rule)
    ≈ 1.71828183

    An independent estimate that should agree with the exact result.

Where you will use this

  • Finding area under a curve in AP Calculus
  • Checking antiderivative and definite-integral homework
  • Accumulating a rate, such as distance from speed

Common mistakes to avoid

Forgetting + C

An indefinite integral is a family of functions that differ by a constant, so always write + C.

Applying the power rule to 1/x

n = −1 is the exception: ∫ 1/x dx = ln|x|, not x⁰/0.

Swapping the limits

∫ₐᵇ = F(b) − F(a). Swapping a and b flips the sign.

Frequently asked questions

What is the integral of x²?

x³/3 + C, by the power rule.

What is the integral of 1/x?

ln|x| + C.

What is the integral of sin(x)?

−cos(x) + C.

Can it do integration by parts or substitution?

Not in general. It handles linear substitutions inside the rules above and ln(x). For other integrals it says so, and with limits it can give a labelled numerical estimate.

Related calculators

Browse everything in Algebra & Calculus or the full calculator list.