I was wondering if there was any process to take the sum of any given functions outputs akin to a integrals to sum the area under the curve. For example, if my function is $$ \frac { \left( x - \frac 1 2 \right) ^ 2 } 2 \text , $$ and I want to find the area under the curve from $ x = 1 $ to $ x = 10 $. I would integrate from $ 1 $ to $ 10 $.
What if I want the sum of all $ Y $ values corresponding to $ x = 1 $ to $ x = 10 $ of the function without computing each separately? Is there anyway I can reduce this operation into one problem instead of plugging in $ 10 $ different values?