What if your bank offered imaginary interest?
45sThe absurd premise of an imaginary interest rate immediately hooks viewers and invites curiosity.
▶ Play Clip"The title is intriguing and the content delivers on its promise, connecting a bizarre concept to real-world physics with high educational value."
The video begins by posing a seemingly nonsensical question: what would it mean for money to grow by an interest rate of the square root of negative one? It sets up a poll to gauge viewers' initial instincts.
The lesson starts with a practical example comparing two banks: one offering 12% annual interest and another offering 1% monthly interest. This introduces the core concept of compound interest and how the frequency of compounding affects the final amount.
The video demonstrates that money grows exponentially when interest is compounded. It shows that as the compounding frequency (n) increases, the expression (1 + 0.12/n)^n approaches a limit, which is the constant e (approximately 2.71828). This is the origin of continuous compounding.
The video returns to the original question, plugging 'i' (the square root of negative one) into the compound interest formula. It explains that multiplying by 'i' corresponds to a 90-degree rotation in the complex plane, meaning the money's value rotates over time rather than growing linearly.
The concept of imaginary interest is linked to physics, specifically simple harmonic motion (e.g., a mass on a spring obeying Hooke's law). The state of the system (position and velocity) can be represented as a complex number, and its evolution follows the same mathematical principles as imaginary compound interest.
The solution to the spring problem is expressed using Euler's formula, e^(it) = cos(t) + i*sin(t). This shows that the displacement and velocity of the spring follow sinusoidal patterns, which are described as 'two different shadows of circular motion' in the complex plane.
The video concludes that the seemingly absurd idea of an imaginary interest rate is not only mathematically coherent but also deeply connected to fundamental physics, providing an elegant framework for understanding oscillatory systems.
What is the value of the constant e, and what does it represent in the context of compound interest?
e is approximately 2.71828. It represents the limit of (1 + 1/n)^n as n approaches infinity, which corresponds to the maximum amount of growth achievable through continuous compounding.
26:14
What is the effect of multiplying a complex number by 'i'?
Multiplying a complex number by 'i' rotates the vector representing it by 90 degrees in the complex plane.
32:15
What is Hooke's law, and what does it state?
Hooke's law states that the force exerted by a spring is proportional to its displacement from equilibrium and is directed opposite to the displacement (F = -kx).
41:33
How is the state of a mass on a spring represented as a complex number?
The state is represented as a complex number where the real part is the position (x) and the imaginary part is the velocity (v), i.e., z = x + iv.
51:03
What is Euler's formula, and how does it relate to the spring's motion?
Euler's formula is e^(it) = cos(t) + i*sin(t). It shows that the displacement and velocity of the spring follow cosine and sine waves, respectively, representing circular motion in the complex plane.
55:56
What happens to the value of a $100 investment with a 12% annual interest rate when compounded monthly instead of annually?
Compounding monthly yields $112.68, which is $0.68 more than the $112 you would get from annual compounding.
12:26
What is the mathematical expression for the final amount of money after time 't' with continuous compounding?
The final amount is m(0) * e^(rt), where m(0) is the initial amount, r is the interest rate, and t is the time.
26:59
Why is the notation e^x considered confusing when extended to matrices or quaternions?
The notation suggests that e^A * e^B = e^(A+B), which is not true for matrices or quaternions because they do not commute (AB ≠ BA).
01:02:06
Origin of e
This connects the abstract constant e to a practical financial concept, showing its origin in Bernoulli's work on compound interest.
14:14Imaginary Interest as Rotation
This provides a geometric interpretation of imaginary interest, transforming a nonsensical idea into a clear visual concept of rotation in the complex plane.
30:32Springs and Complex Numbers
This demonstrates a powerful technique of representing a physical system's state as a complex number, simplifying the analysis of oscillatory motion.
40:18Euler's Formula in Physics
This shows how Euler's formula elegantly connects exponential functions to trigonometric functions, providing a unified description of oscillation.
55:56[00:00] Welcome back to Lockdown Math, where we try to answer some of the important questions in life, some of the deeper things that are relevant, push your life forward. you an interest rate of the square root of negative one?
[00:15] we thought that was weird enough, an imaginary interest rate. Now I almost guarantee, however interesting you think this question is, I think there's going to be some people who find it totally nonsensical,
[00:33] What on earth would it mean for your money to grow by the square root of negative one? And I think there's also some people who think they know where this lesson is going, but wherever you sit, I almost guarantee this is going to be more interesting than you
[00:46] And to start things off, let me bring back our poll that we were doing, you know, during the warm-up animations, and I just want to get a sense for what your instinct is on this apparently nonsensical question.
[00:58] it's something that we're going to answer by the end, but I'm genuinely curious what you viewing right now think. If a bank offers you an annual interest rate of the square root of negative one,
[01:12] So if you want to participate either in this poll or any of slash live is where you can go, link in the description as well. And while you're answering this, I just want to mention that even if this is
[01:26] kind of a nonsensical question for money, one of the things I'd like to show by the end is that thinking through the details of this question is shockingly relevant to physics, okay, and to understanding simple harmonic motion.
[01:39] So even if it feels like nonsense, if you're willing to engage with the weird storyline for a bit, there is a satisfying real-world endpoint for that. The other thing I want to mention is a brief plug for a video by Mathologer.
[01:52] If you guys don't know Mathologer, you're certainly in for a treat. and in general the channel is just full of gems. I want to talk about today, and it's just so beautifully done.
[02:09] It's extremely well presented, extremely approachable. so could not recommend that and other things highly enough. watching this in the future, you know, to watch right before this.
[02:24] We've got a very even split between the yeses and the nos. I wouldn't have guessed that, actually, and I'm curious if by the end of this, once we see what the implications would be, how many of you would stand by your answers.
[02:41] So let me just, let me just see what this distribution is, because I am curious to know. Alright, so it looks like 1,600 and 1,700 of you said yes, you would take the imaginary interest rate.
[02:55] Alright, we'll see if you stand by that by the end, and we'll really understand the implications of imaginary interest. Now before that, let's ask a question that is a little bit more real world,
[03:09] half hour of the lesson or so on actual normal compound interest, right? Make sure we can build up some of the math of that,
[03:22] well, frankly silly question. Okay, so as our first, I don't even want to call it a real question, Don't necessarily think you have to do the computation.
[03:35] What I want to gauge is what your gut reaction to this question is, okay? so there is a correct answer, but just answer what you, what you think it might be. So the question asks, two banks offer different interest rates on your savings.
[03:48] Bank A will increase your savings by 12% every year, okay? Bank B will increase your savings by 1% every month. With each of these banks, you set up an account with $100,
[04:04] So you have more money with bank A by more than $1, so the difference between what you have in A and B is greater than $1. You have the same amount in each, more in bank B but by less than $1,
[04:23] Okay, so it seems like we have pretty strong consensus. There's a clear winner, but there's definitely a lot of contention behind it.
[04:39] I'll sometimes be pulling up questions from the audience, which you can ask via Twitter. where you can go to ask these sorts of questions.
[04:53] And it looks like someone with the profile of Yoda asks, What a poetically written tweet,
[05:09] which seems pretty fitting for someone with a profile of Yoda in there.
[05:21] Personally, I do think the most beautiful things And I don't know if that's like a natural thing that humans Humor seems to have this root, like a really good joke kind of takes you by surprise.
[05:37] it's not just surprise for its own sake. And as the lesson goes on, if you have questions relevant to what we're talking about, So, like I said, there's technically a right answer to this question,
[05:52] The reason I'm asking this one is to get kind of So I'm going to go ahead and lock in the answers and see where people are.
[06:04] This might be the first time in lockdown math history that the plurality has not gotten what turns out to be the correct answer. with bank B and it would be by more than a dollar.
[06:17] The second most common answer was to say you'd have more money with bank B by less than a dollar, which turns out to be correct. After that, more with bank A.
[06:30] if I look back at what maybe an initial response to questions like this would be, if you haven't thought about interest, is everyone who said C. is going to be any different than 1% per month.
[06:46] That should add up to 12% over the year. So, how do we think about this kind of problem? I've gone ahead and pulled up a Desmos graph for us to play around with.
[07:01] So we'll get rid of Burckardt's beautiful face and we'll head on over to Desmos. the graph of what happens to your money, in this case in bank A. it's just got that $100 and it's not until the end of the year that it jumps up to $112.
[07:21] let's take our $100, at the end of the year we add 12% of that $100. And sensibly enough, you get 112.
[07:33] And a nice way to think about this, which seems simple and it seems kind of innocuous, We'll talk about more why I might want to emphasize that The fact that the rate of change is proportional to the
[07:50] And we can just say, oh, that step that we take, we're multiplying it by a constant. In this case, that constant would be 1.12. So as you go from this step to the second year, at the end of that second year,
[08:05] because it's also earning interest on the 12 extra dollars that you got that last year. It's a multiplicative amount. And this becomes particularly noticeable as we zoom out and see what would happen
[08:20] over the course of many years with such a fantastic interest rate in your bank. It's not just growing like a straight line, it grows with this exponential curve. like the Y coordinate of that is around 310.
[08:35] So you let your money sit in that savings account with 12% interest for 10 years, Pretty interesting. So now when we start thinking about having the interest accrue,
[08:49] not just at the end of the year, but at various chunks on the way in, I think this is a fun way to start things off, is rather than having me go through the logic, have you guys think through the details.
[09:03] let's just say there was two steps halfway through the year. It says a bank offers to increase the money in your
[09:15] Which of the following represents how much money will be in So there's two different six month periods that have passed.
[09:29] Which of the following expressions shows how much you're going to have? Give you a little pause and ponder music maybe.
[10:13] Okay, as always, I'm probably going to grade this faster than is a reasonable amount of time for someone who really wants to think through the details of things. Sometimes it's just that I want to move forward with the lesson.
[10:26] So I'm going to go ahead and lock this in, but as always, We're going to explain it in a moment. So the correct expression, which looks like 3,000 of you got,
[10:41] is that it should be $100 times 1 plus 0.6 squared. So if we head back over to our Desmos expression that we were working with,
[10:53] if instead of increasing by 12 percent, we're saying increase by 6 percent, when you factor it out, it looks like multiplying by 1.06. If you're already comfortable with the idea that increasing by 6%
[11:08] is multiplying by this constant, you say, oh, we just square that. if that's not something you're entirely comfortable with, you can say, So this gets us 106 after that first six month period.
[11:22] 0.06 times that 106, and that's going to get us the final amount. Because the rate of growth is proportional to itself,
[11:39] it lets us factor this out as 106 times 1.06. multiplying by the same constant that I did before. And because it's the same constant, I might as well have simply written that as a square.
[11:57] many different times, what it looks like is taking a number that's So to our original question, asking about bank B, which, what did it say?
[12:11] The way you might think about that is by saying we multiply by 1.01, okay, by 1 plus that 1%, and then we do it after 12 months.
[12:26] Okay, so instead of the, instead of the $112 that you would have had from bank A, woo hoo! It looks like compounding more frequently got us an extra 68 cents in our account.
[12:39] In our graph, if we wanted to see what that would look like, again, there's some machinery under here that I'll show in a moment, but if I just crank up this number n to 12, that's basically asking how many times
[12:55] Do I make a little step increase based on what the annual interest rate is? So if the annual interest rate was 12 percent and you're making steps each one twelfth of a month, of a munch, of a month, that means you increase by 1 percent each one of them.
[13:10] So what it looks like is a step function that's a lot more fine, okay? the y coordinate of our graph is that $112 with the extra 68 cents.
[13:23] And again, as we zoom out, you can see that it fits this nice exponential curve, And if you're curious, you know, previously after 10 years,
[13:36] which we can verify for ourselves if I take that 100 dollars times Alright, this says $310.
[13:48] When we compound every month instead, and we wait for 120 months, it looks like we've squeezed out an extra 20 bucks. The important part here though, is the idea that the frequency with
[14:01] which you compound actually changes the amount, which is interesting. And this is the original circle of thoughts that Bernoulli was thinking about that leads to the origins of the constant e that we all now know and love.
[14:14] Maybe the second most famous constant only next to pi. and then see what we can start learning with respect to those formulas. interest rate of negative, not even negative, I keep saying interest rate of negative 1,
[14:32] Nobody should let the Fed watch this video, I think it might introduce some shaky ideas. off with some amount of money, okay, and then we're going to let it
[14:50] And the idea is that we're chopping this amount of time into a bunch of little pieces, okay, and with each one of these steps we're going to increase our money.
[15:03] There's going to be some kind of change to m, a delta m. And each of these steps, let's say it's got a length of delta t. So maybe delta t is a 12th of a year, or maybe it's 1 365th of a year,
[15:16] And just as another variable to throw down here, if we were to count them all up. And the total number would be the total amount of time
[15:30] divided by the size of the time steps that we're taking, okay? So what interest rates do is they say that the amount your money and you might think of r as being something like the 0.12 from our example.
[15:47] And then later on we're going to play around with making it imaginary. But you're going to multiply it by the size of your time step, okay, which you might think of as being something like 1.12 if we were compounding monthly.
[16:01] Because simply by compounding monthly it doesn't mean you get to grow by 12% every month, it means you grow by 1.12 of what the annual rate was every month. it's also proportional to the amount of money you had.
[16:15] if you had $1000 in there it grows by 10 times as much. Okay, so that in our example you might think of as being something like $100.
[16:28] It looks innocuous at first, but it means that our money changes by going to m plus r delta t times m.
[16:40] And because m shows up in both of these terms, it lets us factor things out, so that m factors out and we have 1 plus r delta t. And because this is the same constant that we're going to multiply for each
[16:55] one of these little time steps, all you're doing is multiplying by this constant. We can write an expression for how much money you're going to have after time t. What it's going to look like is the amount of money you had to start off
[17:09] with at time t equals 0 multiplied by this expression, 1 plus r delta t. And I'll change this in a moment, but I'll keep writing it as r delta t. But we multiply it by itself n times, where n is the number of steps that we have in here.
[17:25] so I want to start consolidating them. And instead of writing delta t, I'm going to go ahead and express delta t as the total time divided by n.
[17:37] We look at the number of chunks we've cut our period into, and we take the total amount of time and divide by that. So what our expression will look like is the amount of money we
[17:50] started with times 1 plus r times the total time divided by n. And we raise that to the nth power.
[18:02] Now this is actually a very interesting expression, no pun intended, because we want to know how does the size of n influence things. increments and compounding very frequently, what does that mean for our interest?
[18:19] And you might, if you were a pure mathematician, try to abstract away all the ideas of the money here, the specific interest rate, and just say what we're interested in is this function of x that looks like
[18:33] Or maybe I'll say 1 plus x over n. So we want to be able to plug in some value for r t. But you're not just curious about this for any particular n.
[18:47] What you want to know is what happens as you crank up the value of n. And the expression that mathematicians write for this, we write lim for limit, saying I want to crank up that n and see what happens to this particular value.
[19:03] Now it's not obvious, I think, what happens to it, and playing with my toy again, I just want to do another half-opinion poll, half-real question about this one to see what your instinct is.
[19:16] So let's say, pull up the question here, what happens to the value 100 times 1 plus 0.12 over n to the power n as the value of n approaches infinity?
[19:34] And in the back of your mind, you can think this isn't just a purely mathematical expression, it has a very real meaning in the context of compound interest. What we're basically saying is if you have that 12% interest rate,
[19:46] and you want to wait one year, but you chop up that year into n different pieces, maybe n is 12 if you compound every month, maybe n is 365 if you compound every day, or maybe you want to compound every microsecond or every picosecond.
[20:00] end of the year simply by compounding more frequently? If you'll remember, when we went from yearly to monthly, that gave us an extra 68 cents. And now we have a very wide split, which is wonderful.
[20:19] I'm going to give you guys a couple more moments to think about this. the spirit of this question is to see what your initial thought is, So even though technically there's a right answer to this one,
[20:35] The spirit of it is for me to know where people are. I'll give you just a little bit of time on this.
[20:54] And while I do, let's take a question from the audience. Considering that imaginary unit is defined in terms of operations on the real numbers, is there an analogous definition of quaternions in terms of operations on complex numbers?
[21:08] I don't expect most people watching the series to necessarily know what quaternions are. like the complex numbers, involves four dimensions.
[21:21] The short answer to the question, I think this is okay to say, the short answer is no. have an expression that we don't have a solution to.
[21:33] A solution to x squared equals negative one. And by introducing a solution, you extend your number system. For any polynomial, once you have the complex numbers,
[21:45] So it's not going to be there's a problem that you wanted solved But where it does come from is the idea, at least historically,
[21:57] is the idea of wanting to describe motion in three dimensions. And complex numbers can describe things like rotation in two dimensions, but they don't have enough degrees of freedom to describe rotations in three dimensions.
[22:10] So in that sense it was a concrete problem they couldn't solve. it doesn't look like a solution to a polynomial. but obviously I love to just engage with wherever you are, whoever is watching this.
[22:28] And again, technically there's a right answer, but don't view this as right or wrong. It looks like 1670 of you correctly noted that this value would rise above 112,
[22:42] So maybe taking the instincts from the fact that when we went from yearly to monthly we only got 68 cents and saying you can't get much better than that. The next biggest answer, interesting, was people who said it would rise above 114,
[22:59] Okay, so having that instinct that it would stay finite, And I think the most thought-provoking answer here is E.
[23:13] I mean, we're letting n get as big as we want. It doesn't just have to be down to the picosecond, it could be down to a plank length. so that our time steps are as tiny as you can think.
[23:29] So we can play around with this a little bit if we want to. but maybe it can give us a little bit of an instinct in that direction. If I take 1 plus 0.12 over n, and I raise this to the power n,
[23:46] And 100, that's not big enough. I want to let myself increase it to some huge number, you know, 100 million. So the value I want you to watch is sitting right here, okay?
[24:00] if you compound your 12% interest much more frequently. Even as I'm cranking it up around 100 million, this value really stays stable around 1.12.
[24:14] Around the $112.74, about 75 cents, it stays really stable around that even as I'm increasing by a lot.
[24:26] For all we know, as you venture into the realm of huge, huge numbers, 10 to the 300th, or grams constant, or whatever big number you want, maybe this thing would slowly crawl up and eventually get unbounded.
[24:40] Now, in terms of the math behind this, we can do an interesting manipulation. We've got 1 plus x over n that you might think of as a partial interest rate,
[24:55] I can do a little substitution and say, what if I define the value m to be n divided by x? And the reason for doing that would be so that I can write that inside without an x in it.
[25:13] So x divided by n will be the same as 1 divided by m. well no, the power n, but I want to write it in terms of m. And based on how exponents work, I can think of that just as
[25:31] the quantity 1 plus 1 over m to the power n all raised to the x. And I'm curious about what happens here as I crank the value of m towards infinity. as we crank this value of m up towards infinity.
[25:47] And empirically, what you'll find is if you just play around with this, and if we go over and take out the evidence that we were dealing with a real world problem, with things like that $100 starting value, or that 12% interest rate,
[26:01] and we just have clean constants like 1 for each of them, it looks like this value ends up to being around 2.71828. And no matter how big you make n, it seems to never really get much different than that.
[26:14] is maybe a fundamental constant of nature. the original way that people were thinking about it.
[26:26] As we pop over here, and we say instead of writing this whole limit expression, I'll use a different color, say in principle, this is going to approach some kind of Let's call this constant e that empirically has a value around 2.71828.
[26:45] And then we can write our whole thing as e to the x. So for example, if we wanted to know what happens in our interest example, when we started out with $0, not $0, started out with m of 0,
[26:59] which might be something like $100, what we do is we just focus on that rt term, we say we know that as we crank up n, this is going to approach some special constant And maybe this we would aptly describe as continuously compounded growth,
[27:16] And this was actually before Newton and Leibniz, this was before calculus existed. There was this idea of trying to take these discrete steps of increasing and make it approach 0 to get something a little bit more continuous.
[27:31] So I think that's quite cool. And one thing that you might notice here is we've got this large expression for basically a function of x that we now tend to write as e to the x.
[27:47] If you watched the last lecture, you would have remembered that I said the way things have come about in math now, whenever we see e to the x, we actually think of it as a shorthand for a certain polynomial.
[27:59] And the polynomial, I was calling it exp, which follows convention, looks like 1 plus x plus x squared over 2 plus x cubed over 6, and all of the terms look like x to the k divided by k factorial for some whole number k.
[28:14] And I said this is what e to the x is a shorthand for, this is how you think about it, especially when there's weird inputs, things like an imaginary interest rate. polynomial have to do with this limiting expression?
[28:29] And as a super extra credit challenge question for those of you who are really if you know what those terms mean, if you take this expression for some large
[28:42] value of n and you expand it, you just expand it and you kind of simplify your terms and then you make approximations based on what's true when n is very large, what you would find is that the polynomial this expands to looks a lot like this
[28:55] And in fact, as this value of n gets bigger and bigger and approaches infinity, this polynomial will get closer and closer to this one. It's a challenging question, so I wouldn't expect everyone to necessarily be
[29:10] able to just bang it out, but if you want to it's a very elucidating exercise. And there's also a lot of delicacy in rigorously proving the fact that what this approaches will also approach this, or that both of them even stay finite,
[29:22] and they don't blow up when you, you know, add more and more terms to the sum, There's a lot of delicacy there, but you can probably And the reason that in math we tend to work with this polynomial instead of that limit,
[29:37] it's basically easier for computations and easier for theory. But the value of this other expression is that it ties us back to the idea of compound interest and the idea of taking a quantity that changes a little bit based on its own
[29:51] You can kind of readily read this as saying we're going to multiply And if you'll remember, the reason we're doing that is when the way that
[30:04] you change is proportional to yourself, that lets you factor things such that you're just multiplying by something a little bigger than one. And when you do this approaching continuity, when you do it in a way where that time step
[30:18] is getting smaller and smaller, this is when we start writing e to the power of something. What it's suggesting is that you have this compound interest expression, We're letting the time step go as small as we want.
[30:32] So, with all of that said, we can start having fun. We can start thinking about our original question of an imaginary interest rate. First of all, let's just say from the get-go that if we try plugging in r to
[30:49] this expression where we're raising a constant e to a power, it makes no sense. If r is equal to the square root of negative one. You cannot multiply a constant by itself the square root of negative one times.
[31:02] But what does is if we go to this original expression, the origins of e, and try to imagine plugging in something like i to that. We know how to add it to one, that's fine.
[31:18] All of the operations there are quite fine. And the other thing I want to emphasize is I know this seems like utter nonsense.
[31:30] We're talking about imaginary numbers in the context of interest rates. But in a couple minutes, I really do hope to make this relevant to physics and hope to make you see that this is not a totally nonsensical circle of thoughts.
[31:45] So, I've got my axes here. This is going to be my real, this is my real money. And this will be all of my imaginary money. What it means if your interest rate is i, is that the change to the money looks like
[32:02] i times whatever the time step is, delta t, times whatever the money is to begin with. Now, in, I believe it was lecture 3, we talked all about complex numbers,
[32:15] and one of the fundamental facts was that when you multiply i by something, And we talked about this in terms of looking at the coordinates and So this connection between the square root of 1 property and the
[32:31] very mechanistic idea of taking a vector and rotating it 90 degrees. be a little arrow that, you know, it's not increasing the money, you're not growing, you're not decreasing the money, it's not a negative interest rate,
[32:46] it's moving somehow perpendicular to where the money already is. So after a little step in time, you end up with a little bit of imaginary money. So you have what you had originally and you can play Monopoly.
[32:59] And now from that point, when you do another time step, it does the same thing. It takes the vector that you've newly landed on and it rotates it 90 degrees, okay, and then you take a little step based on that.
[33:12] Where at each point you're looking at what is your money number that has some real part and some imaginary part, you rotate it 90 degrees and you add a little step on that.
[33:25] This is the original question. The bank offers you this interest rate, what's it going to do? information because how frequently you compound it is going to make a difference.
[33:43] meaning at the end of every year you take a big step that's based on this interest So for every dollar that you have, if you started out just putting
[33:56] your real money into the bank, at the end of the year you would add i times that amount, Again, I know this is utter nonsense, but follow along with me.
[34:09] So where does that get you? So if you had a hundred dollars in the bank, you end up But then, after the next year, you take another step,
[34:25] and adds that to where you are. So after two years, you come back to your bank and you say, how's my money doing? You say, that's fantastic, it's only been two years.
[34:39] So, very good for your Monopoly game, not great for life logistics. As you wait more time, and you add another 90 degree rotation of where you currently are,
[34:52] you're going to step into the negative real territory. So at this point, now you have negative 200 real dollars, but you still have that 200 imaginary dollars.
[35:04] So, good for your Monopoly game, devastating now for your actual life. As we take another step, four years later, after you've invested your hard-earned money, it was just a savings account.
[35:19] For every dollar you put in, you would now have negative four dollars. us $400 for the $100 that you put in four years ago.
[35:31] And just as you're about to get outraged at them, they say, sir, we encourage you to wait. If you just let your money sit, do its work, and And they're not entirely wrong, because if you keep playing this game of
[35:47] rotating 90 degrees and then adding that vector, after a total of eight years, where you're going to end up is at 16 times your original amount. So if you're willing to put up with a lot of stress going in,
[36:00] and you were willing to just hold for eight total years, you would have 16 times as much. So that's pretty good, I would say.
[36:13] We might call this the venture capitalist approach, where you put in your money, you can't see it for a long time, and most of the time it's completely imaginary. But every now and then you get a giant multiple at the end.
[36:27] that your bank doesn't compound it annually, right? And they say, ah, actually we compound your interest continuously. but it's delta t getting smaller and smaller.
[36:42] perpendicular to where you are is really just a tiny little step. So you take a tiny step that's perpendicular to where you are,
[36:54] another tiny step that's perpendicular to where you are, and you keep going. But as that time step gets smaller and smaller, smaller and smaller and smaller, what it means is that you're simply walking around a circle.
[37:10] So if you were writing this out as an expression, you know, it might seem halfway reasonable to look at the fact that we were using e to the x as a shorthand for this limiting value here.
[37:22] And in the case of real numbers that makes total sense when we plug in a value for x. But what it means here is with our imaginary money, we're writing it as e to the i, that was our interest rate, times the amount of time.
[37:36] but in the context of compounding interest, all it really means is that after and we do that continuously, so those time steps are just infinitesimal,
[37:50] So, the bank offers you this, do you take it? What happens when you put in $100 to your savings account? Well if you wait a total of pi halves years, which is the
[38:05] distance along a quarter of a circle, a little over a year and a half, you come back into your account and what do you see? Well, for each dollar you put in, you have an imaginary dollar.
[38:18] But you push through, you know, the banker told you that this will work out in the end, I didn't need it for that year and a half, life wasn't going too terribly, so I'm just gonna let my money still sit in that savings account for another year and
[38:32] And you wait a total of pi years, around 3.14 years. Now, you've got negative one dollar for each dollar that you originally put in.
[38:44] And just like before, you're infuriated at the bank, not as much as you were, and that's not fun. this is actually gonna work out for you in the end.
[38:57] You say, okay, I've seen this work out for my friends who got 16 times their money, And you do, you just don't touch the money in your savings account, And now, not only is it entirely imaginary, it's negative.
[39:11] So, 4.7 years is a real low during this whole experience. But if you're willing to stick it out, and wait a total of 6.28 years, 2 pi years,
[39:23] you come back, and for all of your stress, you're back to where you started. You just have one dollar for every dollar that you put in originally. Depends on how much emotional turmoil you want,
[39:37] but if it's continuously compounding, certainly not, I think is the appropriate answer. This is kind of fun, I think, to take an idea that started off only
[39:49] or if you have negative interest rates, you can think of how that decays. What if each time step wasn't in the direction, but it was perpendicular to the direction?
[40:03] And the answer is that this is actually incredibly relevant to anything that involves what's called simple harmonic motion in physics. Let's say we wanted to understand the motion of a spring.
[40:18] So let me pull this up here. I think I have an actual spring sitting somewhere here, if it didn't roll off my table. I had trouble finding any reasonable ones, so I tried to just extract one from my pen.
[40:33] Maybe not the greatest physics demo in the world, but I've got one. it's pushing me back in the other direction against how I pull it. And similarly, if I push on it, then it's pushing me in the other direction.
[40:47] And the way that it does this obeys, at least to a loose approximation for a lot of springs, something called Hooke's law. So if I draw out a spring, and let's imagine that
[41:02] Let's say that this is where it wants to be. This is the equilibrium position, kind of like how my spring is sitting here before it just rolls away with no forces acting on the mass.
[41:17] But if you stretch it out, if I pull it, that same mass at the end, this distance, what we might call the displacement of our mass, ends up influencing how much force the spring is pulling back on.
[41:33] Because intuitively we know that the spring is pulling back with some kind of force. And what Hooke's law suggests is that it's a force proportional to that size of x. to emphasize that it's pointed in the opposite direction.
[41:49] So in this context, what we're saying is if we double the amount that we're pulling it, If we triple it, it pulls us back with three times the force. As with any kind of physical models, this is only true to an approximation.
[42:04] this certainly won't apply. And often with anything that involves the simple harmonic motion we're about to describe, And as you get larger variations, the model would have to change.
[42:19] It comes up in a lot of different circumstances. Now force is mass times acceleration. This is what Newton's second law tells us.
[42:33] Acceleration is how much your velocity changes, Now this is quite interesting, because what it means is that acceleration,
[42:46] which is influencing the displacement, kind of in a second order way via how it influences velocity, is itself influenced by the value of x. It's basically to have us think about what velocity
[43:02] So we'll pull up our quiz again. We are going to go to the final live question for this lesson.
[43:14] A mass on a spring is pulled a distance x away from an equilibrium point. If the spring obeys Hooke's law, the mass will experience a force of
[43:27] f equals negative kx, x being that displacement, for some constant k. where m is the mass and a is the acceleration. Okay, if the mass starts out with a displacement of x naught and a velocity of v naught,
[43:44] which of the following most clearly describes the value, the changes of these values after a small change in time, delta t? Okay, so we're going to let time play out for a tiny step in time,
[43:57] and it wants us to know which of these four options best describes what that change to the x value is going to look like, delta x, and what the change to the velocity value So I'll give you a little bit of time for this one.
[44:42] While you're thinking about that, we've got another question in about quaternions, not entirely relevant to the lesson, but certainly a very interesting idea and question. So if you're enjoying this kind of side plot to the full lecture,
[44:56] So why is it that it requires three extra numbers, Is there an equivalent way for rotation in four dimensions,
[45:08] Okay, awesome question. So a way to think about this, in complex numbers or in two dimensions, you only need one degree of freedom to describe rotation, okay,
[45:20] you just need to describe the angle that you're rotating. order to describe something that only has one degree of freedom? that we can have a circle, something where you come back on itself,
[45:36] So the way that complex numbers describe rotation is It's only one dimension's worth of numbers in some sense. So for three-dimensional rotation, it's not just two extra degrees of freedom you have,
[45:53] You might think of it as saying, choose an axis for your rotation, a latitude and longitude that you're going to poke a hole through the entire Earth.
[46:05] two degrees of freedom for your axis, you have another degree of freedom for So it's a total of three degrees of freedom to describe rotation in three dimensions.
[46:17] Now again, you could say, in principle, we should be able to do this with a three-dimensional space, where somehow you associate the three degrees of freedom of 3D which you kind of can with a thing called stereographic projection,
[46:32] which is entirely what the video I did about quaternions was about. it's nice to have a circle, something that lives one dimension higher. basically something that loops back on itself, but it has three degrees of freedom on it.
[46:50] Very weird for us to think about, but that's sort of the degrees of freedom argument. And then four dimensions, rotations would actually have ten degrees of freedom. constrain your matrices and understand things like that,
[47:03] which again, this is, if none of this makes sense to you, don't worry. It's not in the spirit of this particular lecture or the target audience for it. And if it's what you're chatting about on Twitter, I'm happy to chime in on that.
[47:17] So, yeah, thinking about degrees of freedom and the fact that it's nice to live one dimension higher to have, basically have a more interesting surface than flat Euclidean Okay, with that as our changing scenes abruptly from the side plot of quaternions,
[47:32] we return back to our regular programming of physics and how Locking in our answers here, it looks like most of you correctly answered A.
[47:46] It's saying that the change to x is whatever your velocity was times the small step in time, which that's what velocity is, right? What is the change in distance per unit time?
[48:00] And then the only tricky part is knowing that the velocity changes based on acceleration times delta t. And acceleration in this case, we can work out based on the various equations.
[48:14] In general, whenever I'm recording, it's so annoying when there's background noise. So one of the nice things about live is that I just have no option.
[48:26] Anyway, if we want to write a pure expression for the acceleration, what it looks like is, just rearranging, negative k over m times x.
[48:38] Now for where we're going with this, it's going to be a little bit simpler. Ignore the like real numbers. such that k over m is equal to 1.
[48:53] And then what we can say is that the acceleration is negative x. And the reason I want to do that will hopefully become apparent in a moment. setup is going to look a little weird at first.
[49:08] which is basically the displacement of our mass sitting up here, what is x. So let's say it's not just up there holding still,
[49:20] it was actually moving a little bit with some kind of velocity to the right. And I'm going to package those two numbers together
[49:32] So let's say I had some position, or some state I should say, that has a small displacement but then a large velocity. I'm going to think of that as simply being a point, or maybe I draw an arrow to it,
[49:50] thinking of it as a point in two dimensional space, with coordinates x and v. All I'm doing is packaging them together as a single point. And then what we might write is that the change to our two coordinates,
[50:07] the change to x, v, looks like, well, the way x changes is based on your velocity times a little change in time. And the way velocity changes, same deal but with acceleration.
[50:21] But acceleration is negative x for this system. So it's going to be negative x times delta t. So we have a value that changes, and in fact the way that it changes
[50:34] is going to be based on a little vector perpendicular to itself. Which is what happens when you swap the variables and you make one negative. down as two separate coordinates, but in the context of imaginary numbers.
[50:50] Which feels like a very weird thing to do, but just walk through with me this process because it feels so elegant once you let it play out. I'm going to package this pair of numbers as a single complex number where the
[51:03] real part is the position of the spring and the imaginary part is the velocity. If that feels weird or you don't understand it, that's fine, it's not a natural thing.
[51:15] hopefully it starts to justify itself. Because what I can write is that the change to this state,
[51:27] this complex number, is actually equal to negative i times itself. Times x plus i times v times delta t.
[51:40] Well, let me expand this out. When I take that negative i, negative i times x is going to be negative x times i. Negative i times iv is going to be negative i squared times v.
[51:56] i squared is negative 1, so that's just going to end up being v. What is this saying? the velocity, which is what we saw up here.
[52:11] And the change to the imaginary part is based on the negative of the real part. what corresponds to force, is based on negative x.
[52:25] So this weird idea of Hooke's Law, where the force that the spring is pulling on turns out to be in the same, against the direction of lends itself to a very strange but natural description of our system
[52:41] And I could write this even more compactly by saying, let's describe our whole state with a number z. The way that z changes is equal to negative i times itself times a small step in time.
[53:00] Geometrically, what that looks like is taking wherever you started, so this is a 90 degree angle, and then taking a little step. And then now you're at a new state, and you rotate that new state by 90 degrees,
[53:16] scale it down by delta t, whatever your time step is, and you take another step. And you keep doing this, and just like what we saw earlier for compound interest that was imaginary, what you end up doing is walking around a circle.
[53:32] This should go out a little bit further, something like that. Now let's gut check to see if this intuitively Because this vertical axis is the velocity.
[53:49] So what we're saying is if you start off with a high velocity and a low displacement, so your spring, your mass is moving fast, but it's not that far away from the equilibrium point, well yeah, x is going to increase, because that's what it means to be moving fast.
[54:02] So the x component, the real component here, is getting bigger and bigger. because the spring is pulling it back. until we reach a point where there's no velocity,
[54:17] So we've kind of swung out, and then it's as far out as it can go, The x component is going to start decreasing, and the velocity is negative.
[54:29] And in general, this is just going to walk around a circle in our complex plane, where the use of a complex plane feels kind of bizarre here. Whatever piece of math is describing the physics of a spring that goes back and forth,
[54:45] into account friction, so it'll just oscillate back and forth forever, And we can see this maybe even more concretely if we write out the math of it.
[55:00] So what we just saw is that imaginary compound interest invites us to write the solution, the place that we're going to be after an amount of time t, as wherever we were in the beginning, times e to the power of that interest rate,
[55:14] The thing influencing how you change, it's not in the direction of where you are, This is actually a reasonable way to write things,
[55:27] and it mirrors how you might see things written in certain parts of actual physics. This e to the i t term shows up any time you have this kind of oscillation, and the oscillation often corresponds to forces that are proportional to the displacement
[55:40] Now if you wanted to make this, I don't know, connect with the kind of graphs and functions that we see elsewhere, you could write this using Euler's formula,
[55:56] writing the expansion of the fact that e to an imaginary constant walks around a circle, as your initial state times the cosine of t, and minus i times the sine of t.
[56:10] And what this is basically saying is if we were to independently graph the displacements and the velocities, they would look like sine waves. Okay, so I'm just going to draw out a couple different plots here,
[56:25] where on each one I'm going to let the x-axis represent time that we're moving forward, and in one of them we're going to plot the displacement. What it would look like would just be this cosine of t, excuse me,
[56:44] cosine of t real component of our weird complex number description of things. But if that all feels weird, hopefully it feels more concrete when you realize all that saying is that the position of the spring oscillates
[56:59] back and forth in a nice little cosine wave, which matches physical intuition, it kind of oscillates back and forth in this gentle smooth wave. And then similarly the velocity, let's say it started off at zero,
[57:12] what our Euler's formula is telling us is that this will end up being a negative So it's going to start off at zero, but then it's going to go down,
[57:25] and then it's going to point in the opposite direction, And then the velocity will reach some minimum and This is when the spring goes all the way to the other end.
[57:41] and it'll keep oscillating back and forth like that. but the idea that each one of them is a sort of sinusoidal pattern, and that they're out of sync with each other, hopefully lines up with some
[57:56] And I just think it's beautiful that what you can see is happening is it is two different shadows of circular motion in an abstract mathematical idea, of packaging the two components as a real and imaginary part of some number.
[58:13] And all of that is actually deeper than you might think it is. There's certain formalizations of classical Newtonian mechanics that introduce complex numbers for pretty similar reasons to what's going on here.
[58:28] But what I want to emphasize is that this original question we asked of what happens if your bank offers you an imaginary interest rate isn't totally insane, abstract idea to pursue, and it corresponds to some very real things.
[58:47] So with that, I'm going to go ahead and take one final question from the audience, So the last question we have for today. Can we get some hints or thoughts on the last challenge from the previous lecture,
[59:00] That was a hard question, by the way, the homework that I left at the end of last lecture. So remember, last lecture we were talking all about thinking of the exponential function
[59:13] as this infinite polynomial, and hopefully today the fact that it came from our limiting expression, I didn't show why, but we could call that homework number two for today.
[59:25] If you're really ambitious, it's showing that this expression that comes from compound interest ends up expanding to be this polynomial, which is what we mean anytime we refer to e to the x in math, at least in modern math.
[59:40] So I asked some questions on the homework that involved expanding this out all around trying to understand the crucial equation that when you add two numbers in the input, this is the same as multiplying two outputs.
[59:55] And then what we have on screen is asking about for matrices, what goes on here. So the thing that again, this is kind of advanced and maybe I feel a little
[1:00:07] bit bad about that if I didn't properly emphasize it in giving the homework. The thing I want you to notice is when you go through parts one and two of the homework where you're expanding it out, and especially in the case of
[1:00:23] part two where you're expanding things out, to think critically about whether the commutative property, x times y equals y times x, is needed or relevant. Because often when we expand out binomial terms, it assumes that this is true.
[1:00:39] And the reason that the math for expanding binomial terms looks like what it does, order of multiplication doesn't matter. This is particularly relevant in part two where we're expanding this exp of x plus y.
[1:00:57] these terms that look like x plus y to the power n. And then the parts of that are going to end up looking like n choose k where this is the binomial constant.
[1:01:12] If you don't have the prerequisite knowledge, don't feel intimidated by these problems. The only reason that this expansion would work is if you have the commutative property.
[1:01:27] But what this means is that the whole line of argumentation to show this property doesn't work if the things that you're plugging in don't commute with each other, where x times y is not necessarily y times x.
[1:01:40] but for matrices that's actually not true. think writing e to the x for this is a bad convention.
[1:01:52] Because you have this bizarre situation where when you have matrices, and this does come up, there's real math that's done where you are exponentiating matrices, the notation inspires you to think, oh, I should be able to write this as,
[1:02:06] you know, exponentiating a times exponentiating b should be exponentiating a plus b. This is not true in the case of matrices. it's not true in the case of quaternions.
[1:02:21] So this convention of writing it as e to the x is incredibly confusing as soon as you start extending into the realms where it's most useful, where you have this particularly powerful polynomial.
[1:02:34] And I'm just, I don't know, I think that is a fact worth emphasizing, which is maybe why I wanted to sneak it into the homework, only later realizing that, you know, if honestly my intention is to introduce people to the idea just at a
[1:02:47] high level that this e to the x function is more than you think it is, maybe jumping straight to the crazy idea of matrices and expecting them to notice the nuance of commutativity being relevant to the n choose k formula for binomial
[1:03:01] things that go in there if we're really dissecting it.
⚡ Saved you 1h 03m reading this? Transcribe any YouTube video for free — no signup needed.