Derivative Calculator
First to fifth derivatives with rule-by-rule steps, f′(a), the tangent line and a graph.
This integral calculator finds antiderivatives step by step, naming each technique: power rule, u-substitution, integration by parts or partial fractions.
Integral of f(x) from 0 to 2
Exact value
The integral of x² + 1 from 0 to 2 is exactly 14/3 ≈ 4.666666667. Since f(x) does not change sign here, this is the area between the curve and the x-axis.
Find an antiderivative
f(x) is a polynomial, so integrate term by term with the power rule .
Evaluate F at the upper limit
Evaluate F at the lower limit
Subtract (fundamental theorem of calculus)
The constant C cancels, so any antiderivative gives the same answer.
Check numerically
Adaptive Gauss–Kronrod quadrature gives 4.666666667 with an estimated error of less than 10⁻¹⁵, using 1 subinterval.
Leave the limits blank for F(x) + C, or enter a and b for a definite or improper integral with a shaded area graph.
Fundamental theorem of calculus
Plain-text formula: ∫_a^b f(x) dx = F(b) − F(a), F′(x) = f(x)
If F is any antiderivative of f and f is continuous on [a, b], the definite integral is the change in F between the limits. The constant of integration cancels.
Power rule for integrals
Plain-text formula: ∫x^n dx = x^(n + 1)/(n + 1) + C, n ≠ −1
Raise the power by one and divide by the new power. The case n = −1 gives instead.
u-substitution
Plain-text formula: ∫f(g(x))g′(x) dx = ∫f(u) du, u = g(x)
The chain rule in reverse. It applies when the integrand contains an inner function and, up to a constant factor, its derivative.
Integration by parts
Plain-text formula: ∫u dv = uv − ∫v du
The product rule in reverse. Choose u to be the factor that gets simpler when differentiated, such as a polynomial or ln x.
Improper integrals
Plain-text formula: ∫_a^∞ f(x) dx = lim_{t → ∞} ∫_a^t f(x) dx
The integral converges when this limit is finite. Numerically, the infinite interval is mapped onto (0, 1) with .
Adaptive Gauss–Kronrod quadrature
Plain-text formula: ∫_a^b f(x) dx ≈ ((b − a)/2)∑_{i = 1}^15 w_i f((a + b)/2 + ((b − a)/2)x_i)
The 15-point Kronrod rule samples f at fixed nodes with weights . The difference from the embedded 7-point Gauss rule estimates the error, and the subinterval with the largest error is halved until the estimate is small enough.
An indefinite integral is a family of functions: means every function has derivative 2x. Two correct answers can look different, such as and , because they differ by a constant. The check line differentiates the answer so you can see it returns f(x).
A definite integral is a number, the signed area between the curve and the x-axis: regions above the axis count as positive and regions below count as negative. That is why even though the curve encloses area. When f changes sign, the result also lists the total area and the parts above and below the axis.
The error estimate comes from the numerical check. Values around mean every displayed digit can be trusted. If the calculator reports that the integrand is undefined or infinite, the integral may diverge (as does) or there may be a vertical asymptote inside the interval, as with at .
1. Find an antiderivative F(x), a function whose derivative is f(x). 2. Check that f is continuous on [a, b]; if it has a vertical asymptote there, the integral is improper and F(b) − F(a) does not apply directly. 3. Evaluate F at the upper limit and at the lower limit. 4. Subtract: . You can leave out + C, because it cancels.
For example, : the antiderivative is , so and , and the integral is . The calculator shows these same four steps. When no elementary antiderivative exists, as for , it still gives the definite integral by numerical integration: .
Look for an inner function whose derivative also appears as a factor. In , the inner function is and its derivative 2x is the other factor. Let , so , and the integral becomes .
A constant factor that does not match is fine: in , , so and the answer is . The same idea gives , for example .
Use for a product where one factor becomes simpler when differentiated. For , take and , so and . Then .
A common way to choose u is LIATE: Logarithms, Inverse trig, Algebraic (powers of x), Trig, Exponentials, taking u from earlier in the list. That is why uses , , giving . For the calculator repeats parts twice with the tabular method, and for the original integral reappears, so it solves for it.
A rational function P(x)/Q(x) is split into simpler fractions that each integrate to a logarithm or an arctangent. If the numerator’s degree is not less than the denominator’s, divide the polynomials first.
For , factor and write . Integrating each term gives . A quadratic that does not factor, such as , gives an arctangent: .
Every result the calculator gives is built from these basic integrals and the techniques above. Add + C to each indefinite integral.
| Function | Integral |
|---|---|
| , | |
To use this page as an area under the curve calculator, enter f(x) and the two x-values as limits. When f(x) ≥ 0 on the interval, the definite integral is the area and the graph shades it. When the curve dips below the x-axis, the integral subtracts that part; the result then also lists the total area . For from 0 to the integral is 0 but the total area is 4.
For the area between two curves, integrate the top curve minus the bottom one: enter f(x) - g(x). Between and from 0 to 1, enter x - x^2 to get . To find where two curves cross, solve f(x) = g(x) with the equation solver or look at the graphing calculator.
Most wrong answers come from one of these slips. Differentiating your answer, as the calculator does in its check step, catches all of the indefinite ones.
| Mistake | Wrong | Right |
|---|---|---|
| Leaving out the constant of integration | ||
| Not dividing by the inner coefficient | ||
| Using the power rule on 1/x | ||
| Integrating a product factor by factor | (by parts) | |
| Using F(b) − F(a) across an asymptote | Diverges (infinite area at x = 0) | |
| Forgetting to substitute back after u-substitution |
Find the exact value of , the area under the curve between x = 0 and x = 2.
Answer: The integral equals exactly 14/3 ≈ 4.666666667. Because x² + 1 is positive, this is the area under the curve between x = 0 and x = 2.
An integral adds up infinitely many infinitely thin slices. The definite integral is the signed area between the graph of f and the x-axis from a to b. The indefinite integral is the family of antiderivatives F(x) + C, the functions whose derivative is f. The fundamental theorem of calculus links the two.
Yes. It is free with no sign-up and no daily limit, and it shows the full working: the technique used on each step, the antiderivative, the evaluation at both limits and a numerical check. It runs in your browser.
Leave both limit boxes blank. The calculator returns the indefinite integral F(x) + C, names each rule it used, and differentiates the answer to show it gives back f(x).
Some functions have no antiderivative that can be written with elementary functions, for example , and . Others, such as odd powers like , need identities the calculator does not apply yet. In both cases, enter limits a and b: the definite integral is still computed accurately by numerical integration.
Antiderivatives are only unique up to a constant, and the same function can be written in several forms. and differ by the constant , so both are correct. Differentiate both answers, or compare a definite integral computed from each.
More of the signed area lies below the x-axis than above it. For example, but . Swapping the limits also flips the sign.
Type inf for +∞ or -inf for −∞ in either limit (the ∞ symbol also works). The calculator then evaluates an improper integral, such as , and says so if it diverges, as does.
Antiderivatives are exact and verified by differentiation. Definite integrals are confirmed by quadrature that aims for a relative error of about , and the estimated error is shown with every result. Functions with jumps, kinks or rapid oscillation need more subintervals and may be less accurate.
No. It integrates functions of one variable, x. For a double integral over a rectangle, integrate the inner variable by hand and use the calculator for the outer integral, or for each slice numerically.
Calculus formulas such as hold only in radians. To integrate a function of an angle in degrees, write sin(pi x/180).
First to fifth derivatives with rule-by-rule steps, f′(a), the tangent line and a graph.
Two-sided, one-sided and infinite limits with steps, a table of values and the indeterminate form named.
Sigma notation with steps: exact fractions, partial sums, closed forms and infinite-series tests.
Tables of values for one or two functions with exact fractions, roots, turning points, a graph and CSV.
Plot functions, equations, inequalities, parametric and polar curves; find roots and intersections.
Free worked solutions for equations, systems, inequalities, factoring, derivatives, integrals, limits and matrices.
Learn more: For definite integrals inside the full calculator, read the calculus functions manual.
Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?