Edit re the close vote: I guess this 1 of those questions whose on-topic-ness depends on the answer. If the answer is no, then well maybe it's off-topic. But if the answer is yes, then I believe it's very on-topic.
More specific version of: Should Euler's formula $e^{ix}=\cos x+i\sin x$ be seen as a definition rather than something to prove?
Euler's formula (...'for complex numbers'?) is simply
$$e^{iz} = \cos(z)+i\sin(z)$$
And 1 way to prove this is using complex Maclaurin series for the complex exponential, sine and cosine.
Now, there's a way to 'prove' the 'theorem' $e^{it} = \cos(t)+i\sin(t)$, which is often said to be 'Euler's formula (...for real numbers?)' without using the original formula above such as by using Maclaurin. And ok fine, I guess you can indeed get the Maclaurin series expansion of $e^z$ by defining $e^z$ simply as the unique solution of $g:\mathbb C \to \mathbb C, g'=g,g(0)=1$ without explicitly getting $e^z = e^x(\cos(y)+i\sin(y))$ then you can just let $z=it$ (i.e. let $(x,y)=(0,t)$).
But...
There's a 'proof' that Wikipedia does, again without using the original formula, 'by differentiation' (proofwiki does this too) where we consider the function $f:\mathbb R \to \mathbb C,f(t) = \frac{\cos(t)+i\sin(t)}{e^{it}}$, where $f$ is indeed well-defined and then show $f$ is identically 1.
Question 1: So what exactly is $h:\mathbb R \to \mathbb C, h(t)=e^{it}$ here assuming $e^z$ is defined simply as the unique solution of $g:\mathbb C \to \mathbb C, g'=g,g(0)=1$?
Goal: I'm asking if this option is strictly speaking sensible. Like those probability textbooks that talk about independence but are actually strictly speaking nonsensical. I wanna make sure there's no imprecision actually. If it's actually nonsensical, then I wanna be sure to specify that the same way I teach probability without measure theory: 'It's nonsensical but just play along.' And then in this case, which parts are nonsensical, and how should they be taught? Like in probability when we teach some nonsensical parts by 'assuming the function is "well-behaved"' or something.
Question 2: Alternatively, is there some textbook that 'proves' Euler's formula for real numbers based on the unique $g$ definition?
Anyhoo, guess for Question 1: It's $h(t)=g(0,t)$. Explicitly:
I think $h(t)=g(0,t)=u(0,t)+iv(0,t)$, where $g(z)=g(x,y)=u(x,y)+iv(x,y)$ is the unique solution to $g:\mathbb C \to \mathbb C, g'=g,g(0)=1$?
And then we can indeed show that
$h$ is nowhere zero? (Probably we can show $g$ is nowhere zero?)
$\frac{d}{dt} h(t) = ih(t)$, i.e. we have both $\frac{d}{dt} u(0,t) = -v(0,t)$ and $\frac{d}{dt} v(0,t) = u(0,t)$? (I think this is what proofwiki assumes too in another proof.)
$-\frac{d}{dt} h(-t) = -ih(-t)$ ?
As for differentiability of $h$, well I guess it follows from differentiability (or at least holomorphicity) of $g$?
Notes:
No need for specifics. I can work it out. I just wanna know if Wikipedia is just doing nonsense or if there's something really possible behind 'proving' the 'formula' from an alternate definition of the complex exponential.
Currently, my thought is that they're doing just some heuristic definition that $e^{(\text{whatever})(x)} = \text{whatever} \ e^{(\text{whatever})(x)}$. But eh maybe there's a rigorous justification that is somehow possible without getting the formula for $e^z$ explicitly.