Processed online by Toolvito
Integral Calculator
Type a function to integrate it, with the method shown step by step (power rule, substitution, integration by parts, partial fractions, trigonometric methods). Add limits for a definite or improper integral; double, triple and line integrals are here too. Every answer is checked.
How to integrate
- Type the function, such as x e^x, 1/(x^2 - 1) or sin(x)^2 cos(x). A trailing dx is allowed. The box below shows how it is read.
- For a definite integral type the lower and upper limits, such as 0 and pi, or -oo and oo for an improper integral. Leave them empty for an antiderivative.
- Select Integrate. Read the steps, the answer and the checks; download the worked solution and the graph.
The methods in the steps
- Power rule ∫xⁿ dx = xⁿ⁺¹/(n + 1), sum rule, constant multiple, and the standard integrals of eˣ, aˣ, 1/x, sin, cos, sec², 1/(1 + x²) and 1/√(1 − x²).
- Substitution (u-substitution): u = g(x), du = g′(x) dx. Integration by parts: ∫u dv = u·v − ∫v du, also twice when the integral comes back.
- Partial fractions for fractions of polynomials, trigonometric identities and substitutions (x = a·sin θ and similar), completing the square.
- The steps come from SymPy’s manualintegrate, which works the way a person does, so they always lead to the answer shown. When it finds no such way, the answer comes from SymPy’s general algorithm and the page says that no steps are available.
- Integrals with no elementary antiderivative, such as e^(x²) or sin(x)/x, are given with special functions (erfi, Si, …) and their values.
Definite, improper and numerical integrals
- A definite integral is F(b) − F(a) (fundamental theorem of calculus). When the integrand is not defined inside the interval, or a limit is ∞, it is an improper integral: it is worked out as a limit, and a divergent integral is reported as divergent, not given a number.
- Choose Numerical to get a value to many digits (mpmath tanh-sinh quadrature), checked by SciPy’s adaptive Gauss–Kronrod method.
- The graph shades the area between the curve and the x-axis (area below the axis counts as negative).
Double, triple and line integrals
- Type the integrand and the limits one per line, inner integral first, such as y from 0 to x then x from 0 to 1. Inner limits may use the outer letters. Choose polar (r, theta), cylindrical (r, theta, z) or spherical (rho, phi, theta) coordinates to add the Jacobian r or ρ² sin φ.
- A line integral follows a path such as x = cos(t), y = sin(t) from t = 0 to 2pi: the work ∫F·dr of a field such as -y, x, or ∫f ds of a function. Surface integrals and complex contour integrals are not done here.
How the answers are checked
An antiderivative is differentiated and compared with the integrand (exactly, or at test points with 30-digit arithmetic). A definite integral is compared with a numerical quadrature that uses no antiderivative; multiple integrals with SciPy’s nquad; line integrals also with a sum along a polygon of 20,000 pieces of the path. A job stops after about a minute rather than giving a guess.