Antiderivative — with a detailed breakdown of every step and a graph
Function f(x)
Antiderivative
The antiderivative F(x) is a function whose derivative gives back the original: F′(x) = f(x). Any constant C can be added to an antiderivative, which is why it is always written.
How it was calculated — step by step
Every step names the technique used and shows the substitution, so the solution can be copied into your notebook.
Check an antiderivative
Enter F(x) from a “show that F is an antiderivative of f” problem, or your own answer: we find F′(x) and compare it with f(x) from the field above. An answer that differs from ours by a constant is also correct.
Graph of the function and its antiderivative
The blue curve is the function f(x), the orange one is the antiderivative F(x). Check the link: where f(x) is positive the antiderivative increases; where f(x) is negative it decreases; where f(x) = 0 the antiderivative has a peak or a valley. This is exactly the inverse relationship compared with the derivative.
Table of antiderivatives
The core formulas. C is an arbitrary constant. Any row is easy to verify: differentiate the right column and you get the left one.
| f(x) | ∫f(x) dx |
|---|---|
| 0 | C |
| 1 | x + C |
| xⁿ, n ≠ −1 | xⁿ⁺¹/(n + 1) + C |
| 1/x | ln|x| + C |
| eˣ | eˣ + C |
| aˣ | aˣ/ln a + C |
| sin x | −cos x + C |
| cos x | sin x + C |
| 1/cos²x | tg x + C |
| 1/sin²x | −ctg x + C |
| 1/(1 + x²) | arctg x + C |
| 1/√(1 − x²) | arcsin x + C |
Definite integral — the area under the graph → · The inverse operation — the derivative →
📚 Theory: integration techniques
Integration is the operation inverse to differentiation. To find an antiderivative F for f means to pick a function whose derivative equals f. The check is always the same: differentiate the answer.
Linearity: the integral of a sum equals the sum of integrals, a constant factor is taken outside. Linear substitution: ∫f(kx + b) dx = F(kx + b)/k — when a linear expression stands under the integral instead of x.
Integration by parts: ∫u dv = u·v − ∫v du. It is applied to products like x·eˣ or x·sin x. Not every integral can be expressed through elementary functions — for example, ∫e^(−x²) dx has no closed formula, and that is normal.
What to take as u. Take as u the factor that becomes simpler when differentiated, and as dv the one that is easy to integrate. Logarithms and inverse trigonometric functions (arctan x, arcsin x) go into u: their derivatives are fractions. A polynomial goes into u next to eˣ, sin x and cos x, but into dv next to a logarithm or an inverse trigonometric function (the LIATE rule). For example, ∫arctan x dx = x·arctan x − ∫x dx/(x² + 1) = x·arctan x − ln(x² + 1)/2 + C.
Rational fractions. If the degree of the numerator is not less than the degree of the denominator, first divide (long division) and separate the polynomial part. Then factor the denominator and split the fraction into partial fractions: A/(x − a), B/(x − a)², (Cx + D)/(x² + px + q). The coefficients are found by substituting the roots and by equating the coefficients of like powers of x; each partial fraction gives a logarithm, a power or an arctangent.
Roots and eˣ. If there is a quadratic trinomial under the root, complete the square and use the table of integrals: ∫dx/√(x² ± a²) = ln|x + √(x² ± a²)| + C, ∫dx/√(a² − x²) = arcsin(x/a) + C, ∫√(a² − x²) dx = (x/2)·√(a² − x²) + (a²/2)·arcsin(x/a) + C. A root of a linear expression is removed with the substitution t = √(kx + b), and a fraction in eˣ with the substitution t = eˣ: after the substitution a rational function remains. A polynomial of degree n over the square root of a quadratic is integrated by the method of undetermined coefficients: ∫Pₙ(x)/√(ax² + bx + c) dx = Qₙ₋₁(x)·√(ax² + bx + c) + λ∫dx/√(ax² + bx + c); the coefficients of Qₙ₋₁ and λ are found by differentiating both sides. The integral ∫dx/((x − α)ⁿ√(ax² + bx + c)) is reduced to the same form by the substitution x − α = 1/t, for example ∫dx/(x√(1 − x²)) = −ln|(1 + √(1 − x²))/x| + C.
Trigonometric integrals. If sine or cosine is raised to an odd power, split off one factor, express the rest through sin²x + cos²x = 1 and substitute t = cos x (or t = sin x). If both powers are even, reduce the power: sin²x = (1 − cos 2x)/2, cos²x = (1 + cos 2x)/2. A product sin mx·cos nx is turned into a sum, and tanⁿx is split with the identity 1 + tan²x = 1/cos²x. From the table, ∫dx/sin x = ln|tan(x/2)| + C and ∫dx/cos x = ln|tan(x/2 + π/4)| + C.
Rational functions of sin x and cos x. If the function changes sign when sin x is replaced with −sin x, substitute t = cos x; if it changes sign when cos x is replaced with −cos x, substitute t = sin x; if it does not change when both are replaced, substitute t = tan x. Otherwise the universal substitution t = tan(x/2) works: sin x = 2t/(1 + t²), cos x = (1 − t²)/(1 + t²), dx = 2dt/(1 + t²). After it the integrand is a rational function.
Antiderivative through a point. All antiderivatives of f differ by a constant: F(x) = G(x) + C. If the graph of F passes through the point (x₀, y₀), substitute its coordinates: G(x₀) + C = y₀, so C = y₀ − G(x₀). Enter the point in the fields “F(x₀) = y₀” under the answer, and C is found together with the solution.
Frequently asked questions
Is it free to use?
Yes, this calculator is free and needs no sign-up. Everything is calculated right in your browser, not on a server.