kill(all)$

f(x):= %e^(2+log(x^5));

     Law of exponents

law1(a, m,n):=a^(m+n)=a^m+a^n;

law1(%e,2,log(x^5));

f(x):=lhs(law1(%e,2,log(x^5)))$

'integrate(f(x),x)=integrate(f(x),x)+C;

ff[i,j]:=%e^(i+log(x^j));

M:genmatrix(ff,5,5);

integrate(M,x)+C;

kill(all);