It's curious that you can have different constants of integration on intervals. E.g. if $$f(x) = \left\{ \begin{array}{llr} \frac{-1}{x}+a, & x>0\\ \frac{-1}{x}+b, & x<0\\ \end{array} \right. $$ then $$ \frac{\mathrm{d}}{\mathrm{d}x}f(x) = \frac{1}{x^2}.$$ Are there situations/applications where different constants of integration on different intervals are needed/required?
I'm interested in this issue because many textbooks gloss over this issue. They prove results on an interval. Many of these books then have exercises like "Find $\int \frac{1}{x^2}\mathrm{d}x$", but don't mention the potential for different constants of integration. (Some books do mention this of course, notably Stewart's Calculus.) I'm trying to decide how much this issue "matters". If there is a wide range of compelling applications in which different constants of integration occurs, it suggests we should pay more attention.
I've asked around colleagues and students (E.g. I have about 850 students in my current calculus class) and very few people are aware of this, but they do think it's curious when pointed out explicitly....