TL;DR:
The use of exponential function has profuse advantages over trigonometric function. It presents a lot more intuitive visualisation of the phenomenon against the petty trigonometrical functions. It is far more easier to solve differential equations using exponential function than using the conventional trigonometric functions. However, you only should extract the real counterpart of $e^{i\theta}$ for the physical phenomenon.
Introduction:
Suppose you are defining SHM in $x$-axis; as we know SHM is the geometric projection of circular motion, we can imagine the SHM as the shadow - the projection of a body undergoing circular motion and represent the SHM as:
$$x= A\cos(\omega t+\alpha)$$ where $A$ is the radius of the circular path and also the amplitude of SHM in $x$-axis.
However, there is also a projection of this circular motion on the $y$-axis and this implies at $y$-axis, there is also going SHM represented by $$y= A\sin(\omega t+\alpha)\;.$$
But we do know this motion along $y$ has no actual existence; however, we can proceed as if we were dealing with the motion of a point in two dimensions. Nevertheless, at the end, we only extract the $x$-component only from this two-dimensional motion as this is actually the motion existing.
We need to represent this two-dimensional motion such that we can easily distinguish between the physically real and imaginary components of the motion.
Two-dimensional motion and use of Complex numbers to distinguish the real motion from the unreal:
The two-dimensional motion is expressed as:
$$\mathbf r= A\cos(\omega t+\alpha)\mathbf{\hat{i}}+ A\sin(\omega t+\alpha)\mathbf{\hat{j}}\;.$$ In order to reflect the fact that the $\bf {\hat i}$ component is the real-motion, we modify the former equation as $$\mathbf r= x\mathbf{\hat{i}}+ \color{red}{\iota} y\mathbf{\hat j}\;_;$$ inclusion of $\color{red}{\iota}$ reflects the fact that the motion in $\bf{\hat j}$ is unreal or imaginary.
Or, more formally, we can write $$\mathbf r= x+ \color{red}{\iota} y$$ provided $x$ represents the displacement in a direction parallel to $\bf {\hat i}\;.$
Interpretation of $\color{red}{\iota}$:
As A.P.French in his book writes:
The term $\color{red}{\iota} y$ is to be read as an instruction to make the displacement $y$ in a direction parallel to $y$-axis.
$\color{red}{\iota}$ is an instruction to perform an anti-clockwise rotation of $90^\circ$ upon whatever it precedes.
To form the quantity $\color{red}{\iota}b_,$ we step off a distance $b$ along the $x$-axis and then rotate through $90^\circ$ as to end up with a displacement of length $b$ along $\bf{\hat j}\;.$
To form the quantity $\color{red}{\iota}^2 b_,$ we first form $\color{red}{\iota}b$ and then apply to it a further $90^\circ$ rotation. ... But this at once leads to an important identity. Two successive $90^\circ$ rotations in the same sense convert a displacement $b$ into the displacement $-b\;.$
Hence, $\color{red}{\iota}^2 = -1\;.$ Thus we can represent the vector as $z= x+ \color{red}{\iota}y$ where $x= A\cos(\omega t+\alpha)\mathbf{\hat{i}}$ and $y= A\sin(\omega t+\alpha)\mathbf{\hat j}\;.$
The complex exponential:
Let's take the case of circular motion whose radius is unity viz. $A= 1\;.$ Therefore, $$\mathbf r= \cos(\omega t+\alpha)+ \color{red}{\iota}\sin(\omega t+\alpha)\;.$$
Using Taylor series, we can see that $$\mathbf r= \cos(\omega t+\alpha)+ \color{red}{\iota}\sin(\omega t+\alpha)= e^{\color{red}{\iota}(\omega t+\alpha)}\;.$$
The multiplication of $e^{\color{red}{\iota}\theta}$ is describable, in geometrical terms, as a positive rotation, through an angle $\theta$, of the vector by which $z$ may be represented without any alteration of its length.
Why use $\color{red}{\iota}\;?$
Why should I use exponential function? Can't I only use those trigonometrical functions?
Well, everything has a reason.
As A.P.French asserts:
The prime reason is the special property of the exponential function-its reappearance after every operation of differentiation or integration. If, as often happens, the basic equation of motion contains terms proportional to to velocity and acceleration, as well as to the displacement itself, the use of a simple trigonometric function to describe the motion leads to an awkward mixture of sine and cosine terms.
Also you can check: What is the advantage of using exponential function over trigonometric function in analyzing waves?
Application:
Using Trigonometrical functions:
$$\ddot{x} + \nu \dot x + \omega_0^2 x= 0$$
Let's take $x= Ae^{-\gamma t/2} \cos(\omega t +\alpha)$
$$\dot x= (-\gamma /2)Ae^{-\gamma t/2} \cos(\omega t +\alpha) - \omega Ae^{-\gamma t/2} \sin(\omega t +\alpha)$$ \begin{align}\ddot x&= (-\gamma /2)^2 Ae^{-\gamma t/2} \cos(\omega t +\alpha) + (\gamma \omega /2)Ae^{-\gamma t/2} \sin(\omega t +\alpha) - \omega^2 Ae^{-\gamma t/2} \cos(\omega t +\alpha)+ (\gamma\omega/2) Ae^{-\gamma t/2} \sin(\omega t +\alpha)\\ &= \left(\frac{\gamma^2}{4}- \omega^2\right)Ae^{-\gamma t/2} \cos(\omega t +\alpha) + 2(\gamma \omega /2)Ae^{-\gamma t/2} \sin(\omega t +\alpha) \;.\end{align}
Now, the differential equation becomes;
$$\left[\left(\frac{\gamma^2}{4}- \omega^2\right)- \nu \frac{\gamma}{2} + \omega_0^2\right]Ae^{-\gamma t/2} \cos(\omega t +\alpha) + [\gamma\omega -\nu\omega]Ae^{-\gamma t/2} \sin(\omega t +\alpha)= 0$$ which implies $$\left[\left(\frac{\gamma^2}{4}- \omega^2\right)- \nu \frac{\gamma}{2} + \omega_0^2\right]= 0\\ \gamma\omega -\nu\omega= 0$$ which gives: $$\gamma= \nu \\ \omega = \omega_0^2-\frac{\gamma^2}{4} $$
Comment: Phew! My hands:/
Using Exponential function:
$$\ddot{x} + \gamma \dot x + \omega_0^2 x= 0$$
Let's turn it into $$\ddot{z} + \gamma \dot z + \omega_0^2 z= 0$$
Let's assume $z= Ae^{\color{red}{\iota}(pt + \alpha)}\;.$
Putting $z$ in the equation we get:$$(-p^2 + \color{red}{\iota} p\gamma + \omega_0^2)Ae^{\color{red}{\iota}(pt + \alpha)}\;.$$ This implies: $$(-p^2 + \color{red}{\iota} p\gamma + \omega_0^2) = 0\;.$$ It cannot be satisfied if $p$ is real, as $\color{red}{\iota} p\gamma$ would be left without being cancelled by any term. Therefore, we put $$p = n+ \color{red}{\iota}s\;.$$ Putting the value of $p^2$ in the preceding equation, we get; $$-n^2 -2n\color{red}{\iota}s + s^2 + \color{red}{\iota}n\gamma - s\gamma + \omega_0^2= 0\;.$$ Separating the real and imaginary parts, we get $$-n^2 + s^2 -s\gamma + \omega_0^2 = 0\\ -2ns + n\gamma = 0\;.$$ From this, we get; $$s= \gamma/2\\ n^2 = \omega_0^2 - \frac{\gamma^2}{4}\;.$$ Thus, \begin{align}z(t)&= Ae^{\color{red}{\iota}(nt + \color{red}{\iota}st + \alpha)}\\& = Ae^{-st}e^{\color{red}{\iota}(nt + \alpha)}\;.\end{align}
Taking the real component, we get $$x(t)= Ae^{-\gamma t/2}\cos(\omega t+ \alpha)\;.$$
Comment: See? How elegant and easier to solve the same equation using exponential function? Also, notice, how, at the end, only the real part is extracted because it is the actual motion going.