Example 1: A Polynomial Antiderivative
Suppose:
Integrate term by term:
So the indefinite integral is:
If the bounds are \(0\) and \(2\), use \(F(2)-F(0)\):
The signed definite value is \(10\).
Use this Integral Calculator to enter values, adjust options, and review results in a compact responsive workspace.
Results are calculated automatically as you enter data.
Supports constants, integer powers, sin(x), cos(x), e^x, c/x, and sums or differences of up to 64 terms.
▼ See explanations and tips below ▼
Integration is one of the two central ideas in introductory calculus. It is closely connected to differentiation, but it answers a different kind of question.
An antiderivative reverses differentiation. If differentiating \(F(x)\) gives \(f(x)\), then \(F(x)\) is an antiderivative of \(f(x)\):
An indefinite integral represents the whole family of antiderivatives of a function:
The \(+C\) appears because many functions can have the same derivative. For example, \(x^2\), \(x^2+5\), and \(x^2-100\) all have derivative \(2x\).
A definite integral uses lower and upper bounds to produce a number:
This number can describe accumulated change, net area, total quantity, or another accumulation over the interval from \(a\) to \(b\). When the graph is above the x-axis, the contribution is positive. When the graph is below the x-axis, the contribution is negative.
Integration helps turn a rate into a total. That is why it appears in many areas of math, science, engineering, economics, and data analysis.
For example:
For students, integration is also important because it connects several ideas: functions, graphs, derivatives, area, accumulation, and algebraic rules.
For many introductory functions, integration is done by matching each term to a known antiderivative rule. When a function is a sum or difference of supported terms, each term can be integrated separately.
In general:
and
where \(c\) is a constant.
Here are the basic rules used for common single-variable terms:
| Term type | Antiderivative rule |
|---|---|
| Constant \(c\) | \(\int c\,dx=cx+C\) |
| Power \(c x^n\), where \(n\ne -1\) | \(\int c x^n\,dx=\frac{c}{n+1}x^{n+1}+C\) |
| Reciprocal \(c x^{-1}\) or \(\frac{c}{x}\) | \(\int \frac{c}{x}\,dx=c\ln|x|+C\) |
| Sine \(c\sin(x)\) | \(\int c\sin(x)\,dx=-c\cos(x)+C\) |
| Cosine \(c\cos(x)\) | \(\int c\cos(x)\,dx=c\sin(x)+C\) |
| Exponential \(c e^x\) | \(\int c e^x\,dx=c e^x+C\) |
The power rule has an important exception. When \(n=-1\), the formula would require division by zero because \(n+1=0\). That is why \(x^{-1}\), which is the same as \(\frac{1}{x}\), uses the natural logarithm rule instead.
For a definite integral, the Fundamental Theorem of Calculus connects the integral to an antiderivative. If \(F(x)\) is an antiderivative of \(f(x)\), then:
This means you first find an antiderivative, then subtract the value at the lower bound from the value at the upper bound.
Changing the order of the bounds changes the sign:
Suppose:
Integrate term by term:
So the indefinite integral is:
If the bounds are \(0\) and \(2\), use \(F(2)-F(0)\):
The signed definite value is \(10\).
Suppose:
Use the sine and cosine antiderivative rules:
So:
From \(0\) to \(\pi\):
For calculator input, use a decimal approximation such as \(3.14159\) for \(\pi\) when entering numeric bounds.
The reciprocal function has a special antiderivative:
For the interval from \(1\) to \(2\):
But an interval such as \([-1,1]\) is not an ordinary definite integral for \(\frac{1}{x}\), because the function is undefined at \(x=0\). This kind of situation requires improper-integral methods, not the basic endpoint-subtraction process.
The main antiderivative result tells you a function whose derivative gives back the entered function. A good way to check an antiderivative is to differentiate it.
For an indefinite integral, the \(+C\) means the answer represents a family of functions. The calculator shows \(+C\) because without bounds, there is no single numerical value.
For a definite integral, the result is a signed value:
The graph preview helps visualize the function and the bounded interval, but the definite value is based on the antiderivative calculation, not on estimating the shaded region from the graph. The shaded region should be understood as signed accumulation, not always as total geometric area.
For sine and cosine, numeric input values are interpreted in radians. For example, an input near \(3.14159\) represents an angle near \(\pi\) radians, not \(3.14159^\circ\).
pi.
Use integration when you need to:
This calculator is designed for common introductory forms. It supports expressions built from constants, integer powers of \(x\), \(\sin(x)\), \(\cos(x)\), \(e^x\), \(\frac{c}{x}\), and sums or differences of those supported terms. Reciprocal terms can be entered as 2/x or 2x^-1.
It does not behave like a full computer algebra system. In particular, it does not generally support products, quotients, nested functions, chain-rule forms, fractional powers written as unsupported syntax, symbolic bounds, infinite bounds, piecewise functions, or unsupported functions such as \(\tan(x)\), \(\ln(x)\), \(\log(x)\), \(\sqrt{x}\), \(\sin(2x)\), or \(e^{kx}\).
For definite integrals, both bounds must be finite numbers. Entering only one bound produces a validation error. Bounds that touch or cross zero are not evaluated for \(\frac{1}{x}\) or negative powers that are singular at zero.
Symbolic coefficients are kept as exact reduced fractions. Definite values may be rounded to 10 decimal places, while very large or very small finite values may use scientific notation. Expressions are limited to 512 characters and 64 terms, and integer exponents must be from \(-10000\) through \(10000\).
The graph is a sampled visual preview, not the source of the definite value. Singular reciprocal and negative-power branches are drawn as separate paths so the graph does not connect through \(x=0\).
For coursework or important calculations, use the result as a helpful check, but still understand the rule being applied and verify the answer when accuracy matters.
An indefinite integral gives a family of antiderivatives and includes \(+C\). A definite integral has lower and upper bounds and gives a number. The definite value is found by evaluating an antiderivative at the endpoints and subtracting.
The \(+C\) represents an arbitrary constant. Since constants disappear when differentiated, functions that differ only by a constant can all have the same derivative. Without bounds or an initial condition, there is no way to choose one specific constant.
The derivative of \(\ln|x|\) is \(\frac{1}{x}\) wherever \(x\ne 0\). The absolute value allows the antiderivative rule to work on intervals where \(x\) is positive or negative. The rule still does not make \(\frac{1}{x}\) defined at \(x=0\).
The calculator treats trigonometric inputs as radians. A bound of \(180\) means \(180\) radians, not \(180^\circ\). To represent \(\pi\) radians, enter a decimal approximation such as \(3.14159\).
Yes. A definite integral is signed accumulation. Regions below the x-axis contribute negative values, so the final result can be negative even though geometric area is always nonnegative.
A definite integral needs a complete interval. That means both a lower bound and an upper bound must be present and finite. Leave both bounds blank for an indefinite integral; if exactly one is missing, the calculator shows a validation error instead of discarding the entered bound.
Books