Antiderivatives on disconnected domains

ID: antiderivatives-on-disconnected-domains

Let be an open subset of the real line, and let be antiderivatives of the same function on . Each connected component is an open interval. On that component, , so the mean value theorem gives . The constants on different components are independent: there is no subinterval inside joining them. Conversely, adding any chosen constant on each component preserves the derivative everywhere on .
For example, the domain of is . Every antiderivative on this domain has the form
with arbitrary real . The logarithm of the absolute value differentiates to on each side. The function with and is therefore a valid antiderivative, although it cannot be written as with one global constant.
Figure 1.
Two disconnected intervals allow independent constants while the derivative stays the same
. Details.
An initial condition at fixes and leaves free. Fixing both constants requires one reference value in each connected component, or additional conditions that couple the components. The locally constant function captures this remaining freedom.

New to topics? Read the docs here!