I am looking at the following equation:
$$\sum_{i=1}^n (a_i+b)^2 + \sum_{j=1}^m a_j$$
I am not sure what the convention for the order of operations for this would be.
Is it:
$$(\sum_{i=1}^n (a_i+b)^2) + \sum_{j=1}^m a_j$$
or
$$\sum_{i=1}^n ((a_i+b)^2 + \sum_{j=1}^m a_j)$$
Edit: If the plus sign was changed to a product, how would this be evaluated?
$$\sum_{i=1}^n (a_i+b)^2 \sum_{j=1}^m a_j$$
Like this:
$$(\sum_{i=1}^n (a_i+b)^2) \sum_{j=1}^m a_j$$
or
$$\sum_{i=1}^n ((a_i+b)^2 \sum_{j=1}^m a_j)$$
I suppose the general question I am trying to ask is twofold:
- What is the order of operations for sums?
- Searching "Order of operations" in Google doesn't help me find interesting results. What are the correct search terms?