$a^x$ where $x \in \mathbb{Z^{+}}$ is easy to think about.
For example, $2^{3} = \underbrace{2 \times 2 \times 2}_\text{3 times}$.
$a^x$ where $x \in \mathbb{Z^{-}}$ isn't too hard either.
For example, $2^{-3} = \frac{1}{\underbrace{2 \times 2 \times 2}_\text{3 times}}$.
$a^x$ where $x \in \mathbb{Q}$ is still manageable to understand.
For example, $2^{7/3} = 2^{2 + \frac{1}{3}} = \underbrace{2 \times 2}_\text{2 times} \times 2^{\frac{1}{3}} = \underbrace{2 \times 2}_\text{2 times} \times \sqrt[3]{2}$.
However when $x \in \mathbb R \setminus \mathbb Q$, I fail to grasp what $a^{x}$ means.
For example, $2^{\sqrt{2}} = 2^{1 + 0.414...} = \underbrace{2}_\text{1 time} \times 2^{0.414...}$.
But what does it mean to take $0.414...$ to the power of $2$? How can I think about it?
While the above case is hard to grapple with for me, I have absolutely no idea what something like $e^{i\pi}$ actually means.
How can a number multiply by itself $i\pi$ times when $i$ has no quantitative value other than $\sqrt{-1}$?
On a similar note, I read somewhere that $(\frac{1}{2})! = \frac{\sqrt{\pi}}{2}$.
Once again, how is this possible, and what does it actually mean?
Perhaps my understanding of exponents and factorials is too simplistic - I understand $a^{x}$ as being $a$ multiplied by itself $x$ times and $n!$ as $1 \times 2 \times 3 \times 4 \times ... \times n$ - or I just need some clarity but either way I would love to gain some intuition as to what is really happening with these functions (maybe some examples would be great!)
This is a wonderful question, and at the core it is not so much about what $a^x$ means - or $n!$ - but is rather asking, what is a real number, what is a rational number, and what is an imaginary number? Once we get down to the mysteries of what numbers are, then we start to ponder what numbers mean in Euler's identity and further how rotations of number systems occur in a plane. The ability to contemplate what numbers are is the force behind becoming an excellent and perceptive mathematician. First, look closely at the real number line and convince yourself that any real number on the line is essentially the same conceptually, as far as real numbers go.
Our minds recognize the counting numbers so $2$ may seem to be more of a number than a fractional or irrational number, but every number is represented by one point on the real number line, and a point is described by the intersection of two lines which have no thickness, so a point has no size. To you, $\sqrt{2}$ might mean more than $(\sqrt{2}-1)$ because when you square the first expression you arrive at a counting number yet when you square the second expression, you arrive at an irrational number $0.17157...$ which is every bit as good as the number $2$, it is just an irrational number rather than a counting number. While a fraction seems easier to understand than an irrational number, the fraction $\frac13$ does not have a finite decimal representation. Is a fraction like $\frac12$ more of a real number than $\frac13$ because as a decimal it can be expressed with finite digits as $0.5$? Is the meaning of a negative fraction like $-\frac13$ of lesser value, I don't mean quantity-wise but conceptually? They are all numbers representing one point on the real number line. A rational number expressed as a fraction could have thousands or millions of digits in the numerator or denominator, and it would still be rational, and would still be a point on the real number line like every other point. Let's compare $2^{\frac13} \approx 1.255921$ to $2^{\frac{111}{332}} \approx 1.260798$. It is far preferable to write $\sqrt[3]2$ than $(\sqrt[332]2)^{111}$ I agree but these are very close values. Our minds might prefer neat simple expressions over excrutiating exactness.
Now, we start to get to the idea of infinity, and have to keep in mind that even when the digits of a number go on to infinity, the point on the real number line still has no size, and each additional decimal is a smaller and smaller fine tuning of the actual value of that number that can not be written out in its entirety. The counting numbers are infinite, but they are 'countably' infinite, and this is just a definition that means what it was defined to mean. The even counting numbers do not represent half of infinity. If X represents a set of the counting numbers, the 2X represents all of the even counting numbers, but each member corresponds to a counting number in X. Conversely, on the real number line, if you choose any two points, there is an infinite number of points in between them, and the points are not countably infinite. It seems that there are far more numbers on the real number line that do not have a great deal of meaning than the few that do, even though the meaningful numbers may still be infinite.
So let's look at $x^a$ where $x$ is a real number, whether $x$ be rational or irrational. Let's consider $x$ as a continuum along the real number line. This plot shows the curves $x^{\frac13}$, $x^{\sqrt{2}-1}$, and $x^{\frac12}$, and the point marked in red is $(2, 2^{\sqrt{2}-1})$. While $a$ has been set at three constant real numbers, you can imagine $a$ along a continuum of the real number line so that there is a continuum of curves, which aren't very different from one another conceptually even if $(\sqrt{2}-1)$ does not seem like as much of a number as $\frac13$.
We can similarly look at the plots of $a^x$ allowing $x$ to vary along the real number line and choosing fixed values for $a$, and in this case $a$ is set equal to $2, e,$ and $3$. The point marked in red is $((\sqrt{2}-1), 2^{\sqrt{2}-1})$. On the graph of $e^x$, we could find $e^{\pi}$ if the line were extended a bit farther.
Once we get into expressions including imaginary numbers, like $e^{i\pi}$ we aren't on the continuum of the real number line any more. If we go back to the original real number line graph, we can see the real number $i^2 = -1$ is on the line, but $i = \sqrt{-1}$ is not on the line. It follows that while $2^{2 \times 2 \times 2} = (2^{2 \times 2}) ^ 2 $, it is not the same to say $e^{i\pi} = (e^\pi)^i$. Consider that an imaginary number can be written as $z = a + bi$, where $a$ is the real part and $bi$ is the imaginary part, then if $z = i\pi, a = 0$ and $b = \pi$. Perhaps think of $a$ as the coefficient on the real number $'1'$ expressing the magnitude in the direction of the real number line, and $b$ as the coefficient on the imaginary number $'i'$ expressing the magnitude in the direction of the imaginary number line. It is not quite the same thing as multiplication, although the imaginary number $'i'$ does fall out of the quadratic equation where there are no real solutions, and the coefficient does act in a manner similar to multiplication. I would refer you to the youtube series on Complex Analysis by Petra Confer-Taylor to gain a deeper understanding of $'i'$ and how it is useful in achieving real solutions, or else meaningful ones. To add to the answer given by @lone student in the third part, if you go further to explore the steps to the Gaussian Integral, you will find within it a rotation. Rotations occur in mathematics, in the plane, for many reasons. You might think of polar coordinates, or the complex plane, or trigonometric functions. There are cycles of negatives and positives that occur by raising $-1$ to integer powers, and cycles from derivatives of $cosx$ and $sinx$, and the integer powers of imaginary numbers cycling between real and imaginary, positive and negative. The equation of a circle is $x^2 + y^2 = r^2$ and if we allow imaginary solutions then the equation could be $x^2 - y^2 = r^2$. Then $\pi$ will fall out of equations that are circular, or else from the hypotenuse of a right triangle by the Pythagorean Theorem. The Gamma Function was defined to fill in the values between integers and create a continuum such as is seen on the real number line. Factorials of the values intermediate to the integers do not have a meaning other than the equation that has been defined to fill in those points. I so very much hope that these are the answers that begin to make mathematics and the meaning of numbers come together for you...and please let me know where your questions take you!