Is the indefinite integral of a piecewise continuous function a continuous function?

5.4k Views Asked by At

I had looked around on the web and can't find much information related to the integration of piecewise continuous functions.

Let's say we have a simple function

$$f(x)= \begin{cases} 0 & x\leq 0 \\ x & 0\leq x\leq 1 \\ 0 & x>1 \end{cases}$$

and we are looking to find the integral $\int f(x) dx$

WolframAlpha gives me the following result:

$$\int f(x) dx= \begin{cases} c & x\leq 0 \\ \frac{x^2}{2}+c & 0\leq x\leq 1 \\ \frac{1}{2}+c & x>1 \end{cases}$$

The cases $x\leq 0$ and $0\leq x\leq 1$ are clear. But why do we need the $\frac{1}{2}$ for the $x>1$ case? I see that this makes the integral continuous but is it necessary, i.e. is it wrong to have simply $c$ for the $x>1$ case for the integral?

3

There are 3 best solutions below

0
On BEST ANSWER

The short answer is no. An indefinite integral is not a continuous function, because an indefinite integral is not a function. However, once you fix $a\in \mathbb{R}$, $$\int_a^x f(t)dt$$ is a continuous function. Note that once we fix $a$, the constant of integration is completely determined.

0
On

$$f(x)= \begin{cases} 0 & x< 0 \\ x & 0\leq x\leq 1 \\ 0 & x>1 \end{cases}$$ enter image description here

WolframAlpha gives me the following result: $$\int f(x) \,\mathrm dx= \begin{cases} C & x< 0 \\ \frac{1}{2}x^2+C & 0\leq x\leq 1 \\ \frac{1}{2}+C & x>1 \end{cases}$$

$f$ has a jump discontinuity at $1,$ so has no antiderivative at $1,$ so has no indefinite integral (its complete set of antiderivatives), so Wolfram's result is technically incorrect.

However, for $$g(x)= \begin{cases} 0 & x< 0 \\ x & 0\leq x\leq 1 \\ \color{brown}1 & x>1 \end{cases},$$ enter image description here

we do have $$\int g(x) \,\mathrm dx= \begin{cases} C & x< 0 \\ \frac{1}{2}x^2+C & 0\leq x\leq 1 \\ \color{brown}{x-\frac{1}{2}+C} & x>1 \end{cases}.$$

why do we need the $\frac{1}{2}$ for the $(x>1)$ case? I see that this makes the integral continuous but is it necessary ?

Every antiderivative is by definition differentiable, and thus continuous. In other words, every instantiation of (i.e., for each value of $C$) every indefinite integral must be continuous. (Therefore, for each antiderivative with an interval domain, the vertical shifts of its various pieces depend on one another; here, adjusting the $(x>1)$ case by ensures that the antiderivatives are continuous.)

1
On

Actually, the indefinite integral of a continuous function is a family of continuous functions. If you want to find exactly one of these functions, you have to fix an initial condition $F(x_0) = C_0$.

If you want to obtain the same function obtained by WolframAlpha, solve for the following equalities: lateral limits