kill(all);

f[i,j]:=x^i*%e^x^j;

genmatrix(f,3,2);

integrate(%,x);