News for hackers. Stuff that matters.
Re:The exponential function is a miracle by kerkeslager on Friday September 13, 2019 @12:12AM (#20959110)
This is such a weird thread. There are a bunch of people arguing about why their favorite math thing is more a miracle than someone else's favorite math thing.

Nothing is surprising if you've seen it before. Let's just let each other be excited about our favorite math, okay?

Euler's identity is the one that gets me:

    e^(i * pi) + 1 = 0
How can this be? The five fundamental constants are related!
Re:The exponential function is a miracle by jacobolus on Friday September 13, 2019 @01:33AM (#20959447)
> exp(iπ) = –1 ... How can this be?

The “plain English” expression of this formula is: a half turn rotation in a plane is equivalent to a reflection across the axis of rotation.

YMMV, but I have found that small children can understand this statement.

Re:The exponential function is a miracle by creato on Friday September 13, 2019 @02:00AM (#20959568)
Talking about rotation as if that is obviously relevant completely skips the surprising and interesting part of this identity.

edit: Said another way, what you said is an explanation for what (cos(pi), sin(pi)) is. That exp(i*pi) has anything to do with sine or cosine is what makes the identity interesting, and your explanation says nothing about that.

Re:The exponential function is a miracle by dnautics on Friday September 13, 2019 @02:38AM (#20959745)
Yeah and also that an exponential is a turning function, or that you can even take an number to an imaginary power in the first place, or that turning the right amount just happens to take the power of e (and not, say, 2)
Re:The exponential function is a miracle by username90 on Friday September 13, 2019 @03:24AM (#20959941)
It's a lot less surprising if you look at the functions as Taylor series, then you'd see that exponentiation is basically the same thing as cos + sin. This also explains "why e and not 2?", because the Taylor series for e, cos and sin are very nice by definition (e is defined to have trivial derivative, and radians are defined to make sin and cos have simple derivatives) while the Taylor series for exponentiation by 2 is not.
Re:The exponential function is a miracle by dnautics on Friday September 13, 2019 @03:18PM (#20965401)
Agreed, but that is a lot of overhead to get to the insight.
Re:The exponential function is a miracle by thaumasiotes on Friday September 13, 2019 @03:41AM (#20960010)
> that turning the right amount just happens to take the power of e (and not, say, 2)

username90 already explained this one, but in my own rephrasing:

The premise is incorrect. It isn't that "turning just happens to take the power of e". e is defined to be the number for which this is true.

Re:The exponential function is a miracle by bsaul on Friday September 13, 2019 @05:41AM (#20960571)
Those kind of « it’s defined like this » explanation has always confused me in math in general. there are two really different things :

- the mathematical concept was initialy created as a way to solve this particular problem, and so this should come at no surprise

And

- after centuries trying to define this concept, we found that the best way to define this concept is like that.

In your case, was « e » created to perform 2D rotations in the first place ?

Re:The exponential function is a miracle by username90 on Friday September 13, 2019 @08:37AM (#20961513)
We can look at history:

1. e was discovered in 1618

2. i was introduced around 1637

4. calculus was formalized by Newton in 1687

3. derivatives of sine and cosine were discovered in 1722

4. de Moivre's formula (cos x + i sin x) ^ n = cos nx + i sin nx was discovered in 1730

5. Eulers fornula e ^ ix = cos x + i sin x was discovered in 1748 by using Taylor series (requires their derivatives).

So we knew about e and i more than a century before Eulers fornula.

However we discovered it pretty soon after we started applying calculus to trigonometrical functions. Also we can note that it is a strictly more powerful than de Moivre's formula since it shows that we can easily add angles just by multiplying their complex representations, so it is not just a simplification of old knowledge.

So it seems like the discovery of Euler's fornula actually did help with working with rotations. However it was done during a time when we were still exploring the applications of Calculus so there were a lot of low hanging fruit like this to pick.

So to directly answer your question, e was not created to perform 2D rotations, instead we discovered that putting i inside of e makes 2D rotations simple. But the actual important identity you care about is that you can add angles by multiplying which is easy to prove using eulers fornula:

(cos x + i sin x) * (cos y + i sin y) = cos (x + y) + i sin (x + y)

Re:The exponential function is a miracle by jacobolus on Friday September 13, 2019 @03:09PM (#20965323)
> Eulers fornula e^ix = cos x + i sin x was discovered in 1748

Discovered by Roger Cotes in 1714, in IMO its most natural form, ix = log(cos x + i sin x)

> actual important identity you care about is that you can add angles by multiplying

Personally I think the multiplicative concept of rotations is the natural one, with rotations associated to points on a circle embedded in the plane, rather than associated to arclengths. The amazing thing is that we can compose rotations (naturally multiplicative) by first taking the logarithm of the rotations (a.k.a. angle measure) adding them, and then taking the inverse logarithm. The logarithm is a tool which turns multiplication into addition.

The protractor and the slide rule turn out to be more or less the same concept, which is why we can substitute the former for the latter in https://en.wikipedia.org/wiki/Prosthaphaeresis

Re:The exponential function is a miracle by Excel_Wizard on Friday September 13, 2019 @08:35AM (#20961499)
If you explored the problem domain, starting with an understanding of trigonometry and calculus, it will naturally emerge as a result. It was not arbitrarily defined.

Imaginary numbers were not arbitrarily defined either, they precisely describe an actual phenomenon.

At a certain level, it is difficult to distinguish between "the reality we decided is true" for math vs. "the reality that must be true underneath". If you accept empiricism, such that you trust observations we make about the physical world, this problem becomes irrelevant to this discussion.

Re:The exponential function is a miracle by thaumasiotes on Friday September 13, 2019 @02:13PM (#20964763)
No, as username90 says, e was not created to perform rotations. The aspect of e that comes into play for the relation to sine and cosine is that the function e^x satisfies the differential equation df/dx = f. This makes the Taylor series convenient by not introducing factors of (ln K)^n in each term.

Thus, 2^ix = cis (x ln 2) = cos (x ln 2) + i sin (x ln 2). And since e is, by definition, the number that satisfies ln e = 1, e^ix can be stated more simply as cis x. And that identity, ln e = 1, is in fact the original motivating definition of e.

Re:The exponential function is a miracle by creato on Friday September 13, 2019 @01:17PM (#20964159)
There are many valid ways to arrive at e as an interesting constant. A particular way of arriving at e as an interesting comment might provide a connection to something else (such as 2D rotation), but that doesn't mean it was created for that purpose.
Re:The exponential function is a miracle by jacobolus on Friday September 13, 2019 @04:00AM (#20960104)
Personally I think the cool part is that the complex logarithm takes the stereographic projection and turns it into the Mercator projection. That is, it conformally maps the plane onto an infinite two-ended cylinder.

The expression log(–1) = iπ more or less just tells you how to normalize the coordinate system on the cylinder. If you wanted you could pick a somewhat different coordinate system. This one is conventional and often convenient though.

Re:The exponential function is a miracle by garmaine on Friday September 13, 2019 @03:22AM (#20959931)
Complex numbers are about rotation. That’s the only odd insight in Euler’s equation. Once you get that, it all falls into place (and in fact starts to explain all the use of complex numbers in engineering).
Re:The exponential function is a miracle by creato on Friday September 13, 2019 @01:09PM (#20964063)
> Complex numbers are about rotation.

Why?

(I'm not denying that it is, just pointing out that like the person I first replied to, you are jumping over the interesting part here and stating interesting conclusions like they are definitions.)

Re:The exponential function is a miracle by jacobolus on Friday September 13, 2019 @03:02PM (#20965259)
A complex number “is”† a quotient of two Euclidean vectors in a plane. That is, Z = u\v is the object which when you multiply it by one vector u, scales and rotates that into another vector v. We can write uZ = uu⁻¹v = v.

http://geocalc.clas.asu.edu/pdf/OerstedMedalLecture.pdf

https://geocalc.clas.asu.edu/pdf/GrassmannsVision.pdf

† More precisely, the algebra of complex numbers is structurally the same as the algebra of quotients of planar vectors.

Re:The exponential function is a miracle by garmaine on Friday September 13, 2019 @01:35PM (#20964346)
As I said, "that's the only odd insight." I'm not claiming it's obvious, it's not. but once explained it makes sense and the rest falls in place. Here's a better resource than I can type up:

https://betterexplained.com/articles/a-visual-intuitive-guid...

Re:The exponential function is a miracle by xaedes on Friday September 13, 2019 @03:54AM (#20960074)
Hm does that mean you could say the complex quantum probability is just a probability over rotations?
Re:The exponential function is a miracle by tim333 on Friday September 13, 2019 @06:55AM (#20960931)
Well you add up all the rotation like stuff and square the result to get the probability. In the book QED Feynman describes it as adding little arrows to explain it to a lay audience. In physical terms it's probably most like adding waves and then the square of the amplitude or wave energy is the probability but not quite - no one really knows what the actual reality is.
Re:The exponential function is a miracle by baq on Friday September 13, 2019 @07:07AM (#20960995)
Kinda sorta, imagine that probability has a direction. Interference is then about alignment of these directions.
Re:The exponential function is a miracle by posterboy on Friday September 13, 2019 @07:23AM (#20961075)
what does electric engineering have to do with rotation? Generators perhaps run in circles, an inductor is a coil often enough, but a capacitor?
Re:The exponential function is a miracle by mikorym on Friday September 13, 2019 @07:46AM (#20961201)
Electromagnetism concerns movement of what appear to be moving circles. If you roll a circle with a pen marker it draws a sine or cosine curve. If you try to draw the spiral of a light wave you get perpendicular sine and cosine curves. Light is electromagnetic radiation and in turn both electricity and magnetism are fundamentally connected forces.
Re:The exponential function is a miracle by posterboy on Friday September 13, 2019 @07:23PM (#20967696)
there is no "spiral of a light wave" lol. If anything, I'd think of transversal movement. Ironically I cannot say that nobody has ever seen a photon. But nobody has ever seen an electron. There could be a model in which electrons move transversal (at mm/s), mediated by photons, but I have not looked that closely into it. It's not part of the usual theories.

if you attach a pen to a hoop and move the hoop along a wall, you do not get a wave, you get (edit: what looks like but isn't) sharp discontinuity where the pen touches the ground (https://google.com/search?q=cos%28x-sin%28x%29%29)

Re:The exponential function is a miracle by garmaine on Saturday September 14, 2019 @09:35AM (#20970666)
Circular polarized light is a spiral, at least in terms of how we normally draw the vector annotation.
Re:The exponential function is a miracle by rimliu on Friday September 13, 2019 @07:52AM (#20961235)
You may say that AC has a lot to do with rotation.
Re:The exponential function is a miracle by garmaine on Friday September 13, 2019 @01:07PM (#20964029)
EM is about rotating fields. Phase is very fundamentally connected with rotation. These are where complex numbers show up.
Re:The exponential function is a miracle by matt-attack on Friday September 13, 2019 @05:34AM (#20960545)
I think it makes even more sense when written in terms of tau.

    e ^ (i * tau) = 1
In plain English: “rotating by a full turn is the same as doing nothing”.
Re:The exponential function is a miracle by throwaway2048 on Friday September 13, 2019 @06:45AM (#20960882)
this, and the unit circle are by far the most compelling arguments for tau.

Euler's identity isn't some mysterious thing where all these mathematical building blocks meet, its a completely straight forward and fundamental consequence of circles existing!.

Re:The exponential function is a miracle by lonelappde on Friday September 13, 2019 @06:58PM (#20967524)
2pi is a full turn. Using a different name doesn't change much.
Re:The exponential function is a miracle by SilasX on Friday September 13, 2019 @10:46AM (#20962627)
I've never considered that (in itself) a satisfying or complete explanation, because it just handwaves away the problem of how it is that imaginary exponentiation gets you a rotation in the complex plane, and feels like you're just defining it as such, which isn't imparting any insight.

Yes, small children can understand the bit about "two half turns put you in the reflected position", but not "why is i rotating a complex number at all".

Re:The exponential function is a miracle by jacobolus on Friday September 13, 2019 @05:07PM (#20966570)
> but not "why is i rotating a complex number at all".

Yes, this part requires getting a good amount of practice with vectors, and is best saved for kids aged maybe 10+ (depends a lot on the kid and their level of preparation).

The most straight-forward approach is to define I to mean a quarter turn rotation anticlockwise in the plane. Then try to figure out what a quantity like Z = a + bI (where a and b are scalars) would mean: if we multiply it by a vector v we get Zv = av + bIv, that is: a part of the vector av pointed in the same direction as v plus a part of the vector bIv pointed in a perpendicular direction.

Now we can investigate what happens when we multiply I(Iv): we rotate v a quarter turn, then another quarter turn. Or in other words, I(Iv) = –v for any v. Because our multiplication is associative and vectors have inverses, we can write II = –1.

The tricky part of the abstraction here is that we can treat scale + rotation transformations of the plane like numbers. Multiplying them corresponds to composition of transformations. Adding them and then applying the sum to a vector is the same as applying each separately and adding the parts afterward.

Getting comfortable with this algebraic system is certainly not trivial.

Then there is a neat insight that when we take a pure rotation’s logarithm (a.k.a. “angle measure”), that turns out to have magnitude proportional to the arclength between two rotated points on a circle.

Re:The exponential function is a miracle by SilasX on Friday September 13, 2019 @05:11PM (#20966615)
>The most straight-forward approach is to define I to mean a quarter turn rotation anticlockwise in the plane

Like I said originally, if you're just defining i to work this way, you're not conveying any of the insight behind why this is a natural extension of the existing rules/definitions of i, sine, exponentiation, etc.

All your latest comment is doing is meticulously spelling out the concept of rotation in a plane. Again, that's not the hard(est) part of proving this result or of conveying the intuition. You're handwaving away 90% of it. It's not reasonable to characterize someone as "understanding" it because they get rotation, the last 10%.

Re:The exponential function is a miracle by jacobolus on Friday September 13, 2019 @05:26PM (#20966766)
The “existing rules/definitions of i, sine, etc.” are poor places to start.

There are many ways to define these concepts. The traditional versions are needlessly obscurantist and get the appropriate pedagogical/conceptual order backwards.

The proper pedagogical definition for I is “the ratio of two vectors of the same magnitude which point perpendicularly in the plane”, or “the transformation which rotates vectors in the plane by a quarter turn”. Defining I as √(–1) and then working with purely formal quantities of the type a + bI is much harder to follow. It just seems completely arbitrary and invented (which is why people had trouble with it historically, and many students still do today).

If you define I to mean a quarter turn, then having it square to a half turn makes perfect sense. Once you know that a half turn is equivalent to a reflection across the axis of rotation, then it’s pretty clear to see why a half turn of planar vectors should be written as the scalar –1. So the property that I^2 = –1 emerges naturally.

Then when you sometime later start talking about logarithms, there’s a nice opening to talk about what the logarithm should be of a rotation. This ties in nicely with a discussion about position, velocity, and acceleration in uniform circular motion, etc.

* * *

It seems like there is some “deep insight” when you start with very obscure concepts/notation defined purely formally/abstractly and then fiddle with them a bit and suddenly out pops something simple and concrete. It makes for a good magic trick or punchline at the end of the tedious slog that is a traditional math course.

But it’s better to start with simple concrete ideas and notation which are meaningful a priori.

Re:The exponential function is a miracle by SilasX on Friday September 13, 2019 @05:54PM (#20966998)
>Then when you sometime later start talking about logarithms, there’s a nice opening to talk about what the logarithm should be of a rotation

Right, so you agree your explanation isn't covering the connection to the existing rules of i, and is just explaining how rotation works and giving it a symbol. That's great, but it has nothing to do with the insight that people are actually impressed by, which is that the concepts and rules created for a different domain (e.g. exponentiation and i as square root of -1) naturally extend in such a way that gives the Euler equation and so on.

You're not explaining that insight at all, and shouldn't consider anyone to actually understand the insight if they get it. All you're explaining is the concept of point rotation. You shouldn't represent that as "oh, a child understands why exp(pi i) = -1, see, I explain it just fine!"

If you prefer teaching things in that order, great! If you're dismissive of formal and abstraction notation, great!

But you're not actually explaining the amazing insight everyone here is celebrating.

Re:The exponential function is a miracle by jacobolus on Friday September 13, 2019 @08:34PM (#20968072)
You seem to be misunderstanding what I am trying to say. Sorry if it was unclear.

If I am explaining to small children that a half-turn rotation is the same as a reflection through the axis of rotation, then there is no symbol at all. Just words and physical manipulation. It’s a simple idea.

If I am explaining to a high school student (or a well prepared 11 year old) what complex numbers mean, then we are going to start by doing a bunch of discussion of vectors in the context of geometry and mechanics.

If I am explaining how logarithms work, we are going to attack them from many directions: iterated multiplication and compound interest, exponential growth/decay, velocity proportional to current position, uniform circular motion, ...

There are many subtle and interesting concepts involved here. It’s worth taking them slowly and spending a few years building up fluency.

There is indeed an insight that the logarithm of a rotation is proportional to arclength. That’s really the key insight we are talking about here. Why does that happen? That part is pretty interesting and worth exploring (but not nearly so difficult or mind blowing as it is made out to be).

Iterated multiplication of rotations behaves similarly to iterated multiplication of scalars, and we can take logarithms of rotations and then add them just like we could do with logarithms of scalars. Uniform circular motion turns out to be a type of exponential growth.

Now if you take a rotation R and look at the arclength from some vector x to Rx on the circle (an abstract circle in the space of displacement vectors) of squared radius x^2, and then you iterate R, you get proportional arclengths.

That is, arclength(arc of origin-centered circle from x to RRx) = 2 × arclength(arc from x to Rx). And the extends to any other number of iterations of R. More generally if we compose two rotations then we add their arclengths.

So arclength of the circular arc is proportional in general to the logarithm of rotation, and we can therefore use arclength as a model of the logarithm. (This is called “angle measure”, and we can physically measure it with a protractor).

> concepts and rules created for a different domain

The history of the understanding of astronomy, complex numbers, etc. is not really relevant at the introductory level.

Slide rules and protractors are however useful tools to teach about.

Leading off with power series, classical trigonometry, complex numbers defined as purely abstract formal objects invented for finding roots of polynomials, etc. is not “insightful”, it is just obfuscatory. It is a product of our current anachronistic approach to teaching which is based on training human computers even though we no longer need them and neglecting problem solving, and focusing almost entirely on algebra and a symbol-heavy framing of “trigonometry” and calculus at the expense of geometric understanding.

At some later point it’s all fine and dandy to talk about the history of astronomy and chord/sine tables, the development of differential equations and the understanding of 2D and 3D rotation: Hipparchus, Archimedes, Ptolemy, Madhava, Al Kashi, Bürgi, Napier, Mercator, Newton, the Bernoullis, Euler, Argand, Rodrigues, Gauss, Cauchy, Riemann, Hamilton, Grassmann, Cayley, Maxwell, Gibbs, Clifford, Möbius, Klein, Lie, and all the rest. But not as an introduction.

Re:The exponential function is a miracle by heavenlyblue on Friday September 13, 2019 @12:48PM (#20963799)
Well, the first time it made a tick for me was when I realised that rotational exponentiation is what provides for perfectly smooth transitions between even and odd powers of negative numbers.
Re:The exponential function is a miracle by ilyagr on Friday September 13, 2019 @02:07AM (#20959607)
From this point of view, it's not easy to see what exp(1) should be. The beauty is in the connection.
Re:The exponential function is a miracle by jacobolus on Friday September 13, 2019 @03:57AM (#20960087)
What the precise value of exp(1) turns out to be isn’t really the point though.

That’s one reason that e^x is a pedagogically problematic shorthand for exp(x).

Re:The exponential function is a miracle by ilyagr on Friday September 13, 2019 @11:11AM (#20962830)
I disagree, I think it's very much essential to the point.

For one, 10^(i*pi) is some horrible complex number, which is what you'd expect when exponentiating random complex numbers. Exercise: figure out what it is from the rotation point of view.

Secondly, usual definitions of e don't involve complex numbers at all. Nor do questions such as whether e is rational, algebraic, etc.

Thirdly, if you go with this argument too far, you'll conclude that the value of pi is also not important. After all, circles must have some length, who cares what it is precisely?

Re:The exponential function is a miracle by jacobolus on Friday September 13, 2019 @03:34PM (#20965565)
> 10^(iπ) is some horrible complex number

Sure, you want to use a convenient coordinate system. But you already have 2 horrible numbers in the conventional coordinate system: the π and e.

In the conventional (“natural”) coordinate system for logarithms, the coordinates represent powers of e and rotations by 1/2π turns, respectively.

You have just decided that you’ll use those specific horrible numbers in the logarithmic coordinates, because e and π are what you get out if you choose a coordinate system for the logarithm of quotients-of-vectors where the derivative of log(x) at the point x = 1 is 1. This turns out to be convenient for simplifying differential equations and related formulas.

Personally I like using a coordinate system where the “scale” axis of the logarithm uses units of doublings, and the “rotation” axis of the logarithm uses units of full turns. If I use that one when making a picture, I can easily tell you exactly what the value is (as a rational number) at every grid intersection.

e.g. here is a plot of a Möbius transformation, https://raw.githubusercontent.com/jrus/images-for-observable... Every contour at the most prominent level is either a doubling or 1/12 of a turn. (You’ll notice that when we zoom on any part of the picture, we see little rectangles rather than little squares; the “natural” coordinate system is a square one, which is also often convenient.)

Re:The exponential function is a miracle by kittiepryde on Friday September 13, 2019 @04:16AM (#20960179)
You explained that 'a half turn rotation in a plane is equivalent to a reflection across the axis of rotation' to a child and they were able to figure out how 'exp(i*pi)=-1' was derived? That's remarkable!

I think these children were on a much higher level than most adults that we'd still consider smart, I wouldn't put down anyone for not immediately seeing these two things as equivalent.

Re:The exponential function is a miracle by jacobolus on Friday September 13, 2019 @04:02PM (#20965909)
No, the children were able to understand how if you rotate a piece of paper by half a turn, all of the points end up the same distance from the axis of rotation, but the opposite direction from where they started.

All of the stuff about exponential functions and angle measures and “imaginary” numbers just obfuscates the core idea.

Re:The exponential function is a miracle by SilasX on Friday September 13, 2019 @05:15PM (#20966662)
But the core idea involves why imaginary exponentiation means a rotation in the complex plane! If you don't have that part, you're not talking about i at all, you're just teaching the concept of rotation, with the same symbols as are used in complex math.

You would have the exact same explanation if you were teaching about rotation unconnected to imaginary numbers or exponentiation at all!

Re:The exponential function is a miracle by F-0X on Friday September 13, 2019 @05:59AM (#20960652)
But that's just false. Rotations preserve orientation, reflections do not. They can't be equivalent. Two reflections can be equivalent to a rotation however, because that restores the original orientation.
Re:The exponential function is a miracle by CogitoCogito on Friday September 13, 2019 @06:02AM (#20960667)
> But that's just false. Rotations preserve orientation, reflections do not. They can't be equivalent. Two reflections can be equivalent to a rotation however, because that restores the original orientation.

I believe the parent meant the statement as it applies to a single point. E.g. meant to say "a half turn rotation in a plane [of a point] is equivalent to a reflection across the axis of rotation."

Re:The exponential function is a miracle by jacobolus on Friday September 13, 2019 @03:57PM (#20965846)
A reflection across the axis of rotation, which is a point, not a reflection across a line.

–1 is the quotient of any two vectors which have the same magnitude and point in opposite directions.

Re:The exponential function is a miracle by ColanR on Friday September 13, 2019 @01:59AM (#20959560)
That is the best explanation I've ever seen.
Re:The exponential function is a miracle by The_rationalist on Friday September 13, 2019 @04:09AM (#20960142)
It's kinda sad that formalism here is far less clearer than natural language. I often wonder if instead of formalisms, mathematicians should just have used attempto controlled English.
Re:The exponential function is a miracle by lonelappde on Friday September 13, 2019 @07:09PM (#20967601)
They tried that before the nineteenth century and it stymied progress. Imagine multiplying just two-digit numbers without any notation.
Re:The exponential function is a miracle by The_rationalist on Saturday September 14, 2019 @07:15AM (#20970085)
They didn't tried attempto controlled English in the nineteenth century as it only exists since end of twenty century.

Imagine multiplying just two-digit numbers without any notation I agree, notation can be useful for concision. Far less for clarity. Instead of a black or white thinking, I'm wishing that mathematicians use more well defined English in their proof, but still use notation where it is clear and more concise.

Re:The exponential function is a miracle by gigatexal on Friday September 13, 2019 @02:44AM (#20959784)
I was never very good at geometry and this explanation has me feeling like a really stupid child.
Re:The exponential function is a miracle by garmaine on Friday September 13, 2019 @03:23AM (#20959937)
Re:The exponential function is a miracle by gigatexal on Saturday September 14, 2019 @06:17AM (#20969904)
That makes a lot of sense now -- thanks!
Re:The exponential function is a miracle by tim333 on Friday September 13, 2019 @07:04AM (#20960975)
The surprising thing is that a bit of arithmetic results in something like geometry.
Re:The exponential function is a miracle by nadam on Friday September 13, 2019 @07:09AM (#20961005)
For me it would be suprising only if the equation would be about real numbers only. Exponentiation of complex numbers is defined in a way that this is trivially true. Or at least this is my perception as a non math-expert.

My approach to Euler's equation (as a non-expert) was the following:

1. Try to understand the meaning of the operations in the equation. Search for the definition of exponential on complex numbers, because it was not trivial for me how it is defined on complex numbers.

2. I have read that it is defined by angles and the unit circle: e(alpha * i) is the point on the unit circle at angle alpha.

3: Looking at the equation: this is trivial, it basically says that cos(Pi) is -1.

What am I missing?

Edit: And why is exponentiation defined this way? Why is the base e? Why isn't it 2, like this:

"2^(alpha * i) is the point on the unit circle at angle alpha."

Would this definition lead to contradiction or some difficulties?

Re:The exponential function is a miracle by obastani on Friday September 13, 2019 @08:33AM (#20961488)
That is not actually the way to define e^x for complex numbers. There are a few ways you can do so. The most natural way is as the unique solution to the differential equation

df/dx = f

The solutions are e^x + const; requiring f(0) = 1 gives you the choice const = 0.

Another way to define it is as the infinite series

e^x = \sum_{i=0}^inf x^i/i!

It is pretty easy to show this definition is equivalent to the previous one. A third way is as

lim_{n -> inf} (1 + x/n)^n

This definition comes from the intuition that e^x represents the limit of continually compounding interest. As before, it is pretty easy to show that it is equivalent to the previous two.

In any case, all these definitions extend directly to complex values of x. The fact that

e^{ix} = cos(x) + i sin(x)

holds (and hence Euler's identity holds) is a consequence of a more natural definition, not the typical definition.

Re:The exponential function is a miracle by cka on Friday September 13, 2019 @09:25AM (#20961882)
Further evidence that e^{ix} = cos(x) + i sin(x) is natural is that it fits in nicely with power series representations. If you define cos(x), sin(x), and e^x by their power series centered at 0 then it's straightforward to see that substituting ix into the power series for e^x yields the sum of the power series for cos(x) and i*sin(x) (as long as you accept that theorems about absolute convergence and rearranging terms extend to the complex numbers).
Re:The exponential function is a miracle by tonyarkles on Friday September 13, 2019 @09:56AM (#20962167)
The lecture in my Calculus IV course where we walked through that derivation is literally my only memorable math lecture in university. It just so beautifully ties so many different concepts together!
Re:The exponential function is a miracle by Certhas on Friday September 13, 2019 @09:08AM (#20961733)
i x is x rotated left by pi/2

df/dx = f

df(ix)/dx = i f (ix)

so the "velocity" is always orthogonal to the "position". Thus the solution to this equation in the complex numbers has to be a rotation.

Re:The exponential function is a miracle by zests on Friday September 13, 2019 @07:55AM (#20961254)
The derivative of e^ix is ie^ix. Multiplication by i is equivalent to rotation by 90 degrees. The derivative of velocity is acceleration. Acceleration perpendicular to velocity is circular motion.

With base 2 the motion is not circular.

All these pieces (and an initial value problem differential equation) come together to explain the identity.

Re:The exponential function is a miracle by ben_w on Friday September 13, 2019 @07:26AM (#20961088)
The surprise is that the definition you gave in 2. fully agrees with the definition of multiplication that comes naturally from the cartesian version of complex numbers: z = x + bi -> (x1 + b1i)(x2 + b2i) = x1x2 + x1b2i + x2b1i - b1b2

Vector multiplication has two very different forms (dot and cross), so multiplication (and by extension exponentiation) working out smoothly is neat.

Re:The exponential function is a miracle by yiyus on Friday September 13, 2019 @09:29AM (#20961917)
Complex exponentiation is not defined arbitrarily to make Euler identity true. The Euler identity is a consequence.

I love the Euler identity in its typical form, but I think it is more surprising when you replace e and pi by their (approximate) numerical values and i by sqrt(-1)

Re:The exponential function is a miracle by dreamcompiler on Monday September 16, 2019 @11:04AM (#20984774)
> Why is the base e? Why isn't it 2, like this

One of the many things that makes e special is that e^x is the only function that is its own derivative. One of the things that make sin and cos special is that they are each other's derivatives (except for a change of sign in the case of dcos/dx). This doesn't prove anything on its own, but it suggests that there might be some relationship between e and the trig functions, and Euler's equation proves that indeed there is.

Re:The exponential function is a miracle by mikorym on Friday September 13, 2019 @07:49AM (#20961216)
I suspect it would spiral off the unit circle.
Re:The exponential function is a miracle by lacker on Friday September 13, 2019 @01:02AM (#20959307)
I will take the contrary viewpoint. It matters what mathematics we consider to be beautiful and intuitive, because better mathematical intuition will make you better at solving mathematical problems.

On that note, I think e^i pi = -1 is drastically overrated. That is typically the definition of exponentiating to a complex power, that e^ix = sin x + i cos x. Of course something can be beautiful if you take it to be an axiom. It’s like saying x=x is beautiful. Also it’s really just sticking -1 in the more-intuitive, more-useful formula so that it looks cool.

A really beautiful formula is that x^p - x is divisible by p when x is an integer and p is prime....

Re:The exponential function is a miracle by kd5bjo on Friday September 13, 2019 @02:27AM (#20959706)
Though it’s probably the most commonly used definition for complex exponentiation, e^i pi=-1 is not an axiom— it is derived from the basic rules of integer arithmetic expanded in scope until they make a closed system.

And from this, we can derive all of the trigonometric functions using only algebra and no geometry.

(See http://www.feynmanlectures.caltech.edu/I_22.html , particularly section 22-5)

Re:The exponential function is a miracle by thaumasiotes on Friday September 13, 2019 @03:42AM (#20960016)
> I think e^i pi = -1 is drastically overrated. That is typically the definition of exponentiating to a complex power, that e^ix = sin x + i cos x.

Yes, but it's the definition of exponentiating to a complex power because it is easily proven by reference to the real Taylor series of those functions. The complex definition is motivated by the real result, not -- as you imply -- the other way around.

(Also, you have it backwards; e^ix is cos x + i sin x.)

Re:The exponential function is a miracle by username90 on Friday September 13, 2019 @03:44AM (#20960028)
You can easily derive e^ix = i cos x + sin x.

Just look at the Taylor series for e^x and compare with the Taylor series for sin x + cos x. You'd see that they are basically the same, just that the trigonometric functions alternate their signs every 2 steps. How do we alternate the signs in e^x? We just add a factor of i, that way we get alternate signs every two steps but get an additional i on every odd step. Odd steps are sin, so just add i to sin and we are done: e^ix = i sin x + cos x.

Now we also see that you remembered the wrong formula, it the sine part is imaginary since it corresponds to the odd factors.

Re:The exponential function is a miracle by contravariant on Friday September 13, 2019 @03:43PM (#20965670)
I have no problems with this route to show that e^ix = cos(x) + i sin(x) but to do it properly does require showing that this is the unique analytic continuation of the exponential function.

The alternative method is to note that exp() is defined as the unique function satisfying exp(0) = 1 and dexp(ax)/dx = a exp(ax). So exp(ix) describes a point moving orthogonal to it's current position, which means it's a circle, and since it's speed is proportional to it's distance from the origin it is moving at a constant speed. So e^ix is just a point x radions around the unit circle.

Re:The exponential function is a miracle by plopilop on Friday September 13, 2019 @04:09AM (#20960141)
(it's the other way round, e^(ix) = cos(x) + i sin(x))
Re:The exponential function is a miracle by Koshkin on Friday September 13, 2019 @08:53AM (#20961611)
Addition is commutative.
Re:The exponential function is a miracle by bzbarsky on Friday September 13, 2019 @09:21AM (#20961838)
Not sure whether that was meant as a joke or not, but the difference is which term is real and which is imaginary, not the order of the terms...
Re:The exponential function is a miracle by jaster on Friday September 13, 2019 @03:01AM (#20959848)
If you're curious about this, betterexplained has a good article on Euler's Formula:

https://betterexplained.com/articles/intuitive-understanding...

As a bonus, understanding how it is related to rotation may give you a new insight on the Fourier Transform: https://betterexplained.com/articles/an-interactive-guide-to...

Re:The exponential function is a miracle by nabla9 on Friday September 13, 2019 @01:35AM (#20959460)
For me the most mysterious equation is:

⌊π⌋ - ⌈e⌉ = 0

This equation shows connection between pi, e, zero and number theory.

Re:The exponential function is a miracle by soulofmischief on Friday September 13, 2019 @01:50AM (#20959532)
I mean, you could arbitrarily chop the precision of all sorts of things to make them "equal". It hardly seems significant or illuminating.
Re:The exponential function is a miracle by lern_too_spel on Friday September 13, 2019 @02:02AM (#20959578)
It's a joke.
Re:The exponential function is a miracle by boyobo on Friday September 13, 2019 @12:29AM (#20959179)

  Let's just let each other be excited about our favorite math, okay?
I don't think it's malicious, we're just trying to narrow down exactly what makes something interesting. In the process, we get to understand our favorite math more deeply.

  Nothing is surprising if you've seen it before.
On the other hand, if you can find a theory that makes a miracle look mundane, then the theory is probably interesting. So finding reasons why something is `not surprising' is a good guide to finding interesting math.
Re:The exponential function is a miracle by matt-noonan on Friday September 13, 2019 @12:25AM (#20959164)
You mean the seven fundamental constants?

e^(i * pi) + 1 = 0 * 17 * 42

Re:The exponential function is a miracle by avmich on Friday September 13, 2019 @01:54AM (#20959546)
Roger Hui: In the year 2033 Earth was discovered by Survey Fleet MCXII of the Galactic Empire. The Emperor ordered Earth to send a representative to the court, with strict instructions to “bring something beautiful”.

Emperor: What beautiful things does Earth have?

Earth Representative: Your excellency, our mathematician Euler proved in our year 1737 that +/(1+⍳∞)-s ←→ ×/÷1-(⍭⍳∞)-s

Emperor: What is the ⍭ symbol?

Earth Rep.: ⍭i is the i-th prime.

Emperor: And what is ∞? Does it do anything useful?

Earth Rep.: It denotes infinity, your excellency.

Emperor: (ponders equation for a minute or two) Respect!

Emperor: Neat notation you have there. Tell me more.

Earth Rep.: Your excellency, it’s called APL. It was invented by the Canadian Kenneth E. Iverson …

Re:The exponential function is a miracle by tus88 on Friday September 13, 2019 @12:34AM (#20959197)
Still not sure what i and 17 are...
Re:The exponential function is a miracle by throwaway2048 on Friday September 13, 2019 @06:48AM (#20960895)
its a joke about how Euler's identity isn't normally simplified and written as:

     E^(iπ) = -1 
because people wanna be "cute" about it containing 0 and 1, so why not a bunch of other arbitrary numbers too?
Re:The exponential function is a miracle by lonelappde on Friday September 13, 2019 @07:13PM (#20967633)
Setting an expression equal to 0 is quite standard form.
Re:The exponential function is a miracle by AstralStorm on Friday September 13, 2019 @12:36AM (#20959205)
Number i is the complex unit, but I've no idea about 17 either.
Re:The exponential function is a miracle by yesbabyyes on Friday September 13, 2019 @02:41AM (#20959764)
It's the first arbitrary number. 4711 is the second arbitrary number. They were used as the numeric foo and bar when I studied programming in high school and college during the 90s. I always thought it was universal hackerdom, but I actually rarely see them referenced. Perhaps it's a European thing?
Re:The exponential function is a miracle by tus88 on Friday September 13, 2019 @04:22PM (#20966100)
Do you have a source on "arbitrary number"? There were no obvious explanations online.
Re:The exponential function is a miracle by yesbabyyes on Saturday September 14, 2019 @06:54AM (#20970026)
It's not a mathematical or in any way strict thing. It's just a number chosen to exemplify any number. Just like "foo", "bar", "baz", "qux", etc, a sequence of numbers could be e.g. 17, 42, 4711. I grew up with it, and googling it seems that at least 4711 is a German thing.
Re:The exponential function is a miracle by perl4ever on Friday September 13, 2019 @08:39PM (#20968089)
I was thinking, what is the smallest number not found in any sequence on https://oeis.org/?
Re:The exponential function is a miracle by magicseth on Friday September 13, 2019 @01:16AM (#20959382)
17 is the favorite number of David Kelly, a mathematician and professor of Hampshire College. He loves it for a very large number of reasons. He was instrumental in creating a summer camp at Hampshire which has trained many young brilliant mathematical minds. (Including Vi Hart). Thus it has spread.

http://www.vinc17.net/yp17/index.en.html

Re:The exponential function is a miracle by lucas_membrane on Friday September 13, 2019 @05:27AM (#20960509)
Following the links from that link, I find wikipedia for 17 says, "Carl Friedrich Gauss (1777–1855) showed that two regular "heptadecagons" (17-sided polygons) could be constructed with ruler and compasses."

(I learned it as straightedge and compass.) Wikipedia did not mention the story that Gauss has a regular heptadecagon inscribed on his tombstone.

Re:The exponential function is a miracle by oarabbus_ on Friday September 13, 2019 @02:46AM (#20959789)
You can find such "collections" for numbers like 7, 8, or 13, even ignoring the integers 0-4, and 42 is obviously a reference to Hitchhikers guide, a work of fiction. Am I missing something?
Re:The exponential function is a miracle by lonelappde on Friday September 13, 2019 @07:14PM (#20967642)
Surely he loves it for 17 reasons.
Re:The exponential function is a miracle by boyobo on Friday September 13, 2019 @12:38AM (#20959211)
Re:The exponential function is a miracle by j7ake on Friday September 13, 2019 @01:47AM (#20959520)
There’s nothing magical here, the first term describes a 180 degree rotation around a circle of radius 1, landing you at -1. Then you add 1 and you land at the Center of your circle, (0,0).
Re:The exponential function is a miracle by ColinWright on Friday September 13, 2019 @06:44AM (#20960876)
So why does the first term describe a 180 degree rotation?

People learn that 2^3 means to take three copies of 2 and multiply them together, and that i^2 is -1, so what does it mean to take (i pi) copies of e and multiply them together?

The part you are describing is not where the magic resides ...

Re:The exponential function is a miracle by lonelappde on Friday September 13, 2019 @07:12PM (#20967626)
But why does rotation work as a model of complex numbers? It's (mathe)magical!
Re:The exponential function is a miracle by Koshkin on Friday September 13, 2019 @08:54AM (#20961621)
Well, there is nothing magical in a magic after you explain it.
Re:The exponential function is a miracle by harry8 on Friday September 13, 2019 @09:11AM (#20961751)
How do you like:

e^(i * tau) = 1

https://tauday.com/tau-manifesto

Re:The exponential function is a miracle by kerkeslager on Friday September 13, 2019 @03:37PM (#20965598)
I actually find this less aesthetically pleasing. It removes the addition identity constant (0).

But that's subjective, who cares?

Re:The exponential function is a miracle by harry8 on Saturday September 14, 2019 @09:24AM (#20970617)
e^(i * tau) - 1 = 0
Re:The exponential function is a miracle by robert-wallis on Friday September 13, 2019 @07:36AM (#20961141)
I recently learned:

> It has been claimed that Euler's identity appears in his monumental work of mathematical analysis published in 1748, Introductio in analysin infinitorum. However, it is questionable whether this particular concept can be attributed to Euler himself, as he may never have expressed it. https://en.m.wikipedia.org/wiki/Euler's_identity

But it is still cool.

https://youtu.be/yPl64xi_ZZA

Re:The exponential function is a miracle by salty_biscuits on Friday September 13, 2019 @04:54AM (#20960351)
I like your style. Mine is why is the kissing number for circles in the plane 6? Why is it even an integer? Seems totally rigged!
Re:The exponential function is a miracle by nixpulvis on Friday September 13, 2019 @08:58AM (#20961661)
I too have spent some time pondering this equation. I've written down some of my findings.

https://nixpulvis.com/math/00-euler

Re:The exponential function is a miracle by graedus on Friday September 13, 2019 @12:46PM (#20963777)
3blue1brown has an excellent and concise video explaining this:

https://www.youtube.com/watch?v=v0YEaeIClKY

Re:The exponential function is a miracle by throwaway66920 on Friday September 13, 2019 @08:21AM (#20961407)
https://www.smbc-comics.com/comic/2013-04-02

An extension of this I find even more surprising

Re:The exponential function is a miracle by jimbo1qaz on Friday September 13, 2019 @01:17AM (#20959391)
I prefer e^(i * 2pi) = 1 (or any multiple of i 2pi).

2pi (or tau) is simply a more fundamental constant for nearly all formulas related to trigonometry and DSP (excluding the sinc function).

Re:The exponential function is a miracle by yoz-y on Friday September 13, 2019 @05:34AM (#20960544)
I find it amusing that many replies to your comment illustrate your point very well.
Re:The exponential function is a miracle by boyobo on Friday September 13, 2019 @08:06AM (#20961326)
If we just throw our hands up in the air and declare everything a "miracle" we never learn anything.
Re:The exponential function is a miracle by misil on Friday September 13, 2019 @05:06AM (#20960415)
Fun fact: Gauss is said to have commented on this equation that "if this was not immediately apparent to you upon being told it, you would never be a first-class mathematician".