### 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

risch(x^2)

x3
3

risch(t^2,t)

t3
3

risch(exp(-x^2))

| ∫ | e−x2 d x

meaning that e−x2 has no primitive expressed with the elementary functions.

risch(x^2,x,0,1)

1
3