Question: Integration variable problem.

Consider the following function defined as an integral with parameters:

 

f:=a->int(a*x,x=0..1);

 

If one tells Maple to integrate this function int(f(x),x=0..1); evaluates to 1/3 although the correct answer would  be 1/4. This is because for Maple f(x)=int(x^2,x=0..1). (Isn't this quite a serious bug?) If one would rename one of the variables, the evaluation would work. My problem is that I want to define a sequence of functions recursively and there is such an integration in every step.

 

How can I tell Maple to interpret f(x) correctly?

Please Wait...