Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Integral (integrate)

Antiderivative of an expression, or its definite integral over a range.

With this function, the solver shows the steps whenever it finds them.

How to write it

integrate(f, x)

The indefinite integral: an antiderivative.

f
The expression or function to work on. Takes an expression.
x
The variable of integration. Takes a variable.

integrate(f, x = a..b)

The definite integral over the range.

f
The expression or function to work on. Takes an expression.
x = a..b
The variable and its bounds; a bound may be inf. Takes a variable with its range.

integrate(f, x = a..b, y = a..b)

An iterated integral over two ranges.

f
The expression or function to work on. Takes an expression.
x = a..b
The first variable and its bounds. Takes a variable with its range.
y = a..b
The second variable and its bounds. Takes a variable with its range.

Examples

  • ∫x2 dx=x33+C\displaystyle \int x^{2} \, dx = \frac{x^{3}}{3} + C
    integrate(x^2, x)

    In the solver, integrate(x^2, x) gives x^3/3.

    Open in the solver
  • ∫xsin⁡(x) dx=sin⁡(x)−xcos⁡(x)+C\displaystyle \int x \sin(x) \, dx = \sin(x)-x \cos(x) + C
    integrate(x*sin(x), x)

    In the solver, integrate(x*sin(x), x) gives sin(x) - x*cos(x).

    Open in the solver
  • ∫01x2 dx=13\displaystyle \int_{0}^{1} x^{2} \, dx = \frac{1}{3}
    integrate(x^2, x = 0..1)

    In the solver, integrate(x^2, x = 0..1) gives 1/3.

    Open in the solver
  • ∫−∞∞e−x2 dx=π\displaystyle \int_{-\infty}^{\infty} e^{-x^{2}} \, dx = \sqrt{\pi}
    integrate(exp(-x^2), x = -inf..inf)

    In the solver, integrate(exp(-x^2), x = -inf..inf) gives sqrt(pi).

    Open in the solver
  • ∫01∫01(x2+y) dy dx=56\displaystyle \int_{0}^{1} \int_{0}^{1} (x^{2}+y) \, dy \, dx = \frac{5}{6}
    integrate(x^2 + y, x = 0..1, y = 0..1)

    In the solver, integrate(x^2 + y, x = 0..1, y = 0..1) gives 5/6.

    Open in the solver

Functions its examples use

  • sin

    Sine of an angle in radians.

  • exp

    Exponential function; exp(x) is the power e^x.

  • numeric_integrate

    Approximate a definite integral numerically.

  • jacobian

    Jacobian matrix of a list of expressions: their partial derivatives.

  • hessian

    Hessian matrix of an expression: its second partial derivatives.

  • laplacian

    Laplacian of an expression: the sum of its second partial derivatives.

  • grad

    Gradient of an expression: the list of its partial derivatives.

  • limit

    Limit of an expression as a variable approaches a point.