Your calculus prof lied to you (probably)

Sdílet
Vložit
  • čas přidán 29. 08. 2024

Komentáře • 582

  • @orangeguy5463
    @orangeguy5463 Před 2 lety +429

    It's very simple: +C isn't constant. It's a locally constant function. This is true for any integral and any domain. Over connected domains, a function is constant iff locally constant. Otherwise it just has to be constant over every connected component.
    If we think of the motivation of +C in the first place, it's really supposed to be +"something with derivative 0". If we include +C to be the entire family of functions with a derivative of 0, this is everything a priori. Only then we may look for some theorems of calculus to characterize what a derivative of 0 tells us.
    Really, this discrepancy has nothing to do with logarithms or calculus, it's actually a common idea in linear and abstract algebra. The derivative is a homomorphism (linear transformation) sending some nonzero vectors (functions) to 0, so we can only define its inverse (the indefinite integral) only up to adding something with a derivative of 0.

    • @riskitonme
      @riskitonme Před 2 lety +22

      Ye, I love it. Absolute value is piecewise defined and +C can be a piecewise defined function that has derivative zero! So the two are equivalent.

    • @aryanjoshi3342
      @aryanjoshi3342 Před rokem +3

      Anytime the value of the locally constant function changes, the derivative at that point is undefined, so the only time that +C can jump to a different constant is when the original function is undefined (like things involving 1/x). is this correct?

    • @yurkoflisk
      @yurkoflisk Před rokem

      @@aryanjoshi3342 If the definition of indefinite integral is extended in such a way that it includes cases with discontinuous domain, probably yes. Though generally I'd just avoid such cases and, if absolutely needed, consider each needed domain interval separately and use concepts such as 'derivative' and 'integral' only to such domain-restricted functions.

    • @writerightmathnation9481
      @writerightmathnation9481 Před rokem

      So if a student writes “+C+1” where your grading key has “+C”, you take off a point, right? By “you” here, I mean your grading software or just grader.

  • @brandongroth4569
    @brandongroth4569 Před 2 lety +678

    While I agree that the domain was handwaved in Calculus, this was likely done for sanity purposes rather than being correct. Can you imagine grading a Calc 1 exam w/ partial fraction decomposition where so many solutions end up being ln|x+k|, yet they would be forced to write a piecewise-defined function for each factor instead? It would be a nightmare for the students and teachers alike.

    • @DrTrefor
      @DrTrefor  Před 2 lety +234

      Oh absolutely. And to be clear, setting aside the clickbait title, I don't make a big deal of this point to my students either. I do like showing the example as I think it helps solidify the concepts, but for all practical purposes I use ln|x|+C like everyone else:D

    • @writerightmathnation9481
      @writerightmathnation9481 Před 2 lety +59

      @@DrTrefor I disagree with the idea that it's OK to wave hands as willy nilly as calculus books do. Why don't they at least point out that they're abusing the terminology and the notation, in favor of speed? The Higher level courses, like linear algebra, are harder to grade because no one wants to address these things before the damage is done.
      One of my engineering colleagues told me he had students who couldn't understand why he asked them to find the derivative of pressure with respect to temperature in the ideal gas law (Pv=NRT), because they said it doesn't depend on x (I think he actually quoted the student as saying "there's no x"). Calculus books wrongly identify expressions with functions and don't teach that that's an abuse of notation and terminology, and then almost never do they use variables other than x or t as independent variables, making it tougher to clean up that mess after it's entrenched in the students' minds.
      The claim then that (ax)'=a is false, but it's ubiquitous on quizzes and tests as the only correct answer. If a good student writes (ax)'=a'x+ax', the grading key says they're wrong when they're right. Without context the problem is misstated and does more harm than good.

    • @phiefer3
      @phiefer3 Před 2 lety +2

      @@DrTrefor I get this. In many situations that call for the indefinite integral you end up only needing 'an' antiderivative rather than all of them. Either because you have some initial value that lets you define what the constant C is, or because the problem eventually leads into a definite integral. So in a lot of cases the piecewise definition doesn't really bring anything useful. But even so it's still a good idea to understand when the shorthand doesn't actually include
      It's a bit of a convenient shorthand that is fine for most situations, but it's still a good idea to keep in mind what it's lacking.
      Additionally, correct me if I'm wrong, but you could likely correct for this at the end if you really wanted to be complete, by at the end adding a little piecewise definition for C depending on the which interval of the domain x is in. Sort of how like when taking a definite integral it's common to omit the +C entirely since you know it's going to cancel out, but it's still important to remember that that +C is still really there and what it means.
      Also, if I'm not mistaken you could correct for this at the end (or at any step) if you really wanted to, by adding a piecewise definition for C for each interval of x separated by a point of discontinuity.

    • @justsomeboyprobablydressed9579
      @justsomeboyprobablydressed9579 Před 2 lety +17

      Also, this issue would crop up for integrating lots of other functions:
      f(x)=1/x^2, f(x)=3/(x-5)^3, etc. And imagine asking for the "full" answer for the indefinite integral of tan(x).

    • @rrr00bb1
      @rrr00bb1 Před 2 lety +3

      @@justsomeboyprobablydressed9579 there are so many places where the notation seems slightly buggy. this is an interesting find. the first thing that came to mind is piecewise spline curves.

  • @md2perpe
    @md2perpe Před 2 lety +221

    Within the theory of distributions, what is done here is adding multiples of the Heaviside step function H(x) and/or constant functions to the antiderivative: F(x) = ln |x| + A H(x) + B, where A and B are constants. The derivative is then F'(x) = 1/x + A δ(x). Here, 1/x is the principal value distribution and δ is the Dirac delta distribution. So for distributions the only antiderivatives of 1/x are ln |x| + B.

    • @rarebeeph1783
      @rarebeeph1783 Před 2 lety +1

      but if 1/x is undefined at x=0 and A δ(x) is only nonzero at x=0, shouldn't the A H(x) term remain in the form for the antiderivatives of 1/x, since 1/x should exactly equal 1/x + A δ(x)?

    • @md2perpe
      @md2perpe Před 2 lety +12

      @@rarebeeph1783 A distribution isn't defined pointwise, so we cannot say that the distribution 1/x is undefined at x=0. Saying that δ = 0 on ℝ∖{0} is okay, however.
      Within the theory of distributions, what happens when we add A H(x) to the antiderivative, as is done in the video, is that we add terms A δ(x) to the derivative. Thus, our antiderivatives are not for 1/x but for 1/x + A δ(x). So, the only antiderivatives of (principal value) 1/x are ln |x| + B.

    • @writerightmathnation9481
      @writerightmathnation9481 Před 2 lety +2

      @@rarebeeph1783
      A better way to think of it is in terms of measures. Instead of thinking of the dirac delta as a function of a real variable (because it isn't), you should think of it as a measure concentrated at zero. Moreover, the notation "δ(x)" for such a concept is wholly confusing, mathematically incorrect, and pedagogically vapid. One should denote it only as δ_0 ("delta subscript zero"), and realize that it maps measurable sets to real numbers. If the measurable set E includes the number 0, then δ_0 maps E to 1, and otherwise, it maps E to zero. That way, when one computes the integral, over the measurable set E, of the dirac delta times a real valued function f of one real variable, is either 0 or f(0), according to whether 0 is in the set E or not. For the function f given by the formula f(t)=1/t, 0 is not in the domain of f, so without a richer interpretation of integration as in Lebesgue integration or some other variants on Riemann integration and Improper Riemann integration, you cannot assign a meaning to the integral in question even in this case.
      A problem with the question at hand is that 0 is not in the domain of the function in question, so integrals of it against the dirac distribution don't really make sense. I guess one can (and perhaps does) extend the theory by extending the notion of these integrals to try to extend the integrand to the closure of its domain, but in this case, one still has the problem that the unboundedness of the function requires one to first extend the real number system to the extended real numbers so that both lazy 8 and its negative are members of the codomain (and perhaps of the domain). In this case, we still cannot make sense of f(0) in a way that is not seen as ad hoc, because the limit from the left and the limit from the right at 0 do not agree. One could instead use the Riemann sphere, I guess, which is the one point compactification of the complex plane, and then one does not include the negative of lazy 8 in the codomain or the domain, and one "defines" 1/0 to be lazy eight, which is the point of compactification, located at a pole of the Riemann Sphere, usually considered to be the "North Pole", diametrically opposite the pole at 0, usually considered to be the "South Pole". In this nice repair of the situation, one would be able to recover the property described for the dirac distribution for bounded functions, namely that the integral of "δ(x)/x" (abusing the notation in the sophomoric way in ODE textbooks), would be interpreted (`calculated'?) as f(0)=\infty.

    • @ayushyadav5164
      @ayushyadav5164 Před 2 lety +6

      Is that language of gods?

    • @nevokrien95
      @nevokrien95 Před 2 lety +1

      thats a dam good answer, it just looks at the discontiniouty in the most elegent way possible. I went about it in a dumber way with insisting on the complex derivative to make sense as well

  • @roderictaylor
    @roderictaylor Před 2 lety +47

    Nice video.
    In section 5.4, Stewart's Calculus with Early Transcendentals does say, "We adopt the convention that when a formula for a general indefinite integral is given, it is only valid on an interval." It goes on to say that in a sense the general anti-derivative to 1/x^2 is the piecewise defined function -1/x+C_1 for x0. I prefer the convention that when we take an antiderivative, it's always on an interval. So with this convention integral 1/x dx = ln |x| + C is a shorthand for saying that the general antiderivative of 1/x on (-infinity,0) is ln (-x) + C and the antiderivative of 1/x on (0,infinity) is ln x + C. I also like Spivak's suggestion in his Calculus book, that we could dispense the + C altogether. So instead we ca just remember that the equality sign in that context means equal up to the addition of a constant on an interval.

    • @JoQeZzZ
      @JoQeZzZ Před rokem +3

      I'd disagree with removing the + C because then you'll abuse = notation, but I'd be in favour of getting the C to explicitly mean "the set of all functions with derivative 0 over the domain".
      In this case, the piecewise C and D would quallify, because it's derivative is 0 across the entire domain (since the discontinuity isn't included in the domain)
      This is something we implicitly do through abuse of notation, but this qualifier would make it formal. In this case the + C would always make the equality valid

  • @diribigal
    @diribigal Před 2 lety +262

    Certainly those are all the antiderivatives with the same domain as 1/x. But I don't love calling them the "indefinite integral" because a disconnected domain isn't useful for calculating definite integrals (or path/contour integrals). I'd personally rather say something like "indefinite integral means the antiderivatives on a connected component of the domain" and note that it just so happens that with a trick like ln|x|, you basically never have to write them piecewise in calculus.

    • @DrTrefor
      @DrTrefor  Před 2 lety +70

      I would also be happy with this. It slightly changes the criticism, which is then that most calc textbooks don't put the added qualifiers on what an indefinite integral means that you did here.

    • @angeldude101
      @angeldude101 Před 2 lety +17

      And of course the "trick" works because |x| is itself piecewise, or with the alternate definition of sqrt(x^2), because sqrt is not a true inverse function because of x^2 isn't 1-1.

    • @angelmendez-rivera351
      @angelmendez-rivera351 Před 2 lety +15

      Eh. I think the term "indefinite integral" should be retired altogether, as it is more unhelpful and confusing and misleading, than it is useful.

    • @Noname-67
      @Noname-67 Před 2 lety +8

      Indefinite integral is just a confusing way of saying antiderivative. If it is defined differently, a indefinite integral of f should be all function F satisfy F(b)-F(a) equal integral of f from a to b in the domain

    • @johanrichter2695
      @johanrichter2695 Před 2 lety +5

      @@Noname-67 That is fine for continuous functions, but for other functions you have to use something more general than the Lebesgue integral if you want to recover the usual class of antiderivatives.

  • @gymnasiematematikmedigor5035

    I guess same story for differential equations. We always define a solution on an INTERVAL. Otherwise, we would be able to come up with many more solutions by constructing piecewise functions as shown in the video.

  • @Zxv975
    @Zxv975 Před 2 lety +9

    I was sceptical clicking on this video due to the clickbait-y title, figuring the "trick" would be something extraneous involving non-principal branches or whatever, but instead I learned an interesting fact about a tangible consequence of dealing with disconnected domains. Fantastic. You could easily apply this logic to other piecewise defined function too with disconnected domains.

  • @michaelzumpano7318
    @michaelzumpano7318 Před 2 lety +21

    Thank you for using an actual theorem to explain a result. Most math teachers give a geometric example, which is fine, but they stop there. This made it so clear. Praise to Cauchy for his exhaustive precision.

  • @itzakehrenberg3449
    @itzakehrenberg3449 Před 2 lety +79

    I'm a math prof and have been making this point to my students for years; glad to see someone else is also.

    • @valinorean4816
      @valinorean4816 Před 2 lety +5

      or, as another guy said here, since you don't use indef integrals on disconnected domains (to compute definite integrals), you give two separate antiderivatives on two connected parts

  • @cortexauth4094
    @cortexauth4094 Před 2 lety +20

    This was actually mentioned in Gilbert Strang's Calculus textbook, also the uniqueness thing. And this "abuse" of notation is done in many contexts, like asymptotic growth of functions (representing space or time complexity) in CS texts. I think it's alright if textbooks make it clear which many of them don't sadly

    • @felipevasconcelos6736
      @felipevasconcelos6736 Před 2 lety +2

      The abuse of notation in asymptotic growth is much more egregious, though. It’s insane that someone would choose “=” to represent anything that’s not equality, or even an equivalence relation.

  • @johnchessant3012
    @johnchessant3012 Před 2 lety +36

    Indeed, integrating 1/z in the complex plane with a branch cut (say) on the positive imaginary axis, we have log(-x) = log(x) - iπ for all x > 0. So, restricting to the real axis gives an 'off-balance' antiderivative of 1/x like the one in the video.

    • @MattMcIrvin
      @MattMcIrvin Před 2 lety +2

      Yes! If we take the complex result restricted to the real line, we actually know the difference between the constants on the left and right, and it's imaginary.

    • @MattMcIrvin
      @MattMcIrvin Před 2 lety +1

      (confession: I was a graduate student doing particle physics calculations before I figured this out)

  • @davidn4125
    @davidn4125 Před 2 lety +5

    Wow, I'm a college prof. and I'm just happy to get my students to correctly state on an exam that the antider. of 1/x is ln|x|+c let alone understand that nuance. It's really not worth the effort.

  • @jonnicholls8256
    @jonnicholls8256 Před 2 lety +75

    Great video, I'm feeling so much more confident explaining ln|x| as the integral of 1/x which I've always done with a lot of hand-waving, appeals to the nature of 1/x as an odd function but not much serious discussion. In the future I'll discuss the domain mismatch between ln(x) and 1/x. My students will appreciate this.

  • @DJCray8472
    @DJCray8472 Před 2 lety +12

    Correct. But this is correct for all functions who have poles. So for examples f(x) = 1/x^2 -> F(x) = {-1*x^-1 + C für x0}

    • @DrTrefor
      @DrTrefor  Před 2 lety +4

      Indeed!

    • @tracyh5751
      @tracyh5751 Před 2 lety +12

      This is not only true for functions with poles, but for any function that is continuous on a disconnected domain. The antiderivative of function f(x)=x, where we restrict the domain to be the nonzero real numbers will have the same problem.

    • @writerightmathnation9481
      @writerightmathnation9481 Před 2 lety +2

      @@tracyh5751 Better yet, as I indicated in another reply, it is even reasonable to work with totally disconnected domains, like the rational number field, in which the proper way to state the corresponding theorem is the following:
      Theorem: Let f and g be functions with the same derivative. Then f and g differ by some pseudoconstant function.
      A function c is locally constant at a point p provided that there's an open neighborhood of p on which c is constant, and we say that a function c is locally constant if it is locally constant at every point in its domain. On a connected domain, every locally constant function is constant. (There's a better result available, by the way, and I'll leave it as an exercise 🙂.) We call a function h a pseudo-constant function if its derivative is zero on its domain. Not all pseudo-constant functions are locally constant, although the converse holds. In fact, Charatonik (r.i.p.) and I studied the notion of an absolute derivative, which is closely related to the notion of a derivative (and in the cases considered in this forum, are computed by finding the absolute value of the derivative), and we constructed functions on totally disconnected spaces (like the rational numbers or a cantor set) that are everywhere differentiable, have zero derivative everywhere (and so are pseudo-constants), but are nowhere locally constant, meaning that if p is a point in the domain and U is an open neighborhood of p, then such a function is not constant on U. The heat of the result is that with a base of clopen sets, one carefully constructs a sequence of functions, each of which is locally constant at less points than the previous sequence member, but approximates the previous sequence member everywhere.
      This does serious damage to the uniqueness theorem for differential equations, unless one phrases the uniqueness theorem in terms of equivalence classes whose members only differ by a pseudo-constant.

  • @barometer5156
    @barometer5156 Před 2 lety +10

    I think that ln(x) is a perfectly fine antiderivative to 1/x.
    We just let x ∈ C (it won't actually matter in the end). Now, we can use euler's identity to define -1 as e^(πi),
    and say that every -x
    = e^(πi)*x
    = e^(πi)*e^ln(x)
    = e^(πi+ln(x)),
    so ln(-x) = ln(e^(πi+ln(x))) = πi+ln(x)
    The complex πi is a constant and would be dropped during differentiation (told you it wouldn't matter), and we can say with confidence that
    d/dx(ln(x)) = d/dx(ln(-x)), and therefore
    ∫(1/x)dx = ln(x)+C, no special cases. (edit: well 0 is still not defined but I think we can let that slide)

    • @thatwhichislearnt751
      @thatwhichislearnt751 Před 2 lety +5

      The passing to the complex plane, with the zero removed or a ray removed, introduces a restriction that doesn’t exist on the reals with the zero removed. The continuity on this larger connected set. That is why you get a result that when restricted to the reals gives you a smaller set of solutions.

    • @andrewkarsten5268
      @andrewkarsten5268 Před 2 lety +1

      You should be careful doing this if you haven’t taken complex analysis. As the other comment stated, your perspective added restrictions that weren’t previously there, therefore you get a smaller solution set. In order to use ln in the complex plane, you need a lot to get there first

  • @marcevanstein
    @marcevanstein Před rokem +3

    Great job pointing out a little subtlety that helps elucidate/remind students of what the +C was all about in the first place.

  • @Nathan511
    @Nathan511 Před 2 lety +20

    For practical purposes you will be on one branch or the other. The relationship between the branches is of no consequence in all the applications that I know of. I’d be interested to hear if you can think of any. Another neat interpretation is to say that the absolute value is unnecessary if you allow natural log to be complex valued and you allow the constant of integration to be complex. Cool video.

    • @DrTrefor
      @DrTrefor  Před 2 lety +7

      I'd say the main "practical" point is just reinforcing the normal idea that you can't just integrate between two values, you have to check the domain first to picture you don't have some improper integral. That point is well made in normal calculus exposition, but this helps reinforce it I think.

    • @danielsebald5639
      @danielsebald5639 Před 2 lety +2

      Not just unnecessary, wrong. d/dz ln|z|=Re(z)/|z|^2

  • @archismanrudra9336
    @archismanrudra9336 Před 2 lety +11

    You have this because the real calculus indefinite integral mixes up two complex branches of the same analytic function, which is why you were able to find your 2 constant antiderivative

  • @juanlemod
    @juanlemod Před 2 lety +16

    I simply accepted on faith that the indefinite integral of 1/x is ln|x| + C. It has been so ingrained in me. However, I’ve noticed some of my professors don’t use the absolute value occasionally.
    Right now I’m taking an Analysis course and the second part of my upper-division of my proof-based Linear Algebra course.
    Ever since Calculus, I always struggled with functions that are defined piece-wise. I don’t know why, but anytime I see one, my heart instantly drops and I immediately assumed right away, before even really understanding it, that this problem is probably going to be very difficult or I’m going to be too dense and stupid to solve it.

    • @andrewkarsten5268
      @andrewkarsten5268 Před 2 lety +1

      Just take them as the separate functions on the intervals they’re defined on, assuming they’re broken into intervals. Piecewise isn’t hard, it’s more mental struggle than actual math capability struggle. Just try to shake that thought process

    • @ericy1817
      @ericy1817 Před 2 lety +2

      I mean, depending on your analysis course, ln(x) is sometimes just defined as ln(x) = int_1^x 1/t dt for x in the domain (0, infinity), so there's no more justification really needed to show that the antiderivative of 1/x is ln|x| (or some transformation of ln|x|). From there, you can define its inverse exp(x) and find all the relevant properties of both.

    • @juanlemod
      @juanlemod Před 2 lety

      @@andrewkarsten5268 I think you have just described me perfectly. It’s more of my low self-confidence in my mathematical abilities stemming from my K-12 education where I would fail most of my math classes every year and make them up in my summer. And here I am, just recently graduating with a mathematics degree..

    • @juanlemod
      @juanlemod Před 2 lety

      @@ericy1817 I think you may be correct because I think that is how my professor defined, if I remember correctly.
      The good news is that I think I passed my analysis course. I’m still waiting for the final grades to be posted, but I think I did sufficiently well to pass with a passing grade.
      Honestly, even though I more than likely passed, I feel like I didn’t master the material the level I would have liked. I felt like I barely scrapped by because I didn’t have sufficient time to study or learn the material since I learn at such a slow pace given my learning disabilities. I love math, even though I consider myself to be terrible and slow at it.

  • @Cannongabang
    @Cannongabang Před rokem +1

    Another important aspect is that these definitions should be "useful" hence if integrated in an interval (a,b) they should make sense (satisfying the fundamental theorem of integral calculus). You cannot integrate 1/x over an interval which contains 0 as an inside point, hence this is never an issue.

  • @professorje7813
    @professorje7813 Před 2 lety +1

    One has to be flexible with the notation. When one writes the family of antiderivatives of 1/x as ln|x|+C, one has to recognize that since the domain of ln|x|+C is comprised of disjoint intervals, one is free to choose different values for C on each of the intervals. This is implicit in the use of the term "arbitrary" in "arbitrary constant."
    By and large this discussion is about notation, and how best to use it to avoid unnecessarily cumbersome presentations of families of continuous curves in R^2.

  • @JohnSmith-ut5th
    @JohnSmith-ut5th Před 2 lety +4

    You can do this for *any* function with asymptotes, not just 1/x.

  • @whatitmeans
    @whatitmeans Před 2 lety +9

    I believe this is closely related to the fact that uniqueness of solutions is broken when diff. eqs. has a singular point (Non-Lipschitz)... look the example of y'=sqrt(y) in Wiki page for Singular Solution

  • @schizoframia4874
    @schizoframia4874 Před 2 lety +1

    And just to be clear: I can’t cut a peice of a parabola (a,b), translate it to a peicewise function, and shift the parabola by D on the interval (a,b).

  • @orangebottle7061
    @orangebottle7061 Před 2 lety +1

    Not an open domain..but it's completely satisfied in the existing domain its has (-infinity, 0) or ( 0, infinity)....so that MVT is totally satisfied in specific domain intervals..all we need to specify that particular intervals when ever the question arises

  • @CauchyIntegralFormula
    @CauchyIntegralFormula Před 2 lety +2

    We can generalize this idea with what I like to call a "locally constant" function. The antiderivative of 1/x is ln|x| + C(x), where C(x) is locally constant function, that is, a function for which C'(x) = 0 at every point of its domain. For a function defined only on an interval, the locally constant functions are just the constant functions, but when the domain is disconnected, the locally constant functions may be a different constant on each connected component of the domain

  • @leonkayombo4316
    @leonkayombo4316 Před rokem +4

    DR Trefor must be courageous to say the least.
    There's need to take responsibility even in mathematics.

  • @josephmathes
    @josephmathes Před 2 lety +2

    If I understand correctly, there's nothing about this argument that's specific to ln|x| and 1/x. You could apply it to any function with any discontinuities

    • @robertslayerofmonsters1302
      @robertslayerofmonsters1302 Před 2 lety +2

      Or even without discontinuities. Take for example f(x) = |x|, which is everywhere continuous, though not differentiable at x=0. The derivative of |x| is x/|x| for any non-zero x, but this is also the derivative of any piece-wise defined function such as f(x) = |x|+C1 if x>0 and f(x) = |x|+C2 if x

  • @natepolidoro4565
    @natepolidoro4565 Před 2 lety +2

    So I guess that an indefinite integral gives you a family of functions where the number of constants is equal to the number of connected components of the domain.

  • @nedeljkostefanovic1980
    @nedeljkostefanovic1980 Před 2 lety +1

    Calculus textbooks are fine. The antiderivative is defined on connected domains only. Indefinite integral over R without 0 is undefined.

  • @felipelopes3171
    @felipelopes3171 Před 2 lety +6

    Sorry to disappoint you, but even though I studied engineering, my calculus professor, a brilliant person who's unfortunately left us (Jürgen Geicke) did explain this to me correctly, in the first course I ever had at a university.
    In his tests, he would often put questions of functions like these, that had singularities, and required us to write down the intervals where the solution was valid. For the integral of 1/x, the correct answer was ln x + c for (a,b) with b > a > 0 and ln(-x) + c for (a,b) with a < b < 0.
    That's because, for him, the antiderivative was defined as the set of all functions F(x) such that F(b)-F(a) gives the integral on the interval (a,b), and the integral of 1/x is not even defined if a < 0 < b.
    To be honest, at the time I was just a dumb student and got many of these questions wrong. Nevertheless, I can disprove your conjecture. At my first ever calculus course, I studied the correct version. Thanks a lot, Prof. Geicke!

  • @masonskiekonto590
    @masonskiekonto590 Před rokem +1

    Couldn't the same argument be made about ANY functions with discontinuity in the domains?
    That is, if a function is continuous on open intervals then each interval can have a unique constant and the derivative would still match the whole domain.
    In this sense, it's not that ln|x| is technically incorrect, but every function with discontinuity is, as well as ln|x|.

  • @etaoinshrdlu7247
    @etaoinshrdlu7247 Před rokem

    I don't deny the importance of paying attention to what is happening at x = 0, but there is a distinct advantage to using the same C for both x0. Suppose the integral is from a to b and a

  • @lexyeevee
    @lexyeevee Před 2 lety +2

    i suppose as long as we're nitpicking, you could also define f(0) = E without changing the derivative

    • @DrTrefor
      @DrTrefor  Před 2 lety +1

      In this case, the function wouldn’t be differentiable at 0

    • @lexyeevee
      @lexyeevee Před 2 lety

      @@DrTrefor yeah, so the value at 0 wouldn't affect the derivative. right?

  • @gregsouza7564
    @gregsouza7564 Před 2 lety +1

    ln(-x) is equal to ln(x) +i*pi i*pi is a constant, you don't need abs val

  • @marshallsweatherhiking1820

    In general, whenever you have a finite number of discontinuities you can use a different C for each continuous part of the domain. If the number of discontinuities is infinite then you have an even bigger family of antiderivatives.

  • @Czeckie
    @Czeckie Před 2 lety +1

    frankly, asking for the antiderivative on a disconnected domain is not a well-posed question. If we were in C then we can discuss the nature of the point singularity and this basic example is already connected to such involved ideas like analytic continuation and monodromy.

  • @noway2831
    @noway2831 Před rokem +2

    Imo the complex-valued logarithm solves a lot of these problems. ln(-x) = i pi + ln(x) (principal branch) and i pi is a constant function (assuming your domain does not include zero)

  • @frankjohnson123
    @frankjohnson123 Před 2 lety +3

    I quite liked this video. I agree with some of the comments that very rarely will the typical restriction of the family of antiderivatives matter for practical applications; however, I think "complexifying" the answer in this case actually gives more insight as to how you should treat disconnected domains and makes the whole thing feel less hand-wavy.

  • @chrisglosser7318
    @chrisglosser7318 Před 2 lety

    Q: “what is \int_(-1)^(1) dx/x?”
    A: “whatever you want it to be.”
    (e.g. “indeterminate”)

  • @JonathanMandrake
    @JonathanMandrake Před 2 lety +2

    I feel like it's much more sensible to define the function F only for positive (or, if necessary, nonnegative) numbers, since you can't even integrate over 0, so either way you get one or two integrals from 0 to some x, and only the sign needs to be determined.

    • @DrTrefor
      @DrTrefor  Před 2 lety

      While it’s true you can’t do a proper integral over 0, with absolute values you can still integrate from say -2 ti -1

  • @magic8ball237
    @magic8ball237 Před rokem +1

    this is also the case for integral of 1/x^2 right? We can move the pieces of the resulting -1/x similarly to how we did it here. If this reasoning doesn't hit a wall somewhere, then we have a BUNCH of functions where the anti-derivative has at least two degrees of freedom.

    • @DrTrefor
      @DrTrefor  Před rokem +2

      exactly! Any time the domain is disconnected like this it works

  • @Boxland_
    @Boxland_ Před 2 lety +2

    So the indefinite integral of tan(x) can be written as a piecewise function composed of infinitely many unique functions?

    • @DrTrefor
      @DrTrefor  Před 2 lety +2

      Exactly! 1/x is just a template function here

    • @SmallSpoonBrigade
      @SmallSpoonBrigade Před 2 lety

      Pretty much anything that has infinity is going to require you to split it there, otherwise the integral would likely just be infinity. But, if you do split it, you get a couple of improper integrals that may be finite, depending upon the specifics..

  • @mtaur4113
    @mtaur4113 Před 2 lety +1

    The FTC proper doesn't apply to 1/x over an interval containing zero, so the hazard is brushing this under the rug. So since you shouldn't include zero anyway, the antiderivative with a single +C is fine because the two pieces aren't supposed to be connected.
    There's also the Cauchy principal value generalization, but this is a very fragile and finicky thing. It agrees with the result gotten by improperly evaluating the antiderivative across an interval containing zero. But the Cauchy principal value is fragile and does not play well with any sloppiness such as u-substitutions that could asymmetrically distort around the singularity.
    Just be really skeptical if you integrate around a singularity. Sometimes there might be a reason for it, but it's hazardous and it's not really clear that any one generalization should own the right to calling itself the right one.

  • @glennscott7423
    @glennscott7423 Před 2 lety +3

    As a calculus teacher, I am happy to say that this is covered in our textbook and I do talk about it in class... and then we just say +C anyway because of MVT corollary that was mentioned in this video.

    • @carultch
      @carultch Před rokem

      Do you know of any examples of functions with vertical asymptotes and convergent integrals on both sides, whose most obvious choice for an antiderivative has a jump discontinuity?
      I'm trying to find a function that motivates the need to split the integral at the vertical asymptote and carry out two improper integrals. Every example I come up with, usually has continuity that is salvaged when taking the anti-derivative, and you can get away with ignoring the vertical asymptote, and still get the correct answer.

  • @kelrugemschildhand1831
    @kelrugemschildhand1831 Před 2 lety +3

    More general, one integrates a continuous function defined over a one-dimensional manifold with more than one connected component. The statement about the set of all antiderivatives is then individually for each connected component :) So, it is actually quite common in differential geometry to be aware of that, while I agree that this detail is often omitted in first semesters :D

  • @natevanderw
    @natevanderw Před 2 lety +10

    I am a calculus professor and I admit, I have been lieing both to my students and also to myself, but no more!
    From here on out you have my promise that I will demand my students give full anti derivatives. This will of course include spreading the anti derivatives of every function with i discontinuities into a piece wise function, with each ith piece equipped with a new constant $C_i$. That will show those calculus students who is boss!

    • @cryora
      @cryora Před 2 lety +1

      Is it fair that you made professor having made this mistake yourself, and your students aren't allowed to make this mistake to pass your class?

    • @natevanderw
      @natevanderw Před 2 lety

      @@cryora I think that as long as I go over it in class a few times and on some practice exam problems, than it is fair game.

  • @robertslayerofmonsters1302

    So, why did you single out the ln|x| function? The things that you said about ln|x| could be said about any elementary function with a hole in the domain, such as for example tan(x), cot(x), sec(x), etc. In fact, we don't even need a hole in the domain for your argument to hold. Take for example f(x) = |x|, which is everywhere continuous, though not differentiable at x=0. The derivative of |x| is x/|x| for any non-zero x, but this is also the derivative of any piece-wise defined function such as f(x) = |x|+C1 if x>0 and f(x) = |x|+C2 if x

  • @leefisher6366
    @leefisher6366 Před 2 lety +1

    0:09 - Yes, I was taught this. In particular when X=cabin, the integral of an inverted cabin is a log cabin. Sorry, I was forgetting the C. Log cabin plus sea... a house boat.

  • @zsoltnagy5654
    @zsoltnagy5654 Před 2 lety +2

    So instead of stating, that the anti-derivative of 1/x is the natural logarithm, we should rather state, that the anti-derivative of 1/x is the chain function of the natural logarithm and the absolute function plus C•[indicator function on (0,∞)] plus D•[indicator function on (-∞,0)]?
    Yeah, I guess, that's more accurate.

  • @gregstunts347
    @gregstunts347 Před rokem

    Technically this is not unique to the antiderivative of 1/x. It also applies to any reciprocal function that is asymptotic. A way to resolve this issue is to broaden the definition of +c to a “constant function”, with a derivative of 0 over the domain of the function. This allows the constant to “change values” as it passes asymptotes, to define any potential antiderivatives of f(x).

  • @polymathmaktaba9092
    @polymathmaktaba9092 Před 2 lety +1

    The same could be done to any function. Anti derivative of f(x)=1 is then not x+C either, because you could break it up anywhere and shift the parts up or down...

    • @sjth2497
      @sjth2497 Před 2 lety +1

      But then the anti derivative won't be continuous at the point where you change constants so you won't be able to take a derivative there. This doesn't matter for integrating 1/x or any 1/x^k (k >= 1) as they're not defined at zero so do not need to be differentiable there. So as long as we have a hole to take advantage of, we can put in a split and make it so that the resulting non-differentiable point lines up with the original undefined point.

    • @polymathmaktaba9092
      @polymathmaktaba9092 Před 2 lety

      @@sjth2497 oh right. Thanks for the correction.

  • @adb012
    @adb012 Před 2 lety +4

    Does this really make sense? Would you do the same with 1/x^2?
    Or tan (x) with an infinite-parts piece-wise antiderivative function for the infinitely many real numbers at which tan(x) is not defined, and an infinite numbers of arbitrary constants, one for each part?

    • @schweinmachtbree1013
      @schweinmachtbree1013 Před 2 lety

      you're spot on

    • @DrTrefor
      @DrTrefor  Před 2 lety +4

      Exactly. The specific choice of 1/x was just as an example, any function whose domain is a disjoint union of intervals has the same issue.

    • @adb012
      @adb012 Před 2 lety

      @@DrTrefor ... Wow, interesting. I was about to ask how you deal with calculation of areas that include the point of discontinuity (if the area remains convergent) but then I realized that you need to break the integral in the same intervals at each point of discontinuity anyway. So for example if you want the are under 1/x^2 between -2 and 3 you have to find the area between -2 and 0 plus the area between 0 and 3; you cannot do it in one step. So using different arbitrary integration constants for each segment would not affect the result.

  • @jamescoughlin8856
    @jamescoughlin8856 Před 2 lety +4

    You crossed from one branch to another. This is once again support for introducing complex variables to teach calculus. It avoids the pathologies that seem to amuse those stuck in the reals, but again, I don't know if it provides additional insight.

    • @MattMcIrvin
      @MattMcIrvin Před rokem

      The whole business became much less awkward and strange when I realized that for negative real numbers ln(x) = ln(-x) + iπ. On the complex plane we can just say that the integral of 1/x is ln x + C and that strange absolute value function goes away. But restricting it to real numbers gives us another degree of freedom by splitting the domain in two.

  • @YuriyNasretdinov
    @YuriyNasretdinov Před 2 lety +2

    Thanks for the video!
    In our lectures I distinctly remember that we were told that indefinite integral of 1/x is just ln(x) + C, without the module, and I always just assumed that this just means that x > 0 as well.
    However much later we were basically given the same formula for integral of 1/z and it would be just ln(z) + C in a complex plane, with no limitations except z=0. And as someone shown in the comments, it is a correct formula as the difference between ln(z) and ln(-z) is just i*PI.
    So I guess the moral of the story is that everyone is taught slightly differently and there aren't necessarily any problems with someone's "textbook" explanation after all...

    • @cryora
      @cryora Před 2 lety

      ln(z) = ln(|z|exp(iarg(z)))= ln|z| + iarg(z)
      Absolute value becomes complex modulus and the phase factor is added to the constant.
      If you can have two different constants on the real line for the positive and negative domains, how do you ensure it's continuous when extending to the complex plane?

    • @YuriyNasretdinov
      @YuriyNasretdinov Před 2 lety

      @@cryora it's not continuous on real plane though. The value of ln(0) is undefined, so the fact that constants are different doesn't matter

    • @cryora
      @cryora Před 2 lety

      @@YuriyNasretdinov I mean continuous on the complex plane except z=0. If you have two different constants for x0 on the real line, there must be intermediate values when you go off the real line and into the imaginary axis.

  • @emma5068
    @emma5068 Před rokem +1

    I always preferred just plain old natural logarithm of x, plus C of course, as the proper antiderivative. No absolute value. For negative values, all the natural logarithm values will have an imaginary part equal to Pi.
    If, using this, you take an integral for an area of 1/x between two negative real values the imaginary parts cancel giving a real answer. If one value of x is negative and one is positive, the imaginary part doesn't cancel, signifying nicely they are not in the same interval.
    The whole business of using the absolute value takes away the simple power of letting the natural logarithm stand by itself.

  • @milesman1001
    @milesman1001 Před 2 lety

    Just conjoined both the pieces in the definition and a general form of every anti derivative of 1/x is ln|x|+C*sgn(x)+D

  • @probamatica7918
    @probamatica7918 Před 2 lety +1

    I like this example! but I am wondering in which problem could be useful... normally one works only on one side, either positive or negative. do you (or someone reading this) know a problem were both sides are important? 🤔

  • @skylardeslypere9909
    @skylardeslypere9909 Před 2 lety +1

    You can obviously also do this to any pair of functions (f,F) where they are both undefined at zero
    Edit: in fact, you can do this to any pair of functions (f,F) where they are both undefined at the same x value, for any real x. You can then shift the "left" side of F and the "right" side of F by different constants, yielding the same derivative still.

  • @JCCyC
    @JCCyC Před 2 lety

    Dude. That bugged me when I first learned Calculus. And I'm sure I was not the only one.

  • @matheusjahnke8643
    @matheusjahnke8643 Před rokem

    I had weird encounter with constants like that when integrating cos(x)sin(x)...
    I can substitute u = sin(x), du=cos(x)dx... so the integral is u²/2+C=sin²(x)/2+C
    But I can substitute u = cos(x), du = -sin(x)dx... so the integral is -u²/2+C=-cos²(x)+C
    My first thought as a student is that something was wrong.
    But... turns out
    sin²(x)/2+C=(1 - cos²(x))/2+C=1/2 - cos²(x)/2+C=-cos²(x)/2 + (C +1/2)=-cos²(x)/2 + D
    D=C+1/2 is a constant if C is a constant
    So yeah, there can be more than one anti-derivative for the same function and they don't need to have the same form.

  • @ieatgarbage8771
    @ieatgarbage8771 Před 2 lety +1

    Oh yea i asked my math teacher about this like 8 months ago and he just said “yea that’s right” and moved on.
    My thought process was just that infinity minus infinity is required to integrate from -1 to 1, and that’s indeterminate, so it could just be any value, and there’s not much information you could get from integrating on that interval anyways

  • @henryparris9221
    @henryparris9221 Před 2 lety

    ln(-x)+C can be written as ln(Ax) where ln(A)=-C and ln(x)+C' can't be written also as ln(A'x) all that you've done is take two different arbitrary constants and split the graph in half

  • @matematicaspanish8301
    @matematicaspanish8301 Před 2 lety +1

    You make it sound like there's something special about ln(abs(x)) but it's really applicable to any function that isn't continous in a single point. If you integrate tan(x) you have infinite variations for every continous part of -ln(-abs(cos))
    Though I hadn't heard that definition of the indefinite integral, before. That's worth checking, so thanks.

    • @DrTrefor
      @DrTrefor  Před 2 lety +2

      Absolutely, 1/x is just the simplest example

  • @Seltyk
    @Seltyk Před 2 lety +1

    This sounds like making calculus complicated just for the sake of being technically correct. Wouldn't a sane person just write two integrals, one for +x and one for -x?

  • @dowmanvarn7160
    @dowmanvarn7160 Před 2 lety +1

    Why stop with the logarithm? What about the antiderivative of the tangent? Or of any rational function with a vanishing denominator that breaks up the domain of the function into disjoint intervals? Your argument appears more general. And I agree with a commenter below: For many practical considerations, we only work on an interval where the function is continuous so this concern does not introduce a serious impediment.

  • @oidbio2565
    @oidbio2565 Před 2 lety +5

    I don’t know of any calculus class that doesn’t go into a discussion of improper integrals. A math instructor shouldn’t be teaching calculus unless they understand the necessity of this section to the FTC. The theorem requires the function f(x) = 1/x to be continuous on the closed interval [a, x]which requires that it be defined at every point in the closed interval [a, x] for any value of x in [a, b]. So that interval could be to the left of 0, or to the right of 0, but can’t be on both the left and right sides of zero. I would change the title. Good video though, otherwise! It’s worth talking about that particular antiderivative and It’s cool that you found an antiderivative other than the one most often stated in calculus texts.

    • @andrewkarsten5268
      @andrewkarsten5268 Před 2 lety

      FTC only applies to definite integrals, he was talking about indefinite integrals

    • @oidbio2565
      @oidbio2565 Před 2 lety

      @@andrewkarsten5268 That’s not true. FTC, Part 1 uses a function that looks like a definite integral with variable upper limit but it is needed to establish a connection between the derivative function and the integral function. The connection is not guaranteed to exist if the one of the functions is not continuous on a family of embedded intervals.
      If you don’t want to accept the definite integral with a variable upper limit as the function whose derivative is 1/x then, you shouldn’t bother to talk about the connection between 1/x and ln |x|.

    • @andrewkarsten5268
      @andrewkarsten5268 Před 2 lety

      @@oidbio2565 a couple of things. Derivatives and indefinite integrals are operators, not functions. Indefinite integrals are saying find the family of antiderivatives to this function. Definite integrals are an anti derivative evaluated at the endpoints. When you pick an anti derivative then evaluate at the endpoints, the +C cancels out. In FTC, it literally says ∫_a^b f(x)dx=F(b)-F(a) where F(x) is AN ANTIDERIVATIVE OF f(x). Some antiderivatives can be expressed as a definite integral with x in the upper bound, yes, but not all antiderivatives are defined as a definite integral with variable upper bound. It’s the other way around, definite integrals in FTC are based off the family of antiderivatives. Yes the proof of FTC considers a variable upper limit, but what that shows is that the definite integral is AN ANTIDERIVATIVE evaluated at the endpoints. It does not say anything about every antiderivative needing to be based on a definite integral.
      Also, if you’re so die hard on picking a starting place, ln(x) is the integral from 1 to x for all x in (0,∞), so the fact you can’t chose zero doesn’t affect anything. You can actually chose the lower bound to be any number in (0,∞), and get any +c you want. But this is not the case for every function. A great example of where this fails is cos(x). sin(x)+5 has the derivative cos(x), however, there is no starting point on any interval such that you can represent sin(x)+5 as an integral of cos(x) with a variable upper bound.

    • @oidbio2565
      @oidbio2565 Před 2 lety

      @@andrewkarsten5268 Andrew, I know they are operators. Have you looked at the first part of the FTC at all? Do you know the proof? Have you ever heard of a function that USES the integral operator as part of it’s definition? And do you know that an operator’s input and output spaces are function spaces? And are you aware that the video was about specific output of the integral operator for input 1/x?
      by the way, starting place is arbitrary.
      And I assume you know that the derivative of a constant (which is the result of a definite integral) is zero. So if you are saying that the first part of FTC only has to do with definite integrals, then the conclusion it makes about f(x) = G’(x) = 0 is totally bogus and trivial.

    • @andrewkarsten5268
      @andrewkarsten5268 Před 2 lety

      @@oidbio2565 you clearly didn’t read my response given what you responded with. How about you actually read what I said instead of being a condescending *ss. Yes I know all of those things, I’m a math major about to start grad school. FTC is child’s play for me, so how about you make sure you actually understand it

  • @andyonions7864
    @andyonions7864 Před 2 lety +1

    The sum of the squares of the shorter two sides of a right angle triangle are equal to the square of the hippopotamus.

  • @orisphera
    @orisphera Před 2 lety +1

    My favourite values of C and D are 0 and pi*i respectively

  • @GreenMeansGOF
    @GreenMeansGOF Před 2 lety +2

    So is it the same thing with integral of sec^2(x) where instead of tan(x)+C now we have a bunch of offset tangent curves?

    • @DrTrefor
      @DrTrefor  Před 2 lety +1

      Exactly! 1/x is just the simplest example

  • @dannierockz
    @dannierockz Před 2 lety +1

    I just graduated from UC and realized that we missed each other by one year ... Go Bearcats :)

  • @benjaminshropshire2900
    @benjaminshropshire2900 Před 2 lety +2

    Does it have meaning to talk about the definite integral of 1/x over a span that crosses zero?
    If you take a definite integral to be the "area under the curve" and assume that the limits of 1/x as X->0 from each side are equal and opposite and then conclude that implies those two limits sum to zero, then I think there should be a well defined definite integral for any span that doesn't end at zero inclusive. Furthermore that definite integral can be found in the normal way by using the classic definition for the indefinite integral of 1/x.

    • @carultch
      @carultch Před rokem

      Only when the integral converges as you approach the asymptote, does it even make sense to talk about a definite integral crossing a vertical asymptote. The integral of 1/x diverges on both sides, so you can't integrate it across the singularity.
      For instance, the integral of 1/(x-1)^(1/3), from 0 to 9. The indefinite integral is 3/2*(x - 1)^(2/3) + C. Or more accurately per this video, it should be 3/2*(x - 1)^(2/3) + C + D*H(x-1), where H is the Heaviside step function, and D is another arbitrary constant.
      Keeping it simple and using the conventional answer for the indefinite integral, you can evaluate it across the two bounds. You will get the same answer as you would if you split the integral in two segments, and add the two segments together. The reason is that the real valued versions of (x-1)^(2/3) will connect to each other with continuity on both sides of x=1, and form a cusp at x=1, instead of a vertical asymptote.

  • @siriusblack7125
    @siriusblack7125 Před 2 lety +1

    Can you not just split any funktion into different parts and have a different derivative funktion by using two different constants and say what the derivative is at the point you split them.
    ex. Integral(2x)=x^2+c
    but also Integral(2x)={x^2+a for xo; 0 for x=0
    ?

    • @DrTrefor
      @DrTrefor  Před 2 lety +1

      At the point of the split it wouldn’t be differentiable, but it does work for amy function with non-differentiable points like 1/x or |x|

  • @greg55666
    @greg55666 Před 2 lety +1

    I think this is wrong. The anti-derivative is defined ON AN INTERVAL. The anti-derivative of 1/x is not defined on (-∞,0) ∪ (0,∞).
    Having said that, Stewart defines the general anti-derivative of 1/x exactly as you do here, with two separate constants, C_1 and C_2 for two separate intervals, x0.
    The anti derivative of 1/x is not defined for (-∞,∞) ∖ {0}, because that is not an interval.

    • @DrTrefor
      @DrTrefor  Před 2 lety +2

      This is fine but slightly shifts my criticism, that many books ignore mentioning this restriction

  • @luismijangos7844
    @luismijangos7844 Před rokem +1

    Amazing! I opened the video very skeptically and my mind was blown!!!!!

  • @kennethgee2004
    @kennethgee2004 Před 2 lety +1

    ok but the function of abs(x) is defined as a piece wise function as well, so this argument fails. Also the arbitrary constant is equally applied to the family of functions just like the integral of 2x dx is x^2+c. You have to add the constant equally to the family of functions.

  • @CapeBone
    @CapeBone Před 2 lety +1

    Eh, I see your point. It seems like a technicality -- which is certainly an interesting thought. But I wouldn't go as far to say I was lied to. The title is too click baity

  • @aldomunozvazquez
    @aldomunozvazquez Před 2 lety +4

    We need to be clear on the fact that the right-hand side of the differential equation
    f'(x) = 1/x
    doesn't satisfy the Lispchitz condition on any (0,b) nor (a,0).
    Besides, f'(x) is not integrable on any neighborhood containing 0.

  • @Kuratius
    @Kuratius Před rokem +1

    Another cool thing is the constants don't have to be real. Try -2*i*arctan(exp(ix)) and integral of sec(x) for example. Though I've been told that asking a student on an exam if the former is an antiderivative of the latter amounts to torture.

  • @urnoob5528
    @urnoob5528 Před 11 měsíci

    negative logarithm is defined though
    in imaginary
    and yes e^x can be negative
    x=i*pi

  • @chriszablocki2460
    @chriszablocki2460 Před 2 lety +1

    I just assume everybody is lying to me, anyway. I'm rarely pleasantly surprised and wrong. 🤔

  • @mad_vegan
    @mad_vegan Před 2 lety

    Another fun fact is that this formula is only valid if x is a number (a dimensionless value). If x has units, then ln(x) doesn't make sense, but the integral of 1/x does. So the antiderivative is actually ln(x/C), where C has the same units as x. Note that this is equivalent to ln(x) + C if x is dimensionless.

  • @Gabriele_Oliva
    @Gabriele_Oliva Před 2 lety

    My teacher taught me that |f(x)|= f(x) if f(x)>0 or -f(x) if f(x)

  • @nathanborak2172
    @nathanborak2172 Před 2 lety +1

    You're a tricky guy, Trefor. A real tricky guy.

  • @GaussianEntity
    @GaussianEntity Před 2 lety +1

    Counterpoint: I'd argue ln|x| + C already covers these extra cases. We know from algebra that f(x) = |x| can be written as a piecewise function, so it's not difficult to see that ln|x| can also be written as a piecewise function. And as is customary when splitting up the constant C, we rewrite this constant on both parts of the piecewise function as C1 and C2. They need not be equal. With this setup, you can write every kind of piecewise function whose derivative is 1/x while preserving the original notation and equation for the integral of 1/x.

    • @DrTrefor
      @DrTrefor  Před 2 lety +1

      I’m fine with this, but since most students aren’t thinking this when they write the plus C there is still something of pedagogical benefit

    • @carultch
      @carultch Před rokem

      @@DrTrefor Most students probably don't understand why we write the +C in the first place. They just see it as something they have to do, and will lose marks for omitting it, without understanding why. Especially when they use it for definite integrals, and can get away with omitting it.
      I have an example of a real life application for keeping the +C around, that you may use as you see fit. The real life function isn't necessarily sinusoidal, but it is periodic nonetheless, and the same idea applies. I made up the example with a cosine function to keep the math simple:
      "A battery experiences a daily cycle of loading and charging, where the power to the battery in kW at each hour of the day (t) is given by P(t) = 8*pi*cos(pi/12 * t). It is desired to keep the battery operating between 24% and 88% of its full capacity. Determine the full battery capacity and the function E(t) for the state of charge in kilowatt-hours."

  • @indianawilson6973
    @indianawilson6973 Před 2 lety +1

    I'm not a huge fan of this conclusion, because it's actually a general statement that can be applied to all functions at all points.
    Because the derivative is defined as a limit, you can take any antiderivative function, make it piecewise discontinuous by shifting parts of it up and down arbitrarily, and not affect the derivative of any point - be they the points of discontinuity, or the points nearby. Thus the integral of that antiderivative will still always equal the same function.
    Thus, really, ∫f(x) dx = { F(x) + C if x ∈ D
    { ...
    { ...
    For all functions f, constants C, and all domains D.
    I'm sure you could come up with a pathological domains, D, where this doesn't hold, because you're able to break the limit function, but generally speaking this is the case for all domains, constants, and functions.
    This logic is just well disguised in the case of ∫1/x dx, as the points being shifted up and down are already discontinuous to negative infinity.

    • @DrTrefor
      @DrTrefor  Před 2 lety +1

      It stops being differentiable at such a point though. You need it to already be not in the domain to make the trick work.

    • @indianawilson6973
      @indianawilson6973 Před 2 lety

      @@DrTrefor My bad, I realized my error. It only works on functions that already have such a point of discontinuity.

  • @quantum_immortal69
    @quantum_immortal69 Před rokem

    I must be going crazy. Somebody please explain how ln|x|+C is a satisfactory replacement for ln(x)+C for x>0 and -ln(x)+C (or ln(1/x)+C) for x

  • @leprechaunos
    @leprechaunos Před rokem

    6:23 that is basically what absolute value means and is defined.

  • @youteubakount4449
    @youteubakount4449 Před rokem

    I didn't know you could take a derivative over a domain where a function is not continous... I'm pretty sure ln(|x|)+C is valid over every interval where the definition applies (ie intervals that do not contain 0)

  • @xrhsthsuserxrhsths
    @xrhsthsuserxrhsths Před 2 lety +1

    So all antiderivative equivalence classes are defined in connected components of the domain and then they are added, right?

  • @JCCyC
    @JCCyC Před 2 lety

    The same annoyance happens every time there is a discontinuity. Get me the antiderivative of tan(x).

  • @Jawman5070
    @Jawman5070 Před 2 lety +2

    Never heard corollary pronounced like that

    • @DrTrefor
      @DrTrefor  Před 2 lety +2

      It’s a US vs UK thing I believe (and I’m the weirdo Canadian in the middle)

    • @Jawman5070
      @Jawman5070 Před 2 lety

      @@DrTrefor all good, more so a TIL thing (not like that word comes up so often that it’s a difference we’d hear often). Thanks for the video and the response!

  • @Zxv975
    @Zxv975 Před 2 lety

    I was sceptical clicking on this video due to the clickbait-y title, figuring the "trick" would be something extraneous involving non-principal branches or whatever, but instead I learned an interesting fact about a tangible consequence of dealing with disconnected domains. Fantastic.

  • @user-of9sr8bm9i
    @user-of9sr8bm9i Před 2 lety

    Recall that an antiderivative is function F s.t. F’(x)=f(x) closed interval.
    While an indefinite integral is integrating a Riemann integrable function f from a to z, a is basepoint.
    Of course, note that if a function f is continuous on [a,b], then its indefinite integral is the same as its antiderivative.
    But this also implies that an indefinite integral needs not to be an antiderivative.
    (Here check out sign function and Thomae’s function.)
    So it is just normal to have indefinite integral of 1/x not equal to its antiderivative. (Meanwhile in each connected domain, its indefinite integral IS its antiderivative)
    And that’s why we have two forms of fundamental theorem of calculus.

  • @cmilkau
    @cmilkau Před 2 lety

    I agree this causes lots of confusion. They should really teach this as ln |x| + C[x0], demonstrating the discontinuity actually makes this behave more like two functions rather than one.

  • @maburwanejohannes4647
    @maburwanejohannes4647 Před 2 lety

    Prof I would be happy if you could answer this question in your videos and that is :
    The derivative of ln(x) is 1/x assuming x>0, the limit of the derivative 1/x as x approaches infinity is 0 this then tell us that the function ln(x) as x approaches infinity approaches a constant value but we know that is not the case, when we take the limit of ln(x) as x approaches infinity then ln(x) also approaches infinity. Please make me understand what am I doing wrong.

  • @chedddargoblin
    @chedddargoblin Před 2 lety +1

    Can’t we do this with any function that has a discontinuous interval? If f(x) is the antiderivative of f’(x) on (-inf,a) and (a,inf) then you can make a piecewise solution like f(x)+C xa?

  • @MichaelRothwell1
    @MichaelRothwell1 Před 2 lety

    One way to look at the problem of finding the anti-derivatives of 1/x is to compare two anti-derivatives. Suppose f'=g' on the domain of 1/x, R\{0}, then f'-g'=0, and h'=0 (where h=f-g) on R\{0}. It is then easy to see that although h is constant on each of the intervals ]-∞,0[ and ]0,∞[, these two constant values don't need to be the same. It was this perspective (solve the equation y'=0 on R\{0}) that led me to understand this issue a few years ago.
    One textbook that handles this issue well is J Stewart's Calculus (as someone else has already commented). The anti-derivatives of 1/x are correctly discussed, and when a table of anti-derivatives is presented with "+C" in each case, the caveat is given that each formula applies over an interval.
    A spectacular example of a function where multiple constants are needed to correctly describe its anti-derivatives is tan x. Here the domain consists of a countably infinite number of open intervals, so you need a countably infinite number of constants to describe its family of anti-derivatives!

  • @yoavmal
    @yoavmal Před 2 lety

    I think one's can calm their mind by adding infinity to the number line.
    Infinity would be similar to 0, in the sense that negative infinity equals infinity.
    This lets us keep many more functions fully differentiable, such as 1/x.
    This way, the limit at infinity of the antiderivative of 1/x *has* to be ln|x|+C, because otherwise it wouldn't be differentiable at infinity.
    If you read this far, you might've noticed a flaw, which is the fact I actually handwaved a completely wrong statement.
    This piecewise function certainly does satisfy the limits, even with infinity added! The limits work out.
    The more convincing approach is to show that ln|x|+C satisfies a lot of 'natural' properties, especially on the complex plane, with limits and infinity, or combining them, on a Riemann sphere.

  • @pablog5738
    @pablog5738 Před 2 lety +1

    This is from my vague memory ... There is a sort of informal definition of logarithms (like the inverse of an exponentiation), but if has some sort of problem. So "modern" math added consistency to the log by defining log(x) = integral from 1 to x of 1/x for all x > 0. This solves incosistencies when trying to talk about log (π), for example.