Integration of piecewise functions



Dear All,

Apparently, Maxima cannot integrate a piecewise defined function:

f(x) := if x<=2 then x-3 else x^2;
integrate(f(x),x,0,1);

Any ideas?

Thanks in advance,

Paul