What they won’t teach you in calculus
- Articles, Blog

What they won’t teach you in calculus

[Classical music] Picture yourself as an early calculus student
about to begin your first course: The months ahead of you
hold within them a lot of hard work Some neat examples, some not so neat examples, beautiful connections to physics, not so beautiful piles of formulas to memorise, plenty of moments of getting stuck and banging your head into a wall, a few nice ‘aha’ moments sprinkled in as well, and some genuinely lovely graphical intuition to help guide you through it all. But if the course ahead of you is anything like my first introduction to calculus or any of the first courses that I’ve seen in the years since, there’s one topic that you will not see, but which I believe stands to greatly accelerate your learning. You see almost all of the visual intuitions from that first year are based on graphs – the derivative is the slope of a graph, the integral is a certain area under that graph, but as you generalize calculus beyond functions whose inputs and outputs are simply numbers, it’s not always possible to graph the function that you’re analyzing. There’s all sorts of different ways that you’d be visualizing these things so if all your intuitions for the fundamental ideas, like derivatives, are rooted too rigidly in graphs, it can make for a very tall and largely unnecessary conceptual hurdle between you and the more “advanced topics”, like multivariable calculus, and complex analysis, differential geometry…. Now, what I want to share with you is a way to think about derivatives which I’ll refer to as the transformational view, that generalizes more seamlessly into some of those more general context where calculus comes up And then we’ll use this alternate view to analyze a certain fun puzzle about repeated fractions. But first off, I just want to make sure that we’re all on the same page about what the standard visual is. If you were to graph a function, which simply takes real numbers as inputs and outputs, one of the first things you learn in a calculus course is that the derivative gives you the slope of this graph. Where what we mean by that is that the derivative of the function is a new function which for every input x returns that slope Now, I’d encourage you not to think of this derivative as slope idea as being the definition of a derivative instead think of it as being more fundamentally about how sensitive the function is to tiny little nudges around the input and the slope is just one way to think about that sensitivity relevant only to this particular way of viewing functions. I have not just another video, but a full series on this topic if it’s something you want to learn more about. Now the basic idea behind the alternate visual for the derivative is to think of this function as mapping all of the input points on the number line to their corresponding outputs on a different number line. In this context what the derivative gives you is a measure of how much the input space gets stretched or squished in various regions. That is if you were to zoom in around a specific input and take a look at some evenly spaced points around it, the derivative of the function of that input is going to tell you how spread out or contracted those points become after the mapping. Here a specific example helps take the function x squared it maps 1 to 1 and 2 to 4 3 to 9 and so on and you could also see how it acts on all of the points in between and if you were to zoom in on a little cluster of points around the input 1 and then see where they land around the relevant output which for this function also happens to be 1 you’d notice that they tend to get stretched out in. In fact, it roughly looks like stretching out by a factor of 2 and the closer you zoom in the more this local behavior Looks just like multiplying by a factor of 2. This is what it means for the derivative of x squared at the input x equals 1 to be 2. It’s what that fact looks like in the context of transformations. If you looked at a neighborhood of points around the input 3, they would get roughly stretched out by a factor of 6. This is what it means for the derivative of this function at the input 3 to equal 6. Around the input 1/4 a small region actually tends to get contracted specifically by a factor of 1/2 and that’s what it looks like for a derivative to be smaller than 1. Now the input 0 is interesting,
zooming in by a factor of 10 It doesn’t really look like a constant stretching or squishing, for one thing all of the outputs end up on the right positive side of things and as you zoom in closer and closer by 100x or by 1000 X It looks more and more like a small neighborhood of points around zero just gets collapsed into zero itself. And this is what it looks like for the derivative to be zero, the local behavior looks more and more like multiplying the whole number line by zero. It doesn’t have to completely collapse everything to a point at a particular zoom level. Instead it’s a matter of what the limiting behavior is as you zoom in closer and closer. It’s also instructive to take a look at the negative inputs here. Things start to feel a little cramped since they collide with where all the positive input values go, and this is one of the downsides of thinking of functions as transformations, but for derivatives, we only really care about the local behavior Anyway, what happens in a small range around a given input. Here, notice that the inputs in a little neighborhood around say negative two. They don’t just get stretched out – they also get flipped around. Specifically, the action on such a neighborhood looks more and more like multiplying by negative four the closer you zoom in this is what it looks like for the derivative of a function to be negative and I think you get the point. This is all well and good, but let’s see how this is actually useful in solving a problem a Friend of mine recently asked me a pretty fun question about the infinite fraction one plus one divided by one plus one divided by one plus one divided by one on and on and on and on and Clearly you watch math videos online So maybe you’ve seen this before but my friend’s question actually cuts to something that you might not have thought about before Relevant to the view of derivatives that we’re looking at here the typical way that you might Evaluate an expression like this is to set it equal to X and then notice that there’s a copy of the full fraction inside itself So you can replace that copy with another X and then just solve for X That is what you want is to find a fixed point of the function 1 plus 1 divided by X But here’s the thing there are actually two solutions for X two special numbers were one plus one divided by that number Gives you back the same thing One is the golden ratio phi Φ φ around 1.618
and the other is negative 0.618 which happens to be -1/φ. I like to call this other number phi’s little brother since just about any property that phi has, this number also has and this raises the question: ‘Would it be valid to say that that infinite fraction that we saw, is somehow also equal to phi’s little brother: -0.618?’ Maybe you initially say “,obviously not! Everything on the left hand side is positive. So how could it possibly equal a negative number?” Well first we should be clear about what we actually mean by an expression like this. One way that you could think about it, and it’s not the only way there’s freedom for choice here, is to imagine starting with some constant like 1 and then repeatedly applying the function 1 plus 1 divided by x and then asking what is this approach as you keep going? I mean certainly symbolically what you get looks more and more like our infinite fraction so maybe if you wanted to equal a number you should ask what this series of numbers approaches and If that’s your view of things,
maybe you start off with a negative number So it’s not so crazy for the whole expression to end up negative. After all If you start with -1/φ then applying this function 1 + 1/x You get back the same number -1/φ. So no matter how many times you apply it you’re staying fixed at this value. But even then there is one reason that you should probably view phi as the favorite brother in this pair, here try this: pull up a calculator of some kind then start with any random number and then plug it into this function 1 + 1/x and then plug that number into 1 + 1/x and then again and again and again and again and again No matter what constant you start with you eventually end up at 1.618 Even if you start with a negative number even one that’s really really close to phi’s little brother Eventually it shys away from that value and jumps back over to phi So what’s going on here? Why is one of these fixed points favored above the other one? Maybe you can already see how the transformational understanding of derivatives is going to be helpful for understanding this set up, but for the sake of having a point of contrast, I want to show you how a problem like this is often taught using graphs. If you were to plug in some random input to this function, the y-value tells you the corresponding output, right? So to think about plugging that output back into the function, you might first move horizontally until you hit the line y equals x and that’s going to give you a position where the x-value corresponds to your previous y-value, right? So then from there you can move vertically to see what output this new x-value has And then you repeat you move horizontally to the line y=x, to find a point whose x-value is the same as the output that you just got and then you move vertically to apply the function again. Now personally, I think this is kind of an awkward way to think about repeatedly applying a function, don’t you? I mean it makes sense, but you can’t have to pause and think about it to remember which way to draw the lines, and you can if you want think through what conditions make this spiderweb process narrow in on a fixed point versus propagating away from it And in fact, go ahead pause right now and try to think it through as an exercise. It has to do with slopes Or if you want to skip the exercise for something that I think gives a much more satisfying understanding think about how this function acts as a transformation. So I’m gonna go ahead and start here by drawing a whole bunch of arrows to indicate where the various sample the input points will go, and side note: Don’t you think this gives a really neat emergent pattern? I wasn’t expecting this, but it was cool to see it pop up when animating. I guess the action of 1 divided by x gives this nice emergent circle and then we’re just shifting things over by 1. Anyway, I want you to think about what it means to repeatedly apply some function like 1 + 1/x in this context. Well after letting it map all of the inputs to the outputs, you could consider those as the new inputs and then just apply the same process again and then again and Do it however many times you want Notice in animating this with a few dots representing the sample points, it doesn’t take many iterations at all before all of those dots kind of clump in around 1.618 . Now remember, we know that 1.618… and its little brother -0.618… on and on stay fixed in place during each iteration of this process, but zoom in on a neighborhood around phi during the map points in that region get contracted around phi meaning that the function 1 + 1/x has a derivative with a magnitude that’s less than 1 at this input in Fact this derivative works out to be around -0.38. So what that means, is that each repeated application scrunches the neighborhood around this number smaller and smaller like a gravitational pull towards phi. So now tell me what you think happens in the neighborhood of phi’s little brother. Over there the derivative actually has a magnitude larger than one, so points near the fixed point are repelled away from it and When you work it out, you can see that they get stretched by more than a factor of two in each iteration. They also get flipped around because the derivative is negative here, but the salient fact for the sake of stability is just the magnitude. Mathematicians would call this right value a stable fixed point and the left one is an unstable fixed point Something is considered stable if when you perturb it just a little bit, it tends to come back towards where it started rather than going away from it. So what we’re seeing is a very useful little fact: that the stability of a fixed point is determined by whet her or not the magnitude of its derivative is bigger or smaller than one and this explains why phi always shows up in the numerical play where you’re just hitting enter on your calculator over and over but phi’s little brother never does. Now as to whether or not you want to consider phi’s little brother a valid value of the infinite fraction Well, that’s really up to you everything we just showed suggests that if you think of this expression as representing a limiting process then because every possible seed value other than phi’s little brother gives you a series converting to φ It does feel kind of silly to put them on equal footing with each other. But maybe you don’t think of it as a limit Maybe the kind of math you’re doing lends itself to treating this as a purely algebraic object like the solutions of a polynomial, which simply has multiple values. Anyway, that’s beside the point and my point here is not that viewing derivatives As this change in density is somehow better than the graphical intuition on the whole in fact picturing an entire function this way can be kind of clunky and impractical as compared to graphs. My point is that it deserves more of a mention in most of the introductory calculus courses, because it can help make a student’s understanding of the derivative a little bit more flexible. Like I mentioned the real reason that I’d recommend you carry this perspective with you as you learn new topics is not so much for what it does with your understanding of single variable calculus it’s for what comes after there are many topics typically taught in a college math department which… How shall I put this lightly? don’t exactly have a reputation of being super accessible. So in the next video I’m gonna show you how a few ideas from these subjects with fancy sounding names like holomorphic functions and the Jacobian determinant are really just extensions of the idea shown here. They really are some beautiful ideas, which I think can be appreciated from a really wide range of mathematical backgrounds and they’re relevant to a surprising number of seemingly unrelated ideas. So stay tuned for that. Now for the final animation I just want to show you a little more of that time-dependent vector field I flashed earlier, but first let’s look at some of the principles of learning from this video sponsor: Brilliant.org There’s a lot of good stuff on this list,
but I want you to look at number two effective math and science learning cultivates curiosity. I love the word choice here. It’s not just that you should be curious in one moment It means creating a context where that curiosity is constantly growing. Just look at the infinite fraction example here It would be one thing if you were curious about why the numbers bounce around the way that they do, but hopefully the conclusion is not just to understand this one example I would want you to start looking at all sorts of other infinite expressions and wonder if there’s some fixed point phenomenon in them, or wonder where else this view of derivatives can be conceptually helpful Brilliant.org is a site where you can learn math and science topics through active problem-solving and if you go take a look I think you’ll agree that they really do adhere to these learning principles, coming from this video you would probably enjoy their “Calculus Done Right,” lessons and they also have many other courses in various math and science topics. Much of it you can check out for free, but they also have a subscription service that gives you access to all sorts of nice guided problems. Going to Brilliant.org/3B1B Lets them know that you came from this channel and it can also get you 20% off of their annual subscription.

About James Carlton

Read All Posts By James Carlton

100 thoughts on “What they won’t teach you in calculus

  1. Instead of the follow-on I originally had in mind, which would extend these ideas to complex functions, the next video is on Divergence and Curl, as part 1 of 2 for an interesting application of complex functions with derivatives: Take a look! https://youtu.be/rB83DpBJQsE

  2. Thanks for putting together the animations which I had to visualize myself. These animations makes sure, we are all on the same page and nobody is visualize something else while the point of discussion is something. I wonder if you are using any specific tool for generating these kind of animations or the generic ones.

  3. I always thought of derivatives as slopes and had this strange feeling I was missing something. Mapping almost made that intuition click.

  4. and this video caused me to set the problem "what points on the gamma function converge?"

    took me a year that one

  5. this is my favorite channel for getting clear easy to understand explanations, I love how they explain it so well

  6. for me this just confuses things and makes it more complicated., I learned calculus and used it but this video ..i just do not see what is the point of this. it is interesting and true but that's all.

  7. Everytime i thought I new almost enough about a topic, your videos showed me new insight and different viewpoint.

    Your work helped me a lot getting a deeper understanding in mathematics.

  8. Mapping input to output! I feel like this is one key I was missing on what derivatives do, and what all those rules and equations have in common. I hope I will find other keys in your videos and maybe, eventually, unlock this subject of calculus that I've beaten my head against for so long, only to have the it fly away again for lack of understanding.

  9. This is one of my favorite calculus videos i think it gives a very nice understanding to a nice subject in differential equations and recursive problems, but that promise at the last minute to get more of it, it's a sour as it can get

  10. So in other words children .. this is the mathematical process that occurs within your dna's x and y chromosomes as you're being born again in Christ Jesus aka "Phi" 🙏

  11. Zero space is a dark matter particle neutrino with magnetic 🧲 poles closed in from the outside space that is the location of the black hole.

    So next tome you say zero think of a black hole 🕳.

  12. As someone with minimal mathematical knowledge, is this an explanation of the definition of a function as given by Dirichlet, where every element of a given set (the input) is associated with a single element of a second set (the output)? Also thank you, wikipedia.

  13. If you take every calculus course and watch the entirety of this video, you will retain the whole sum of human knowledge.

  14. 13:39: “…kind of klunky..”
    Uh, ya.
    I’ve watched this video more than once and I see the point you’re making, but I think it would resonate more if this new visualization connected to some practical application rather than just being an alternative, kinda klunky, visualization.

  15. Ich wüsste nicht, was mir wer je beigebracht hat. Ferner hab ich die Infinitesimalrechnung selber nacherfunden als Bub auf
    die Zur-Kenntnisnahme der Tatsache hin, dass in einem Fotobildband so komische Rechnungen als Dekor zu sehen waren.

    Als ich den erst nur unvollständig angezeigten Cliptitel las, als nur ,,Was sie dir in der Infinitesimalrechnung..'' angezeigt war, ergänzte ich ihn mit ,,sagten'' und sogleich fügte meine Verärgerung ,, , hab' ich mir selbst gedacht.'' hinzu.

    Dass das Tunwort ,,beibringen'' nahe dem Verbum ,,zufügen'' liegt; ist ein Dokument und einzig die Metrisierung
    kann Thema einer Debatte sein, in die ich mich sehr zurückhaltend einmischen würde. Es mag sein,
    dass der, dem etwas ,,beigebracht'' wird, die ihm etwas Beibringenden in just der kollektivierenden Anonymisierung zu Schemen wahrnimmt, mit der derjenige, der auf dem Operationstisch liegt, die Operateure im blendenden Gegenlicht sieht.
    Sodass es nicht wundert, wenn sich im Titel des Clips hier just das ,,sie'' findet als die klassische Bezeichnung der Halter,
    wenn das Lebewesen zum Lebewesen spricht — über ,,die''.

    Ich gebe zu, dass ich mir nicht anders zu helfen wusste, als das ,,just'' hier zweimal zu setzen.

    (Übrigens gibt es eine ganze Litanei der Bravour meiner autodidaktischen Eigenmacht, wobei ich nicht auf das Nacherfinden beschränkt bin. Meine Beschränkung ist stattdessen spürbar gegeben durch die Nachstellungen
    derer, die ,,die'' sind; und die es soweit brachten, dass ihnen — den von Steuerabgaben verpflichteten Vollstreckern volkstümlicher Missgunst — Gutachter zur Hand waren, die befanden, dass ich ich ,,zu planvollen Handlungen kognitiv
    nicht in der Lage'' sei — unter vielem anderen, dessen Zur-Kenntnisnahme mir erwartungsgemäß vorenthalten würde.)
    Die Analysis und ihre topologischen Kinder mitsamt den postkartesischen Rangranglern der Raumstrukturkunde der
    drolligerweise als als ,,Funktionalanalysis'' daherkommenden Lehre höchst exquisiter Witzelei über die Differenzierungen
    der Unendlichkeit ist ein unendlich schönes Knetspiel der Anschauung, beinah die Schönheit selbst, welche

    euch wie mir — und dem dies anzusprechen geistmächtigem Penrose, der die Adelung nicht verweigerte, anders als dereinst der Konrad —

    erscheint als der Lack des Physischen. Faszinierend, dass diese Anschaulichkeit gegeben ist, welche eigentlich nur
    das Accompagnato des Kartenlegens der b e i d e n Quantoren ist, dem Spiel, mit dem ich durch mich und mit mir
    can be fooled all the time again.
    Ich persönlich als ein Verehrer des Q u a r t e t t e s von 01Leerzeichen und — ,,…'' (All protoinfinities) bin — nicht
    heute, ich bin vor allem am Dichten, wenngleich .. — bin beinahe ergriffen davon,
    dass auf der Metaebene der Quantorensequenzierung das tatsächlich binäre Regime der Quantoren herrscht
    im Medium formulierbarer Mengen — dazu sagt man in der Mathematik ,,Universum''.–
    So als schwämme in ihm — erster Geist.
    (Die Sprache ist also kein Lochstreifen, sondern eine Binärsequenz jeweils mit universumsmächtiger Modifikationsbandbreite intonierter Es-gibt und Foralls:) Die Infinitesimalrechnung war also der Aufbruch zu
    dieser Sprache über die Rechthaber hinaus und verblieb nicht in den Pfoten des Schubsspiels.

    Trotz erster Abneigung gegen diesen Beitrag, werde ich ihn mir vermutlich doch alsbald anschauen, so er wieder

    angeboten wird.

  16. What's interesting to me is if you replace the 1 in the infinite 1+(1/(1+(1/(1+… formula with other numbers.

    If you plug in low negative numbers, it approaches zero, but if you put in -4, I'm getting a value approaching -2.

    Interestingly enough, when I get the differences between steps, it ends up being the number of possibilities of two numbers chosen of the number of divisions in the formula plus 1…

    -4+(-4/-4)=-3 (difference of 1)
    -4+(-4/(-4+(-4/-4)))=-2⅔ (difference of ⅓)
    -4+(-4/(-4+(-4/(-4+(-4/-4)))))=-2½ (difference of 1/6)

    It gets chaotic when you plug in numbers between 3 and 4, and quickly convergent below -4 or above zero.

    But exactly at -4 that pattern emerges.

  17. I know one thing they will never teach you, and that thing is when you shoud stop NONSENSE like the Sign rule, there in operating Bananas and Apples, and by magic we have only Bananas !!

  18. Im in middle school and dont know what are you Talking about, but i still loves to watch your videos. Keep it up👍

  19. Him: “Picture yourself as an early calculus student, about to begin your first course.”

    Me, an early calculus student about to begin my first course: …

  20. What they won't teach you in Calculus:

    Most of them don't teach calculus really…

    – What i think after watching these videos

  21. I'm a big Grant Sanderson fan but typically can't keep up with his videos even with his excellent graphics … This is my deficiency and not a knock on him …

  22. The expression at 11:51 equalling approx. -0.38, would it be -0.382 to 3 sig fig? That is is the smaller number when dividing 1 in the PHI proportion.

  23. these kind of videos in which you stop to understand things after 2 minutes but still you watch it until the end because it's very beautifully made and instead of thinking about math you start to think about how these beautiful animations could be done…

  24. me at 10 years old — "THIS IS NONSENSE"
    me at 11 years old — "THIS MAKES SENSE"
    me now, at 12 — "….. duh its obvious …. i learned it like what 2018…?"

  25. I have a feeling that the education system doesn't want you to be smart but rather, a regurgitating, memorizing robot with no creativity and intuition.

  26. At 11:48, you mentioned about -0.38, well I suspect its actually -(2 – phi), as phi + 0.38 is about 2, and it should be a value with some signifcance and not just a random value.

    Also note that the reciprocal of phi (being about 0.62 (the negative of the phi's letter brother)) has exactly the same digits after the decimal part as phi. and so the reciprocal of phi + that 0.38 is about 1. Meaning that as we know the definition of the golden ratio, that 0.62 is the bigger part of the stick and the 0.38 is the small part of the stick and as we know then, the 0.62 / 0.38 is the golden ratio value once again.

    Also note at 12:03 you mention about -2.62, now this is -phi – 1, which is also connected.

    And I am sure that there are a lot more really neat interconnections between all these numbers then I can recall on the spot or even know of.

    But the real question is, is there a formula that can go beyond e^(pi * i) = -1 or even e^(pi * i) + 1= 0 and even include phi in it?, now that would be Crazy Amazing.

  27. I think this video – is the one I would choose to help someone unfamiliar with Richard Feynman had a valid point when he said "i love mathematics but I hate (pure) mathematicians.". I've just read Steven Strogatz an applied mathematician and his book on Calculus and it is wonderful! He explains this same argument against invariably thinking about calculus in terms of y plotted against x in two pages, talking about the (y) calories per slice of raisin bread (x) at 200 per slice, and how much his daughter earned (y) working x hours in a local clothing shop at $10 an hour. He said we tend to think of these as numbers. They are not. They are linear functions. He then goes on to describe the exact same technique of an infinite fraction as in this video, comparing it to a magician ….. Here this video, perfect for 3 blue 1 brown's target audience no doubt, is like hearing a music theorist describe Beethoven's Moonlight sonata in terms of change of frequency of vibration through sound over a series of episodic arpeggios over time. Maths is beautiful! This video is ugly. Keep up the good work!

  28. I came expecting a lesson on the pre-World War I intranational French politics , and you have severely let me down, Steven.

  29. I made a program that finds phi when given any number
    x = float(input("Put in any number "))

    while x != 1.618033988749894848204586834:

    x = 1+1/x


    while x == 1.618033988749894848204586834:

    print("phi = ",x)


Leave a Reply

Your email address will not be published. Required fields are marked *