Recently I've been developing some electrical engineering equations and I've come across an equation of this form: $$e^{-x}=-\sin(x)$$ I've tried to develop both terms using Taylor Series but I'm still unable to solve it.
I've done a little bit of research and it appears that the only way to solve this equation is by using a numerical method such as Newton-Raphson.
I know there are multiple solutions for this equation but I'm only interested in the first one. Is there any way to avoid using a numerical method? Or at least is there a good approximation to avoid getting a numerical solution?
Notice that solution will happen only when sine comes back up to be positive. By that point the exponential will already be very small so the solution will happen very close to $\pi$. Instead of Taylor expanding about $0$, do it around $\pi$. Around $\pi$ the negative sine will look like a positive sine so that Taylor expansion is easy. For the exponential:
$$e^{-x} = e^{-\pi}e^{-(x-\pi)}$$
$$e^{-\pi}\left(1-(x-\pi)+\frac{(x-\pi)^2}{2} + \cdots\right) = (x-\pi) - \frac{(x-\pi)^3}{6} + \cdots$$
So go as far as you need. Here are the first few solutions as a sequence, where the term in the sequence is the order of the solution ($n$th order meaning including terms only up to that degree):
$$\{ \pi, \frac{1}{1+e^{\pi}}+\pi, 1+e^{\pi} - \sqrt{e^{2\pi} + 2e^{\pi} - 1} + \pi, \cdots \}$$
where we take the minus root because the quantity in the square root has a smaller absolute value than the first term, so the minus gives us the positive root that is closest to $\pi$.
From Wolfram, the first solution is $\approx 3.18306$ while the approximated first and second order solutions to that are $\approx 3.18302$ and $\approx 3.18305$, respectively. I would personally call that good enough.