11

Everywhere I have looked up, see here, the indefinite integral is defined as: $$F'(x)= f(x) \iff \int f(x) \, dx= F(x) + C $$

From what I understand if $f$ has an antiderivative $F$ then the set $$\{F(x) + C : C \in \mathbb{R}\}$$ is called "indefinite integral" of $f$.

But I don't understand the definition, $F'(x) =f(x)$... okay, where? What values of $x$? For every $x$ in the domain of $f$? Oh then I think we have a problem.

Let $f(x)= 0$ for $x \in (0,1)\cup(1,2)= \text{Domain}(f)$, we then go on to say $\displaystyle\int f(x)\, dx =\int 0 \ dx = C = \{ F(x) = C, \forall x \in \text{Domain}(f): C \in \mathbb{R}\}$, a set of constant functions... Sure but what if $F:(0,1)\cup(1,2)\to \mathbb{R}$ given by, $$ F(x)= \begin{cases}1, \ x \in (0,1) \\ \\ 2, \ x \in (1,2) \end{cases}$$ then $$F'(x)= 0 = f(x)\, , \ \forall x \in \text{Domain}(f)$$ but $F(x)$ is not a constant function on $\text{Domain}(f)$ and so $F(x)\notin \displaystyle\int f(x) \, dx$ and yet $F'(x)=f(x), \forall x $. What gives? Surely, that definition is incomplete?


NOTE: I have not mentioned $f$ is Riemann integrable or not so writing $F(x)=\int_a^x f(t) \, dt$ is already a no-go.

William
  • 4,893
  • 7
  • @MartinR Yes, but like you can't just use two different constant of integration for the same antiderivative? $F(x) +C_1$ and $F(x)+C_2$ are different antiderivatives. I didn't get that part. – William Aug 28 '22 at 08:31
  • 6
    Tangential comment, but I avoid using the term “indefinite integral” entirely. I’ll say things like “let $F$ be an antiderivative of $f$”. – littleO Aug 28 '22 at 09:51
  • @littleO Wow, so you chose to live your life in exile... – William Aug 28 '22 at 19:15
  • 3
    I don’t think this is a clear question. – marshal craft Aug 29 '22 at 00:05
  • All sorts of stuff can happen when you have discontinuities in calculus – marshal craft Aug 29 '22 at 00:11
  • @marshalcraft What exactly is not clear about this? Discontinuities of what function? $F$ is differentiable and hence continuous. You don't need continuity of $f$, anyway. So I don't understand your comment. – William Aug 29 '22 at 07:00
  • Whoever downvoted the question, maybe drop a comment to briefly explain why? My ghost friend that usually tells me what goes on in other people's head without them having to tell me, died last Sunday. The format seems good. The grammar seems good. I have shown my efforts. The question isn't a duplicate. And the question isn't too bad either if I should say so myself. Then what, in this question, did you not find it to your liking? – William Aug 29 '22 at 07:04
  • I down voted the question. It seems like you grappling with something related to functions and domains, which is good. But I don’t think the question IS clear. And I dont think it is valuable. And it’s not really valuable for me to enter such a thing, when due to its brevity, and lack of clarity; you can lay down anything to degrade my statements. – marshal craft Aug 30 '22 at 06:15
  • @marshalcraft Well then don't go downvoting the question. I have done my best to make my question, as clear as possible and apparently almost everyone seems to have understood it. And the fact that it still has 11 upvotes, even after your downvote goes to show that the question is at least reasonably good. And if you still don't find it clear enough, ask for more, explain what you'd want to see. With all due respect, don't go downvoting everything you don't understand, unless you know... you're a troll. That's not what the downvote feature is for. Peace. – William Aug 30 '22 at 09:14
  • 1
    You can just switch every $C$ to a locally constant function $C(x)$. – Trebor Aug 30 '22 at 09:49
  • @Trebor Nice! I didn't think of that but I'd suppose, it could be easily confused for a function. – William Aug 30 '22 at 09:51
  • What is even difficult to understand? Math is not magic what are you looking for I wonder I really do. It’s not even a mathematics question let alone a good one. – marshal craft Sep 02 '22 at 15:00
  • And Indont think the question is terrible, but it just fails to actually ask a question at the end. Maybe that is what you are looking for. And that’s fine. But there very wide range of notions of functions and maps and graphs. Usually where the details are pertinent to the subject matter at hand. – marshal craft Sep 02 '22 at 15:10
  • Additionally I can see how in computer science it is a valuable skill to go through somebody’s definitions and source code but this is math, that IS typically a waist of time and something one seeks to avoid. – marshal craft Sep 02 '22 at 15:12

4 Answers4

18

You make a good point. Indefinite integral notation and manipulation tends to be a little loose, in my opinion. And you’re also right that, on a disconnected domain, it’s perfectly allowable to have multiple different constants. Famously $\int1/x=\ln|x|+C$ can have a different $C$ on $(-\infty,0)$ to $(0,\infty)$. I wouldn’t worry too much: $\int f$ just stands for “some antiderivative of $f$, on some subdomain of the domain of $f$”.

For instance it’s common to perform u-substitutions and the like with indefinite integrals - but, without any bounds of integration, those substitutions might not be valid! You then end up with an antiderivative that works in some places, but not in others. And as far as indefinite integration cares, that’s ok. $\int f$ just notationally streamlines the integral calculus.

FShrike
  • 40,125
  • I think I understand now. However could you explain to me why Wikipedia says, $f(x)=F'(x)$ should be on open intervals or disjoint union of open intervals. Why not just any interval works? What happens if $F'(x) = f(x)$ on say $[1,2)\cup[3,4]$, can I not use different constants on each intervals $[1,2)$ and $[3,4]$? So why open intervals? – William Aug 29 '22 at 05:47
  • @William That concern crops up in different places in analysis. There are some different conventions. The trouble is, to say $f(x)=F’(x)$ is to also say that $F$ is differentiable i.e. $\lim_{h\to0}\Delta F/\Delta h$ exists. But for that limit to make sense, we need $F$ to be defined at $x$ and at all $x+h$ for small $h$. So, that means the domain of $F$ should be open at $x$. However, a different convention would be to say this: $F$ is differentiable on $[a,b]$ means it is differentiable, in the normal sense, on $(a,b)$, and the one-sided derivative limits exist at $a$ and $b$. – FShrike Aug 29 '22 at 05:56
  • Thank you. So if I'm taking differentiability on endpoints to mean one sided derivatives and differentiability on interior points are the usual two sided derivatives, then I can summarise the whole drama like this: if $F'(x)=f(x), \ \forall x \in D$ then if $D$ is an interval (of finite or infinite length, open, closed, half open, doesn't matter) then the set of all antiderivatives of $f$ on $D$ is simply, $${F(x)+C, \forall x \in D : C \in \mathbb{R}}$$ and (...continued) – William Aug 29 '22 at 06:49
  • And if $D$ is a union of pairwaise disjoint intervals, like say $D=(a,b) \cup [c,d) \cup [e,f]$ where $(a,b)\cap[c,d)= (a,b)\cap[e,f]=[c,d)\cap[e,f]= \varnothing $ then the set of all antiderivatives of $f$ is $${g(x) =\begin{cases} F(x) +C_1, x \in (a,b) \ F(x)+C_2, x \in [c,d) \ F(x)+C_3, x \in [e,f] \end{cases} : C_1, C_2, C_3 \in \mathbb{R} }$$ but this is way too cumbersome, we might as well leave it at $F(x)+C$ with an understanding that if $D$ is not an interval but union of disjoint pairwise intervals then we may just use different arbitrary constants on each of intervals of $D$? – William Aug 29 '22 at 06:50
  • @William That’s all correct. – FShrike Aug 29 '22 at 07:17
  • Thanks for having the patience to read all that. Although, I just realised, intervals being "disjoint" isn't enough, if the intervals aren't open! You need a more stronger requirement, that for $D=(a,b)\cup[c,d)\cup[e,f]$ $b<c$ and $d<e<f$. Otherwise we'd have, $D= (1,2)\cup[2,3)\cup[3,3]$ and we are screwed even though the intervals are pairwise disjoint. Guess, now we know another reason why they mentioned it for open intervals, huh :D. Nonetheless, it can be extended to general intervals with a little more effort. Thank you, again. – William Aug 29 '22 at 07:27
  • @William You’re welcome. The main idea is about connectivity. It so happens that in $\Bbb R$, the only connected subspaces are the intervals (open/closed/half-open/infinite) and the singletons. In higher dimensions or, say, over the complex numbers, you get the same phenomenon but with different constants per connected component. – FShrike Aug 29 '22 at 09:29
6

The $+C$ isn't just a constant, per se. It's a locally constant function. This is true for any defined integral and any domain. Over connected domains, a function is constant if and only if it's locally constant. Otherwise, it would just have to be constant over every connected component. To be a little more rigorous, we can think of the indefinite integral as the antiderivatives on a connected component of the domain.

For example,

$$ F(x) = \begin{cases} -\frac{1}{x} + C_1, & \text{if $x < 0$} \\ -\frac{1}{x} + C_2, & \text{if $x > 0$} \end{cases} $$ is the "correct" general antiderivative of $f(x) = \frac{1}{x^2}$ on its usual domain $\mathbb{R}\backslash\left\{0\right\}$.

I like to think of $+C$ as "$+$expression whose derivative equals $0$," or $+C$ to represent an entire family of functions with a derivative of $0$. Also, we know $F(x) + C_1$ and $F(x) + C_2$ are two different expressions, but they are still elements of the set $\left\{F(x) + C: C \in \mathbb{R}\right\}$.

Here's another way of explaining all this. An indefinite integral is the equivalence class of functions under the equivalence relation of having the same derivative. So an indefinite integral is not one function, per se, but a set of functions.

I'm going to sidetrack here but in abstract algebra and linear algebra, The derivative is a linear transformation (homomorphism) that sends nonzero vectors (functions) to $0$, so we can only define its inverse (the indefinite integral) only up to adding something whose derivative equals $0$.

(Opinion) I do agree that people loosely define indefinite integral notation $\int$, but I think it was done to help keep people sane. I doubt any professor grading a Calculus 1 class would want to grade homework having the solutions that are something like $\ln{|x+r|}$, and the students are forced to write a piecewise-defined function. It's inconvenient. It's kind of like how some people say $\sqrt{-1} = i$. It's impossible to take the square root of a negative number, yet people still abuse the square root notation, so some people accept that $\sqrt{-1} = i$ even though others would argue it's wrong (not to mention that $\sqrt{-1}$ could equal either $i$ or $-i$ depending on which branch you choose, but that's a different story).

Accelerator
  • 4,923
  • 1
    As I see it, you seem to have went with $F'(x)=f(x), \forall x \in \text{Domain}(f)$ then how would you define the "indefinite integral"? Surely you can't define it, as the set ${F(x)+C, \forall x \in \text{Domain}(f) : C \in \mathbb{R} }$ because this set throws away your adding "locally constant functions" out the window. How would you define indefinite integral, then? – William Aug 28 '22 at 09:11
  • @William I wasn't trying to give a rigorous definition of what an indefinite integral is. But to answer your question, I think I would define it how Wikipedia defines it (https://en.wikipedia.org/wiki/Antiderivative). I believe if $\text{Domain}(f)$ is non-disjoint, then $\left{F(x)+C,\forall x \in \text{Domain}(f) : C \in \mathbb{R}\right}$ should be the set of all antiderivatives of $f(x)$. I think for piecewise functions it's different, just like my example. Truth is, I don't think there is an agreed way to define the indefinite integral. – Accelerator Aug 28 '22 at 09:30
  • @William I found this. Maybe this video could help you better than I can. https://www.youtube.com/watch?v=u4kex7hDC2o&t=451s – Accelerator Aug 28 '22 at 09:38
  • Thanks, that was helpful. I'll check it out. However, could you explain to me why does Wikipedia say, "If the domain of F is a disjoint union of two or more (open) intervals, then a different constant of integration may be chosen for each of the intervals." Why open intervals in the bracket? Why can't this work for Domain being disjoint union of any interval (open, closed, half open)? – William Aug 28 '22 at 16:47
1

The main problems here are the domain of definition and constant of integration. Both of these can be solved if you restrict to intervals (open/closed/clopen), which is how it is usually defined in texts.

Thus, for a Riemann integrable function $f : (a,b)\to \mathbb{R}$, the antiderivatives of $f$ is the set $$\{F(x)+C|F : (a,b)\to \mathbb{R}, F'(x) =f(x) , C\in \mathbb{R}\}$$

The indefinite integral is more of a constructive tool for students to learn and convenient notations for people to solve problems. Thus, although it is fun to wonder how one can make it rigorous, it may not be necessary.

  • 1
    You say "Riemann integrable $f:(a,b) \to \mathbb{R}$" but there is no such thing as Riemann integral of a function on open interval? – William Aug 28 '22 at 09:02
  • There is. Riemann integrability is defined for bounded functions on intervals of finite length. The nature of the interval does not matter, (open/closed/clopen). – David Dinh Aug 28 '22 at 09:41
  • Well that's weird. I was always under the impression that Riemann integral makes use of the "endpoints" of the interval in the definition while partitioning... First we define $\displaystyle\int_{[a,b]} f$ and then extend to $\displaystyle\int_{(a,b)}f$. Not the other way around. – William Aug 28 '22 at 16:29
  • 1
    @William You are right, the Riemann integral technically needs a compact interval to be properly defined. However, you can take an $f$ defined on an open (and finite!) $(a,b)$ and extend it to the closure $[a,b]$ by arbitrarily choosing values at the endpoints. Then the value of the Riemann integral as defined by Riemannian sums won't depend on the values chosen, so the whole construction of the Riemann integral can also be carried out on open intervals. One should however think of the Riemann integral to require compact domains! – Jannik Pitt Aug 28 '22 at 18:29
  • Nothing stops you from partitioning $(0, 1)$ into $(0,1/2)$ and $[1/2,1)$. It may be customary to define it on closed intervals then extend it; but does not have to be that way. Many texts define it on intervals without specifying whether end points are included or not from the get go. The end points do not matter in the definition of the integral. Besides, the point of the post is how to address the problems OP has brought up, not the nature of the intervals. Everything I said is still true if we replace the open with closed intervals, except you have to take one-sided derivatives. – David Dinh Aug 29 '22 at 00:45
1

A definite integral is a number, an indefinite integral is a function.

In particular, a definite integral is the area enclosed between the function and one of the axes and the curve in the delimited interval.

The indefinite integral is the inverse functional of the derivative. Meaning that the function provided by the indefinite integral, when derived, should give as a result the original function that was integrated.

The interval where said function is defined is exactly that: the interval where the function is defined. In example $F(x)=1/x$ is defined in $\mathbb{R} - \left\{0\right\}$

I feel thate's confusion between the indefinite integral (functional returning a function) and the definite integral (functional returning an area). The simbology is similar, but they actually are 2 different functionals. That's what i was thaught.

  • 1
    The indefinite integral maps a single function to a family of functions, not just "a function." That's central to the question, which is actually about what kind of family of functions you get for a disconnected domain. – David K Aug 28 '22 at 22:20