# Question:Is there a direct way to have the int command return the anti-derivative plus an arbitrary constant of integration?

## Question:Is there a direct way to have the int command return the anti-derivative plus an arbitrary constant of integration?

Maple 2021

Is there a direct way to have the int command return the anti-derivative plus an arbitrary constant of integration? I am imagining the process to look like:

Consider the integral of f(x)=x.

 (1)

 (2)

Notice that the output has no intregration constant or the constant has been assigned the value of zero and is not displayed in the output.

Maple 2021 Help states, "Indefinite integration  is performed if the second argument x is a name. Note that no constant of integration appears in the result. Definite integration is performed if the second argument is of the form x=a..b where a and b are the endpoints of the interval of integration."

I'd like Maple to output the anti-derivative plus an arbitrary constant in the same way dsolve outputs a general solution of an ode with arbitrary constants. My first work around was to just use dsolve.

There is a sense in which performing an integration is equivalent to solving an ode:

Is there a way to force int to output arbitrary constants of integration or should I stick to just using dsolve if I want that effect?