I've been thinking about the following problem for a while:
(AFAIK) the 'exponential function', $e^x$ can be characterized as the unique solution to the following differential equation with initial conditions specified:
$f'(x) = f(x)$ , $f(0) = 1$.
Prior to learning this, I thought of $e^x$ in the following way:
I first thought of $e$ to be the supremum of the sequence $u_n =(1+ \frac{1}{n})^n$, and since $u_n$ can be shown to be monotone increasing and bounded above, this is the same as defining it to be $e = \lim_{n \to \infty} (1+\frac{1}{n})^n$
I then showed that via this characterization, we can also show that $e= lim_{h \to 0} (1+h)^{\frac{1}{h}}$, which allows us to show that the function $e^x$ has a nice property, namely, that its own derivative is itself, which immediately makes it $C^{\infty}$.
Using this, as well as the Lagrange form of the remainder for the Taylor polynomial, I was then able to show that $\displaystyle e^x = \sum_{i=0}^{\infty} \frac{x^i}{i!}$
I then wanted to try and show that the characterization of $e^x$ as the unique function that satisfies:
$f'(x) = f(x)$ , $f(0) = 1$.
and the characterization I previously thought about were equivalent.
So I started with showing that $f'(x) = f(x)$ , $f(0) = 1$ implied my previous characterization, as my previous characterization is a solution to $f'(x) = f(x)$ , $f(0) = 1$
I noted that as $f$ was defined at $0$, and that $f$ had a first derivative at $0$, it can be inferred that $f$ is continuous at $0$, and exists in some neighborhood, lets say $(-k,k)$ of $0$.
Now I also realized if $f$ is a solution to this differential equation, it is $C^{\infty}$, and all of its derivatives must exist in the neighborhood $(-k,k)$ of $0$.
Then I applied the Lagrange form of the remainder to this function to show that the error as this function is approximated with $\sum_{i=0}^n \frac{x^i}{i!}$ tends to $0$ as $n \to \infty$.
So, in $(-k,k)$, the function must be $e^x$, as $e^x$ can also be made arbitrarily close to $\sum_{i=0}^n \frac{x^i}{i!}$ given $n$ large enough.
Okay, so I understand that $f(x) = e^x$ in $(-k,k)$, and I realize that $\sum_{i=0}^{\infty} \frac{x^i}{i!}$ has an interval of convergence of $\mathbb{R}$, where it is uniformly convergent, and so $f$ even has a smooth uniformly convergent continuation outside $(-k,k)$, which is also just $e^x$.
But this is what I am struggling to understand, why does $f$ need to be defined on all of $\mathbb{R}$, as in, why does $f$ need to actually be the same function as $e^x$, same domain and all?
Surely $f$ could be defined on any arbitrarily small interval $(-k,k)$ around zero, and still fulfill its defining differential equation, but not be defined outside of $(-k,k)$, so while within $(-k,k)$ it is $e^x$, it may not exist outside $(-k,k)$ as itself, but only as a smooth unique continuation of itself (namely, $e^x$).
Another problem I have related to this is when talking about solutions to the following differential equation (again with specified initial conditions):
$f''(x) = -kf(x)$, $f(0) = A$, $f'(0) = 0$, I realize that $f(x)$ is essentially the cosine function, and that this is in fact the characterizing equation of simple harmonic motion, which a pendulum approximates when it swings back and forth with small incline angle.
I could show this in a similar way, by talking about how $f$ is again $C^{\infty}$ and then showing that within whatever interval its defined in its equal to a function that is basically cosine, but now my question is, what makes us believe that $f(x)$, which can be thought of as the displacement of a particle doing simple harmonic motion, is defined outside a small open interval containing $t=0$? How can we model these particles with cosine in real life if you can't directly conclude all solutions to $f''(x) = -kf(x)$, $f(0) = A$ have to be defined themselves on all of $\mathbb{R}$ (and not as themselves on $(-k,k)$ and then as a unique smooth continuation (cosine) on $\mathbb{R} \setminus (-k,k)$).
I would really appreciate it if someone were to help me understand this better, and I am sorry if I have been unclear