I am trying to understand how to define the exponential function $a^x$ for any $a>0$ and any $x\in\mathbb{R}$ I know the basic definition of the exponential function for natural numbers, which is $a^n=a⋅a⋅…⋅a $(n times). I also know how to extend this definition to rational numbers by using the fact that $a^{\frac{n}{m}}= \sqrt[m]{a^n }$, where $m$⋅ denotes the $m$-th root also I know the definition of the negative power of rational numbers . But I am curious how to define the function for all real numbers, not just rational ones. obviously we will define $f(x+y) =f(x) f(y)$ for all real numbers $x,y$ but here I have no Idea how to extended to all Real numbers. I have heard that there are some ways to do this using limits, continuity, but I needed this so I can prove that $a^x$ is continuous function so I am confused of how to use calculus to make the definition of $a^x$ by using $e^x$ as continuous function and that would make me ask why is $e^x$ continuous in the first place one can show that $e^x$ is continuous at $ \mathbb{R}$ if it is continuous at zero but how we will establish that if we didn't define it at irrationals?
. Could someone please explain to me the general definition of an exponential function and why it works?