# E^(pi i) = -1?

**URL:** <https://boards.straightdope.com/t/e-pi-i-1/923344>\
**Category:** Factual Questions\
**Created:** [October 19, 2020, 7:04pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344 "2020-10-19T19:04:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim\_B](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/jim_b/32/4338_2.png) [@Jim\_B](https://boards.straightdope.com/u/Jim_B)\
**Post date:** [October 19, 2020, 7:04pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/1 "2020-10-19T19:04:41Z")

</div>

I actually first saw it in a cartoon. e^(pi i) = -1.

I still find it hard to believe for a simple reason. ‘i’ is an imaginary number. It has no real value.

So how could the answer be negative one?

It should be an irrational answer, shouldn’t it?

🙂

---

<div class="post-metadata">

**Author:** ![Ruken](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@Ruken](https://boards.straightdope.com/u/Ruken)\
**Post date:** [October 19, 2020, 7:07pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/2 "2020-10-19T19:07:17Z")

</div>

We have Dopers who are equipped to explain this; I am not one of them. But while we wait for someone to stop by, I can at least give you a name and an article to peruse:

> **[Euler's identity](https://en.m.wikipedia.org/wiki/Euler's_identity)**
>
> Pages for logged out editors learn more
> 
> In mathematics, Euler's identity\[note 1\] (also known as Euler's equation) is the equality
> Euler's identity is named after the Swiss mathematician Leonhard Euler. It is a special case of Euler's formula 
>   
>     
>       
>         
> e
>           
> i
> x
>           
>         
> =
> cos
> ⁡
> x
> +
> i
> sin
> ⁡
> x
>       
>     
> {\\displaystyle e^{ix}=\\cos x+i\\sin x}
>   
> ...

---

<div class="post-metadata">

**Author:** ![Jim\_B](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/jim_b/32/4338_2.png) [@Jim\_B](https://boards.straightdope.com/u/Jim_B)\
**Post date:** [October 19, 2020, 7:18pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/3 "2020-10-19T19:18:44Z")

</div>

BTW, before anyone else points it out, I meant _imaginary_ answer. Irrational numbers are real. They just never end and never repeat (which is something else I could never understand–but that’s for a different thread 😉 ).

---

<div class="post-metadata">

**Author:** ![Marvin\_the\_Martian](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/marvin_the_martian/32/2898_2.png) [@Marvin\_the\_Martian](https://boards.straightdope.com/u/Marvin_the_Martian)\
**Post date:** [October 19, 2020, 7:21pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/4 "2020-10-19T19:21:48Z")

</div>

There is no reason that an expression containing an imaginary number cannot equal a real number. An even simpler example is i^2 = -1.

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [October 19, 2020, 7:24pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/5 "2020-10-19T19:24:27Z")

</div>

> [@Jim\_B](#):
>
> It should be an irrational answer, shouldn’t it?

You are thinking of [Gelfond’s Theorem](https://en.wikipedia.org/wiki/Gelfond%E2%80%93Schneider_theorem):

> If _a_ and _b_ are algebraic numbers with _a_ ≠ 0, 1, and _b_ irrational, then any value of _ab_ is a transcendental number.

This applies to eπ but not to eπi 🙂

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [October 19, 2020, 7:27pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/6 "2020-10-19T19:27:44Z")

</div>

> [@Jim\_B](#):
>
> BTW, before anyone else points it out, I meant _imaginary_ answer. Irrational numbers are real. They just never end and never repeat (which is something else I could never understand–but that’s for a different thread 😉 ).

?

Any rational number is real, but an irrational complex number may be real or imaginary like _i_

---

<div class="post-metadata">

**Author:** ![Qadgop\_the\_Mercotan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/qadgop_the_mercotan/32/83_2.png) [@Qadgop\_the\_Mercotan](https://boards.straightdope.com/u/Qadgop_the_Mercotan)\
**Post date:** [October 19, 2020, 7:30pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/7 "2020-10-19T19:30:40Z")

</div>

Now that we’ve had legit answers to this question, let’s examine SMBC’s take on the issue of number types:

> **[Saturday Morning Breakfast Cereal - Numbers](https://www.smbc-comics.com/comic/numbers-2)**
>
> Saturday Morning Breakfast Cereal - Numbers

Me, I like the _inscrutable_ ones like ‘twarch’ and ‘hun bunbred’

---

<div class="post-metadata">

**Author:** ![Great\_Antibob](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Great\_Antibob](https://boards.straightdope.com/u/Great_Antibob)\
**Post date:** [October 19, 2020, 7:41pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/8 "2020-10-19T19:41:08Z")

</div>

I often think it was a mistake for Descartes to call them ‘imaginary’ and treat them as a hack or as fictional numbers. There are a non-negligible number of people who can’t get past the ‘imaginary’ label alone. They are as real (as in ‘actual’ number, not “real numbers” in math jargon) as any number.

It’s not even an original thought on my part. Gauss believed this and said that naming them something different would have avoided a lot of confusion over the years, and he (as usual) was probably right about that.

---

<div class="post-metadata">

**Author:** ![Jas09](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@Jas09](https://boards.straightdope.com/u/Jas09)\
**Post date:** [October 19, 2020, 7:42pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/9 "2020-10-19T19:42:15Z")

</div>

> [@Marvin\_the\_Martian](#):
>
> There is no reason that an expression containing an imaginary number cannot equal a real number. An even simpler example is i^2 = -1.

Or i - i = 0.

Basically, a comlex number has a real part and an imaginary part. If you write an expression that causes the imaginary part to be zero, you only have the real part.

In this case, we have Euler’s formula which states that e ^ (i \* theta) = cos (theta) + i sin (theta). Where theta is an angle expressed in radians. It so happens that sin(pi) is 0 and cos(pi) is -1, so you get the famous identity from the OP.

An even simpler one is the somewhat obvious e ^ (i + 0) = 1.

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [October 19, 2020, 7:52pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/10 "2020-10-19T19:52:37Z")

</div>

No, _ei_ is approximately 0.54 + 0.84i

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [October 19, 2020, 8:09pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/11 "2020-10-19T20:09:55Z")

</div>

> [@Ruken](#):
>
> We have Dopers who are equipped to explain this; I am not one of them.

There are also good (and not-so-good, I imagine) explanations online. Here’s one of the good ones:  
[https://betterexplained.com/articles/intuitive-understanding-of-eulers-formula/](https://betterexplained.com/articles/intuitive-understanding-of-eulers-formula/)

---

<div class="post-metadata">

**Author:** ![Jas09](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@Jas09](https://boards.straightdope.com/u/Jas09)\
**Post date:** [October 19, 2020, 8:12pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/12 "2020-10-19T20:12:29Z")

</div>

Ack, of course that should have been e ^ (i \* 0) = 1.

---

<div class="post-metadata">

**Author:** ![mikecurtis](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mikecurtis/32/3284_2.png) [@mikecurtis](https://boards.straightdope.com/u/mikecurtis)\
**Post date:** [October 19, 2020, 8:33pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/13 "2020-10-19T20:33:52Z")

</div>

[![](https://img.youtube.com/vi/v0YEaeIClKY/maxresdefault.jpg "e^(iπ) in 3.14 minutes, using dynamics | DE5") ](https://www.youtube.com/watch?v=v0YEaeIClKY)

---

<div class="post-metadata">

**Author:** ![iamthewalrus\_3](https://avatars.discourse-cdn.com/v4/letter/i/258eb7/32.png) [@iamthewalrus\_3](https://boards.straightdope.com/u/iamthewalrus_3)\
**Post date:** [October 19, 2020, 8:48pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/14 "2020-10-19T20:48:13Z")

</div>

> [@Great\_Antibob](#):
>
> I often think it was a mistake for Descartes to call them ‘imaginary’ and treat them as a hack or as fictional numbers.

Agreed that “imaginary” is just a terrible word. They are simple numbers in another dimension. Real numbers are on the number line and the _other_ number line that i is on runs perpendicular to it.

In fact, if you think of the “imaginary” numbers as “perpendicular” numbers, then a basic folk understanding of two-dimensional math/physics gets you to understanding the basic concept of e^(i\*pi). Exponentiation is growth. If you grow in a straight line, you accelerate in that direction. What happens when you grow at a right angle to your heading? You spin in a circle.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [October 19, 2020, 8:57pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/15 "2020-10-19T20:57:24Z")

</div>

And when you spin in a circle such that the path along that circle is pi times the radius, you end up opposite of where you were.

And my favorite SMBC comic concerning this identity (turns out there are a lot of them) is [Talk mathy to me](https://www.smbc-comics.com/?id=2934).

---

<div class="post-metadata">

**Author:** ![Hari\_Seldon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hari_seldon/32/5173_2.png) [@Hari\_Seldon](https://boards.straightdope.com/u/Hari_Seldon)\
**Post date:** [October 19, 2020, 9:05pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/16 "2020-10-19T21:05:17Z")

</div>

> [@DPRK](#):
>
> You are thinking of [Gelfond’s Theorem](https://en.wikipedia.org/wiki/Gelfond%E2%80%93Schneider_theorem):
> 
> > If _a_ and _b_ are algebraic numbers with _a_ ≠ 0, 1, and _b_ irrational, then any value of _ab_ is a transcendental number.
> 
> This applies to eπ but not to eπi

Gelfand’s theorem does not apply since neither e nor pi is algebraic. And if pi were algebraic so would pi\*i be.

To give a quick idea of a proof, take the power series for e^x  
1 + x + x^2/2! + x^3/3! + x^4/4! + x^5/5! + …  
and replace x by ix. Collecting the real and imaginary terms and recalling the power series for sin x and cos x (written for x in radians) gives you  
e^{ix} = cos x + i\*sin x. Now let x = pi, whence cos x = -1 and sin x = 0.

These power series are all derived in calc 2, based on the facts that the derivative of e^x is e^x, the derivative of sin x is cos x and the derivative of cos x is -sin x (when x is in radians).

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [October 19, 2020, 9:12pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/17 "2020-10-19T21:12:33Z")

</div>

> [@Hari\_Seldon](#):
>
> Gelfand’s theorem does not apply since neither e nor pi is algebraic. And if pi were algebraic so would pi\*i be.

Right; the trick to apply it is that eπ = (–1)–i

In any case, the conclusion should be that eπ is transcendental, while the vaguely similar-looking eπi happens to be rational

---

<div class="post-metadata">

**Author:** ![Little\_Nemo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/little_nemo/32/3120_2.png) [@Little\_Nemo](https://boards.straightdope.com/u/Little_Nemo)\
**Post date:** [October 19, 2020, 9:18pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/18 "2020-10-19T21:18:24Z")

</div>

> [@iamthewalrus\_3](#):
>
> > [@Great\_Antibob](#):
> >
> > I often think it was a mistake for Descartes to call them ‘imaginary’ and treat them as a hack or as fictional numbers.
> 
> Agreed that “imaginary” is just a terrible word. They are simple numbers in another dimension. Real numbers are on the number line and the _other_ number line that i is on runs perpendicular to it.
> 
> In fact, if you think of the “imaginary” numbers as “perpendicular” numbers, then a basic folk understanding of two-dimensional math/physics gets you to understanding the basic concept of e^(i\*pi). Exponentiation is growth. If you grow in a straight line, you accelerate in that direction. What happens when you grow at a right angle to your heading? You spin in a circle.

My understanding (which is admittedly laughably small) is that imaginary numbers are legitimate numbers because you can apply mathematical operations to them and produce consistent answers. Which you can’t do with a zillion or a bunch or hun bundred.

---

<div class="post-metadata">

**Author:** ![Larry\_Borgia](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/larry_borgia/32/156_2.png) [@Larry\_Borgia](https://boards.straightdope.com/u/Larry_Borgia)\
**Post date:** [October 19, 2020, 9:19pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/19 "2020-10-19T21:19:43Z")

</div>

Question about the comic:

If you plug -pi/2 into Eulers formula you get Cos(-pi/2) + iSin(-pi/2) which I get as -i. How is that a real number?

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [October 19, 2020, 9:29pm UTC](https://boards.straightdope.com/t/e-pi-i-1/923344/20 "2020-10-19T21:29:26Z")

</div>

> [@Little\_Nemo](#):
>
> > [@iamthewalrus\_3](#):
> >
> > > [@Great\_Antibob](#):
> > >
> > > I often think it was a mistake for Descartes to call them ‘imaginary’ and treat them as a hack or as fictional numbers.
> > 
> > Agreed that “imaginary” is just a terrible word. They are simple numbers in another dimension. Real numbers are on the number line and the _other_ number line that i is on runs perpendicular to it.
> > 
> > In fact, if you think of the “imaginary” numbers as “perpendicular” numbers, then a basic folk understanding of two-dimensional math/physics gets you to understanding the basic concept of e^(i\*pi). Exponentiation is growth. If you grow in a straight line, you accelerate in that direction. What happens when you grow at a right angle to your heading? You spin in a circle.
> 
> My understanding (which is admittedly laughably small) is that imaginary numbers are legitimate numbers because you can apply mathematical operations to them and produce consistent answers. Which you can’t do with a zillion or a bunch or hun bundred.

Not only is it legitimate, you can hardly avoid considering complex numbers in number theory once you consider something like the fundamental theorem of algebra, or more simply any equation like x² + 1 = 0

[Next page](https://boards.straightdope.com/t/e-pi-i-1/923344.md?page=2)
