When I was in high school, I asked a physics teacher "Why do we use complex to calculate stuff with electricity?" (something along that line) and he said "Because it just happens to work" without further details on WHY it works.
I'm in CS/IT and am not very well-versed in EE or abstract maths (though I know enough of the basics to make some robots simple.) As I learned about EE basics, I've learnt that complex numbers are VERY useful in EE and complex analysis is a must for students of EE.
I know complex numbers work well for calculating stuff in EE, but WHY does it work? In CS, I've learnt about how logic algebra works and why its maths works and have a pretty good fundamental understanding of it. Complex numbers, however, still seem quite abstract to me. "It just works" doesn't sit quite right with me.
So, how and WHY do imaginary numbers work to calculate stuff in EE?
Edit:
I'm well aware that complex numbers are used in EE like this. However, what I'm asking is, I think, even more mathematically fundamental. Why do complex numbers work here at all?
They only possible answer to this I've seen so far is because of Euler's Formula: \begin{equation} \label{Eq:I:22:9} e^{i\theta}=\cos\theta+i\sin\theta. \end{equation}
Is that it? Is that the sole reason complex numbers are used?