I will illustrate my problem with this example:
I want to make a function which, given a polynomial, gives me the value of the integral $\int_0^1(ax+bx^2)dx=a/2+b/3$.
Therefore, in this example, I want something like
Do you know how can I define the argument of this function? Because it is a function of $x$ but I want to write the full polynomial of $x$ in the argument.
Thank you for you time!