# How do you stop Mathematica from evaluating a sum? [closed]

A concentration $A(i,j)$ varies over i,j.

I'd like to include the summation of $A(i,j)$ in my Mathematica expressions, but it evaluates the sum

 In[1]:  Sum[Aij, {i, imax}, {j, jmax}]
Out[1]: Aij imax jmax


i.e. Mathematica is treating all A(i,j) values as equal, so that $\sum_{j=1}^N\sum_{i=1}^M A(i,j) = NMA$. This isn't the case, how do I stop it evaluating the sum?

My system also includes terms like $\sum_{j=1}^N\sum_{i=1}^M A(i,j)u(i,j)$, which I also don't know how to write in Mathematica.

 In[1]:  Sum[Aij uij, {i, imax}, {j, jmax}]
Out[1]: Aij imax jmax


## closed as off-topic by m_goldberg, VerbeiaMay 5 '15 at 5:42

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – m_goldberg, Verbeia
If this question can be reworded to fit the rules in the help center, please edit the question.

• Aij is the symbol Aij. Try somthing like A[i,j]. Also, don't use uppercase initials in symbols - might clash with a built-in... – ciao May 4 '15 at 21:05
• Oh great, simple! Thanks a lot! – user1792403 May 4 '15 at 21:07
• In addition, if you want to keep a sum in unevaluated form (to perform symbolic manipulations on it), you should check out Inactive. – Stefan R May 4 '15 at 21:32

Format[A[x_, y_]] := Subscript[A, ToString[x] <> ToString[y]]