How to define rules for variables randomly created by implicit simplification of Maxima? e.g. rule for sum(x(i1,j1),x,1,n)^2



Hi all,
If you define the square of the sum, Maxima simplifies in the following way:
eq2:sum(x(i1,j1),x,1,n)^2;
		     n	     n
		    ====    ====
		    \	    \
(%o54) 		     >	     >	    i15(i1, j1) i16(i1, j1)
		    /	    /
		    ====    ====
		    i15 = 1 i16 = 1

Now how do I apply rule which I was defined for x(I,J)*x(K,L); since x is
now changed to something else.

Regards
Dileep