Today my friend showed me that the imaginary number can be represented in term of a matrix
$$i = \pmatrix{0&-1\\1&0}$$
This was very very confusing for me because I have never thought of it as a matrix. But it is apparent that the properties of imaginary number holds even in this representation, namely $i\cdot i = -1$
Even more confusing is that a bunch of quantities can be represented by matrices
$$e^{i\theta} = \pmatrix{\cos\theta&-\sin\theta\\ \sin\theta&\cos\theta}$$
Naturally I wonder if we can perform this for any number. What is the big picture here? What is this operation called turning a number into a matrix. What is the deeper implication - how does knowing this help?
100 points to anyone who can answer this in a comprehensive way.
Your friend meant that all complex numbers can be represented by such matrices.
$$a+bi = \begin{pmatrix} a & -b \\ b & a \end{pmatrix}$$
Adding complex numbers matches adding such matrices and multiplying complex numbers matches multiplying such matrices.
This means that the collection of matrices:
$$R = \left\{ \begin{pmatrix} a & -b \\ b & a \end{pmatrix} \;\Bigg|\; a,b \in \mathbb{R} \right\}$$
is "isomorphic" to the field of complex numbers.
Specifically,
$$i = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}$$
Notice that for this matrix $i^2=-I_2=-1$. :)
How does this help?
It allows you to construct the complex numbers from matrices over the reals. This allows you to get at some properties of the complex numbers via linear algebra.
For example: The modulus of a complex number is $|a+bi|=a^2+b^2$. This is the same as the determinant of such a matrix. Now since the determinant of a product is the product of a determinant, you get that $|z_1z_2|=|z_1|\cdot |z_2|$ for any two complex numbers $z_1$ and $z_2$.
Another nice tie, transposing matches conjugation. :)
Edit: As per request, a little about Euler's formula.
The exponential function can be defined in a number of ways. One nice way is via its MacLaurin series: $e^x = 1+x+\frac{x^2}{2!}+\cdots$. If you start thinking of $x$ as some sort of indeterminant, you might start to ask, "What can I plug into this series?" It turns out that the series: $$e^A = I+A+\frac{A^2}{2!}+\frac{A^3}{3!}+\cdots$$ converges for any square matrix $A$ (you have to make sense out of "a convergent series of matrices").
Consider a "real" number, $x$, encoded as one of our matrices: $$x=\begin{pmatrix} x & 0 \\ 0 & x \end{pmatrix} \quad \mbox{then} \quad e^x = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} + \begin{pmatrix} x & 0 \\ 0 & x \end{pmatrix} + \begin{pmatrix} x^2/2 & 0 \\ 0 & x^2/2 \end{pmatrix} + \cdots$$ $$= \begin{pmatrix} 1+x+x^2/2+\cdots & 0 \\ 0 & 1+x+x^2/2+\cdots \end{pmatrix} = \begin{pmatrix} e^x & 0 \\ 0 & e^x \end{pmatrix} = e^x$$
So (no surprise) the matrix exponential and the good old real exponential do the same thing.
Now one can ask, "What does the exponential of a complex number get you?" It turns out that... $$\mbox{Given } a+bi = \begin{pmatrix} a & -b \\ b & a \end{pmatrix} \quad \mbox{then} \quad e^{a+bi} = \begin{pmatrix} e^a\cos(b) & -e^a\sin(b) \\ e^a\sin(b) & e^a\cos(b) \end{pmatrix}$$ ...this involves some (?intermediate?) linear algebra.
Anyway accepting that, we have found that $e^{a+bi} = e^a(\cos(b)+i\sin(b))$. In particular, $$e^{i\theta} = \begin{pmatrix} \cos(\theta) & -\sin(\theta) \\ \sin(\theta) & \cos(\theta) \end{pmatrix}$$ So that $$e^{i\pi} = \begin{pmatrix} -1 & 0 \\ 0 & -1 \end{pmatrix} = -1$$
We can see this way that complex exponentiation (with pure imaginary exponent) yields a rotation matrix. Thus leading us down a path to start identifying complex arithmetic with 2-dimensional geometric transformations.
Of course, there are many other ways to arrive at these various relationships. The matrix route is not the fastest/easiest route but it is an interesting one to contemplate.
I hope that helps a little bit. :)