Following is a simple demonstration:
Here, we define x as a symbol rather than a variable so that this expression won’t be calculated at once, otherwise, an error like the following one will occur:
Then, to perform integration, just apply int(y, x) function, where the first argument is the function, and the second one being the main variable.