Antiderivative & Definite Integral Calculator
Find antiderivative F(x) + C or compute definite integral. Results display exact fractions, logarithms, or decimals.
The calculator above finds an antiderivative F(x) and evaluates the definite integral from a to b with the Newton–Leibniz formula.
Formulas used
- ∫ 1/x dx = ln|x| + C, ∫ eˣ dx = eˣ + C, ∫ cos x dx = sin x + C.
- Do not forget the constant C for indefinite integrals.
Worked example
Evaluate the integral of 2x + 1 from 0 to 2:
Enter the same values in the calculator above to see every step of the solution.
How to use the calculator
- Type the integrand f(x) and, for a definite integral, the limits a and b.
- Press the calculate button. The result appears instantly.
- Read the step-by-step solution, rendered with KaTeX, to check your own work.
🎯 Practice quiz: antiderivatives and integrals
Ten multiple-choice questions with four options each: the definition of an antiderivative, the power rule with radicals, e^(kx), the Newton–Leibniz formula, linearity, substitution, integration by parts, the continuity condition, area and volume of revolution. Pick an answer: the correct option turns green, a wrong one turns red, and the worked solution appears right below with a ⚠️ Traps box explaining why the wrong options are tempting. You can enter the function from any question into the calculator above to check every step.
1️⃣ Definition of an antiderivative Question 1. Which function is an antiderivative of f(x) = 3x² + 1:
Correct answer: C. x³ + x + 2
F is an antiderivative of f when F′(x) = f(x). Check option C by differentiating:
The constant 2 has derivative 0, so every function x³ + x + C is an antiderivative of f. Enter 3x^2 + 1 in the Antiderivative tab above to see every step, or check it with the derivative calculator.
⚠️ Traps
- A (6x): this is the derivative f′(x), the opposite direction.
- B (x³ + 1): keeps the 1 as it is instead of integrating it to x. The derivative of x³ + 1 is only 3x².
- D (x³/3 + x): applies the power rule to x² but drops the coefficient 3. Its derivative is x² + 1.
2️⃣ Powers and radicals Question 2. The indefinite integral ∫ √x dx equals:
Correct answer: A. (2/3)x√x + C
Write the root as a power, √x = x^(1/2), and use the power rule with n = 1/2:
Check: ((2/3)x^(3/2))′ = √x. Enter sqrt(x) in the calculator above to see which table rule is used.
⚠️ Traps
- B (1/(2√x) + C): this is the derivative of √x, not its antiderivative.
- C ((3/2)x√x + C): multiplies by n + 1 = 3/2 instead of dividing by 3/2.
- D (x√x + C): raises the exponent to 3/2 but forgets to divide by the new exponent.
3️⃣ Exponential e^(kx) Question 3. The indefinite integral ∫ e^(3x) dx equals:
Correct answer: D. (1/3)e^(3x) + C
From the table of antiderivatives, for k ≠ 0:
Check: ((1/3)e^(3x))′ = e^(3x). Enter e^(3x) in the Antiderivative tab to compare.
⚠️ Traps
- A (3e^(3x) + C): this is the derivative of e^(3x): it multiplies by k instead of dividing by k.
- B (e^(3x) + C): copies ∫ eˣ dx = eˣ + C and forgets the factor 1/3. The derivative of e^(3x) is 3e^(3x), not e^(3x).
- C: applies the power rule for xⁿ to an exponential. The formula xⁿ⁺¹/(n + 1) works when the variable is in the base; here it is in the exponent.
4️⃣ Newton–Leibniz formula Question 4. The value of the integral from 1 to 3 of (2x + 1) dx is:
Correct answer: B. 10
An antiderivative of 2x + 1 is F(x) = x² + x. By the Newton–Leibniz formula:
Choose the Definite Integral tab and enter 2x+1 with a = 1, b = 3 to see the three steps: find F, write F(b) − F(a) and substitute the limits.
⚠️ Traps
- A (12): computes F(3) only and forgets to subtract F(1) = 2.
- C (4): substitutes the limits into f(x) instead of F(x): f(3) − f(1) = 7 − 3 = 4.
- D (14): adds F(3) + F(1) instead of subtracting.
5️⃣ Properties of the integral Question 5. Given ∫₀² f(x) dx = 3 and ∫₀² g(x) dx = −1, the value of ∫₀² [2f(x) − 3g(x)] dx is:
Correct answer: C. 9
The integral is linear: split sums and differences, and move constant factors outside the integral sign.
⚠️ Traps
- A (3): writes 2·3 − 3 and loses the minus sign of −1, i.e. computes 6 + 3·(−1).
- B (7): forgets the factor 3 on g: 6 − (−1) = 7.
- D (4): forgets both factors and only computes 3 − (−1) = 4.
6️⃣ Substitution Question 6. The indefinite integral ∫ 2x(x² + 1)³ dx equals:
Correct answer: B. (x² + 1)⁴/4 + C
The factor 2x is exactly the derivative of x² + 1, so let u = x² + 1; then du = 2x dx:
Check: the derivative of (x² + 1)⁴/4 is (x² + 1)³ · 2x. Enter 2x*(x^2+1)^3 in the Antiderivative tab to compare.
⚠️ Traps
- A: substitutes correctly but forgets to divide by 4 when integrating u³.
- C: integrates each factor separately (2x becomes x²) and multiplies the results. The antiderivative of a product is not the product of the antiderivatives.
- D: this is the derivative of (x² + 1)³, the opposite direction.
7️⃣ Integration by parts Question 7. The indefinite integral ∫ x cos x dx equals:
Correct answer: D. x sin x + cos x + C
The integrand is a polynomial times a trigonometric function, so use integration by parts. Choose u = x, dv = cos x dx, so du = dx, v = sin x:
Check: (x sin x + cos x)′ = x cos x. Enter x*cos(x) in the calculator above to see the result.
⚠️ Traps
- A: misremembers ∫ sin x dx = cos x. It is −cos x + C, so x sin x − (−cos x) = x sin x + cos x.
- B: integrates x and multiplies by sin x. There is no rule saying “the antiderivative of a product is the product of antiderivatives”.
- C: takes v = −sin x, confusing the antiderivative of cos x with its derivative.
8️⃣ The continuity condition Question 8. A student computes the integral from −1 to 1 of dx/x² = [−1/x] = −1 − 1 = −2. Which statement is correct:
Correct answer: C. The solution is wrong: 1/x² is not continuous at x = 0, which lies in [−1, 1], so the Newton–Leibniz formula cannot be used on this interval.
The formula ∫ₐᵇ f(x) dx = F(b) − F(a) holds only when f is continuous on [a, b]. The function 1/x² is undefined at x = 0, which lies inside [−1, 1], so the limits cannot be substituted as above.
A warning sign: f(x) = 1/x² is always positive, so its integral (if it existed) could not be negative. In fact the area under the graph near x = 0 is infinite, so this integral does not exist in the high-school sense. This is the “Newton–Leibniz on a discontinuous function” mistake.
⚠️ Traps
- A: substitutes the limits mechanically without checking continuity. A negative result for an always-positive function is impossible.
- B: flips the sign to make it look “reasonable”, but the real error remains: the function is discontinuous on the interval.
- D: confuses it with ∫ 1/x dx = ln|x| + C. The antiderivative of x⁻² is x⁻¹/(−1) = −1/x + C, which the student got right.
9️⃣ Area of a plane region Question 9. The area of the region bounded by the graph of y = x² − 1, the x-axis and the lines x = 0, x = 2 is:
Correct answer: B. 2
The function x² − 1 changes sign at x = 1 (negative on [0, 1], positive on [1, 2]), so split the interval and take the absolute value:
Check each part with the Definite Integral tab above (enter 1-x^2 on [0, 1] and x^2-1 on [1, 2]), or use the area and volume by integration calculator to see the figure and the sign analysis.
⚠️ Traps
- A (2/3): computes ∫₀² (x² − 1) dx = 8/3 − 2 = 2/3 directly without the absolute value, so the part below the x-axis is subtracted.
- C (4/3): only counts the part on [1, 2] and misses the part below the x-axis.
- D (8/3): drops the −1 and computes ∫₀² x² dx.
🔟 Volume of revolution Question 10. The volume of the solid formed by rotating the region bounded by y = √x, the x-axis and the lines x = 0, x = 4 about the x-axis is:
Correct answer: A. 8π
Use V = π∫ₐᵇ [f(x)]² dx with (√x)² = x:
Enter x with a = 0, b = 4 in the Definite Integral tab to get 8, then multiply by π. The volume section of the area and volume by integration calculator also solves this y = √x example.
⚠️ Traps
- B (16π/3): forgets to square f(x) and computes π∫₀⁴ √x dx.
- C (8): evaluates the integral correctly but forgets the factor π.
- D (16π): takes x² as the antiderivative of x (forgets to divide by 2).