13.3.2 Primitives and definite integrals
The Risch algorithm is a powerful algorithm for finding an elementary
primitive of an elementary function or concluding that one does not
exist. The risch command finds
primitives and can use them to evaluate definite integrals.
-
To find a primitive,
risch takes one mandatory argument and one optional
argument:
-
expr, an expression.
- Optionally x, the name of a variable
(by default the variable is x).
- risch(expr ⟨,x ⟩) returns a
primitive of expr with respect to x.
- To evaluate a definite integral, risch takes four arguments:
-
expr, an expression expr.
- x, the variable.
- a and b, the bounds of the definite integral.
- int(expr,x,a,b) returns
the exact value of the definite integral if the computation was
successful or an unevaluated integral otherwise.
Examples
meaning that e−x2 has no primitive expressed
with the elementary functions.