Math calculators

Integral Calculator

Updated Sep 1, 2026 By Jehan Wadia
Rate Formulas
Integral Type
Input Expression
x*sin(x^2)
∫ x·sin(x²) dx
Result
Integral Expression
∫ x·sin(x²) dx
Symbolic Result (Antiderivative)
−½·cos(x²) + C
Alternative Forms
−cos(x²)/2 + C
Graph of Integrand & Antiderivative
Common Integrals — Click to Calculate

Introduction

An integral is a core idea in calculus that helps you find the area under a curve. Think of it like adding up tiny slices of a shape to get the total area. Integrals are used to solve problems in math, science, and engineering every day. There are two main types: definite integrals, which give you a number (the exact area between two points), and indefinite integrals, which give you a function (the antiderivative). This integral calculator lets you type in a function and get the answer fast. It handles common functions like polynomials, trig functions, exponentials, and more. This tool makes solving integrals simple and easy, whether you are learning calculus for the first time or just checking your work.

How to Use Our Integral Calculator

Enter your function and limits of integration below. The calculator will compute the definite or indefinite integral and show you the result step by step.

Function: Type the math function you want to integrate. Use standard notation like x^2, sin(x), or e^x. This is the expression that will be integrated with respect to your chosen variable.

Variable: Enter the variable you are integrating with respect to. In most cases, this will be "x," but you can use any letter like "t" or "u."

Lower Limit: If you want to solve a definite integral, enter the lower bound of integration here. Leave this blank if you want an indefinite integral (general antiderivative).

Upper Limit: If you want to solve a definite integral, enter the upper bound of integration here. Leave this blank if you want an indefinite integral.

Understanding Integrals

An integral is a fundamental concept in calculus that lets you find the total amount of something when you know its rate of change. Think of it this way: if you know how fast a car is going at every moment, an integral tells you the total distance the car traveled. It's basically the reverse of taking a derivative.

Two Types of Integrals

There are two main types of integrals you should know about:

  • Definite integrals give you an actual number. They calculate the total value between two specific points, called the lower limit and upper limit. Visually, a definite integral finds the area under a curve between those two points on a graph.
  • Indefinite integrals give you a new function instead of a number. This new function is called the antiderivative. Since many different functions can have the same derivative, we always add a constant written as + C at the end.

How Integration Works

Integration follows a set of rules, just like addition or multiplication. Some common rules include:

  • Power Rule: To integrate x raised to a power, you increase the power by 1 and divide by that new number. For example, the integral of x² is x³/3 + C.
  • Sum Rule: You can split an integral of added terms into separate integrals for each term.
  • Constant Rule: A number multiplied in front can be pulled outside the integral.

Why Integrals Matter

Integrals are used everywhere in science, engineering, and everyday math. They help calculate areas, volumes, average values, work done by a force, and even probabilities in statistics. For instance, in physics you can use integrals to determine quantities like kinetic energy, potential energy, or the displacement of an object when given its velocity function. In statistics, integrals underpin calculations like the z-score and confidence intervals. Anytime you need to add up a continuous quantity (something that doesn't come in neat, countable pieces), you need an integral.

The connection between derivatives and integrals is so important that it has its own name: the Fundamental Theorem of Calculus. This theorem says that differentiation and integration are opposite operations, much like how addition and subtraction undo each other.


Formulas used

Power Rule
\int x^n\,dx = \frac{x^{n+1}}{n+1} + C, \quad n \neq -1
Fundamental Theorem of Calculus (Definite Integral)
\int_a^b f(x)\,dx = F(b) - F(a)
Constant Multiple Rule
\int c \cdot f(x)\,dx = c \int f(x)\,dx
Sum/Difference Rule
\int \bigl[f(x) \pm g(x)\bigr]\,dx = \int f(x)\,dx \pm \int g(x)\,dx
U-Substitution
\int f(g(x))\,g'(x)\,dx = \int f(u)\,du, \quad u = g(x)
Adaptive Simpson's Rule (Numerical Integration)
S(a,b) = \frac{b-a}{6}\left[f(a) + 4f\!\left(\frac{a+b}{2}\right) + f(b)\right]

Frequently asked questions

What is the difference between a definite and indefinite integral?

A definite integral has upper and lower bounds and gives you a number. It finds the exact area under a curve between two points. An indefinite integral has no bounds and gives you a function called the antiderivative. Indefinite integrals always include + C at the end because many functions can share the same derivative.

What does the + C mean in my answer?

The + C stands for the constant of integration. When you find an indefinite integral, there are many possible answers that differ by a constant number. Since we don't know what that constant is, we write + C to show it could be any number. Definite integrals do not have + C because the constants cancel out when you subtract the bounds.

What is a double or triple integral?

A double integral integrates a function over a two-dimensional region. A triple integral integrates over a three-dimensional region. They are used to find areas, volumes, and other quantities in higher dimensions. This calculator can compute double and triple integrals numerically when you set bounds for each variable.

Can I see the steps to solve my integral?

Yes. After clicking Calculate Integral, look for the Show Step-by-Step Solution button below the result. Click it to see each step the calculator used to find the answer, including substitutions and rules applied.

Can I integrate with respect to a variable other than x?

Yes. For definite, improper, double, and triple integrals, use the Variable dropdown to pick dy, dz, dt, or du. For indefinite integrals, just type your function using the variable you want and the calculator will detect it.

What is u-substitution?

U-substitution is a technique for solving integrals. You replace a complicated part of the function with a new variable u to make the integral simpler. For example, in ∫ x·sin(x²) dx, you let u = x², so du = 2x dx. This turns the integral into ½ ∫ sin(u) du, which is easy to solve. The calculator applies this method automatically when it fits.