Integral Calculator

Integral Calculator. Enter a function f(x) and choose between indefinite or definite integration. For definite integrals, supply a lower bound and upper bound to get a numeric result. The Integral Calculator evaluates common functions — polynomials, exponentials, trig, logarithms — and returns the antiderivative or definite integral value instantly. Also try the find Solution Type with Differential Equation Solver.

Integral Calculator inputs
Integration Type *

Enter a function of x. Use * for multiplication, ^ for powers, sin/cos/tan/exp/log.

Lower limit of integration (required for definite integrals).

Upper limit of integration (required for definite integrals).

Pick a common function or enter your own above.

Number of sub-intervals for numerical integration (Simpson's rule).

Results

Integral Result

--

Antiderivative (symbolic)

--

F(a) — Antiderivative at Lower Bound

--

F(b) — Antiderivative at Upper Bound

--

Sub-intervals Used

--

Results Table

Type a function, set your bounds and this online integral calculator returns the antiderivative or a numeric value in seconds. It is built for calculus students checking homework, and for anyone who wants the step-by-step working behind an answer rather than just the answer.

Integral Calculator with Steps: How to Enter Your Function

Type the integrand into the input box, or tap the math keyboard for fractions and exponents. For a definite problem, fill in the upper limit and lower limit, also called the upper bound and lower bound, then click the Calculate button. Leave both empty to get an antiderivative. Bounds can be plain numbers, pi or infinity, and if you are unsure about limits, start with a simple range such as 0 to 1.

This integrator draws interactive graphs of your curve and gives step-by-step solutions, so the result is never a black box. A double integral works inside-out: integrate with respect to y first, then x.

Parentheses, Syntax Errors and Supported Functions

Close every bracket and write every multiplication sign. cos(2*x) works, while cos2x triggers a syntax error. Extra parentheses are safer, because 1/x^2+1 and 1/(x^2+1) are different expressions. Supported input covers any polynomial with an exponent, trigonometric terms (sine, cosine, tangent), hyperbolic versions such as sinh and cosh, an exponential like e^x, the natural logarithm, a square root and an absolute value. Inverse hyperbolic names such as arsinh and artanh are recognised as well. Write the formula the way you would on paper.

  • Write 2*sin(x), not 2sinx, so the parser never has to guess where a product sits.
  • Use pi and e for constants, and sqrt(x) for roots.
  • Check that the top of the range is larger than the bottom, or the sign of the answer flips.

Definite Integral Calculator Results and Indefinite Integrals

Knowing definite and indefinite integrals apart tells you what to expect. An indefinite result is a family of antiderivatives, written F(x) + C. A definite integral is a single number: the signed area between the curve and the x-axis, often described as the area under the curve. It measures the accumulated change of the rate you entered, and the solution is negative wherever the function dips below the axis.

FeatureIndefinite formDefinite form
Range enteredNoneTwo numbers
What you get backA function plus COne number
Typical useFinding a formula for total changeMeasuring total change over a range

Sign matters: \(\int_{-2}^{2} x^3\,dx = 0\) even though the shaded regions are not empty, because the left half is negative and cancels the right half. Whenever you need the plain geometric amount, integrate the absolute value or split the range at each crossing point.

Grid showing how the definite integral of 4x³ − 5x + 2 changes with the lower and upper bound, with the worked example of 64 outlined
Changing the upper bound from 3 to 4 moves the answer from 64 to 223.5.

Fundamental Theorem of Calculus and Improper Integrals

The fundamental theorem of calculus links the two kinds: find an indefinite integral F, then evaluate $$\int_a^b f(x)\,dx = F(b) - F(a)$$ The constant cancels in the subtraction, so no + C appears. Differentiating F gets you back to f, because integration reverses the derivative. An improper integral swaps an infinite bound for a variable that is sent toward infinity.

Integration Techniques Used by the Integrator

A good tool chooses from a short toolkit: a table of integrals for standard forms, tricks for rational functions, and the specialised modes for Taylor polynomials and Fourier series. Each run needs one integration variable, usually x, and the parser accepts synonyms such as arcsin and asin.

MethodUse it whenTypical input
Power ruleTerms are powers of xx^5
SubstitutionAn inner function's derivative is present3x^2 e^(x^3)
By partsTwo unlike factors are multipliedx ln(x)
Partial fractionsA rational denominator factors1/(x^2 - 9)

Choosing the right method early saves time: scan the integrand for a product, a quotient, a nested function or a plain sum of powers, and match it to the row above. If two methods seem to fit, pick the one that leaves the simplest expression, then verify by differentiating. Most textbook problems need only one or two moves.

Power Rule and the Constant of Integration

The power rule raises the exponent by one and divides by the new exponent: $$\int x^{n}\,dx = \frac{x^{n+1}}{n+1} + C,\quad n \neq -1$$ The constant of integration is needed because every constant differentiates to zero, and the n = -1 case gives ln|x|.

U-Substitution and Integration by Parts

Use u-substitution when the integrand contains a function and its derivative. For products, integration by parts applies $$\int u\,dv = uv - \int v\,du$$ Each choice appears as a step-by-step explanation, with u and dv named.

Partial Fractions and Trig Substitution

Split a factorable denominator with partial fractions, then integrate each piece. Roots like \(\sqrt{9 - x^2}\) call for trig substitution, and trig identities reduce powers of sine and cosine first.

Will the Rain Barrel Overflow? Checking the Fill with a Definite Integral

I want to know whether a 40-litre barrel, the overflow mark on my downpipe kit, survives a 5.5-hour storm. A flow meter log fits the inflow rate to \(r(t) = 0.35t^2 + 4.2\) litres per hour, with t in hours. Volume is the accumulated rate, so I need \(\int_0^{5.5} (0.35t^2 + 4.2)\,dt\) with t as the variable.

In the calculator I enter 0.35*t^2+4.2 as the integrand, set the lower limit to 0 and the upper limit to 5.5, and click Calculate. A good solver shows the polynomial split by the power rule into the antiderivative \(F(t) = \tfrac{0.35}{3}t^3 + 4.2t\). The step-by-step output evaluates F(5.5) = 19.41 + 23.10, so the definite integral is 42.51 litres. That is the area under the curve of the rate, and it is above the 40-litre mark: the barrel overflows.

I cross-check by differentiating F, which returns r(t); at t = 5.5 the rate is 14.79 L/h, so the barrel is filling fastest at the end. Solving F(t) = 40 by bisection gives t ≈ 5.33 hours, about 5 h 20 min, so the overflow starts roughly ten minutes before the storm ends.

Base rateVolume at 5.5 hOverflow at 40 L?
4.2 L/h42.51 LYes
3.8 L/h40.31 LBarely

The sensitivity rerun is the judgement call: a 0.4 L/h drop in the base rate leaves only 0.31 L of margin, so the answer hinges on the meter accuracy, not the maths. One caveat: the integral counts what flows in, ignoring the roof first-flush diverter and evaporation, so a calculator's 42.51 should be treated as an upper estimate. My next action is to fit a 50-litre barrel, or open the overflow valve by hand at hour 5.

Worked Examples from an Antiderivative Calculator

For one example, take \(\int_1^3 (4x^3 - 5x + 2)\,dx\). Integrate term by term to get \(F(x) = x^4 - \tfrac{5}{2}x^2 + 2x\), then subtract. As a short tutorial, the table follows the same order the calculator prints.

StepWorkValue
Antiderivativex^4 - 2.5x^2 + 2xF(x)
Upper bound81 - 22.5 + 664.5
Lower bound1 - 2.5 + 20.5
Subtract64.5 - 0.564

The result is 64. A second example, \(\int 6x^2\,dx = 2x^3 + C\), shows the indefinite form: differentiate your answer to confirm that it returns the original problem.

Line chart of 4x³ − 5x + 2 between lower bound 1 and upper bound 3 with the shaded area under the curve equal to the definite integral, 64
The definite integral of 4x³ − 5x + 2 from 1 to 3 is the shaded area, 64.

Now change one input. Raise the top of the range from 3 to 4 and the same F gives \(F(4) = 256 - 40 + 8 = 224\), so the answer becomes 223.5. The jump from 64 to 223.5 shows how quickly a cubic term grows with the interval, which is why a small typo at either end deserves a second look before you trust the output. If the calculator and your hand work disagree, compare F first, then the two evaluations, and finally the subtraction; the error almost always sits in one of those three places.