Math Fundamentals18 sections · 814 units
Open in Course

Summation Properties

Algebraic rules for sums

You can manipulate summations algebraically. Here are the key properties:

\bullet Factor out constants: i=1ncai=ci=1nai\sum_{i=1}^{n} c \cdot a_i = c \sum_{i=1}^{n} a_i

\bullet Split sums: i=1n(ai+bi)=i=1nai+i=1nbi\sum_{i=1}^{n} (a_i + b_i) = \sum_{i=1}^{n} a_i + \sum_{i=1}^{n} b_i

\bullet Change of index: i=1nai=i=0n1ai+1\sum_{i=1}^{n} a_i = \sum_{i=0}^{n-1} a_{i+1}

These rules let you transform summations to match known formulas. If your code computes i=1n(3i+2)\sum_{i=1}^{n} (3i + 2), split it: 3i=1ni+i=1n2=3×n(n+1)2+2n3\sum_{i=1}^{n} i + \sum_{i=1}^{n} 2 = 3 \times \frac{n(n+1)}{2} + 2n.