跳转到内容

This page is also in English.

Read it in English

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

Léela en español

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

日本語で読む

积分(Integral,integrate)

表达式的原函数,或它在某个区间上的定积分。

使用这个函数时,求解器只要找到步骤就会展示。

怎么写

integrate(f, x)

不定积分:一个原函数。

f
要处理的表达式或函数。接受一个表达式。
x
积分变量。接受一个变量。

integrate(f, x = a..b)

在区间上的定积分。

f
要处理的表达式或函数。接受一个表达式。
x = a..b
变量及其上下限;上下限可以是 inf。接受带范围的变量。

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

在两个区间上的累次积分。

f
要处理的表达式或函数。接受一个表达式。
x = a..b
第一个变量及其上下限。接受带范围的变量。
y = a..b
第二个变量及其上下限。接受带范围的变量。

示例

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

    在求解器中,integrate(x^2, x) 的结果是 x^3/3。

    在求解器中打开
  • ∫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)

    在求解器中,integrate(x*sin(x), x) 的结果是 sin(x) - x*cos(x)。

    在求解器中打开
  • ∫01x2 dx=13\displaystyle \int_{0}^{1} x^{2} \, dx = \frac{1}{3}
    integrate(x^2, x = 0..1)

    在求解器中,integrate(x^2, x = 0..1) 的结果是 1/3。

    在求解器中打开
  • ∫−∞∞e−x2 dx=π\displaystyle \int_{-\infty}^{\infty} e^{-x^{2}} \, dx = \sqrt{\pi}
    integrate(exp(-x^2), x = -inf..inf)

    在求解器中,integrate(exp(-x^2), x = -inf..inf) 的结果是 sqrt(pi)。

    在求解器中打开
  • ∫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)

    在求解器中,integrate(x^2 + y, x = 0..1, y = 0..1) 的结果是 5/6。

    在求解器中打开

示例中用到的函数

  • sin

    角度的正弦,角度以弧度计。

  • exp

    指数函数;exp(x) 就是 e^x 这个幂。

  • numeric_integrate

    用数值方法近似计算定积分。

  • jacobian

    一列表达式的 Jacobi 矩阵:它们的偏导数。

  • hessian

    表达式的 Hessian 矩阵:其二阶偏导数。

  • laplacian

    表达式的 Laplace 算子:它各二阶偏导数之和。

  • grad

    表达式的梯度:其偏导数组成的列表。

  • limit

    当变量趋近于某一点时表达式的极限。