In my coding (python if that makes a difference) lecture we have been given a recursive definition for a sequence a(n), and then given f(x) = a(n) + a(n)^2 + a(n)^3 and asked to integrate it. In the examples the lecturer gave throughout the lecture they didn't always add a constant of integration, and when asked if we should include one he gave a vague answer as to make us think. He said we add a constant in mathematics when trying to describe the family of functions that when differentiated would give a specific set of functions.
I'm in two minds. I'm thinking maybe we shouldn't include a constant because we aren't integrating again so the constant wouldn't change anything and differentiating nothing and differentiating gives the same result. But also surely we should include a constant, or at least shouldn't be penalised for including one because that's the rules of mathematics
*edit, i forgot to say the integral is an indefinite integral
The difference is between definite and indefinite integrals. Consider $$\int f(x)\,dx =F(x)+C$$ and you must put the $C$. Now $$\int_a^b f(x)\,dx =\left( F(b)+C\right)-\left( F(a)+C\right)=F(b)-F(a)$$
Is this clear ?