From the question I assume that the task is to compute the indefinite integral of a function with respect to a certain variable. This can be accomplished using the “int” function. More details about this function can be found here:
The documentation for the “int” function states that it was introduced before R2006a. Also, here is an example from the documentation that shows its usage: