Search code examples
maxima

Suspending simplification of integral


Suppose we have the following code:

integrate(a*x/a,x);

How can we run this code without any simplification, so that we can get the LaTeX equation without any simplification:

$\int\frac{ax}{a}dx$

?


Solution

  • You can disable the simplifier with:

    simp:false;
    

    before evaluating the integral. Don't forget to enable it afterwards.

    The manual mentions this as an "extreme option". Presumably a lot of other functionality will be broken while it is off.

    Another way (maybe you neeed both?): single quote before the expression. This one prevents evaluation but not simplification. See also: https://maxima.sourceforge.io/docs/manual/maxima_43.html