I'm currently taking a complex analysis and it seems like we went straight from the definition of complex derivative straight into just assuming that the derivatives behave at lot like they do for real variables.
My question is how do we know that $\frac{d(\cos(z))}{dz}=-\sin(z)$ and similarly for other trig functions and the exponential function.
Is there something more difficult going on or is it just the application of the definition?
I tried writing $\cos(z)$ as $\cos(x+iy)$ but I don't even really know what the definition of $\cos(z)$ actually is.
I also tried the exponential form approach but realised I don't know how to differentiate $e^{iz}$ either.
Can anyone shed some light on this and maybe provide a few examples?
Thanks.