Integral Calculator

Definite integral—
F(upper limit)—
F(lower limit)—

How Integral Calculator is calculated: F(x) = a·x³/3 + b·x²/2 + c·x; integral = F(upper) − F(lower)

What is an integral calculator?

An integral calculator finds the area under a curve between two points. If f(x) is the height of the curve, the definite integral from a lower limit to an upper limit is the area trapped between the curve and the x-axis over that stretch. It is the second great idea of calculus, paired with the derivative: where the derivative measures a slope, the integral measures an accumulation.

This calculator works with polynomials of the form f(x) = ax² + bx + c, the quadratic functions that fill school and first-year university calculus. You enter the three coefficients a, b and c, plus the lower and upper limits, and it shows the definite integral, the antiderivative evaluated at the upper limit, and the antiderivative evaluated at the lower limit. The default on this page is f(x) = x² + 2x + 3 from 0 to 3, whose integral is 27.

It works with polynomials only, and that limit is deliberate. There is no box to type a function into, because a typed function would need a parser that can be tricked or broken, and this page keeps its maths honest by working from the coefficients directly. Quadratics cover the core idea of integration — the antiderivative, the limits, the subtraction — without any parsing at all.

If you have never met integrals, think of a speedometer. The derivative turns distance into speed; the integral turns speed back into distance. A car travelling at a varying speed covers a distance equal to the area under its speed curve, and the integral is the tool that measures that area exactly.

How an integral calculator works

The method has three steps. First, find the antiderivative F(x), which is the function whose derivative is f(x): for f(x) = ax² + bx + c, the antiderivative is F(x) = a·x³/3 + b·x²/2 + c·x. Each term is integrated by the reverse power rule — raise the power by one and divide by the new power. Second, evaluate F at the upper limit. Third, evaluate F at the lower limit and subtract: the integral is F(upper) − F(lower).

Here is the default example worked out. The function is f(x) = x² + 2x + 3, so a = 1, b = 2 and c = 3. The antiderivative is F(x) = x³/3 + x² + 3x, because x² integrates to x³/3, 2x integrates to x², and 3 integrates to 3x. At the upper limit 3, F(3) = 27/3 + 9 + 9 = 9 + 9 + 9 = 27. At the lower limit 0, F(0) = 0. The integral is 27 − 0 = 27.

A second example: f(x) = 3x² from 0 to 2. The antiderivative is F(x) = x³, because 3x² integrates to x³. At the upper limit 2, F(2) = 8; at the lower limit 0, F(0) = 0; so the integral is 8. The area under the parabola y = 3x² between 0 and 2 is 8 square units, and the calculator shows 8 as the headline result with F(2) = 8 and F(0) = 0 underneath.

A third example with a constant function: f(x) = 5 from 1 to 4. The antiderivative is F(x) = 5x, so F(4) = 20 and F(1) = 5, and the integral is 20 − 5 = 15. That is just the area of a rectangle 3 wide and 5 high, which is the right answer — a constant function traces a flat line, and the area under a flat line is a rectangle.

The antiderivative, the limits and the subtraction

The input people get wrong most often is the order of the subtraction. The integral is always F(upper) minus F(lower), never the reverse. Swapping the limits changes the sign of the answer, which is correct maths for a reversed interval but the wrong answer for the question asked. If your integral comes out negative and you expected a positive area, check the limits before anything else.

The antiderivative itself is built term by term, and each term follows the same rule: raise the power by one and divide by the new power. The term ax² becomes a·x³/3, the term bx becomes b·x²/2, and the constant c becomes c·x. A quadratic equation calculator finds where the curve crosses zero, and the antiderivative is the companion object — the function you get by undoing differentiation.

The limits decide the stretch of curve being measured. A wide interval gives a large integral and a narrow one gives a small one, and an interval of zero width gives an integral of zero, because F(x) − F(x) = 0. Moving both limits by the same amount does not preserve the integral, because the curve is not flat — the area depends on where the interval sits, not just how wide it is.

The lower limit matters most when the function is large near it. For the default example the lower limit is 0, where F is 0, so the integral is simply F(3) = 27. With a lower limit of 1 instead, F(1) = 1/3 + 1 + 3 = 4.33, and the integral from 1 to 3 would be 27 − 4.33 = 22.67. The same upper limit, a different answer — because the starting point moved.

A worked example: x² + 2x + 3 from 0 to 3

Here is the default example in full, step by step. The function is f(x) = x² + 2x + 3, the lower limit is 0 and the upper limit is 3. First, the antiderivative: x² becomes x³/3, 2x becomes x², and 3 becomes 3x, so F(x) = x³/3 + x² + 3x. That is the function whose derivative is the original — differentiate it term by term and you get x² + 2x + 3 back.

Second, evaluate at the upper limit. F(3) = 3³/3 + 3² + 3 × 3 = 27/3 + 9 + 9 = 9 + 9 + 9 = 27. The three terms contribute equally here, which is a coincidence of the numbers chosen, but a useful one: each term of the function contributes its own share of the area, and the total is their sum.

Third, evaluate at the lower limit. F(0) = 0 + 0 + 0 = 0, because every term of the antiderivative has an x in it. The integral is F(3) − F(0) = 27 − 0 = 27. The calculator shows 27 as the headline result, with F(upper) = 27 and F(lower) = 0 underneath, so you can see both halves of the subtraction.

Check the size while you are there. The function runs from 3 at x = 0 to 18 at x = 3, so the area under it over a width of 3 must lie between 3 × 3 = 9 and 18 × 3 = 54. The answer 27 sits inside that range, which is a quick sanity check that catches a slipped coefficient or a swapped limit before it matters.

Where integrals actually get used

In physics, integrals turn rates back into totals. The distance a car travels is the integral of its speed, the work done by a force is the integral of the force over distance, and the charge in a battery is the integral of the current over time. Whenever a quantity accumulates at a changing rate, the integral is the tool that adds it up exactly.

In geometry, integrals give areas and volumes that no simple formula covers. A trapezoid area calculator finds the area of a shape with straight sides, and the integral extends that idea to shapes with curved sides.

In probability, integrals give the chance that a value falls in a range. The area under a probability curve between two limits is the probability of landing between them, which is why the normal distribution — the bell curve — is defined by an integral. A average calculator summarises a list of numbers, and the integral summarises a whole distribution in the same spirit.

In economics, integrals add up marginal quantities. The total cost of producing a quantity is the integral of the marginal cost, and the total revenue is the integral of the marginal revenue. A business that knows its marginal curves can recover its totals by integrating, which is the reverse journey to the one a derivative calculator makes.

Integral calculator vs a scientific calculator

A scientific calculator can estimate an integral numerically on some models, but it does so by sampling the function at many points and adding up thin slices — it never shows you the antiderivative. This calculator shows F(upper) and F(lower) separately, so you can see the exact subtraction the fundamental theorem of calculus promises, not just a number that came out of a black box.

The other difference is the input. A scientific calculator asks you to type the function, which means learning its syntax for powers and coefficients. Here you enter the three coefficients in labelled boxes, which removes the syntax entirely — there is nothing to mistype except the numbers themselves, and those are the numbers the problem gives you.

Where a scientific calculator wins is on functions that are not quadratics. Sines, exponentials, logarithms and products of functions all need the full rules of integration, and a scientific calculator or a computer algebra system handles them. This calculator is honest about its scope: quadratics only, done exactly, with both halves of the subtraction shown.

For learning the antiderivative and the fundamental theorem, the quadratic calculator is the better tool. For a function with more terms or a different shape, use a fuller tool — and a scientific calculator is the natural next step when the function outgrows three coefficients.

Common integral mistakes

The first mistake is subtracting the wrong way round. The integral is F(upper) − F(lower), and swapping the two changes the sign of the answer. If your integral comes out negative for a function that stays positive, the limits are almost certainly reversed — swap them back and the answer turns positive.

Second: forgetting to divide by the new power. The integral of x² is x³/3, not x³ — the division by 3 is part of the rule, and skipping it triples the first term of the answer. The integral of 2x is x², not 2x², because 2 divided by the new power 2 is 1. The division is easy to forget and expensive to miss.

Third: evaluating the antiderivative at the wrong limits, or at only one of them. The integral needs both evaluations and the subtraction between them. Forgetting the lower limit is the same as assuming it is zero, which is only right when the lower limit actually is zero — and for the default example it happens to be, which makes the mistake invisible until the limits change.

Fourth: expecting the integral to be the area whenever the function dips below the axis. The integral counts area below the axis as negative, so a curve that spends half its interval below zero can have an integral of zero while enclosing a real area. If you need the total area regardless of sign, integrate the absolute value, not the function itself.

How to use this integral calculator

Using it takes seconds. Enter the coefficients a, b and c of your quadratic f(x) = ax² + bx + c — the default is 1, 2 and 3 — then enter the lower and upper limits, which default to 0 and 3. The definite integral, F(upper) and F(lower) appear instantly.

This calculator handles polynomials only. There is no box to type a function into, so functions with sines, exponentials, logarithms or fractions need a fuller tool. If your function is a quadratic, enter its coefficients here; if it is not, the coefficients cannot describe it, and no answer this page gives would be right.

Read the three results together. F(upper) and F(lower) are the two halves of the calculation, and the integral is their difference. If the answer looks wrong, check the antiderivative terms first, then the limits, then the order of the subtraction — one of those three is where the error lives.

Everything runs in your browser. There is no account, no form and no data sent anywhere — the numbers you type never leave your device. Use it as often as you like, for homework, for revision, or whenever an area under a parabola needs measuring.

Frequently Asked Questions

The integral is 27. The antiderivative is F(x) = x³/3 + x² + 3x, so F(3) = 9 + 9 + 9 = 27 and F(0) = 0, giving 27 − 0 = 27. The area under the curve between 0 and 3 is 27 square units.

Find the antiderivative F(x), evaluate it at the upper limit, evaluate it at the lower limit, and subtract: the integral is F(upper) − F(lower). For a quadratic ax² + bx + c, the antiderivative is a·x³/3 + b·x²/2 + c·x.

No — it handles polynomials of the form f(x) = ax² + bx + c only. There is no box to type a function into, because a typed function would need a parser. Functions with sines, exponentials, logarithms or fractions need a fuller tool such as a computer algebra system.

Either the limits are reversed — the integral is F(upper) − F(lower), and swapping them flips the sign — or the function spends part of the interval below the x-axis, where the integral counts area as negative. Check the limits first, then check whether the function goes negative inside the interval.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.