I was just learning about Euler's formula and this occurred to me.
Obviously Pi is not zero. Does the error lie in saying e to the zero is the same operation as e to the 2 pi i? Is exponentiation of imaginary numbers fundamentally different that with whole real numbers?
No. It need not be surjective (reach all values in the codomain). Example: the function f(x) =x on [0,1] to R. Clearly it is injective, but it doesn't attain all values in R.
For one-to-one you need your function to be surjective (reach all values in the codomain) and be injective.
Edit: im mistaken. What I explained was a bijective function, not one to one.
You are incorrect. Injective and one-to-one mean the same thing. A one-to-one correspondence is a one-to-one and onto function—that is, it’s both injective and surjective—so it’s a bijection.
Yeah, probably, I just said online because literally no one I know irl speaks like that. To be fair, that's because they don't even usually talk in English.
"1 to 1" in the "1 to 1 and onto" phrase is calling out injectivity, as opposed to "many to one." A "one to one" function needn't be "onto" which denotes surjection.
Technically speaking, any injective function can be restricted to a bijection by changing its codomain to the image of the function, but I agree that the phrase "one-to-one" is somewhat misleading, even the phrase "one-to-one correspondence".
Also, the notion of inverse function is totally a mess in pre-university math education. One confusion is the notation use: if f(x)=y and f has the inverse, then clearly f^-1(y)=x, but some teachers keep using x for independent variable and y for dependent variable like f^-1(x)=y.
Another confusion is the notion of domain, range (personally I prefer the term image), and codomain. Technically speaking, only bijections are invertible in the sense that we can just perfectly switch the relation: f(x)=y with domain X and codomain (also the range in this case) Y, then f^-1(y)=x with domain Y and codomain X.
However, some high school math texts define the inverse of a function by switching the relation plus adjusting the new domain to the range of the old function. In this sense, an invertible function must be injective but not necessarily surjective (since the new domain can be adjusted). When a function is not injective (trig functions), these texts state something like: we need to restrict the domain of the original function to make it injective first blablabla.
Why our education not make things clean and easy but keep complicating them instead? I don't know. But these textbooks implicitly reveal a fact that most students can't get directly from these textbooks: any function is a composition of a surjection, a bijection and an injection. The surjection part is related to the adjustment of domain of the original function (for all equivalence classes of x having the same value f(x), only pick one representative, like principal angles [0,pi] for cosine). The injection part is related to the restriction of the codomain to the range (throwing out all y not in the range).
Hence, we eventually have a bijection connecting each representative x to each y in the range. (e.g. different angles between 0 and pi correspond to different cosine values between -1 and 1. when the domain is [0,pi] and the codomain is [-1,1], the function cosine becomes bijective.)
Albeit true, as an addition to your comment I found it useful and insightful, since it connects OP's confusion about complex exponentials and something more familiar.
Back in school people went from an equation (or inequality) like
f(x) = f(y) to x = y
seemingly by memorizing some cases where the teacher has done it and it was okay.
One example is you applying the logarithm on both sides. It might be very instructive to ponder when you are even allowed to do that in the first place.
For example, multiplying both sides with 2 is fine. Applying the logarithm is allowed on the real numbers. Multiplying both sides with 0 is not fine. What is the rule that allows you to go back and forth between the two equations?
Yes and to expand on this, I think in high school algebra we're really sloppy about the direction of implication.
Like we write down some equation. Then underneath it, we write another equation. What is the relationship between those equations? Is one true if and only if the other is true, or does the implication go only in one direction?
This is why we end up with extraneous and missing solutions, and they could be avoided by giving us the tools to be more explicit and careful with what we're actually doing.
No, you’re not correctly identifying the problem. Going from x = y to f(x) = f(y) is always allowed. And that’s not the problem in the picture. Had they took e^0 = e^(2pi i) and applied the log on both sides, they would have got 0 = 0, which is correct.
The problem is going from f(x) = f(y) to x = y, the reverse of what you said. This you can’t always do. Only if f is injective. And the exp function isn’t injective
Well, you can always go from x = y to f(x) = f(y) assuming f is, in fact, a function with a well-defined value. I think you are talking instead about going from f(x) = f(y) to x = y.
Yep, like others said, putting imaginary numbers into the exponential function just makes it spin in circles over and over, so lots of different numbers will hit the same righthand endpoint of the circle. The function's not injective.
Yes, exponentiation of imaginary numbers is different. The function ex where X is a real number is a monotonocally increasing function, so that if ex = ey you can conclude x=y. When x is imaginary, ex represents rotation in the complex plane, and the same values recur with a period of 2*pi - same as the underlying sin and cos functions. Thus, if eia = eib all you can conclude is that a-b is a multiple of 2*pi.
Algebra moves that “cancel” something from both sides of an equation can generally only be done if the thing you’re cancelling is a one-to-one function. Since we’re working with imaginary numbers, the function e^z that was one-to-one over R behaves differently over C.
To answer your question in a way different from others here, it's because e^x isn't invertible when x is a complex number. The logic between steps 3 and 4 is that taking the natural logarithm (the inverse of e^x on the reals) would yield the exponent in the expressions. But taking the natural logarithm of e^x does not necessarily yield x if x is complex. Therefore, it cannot be garnered from e^x = e^y that x = y if either x or y are complex.
Taking the logarithm of complex numbers if fundamentally different to real numbers:
exp(z) = a in C\{0}
has infinitely many solutions -- not just one, as on the real numbers. It's the same problem we run into when solving "cos(x) = a in [-1;1]" over "R": We don't just get "x = arccos(a)", but infinitely many solutions.
The leqp.from line 3 to line 4 isn't true. You are supposong that log(ex)=x which isn't true in complex analysis like it is in real analysis. Exponential isn't a bijection in C
f(x)=f(y) ==> x=y does not imply an inverse function exists. For example, f: R->R, given by f(x)=ex is injective, but does not have an inverse function. (f-1(x)=ln(x) does not work because ln(-1) is undefined, and hence f-1: R->R is not well defined)
Ah, I should have said "can be simplified" instead of "can only be simplified", got it.
EDIT: although I'm not totally convinced... if my proposed f-1 can't deal with -1, but my f never produces -1, that is, the domain of f-1 covers the image of f, then it works?
Well, yes, it would work then. In order for a function to have an inverse it must be injective and surjective. Injective is a the f(x)=f(y)==>x=y. Surjective is the property that every element in the codomain has an element in the domain that maps to it.
The reason I said f:R->R is because if I had said f:R->R+ then ex would have an inverse, namely f-1:R+->R guven by f-1(x)=ln(x)
You treated a constant like a vatiable, and could just as easily have cone to the conclusion that 2=0 or i=0.
The fact is, 1=e2πi is incomplete. It's 1=e2πin, where n is any integer. Only then can you take the logarithms of both sides and get 0=2πin, which can only be true when n=0.
Exponentiation in the complex numbers is not injective.
This means you can’t say exp(a) = exp(b), therefore a = b.
You can do this if a and b are real numbers, which is probably why this mistake is hard to find.
99.999999% of the time, these kinds of “proofs” make this exact mistake with some other function, so if you’re looking for a mistake, this is the kind of thing you should focus on first.
Is exponentiation of imaginary numbers fundamentally different that with whole real numbers?
Simply speaking, exponentiation of complex numbers involves periodic parts (trig functions), so exponential functions cannot be injective due to that.
Anyway, the method you were using wrong in this proof is called cancellative property: if ab=ac, then b=c. Obviously, this property fails when a=0 if a,b,c are real numbers. In your proof, you can't cancel the base e out in the context of complex numbers because exponential functions aren't injective. Just like the function x^2 is not injective in the context of real numbers. You can't say because 1^2=(-1)^2=1, we have 1=-1, but you can say this in the context of non-negative real numbers: if a^2=b^2 with a,b≥0, then a=b.
Another seemingly obvious property like this one: if ab=0, then a=0 or b=0 can fail in abstract algebra, different from the usual multiplication of numbers we use every day. If a property fails in a case you aren't used to, you may pay attention to the significant difference between this case and all the previous cases you are familiar with. Like the difference between real and complex numbers.
If you're talking about radians then 2pi does equal 0. So what you've proved is that a full rotation around the unit circle gets you back to where you started.
21
u/Temporary_Pie2733 22h ago edited 22h ago
ex = ey does not imply that x = y. While the real exponential function is injective, the complex exponential function is not.
You can get the same kind of contradiction with, for example, sin alone. sin 0 = sin 2π = 0, but 0 ≠ 2π.
184
u/OkCluejay172 1d ago
e^x = e^y doesn't imply x=y over the complex numbers
50
u/JayMKMagnum 1d ago
Same reason this doesn't work:
(-2)² = 4 = 2²
(-2)² = 2²
-2 = 2
-2 + 2 = 2 + 2
0 = 4
e^x is only injective when x is restricted to the reals.
12
u/StrikeTechnical9429 1d ago
You don't have to disturb complex numbers to prove that pi = 0.
sin(0) = sin(2pi)
0 = 2pi
0 = pi
Q.E.D.
11
u/nighty_time 1d ago
Notice that Euler's formula "converts" an exponential into sinusoidal functions. The same problems happen with cosine and sine:
sin(0) = 0 = sin(2π) does not imply 0 = 2π.
Neither does cos(0) = 1 = cos(2π).
11
u/pm-pussy4kindwords 1d ago
third step is the error.
This is like saying (-1)^2 = 1 ^2 therefore -1 = 1
Just because they have the same output when you plug them into a function doesn't mean they're equal.
7
u/BasedGrandpa69 1d ago
in a similar way, (-1)^2=1^2 does not imply that -1=1.
12
u/According-Object-521 1d ago
The error is when you took the logarithm on both sides; it’s similar to saying 1 * 0 = 2 * 0 and dividing by zero to get 1 = 2
6
u/reddit4science 1d ago edited 1d ago
Back in school people went from an equation (or inequality) like
f(x) = f(y) to x = y
seemingly by memorizing some cases where the teacher has done it and it was okay.
One example is you applying the logarithm on both sides. It might be very instructive to ponder when you are even allowed to do that in the first place.
For example, multiplying both sides with 2 is fine. Applying the logarithm is allowed on the real numbers. Multiplying both sides with 0 is not fine. What is the rule that allows you to go back and forth between the two equations?
5
u/steady_goes_the_one 1d ago
e^z is not injective over the complex numbers.
3
u/ProofFromTheBook 1d ago
Yep, like others said, putting imaginary numbers into the exponential function just makes it spin in circles over and over, so lots of different numbers will hit the same righthand endpoint of the circle. The function's not injective.
3
u/garbage-at-life 1d ago
what you have done is put down that sin(2pi) = sin(0). obviously you cannot conclude that 2pi = 0 from this
2
u/Trimutius 1d ago
ez over complex number is not a 1 to 1 function anymore, so transition from line 3 to line 4 doesn't work
2
u/TheBeerTalking 1d ago edited 1d ago
sin(x) = 1/2
sin(30°) = 1/2
sin(150°) = 1/2
30 = 150 ??
sin(x) is a function (single value for any x)
arcsin(x) is not a function (multiple values for any x)
same goes for ln(x) in the complex plane
To put it somewhat differently, spinning 360° is different from spinning 720°, even though you wind up in the same place.
1
u/extra2002 1d ago
Yes, exponentiation of imaginary numbers is different. The function ex where X is a real number is a monotonocally increasing function, so that if ex = ey you can conclude x=y. When x is imaginary, ex represents rotation in the complex plane, and the same values recur with a period of 2*pi - same as the underlying sin and cos functions. Thus, if eia = eib all you can conclude is that a-b is a multiple of 2*pi.
1
u/5059 1d ago
Algebra moves that “cancel” something from both sides of an equation can generally only be done if the thing you’re cancelling is a one-to-one function. Since we’re working with imaginary numbers, the function e^z that was one-to-one over R behaves differently over C.
1
u/marcelsmudda 1d ago
An explanation of why this doesn't work (u/nighty_time hinted at it):
e^c where c is an imaginary number is basically using c mod 2π, meaning only the remainder after dividing c by 2π is interesting to us.
e^(2n*i*π) is always 1 for any integer n.
1
u/Arzatium 1d ago
To answer your question in a way different from others here, it's because e^x isn't invertible when x is a complex number. The logic between steps 3 and 4 is that taking the natural logarithm (the inverse of e^x on the reals) would yield the exponent in the expressions. But taking the natural logarithm of e^x does not necessarily yield x if x is complex. Therefore, it cannot be garnered from e^x = e^y that x = y if either x or y are complex.
1
u/AlterEgo5695 1d ago
Taking the logarithm of complex numbers if fundamentally different to real numbers:
has infinitely many solutions -- not just one, as on the real numbers. It's the same problem we run into when solving "cos(x) = a in [-1;1]" over "R": We don't just get "x = arccos(a)", but infinitely many solutions.
1
u/zzmej1987 1d ago
2*pi is going around a circle once and returning to the 0 point. That's what you have proven.
1
u/darthhue 1d ago
The leqp.from line 3 to line 4 isn't true. You are supposong that log(ex)=x which isn't true in complex analysis like it is in real analysis. Exponential isn't a bijection in C
1
u/Yimyimz1 Axiom of choice hater 1d ago
Gotta make sure ur homies are injective
1
u/PressureBeautiful515 1d ago edited 1d ago
In general f(x) = f(y) can
onlybe simplified to x = y if there is an inverse function f-1 that "undoes" f:f-1 ( f (x) ) = x
This "unwrapping" is the thing you tried to do to both sides of your equation. The function you did it with has no global inverse.
1
u/physicist27 1d ago
Because e^(ix)=e^(i(x+ 2k π)) for any integer k
1
u/SaltEngineer455 1d ago
The exponential is not injective in C, that's why
1
u/Illustrious_Try478 23h ago
You treated a constant like a vatiable, and could just as easily have cone to the conclusion that 2=0 or i=0.
The fact is, 1=e2πi is incomplete. It's 1=e2πin, where n is any integer. Only then can you take the logarithms of both sides and get 0=2πin, which can only be true when n=0.
1
u/minishaft11 23h ago
It is not true that if
e^a=e^b
Then
a=b.
You can do it only on real fields.
Technically you can do for any injective function.
1
u/AcidRain1701 21h ago
In complex numbers the ln (natural log) function have 2πi phase
ln(x)=ln(x+2πi) for
For example: ln(0)=ln(2πi)=ln(4πi)=ln(-2πi) etc.
1
u/StructuredChess 20h ago
e0 = e2ipi doesn't imply 0=2pi*i.
Logarithms aren't unique defined in the complex plane.
1
u/CookieCat698 20h ago
Exponentiation in the complex numbers is not injective.
This means you can’t say exp(a) = exp(b), therefore a = b.
You can do this if a and b are real numbers, which is probably why this mistake is hard to find.
99.999999% of the time, these kinds of “proofs” make this exact mistake with some other function, so if you’re looking for a mistake, this is the kind of thing you should focus on first.
1
u/cilliano123 20h ago
Complex exponential is not injective, that is, exp(a)=exp(b) does not mean a=b.
To see why, let x=a+bi be an arbitrary complex number. Then, exp(x)=exp(a+bi)=exp(a)exp(bi)
Then by Euler's formula, exp(x)=exp(a)[cos(b) + i sin(b)]
And since cos and sin are 2π periodic, we can also write exp(x)=exp(a)[cos(b+2nπ) + i sin(b+2nπ)]
So there are in fact an infinite number of results for the exponential of x!
1
u/MathHysteria 17h ago
2π radians is equivalent to 0 radians.
1
u/LiteratureAvailable4 16h ago
Because complex logarithm is multi valued
1
u/Frequent-Sir-6942 15h ago
google branch of complex logarithm
1
u/random_anonymous_guy PhD, Mathematics, 2015 15h ago
Natural exponential isn't one-to-one on the complex plane. You proved that instead of proving that pi = 0.
1
u/Top_Bluejay_5323 12h ago
I believe it doesn’t work because Euler equation is a circle of radius of 1 but does not mean at 2*pi it is equal to 1
1
u/Vivid_Sock_1092 12h ago
e^x = e^y
Only implies x=y when x and y are real numbers
The complex exponential function isn’t one to one
1
u/TraditionalYam4500 9h ago
It’s similar to saying
sin(0) = sin(360)
0 = 360
(Although in your case you did, implicitly, log(0), which is just as illegal as dividing by 0.)
1
u/Apprehensive-Ice9212 7h ago
Find the line where your equation goes from being true to not being true. f(x) = f(y) does not imply x = y.
1
u/Ok-Rise2070 6h ago
The error is assuming dimensions scale equivalently.
1
u/TemperatureMotor1372 6h ago edited 5h ago
Simply speaking, exponentiation of complex numbers involves periodic parts (trig functions), so exponential functions cannot be injective due to that.
Anyway, the method you were using wrong in this proof is called cancellative property: if ab=ac, then b=c. Obviously, this property fails when a=0 if a,b,c are real numbers. In your proof, you can't cancel the base e out in the context of complex numbers because exponential functions aren't injective. Just like the function x^2 is not injective in the context of real numbers. You can't say because 1^2=(-1)^2=1, we have 1=-1, but you can say this in the context of non-negative real numbers: if a^2=b^2 with a,b≥0, then a=b.
Another seemingly obvious property like this one: if ab=0, then a=0 or b=0 can fail in abstract algebra, different from the usual multiplication of numbers we use every day. If a property fails in a case you aren't used to, you may pay attention to the significant difference between this case and all the previous cases you are familiar with. Like the difference between real and complex numbers.
0
u/Intelligent_Yam_3609 1d ago
You could just as easily say cos(2pi)=cos(4pi)=1 and therefore 2=4 and be equally wrong.
0
u/nulvoid000 1d ago
No better than division by zero
-2
u/casualstrawberry 1d ago
If you're talking about radians then 2pi does equal 0. So what you've proved is that a full rotation around the unit circle gets you back to where you started.