I'm trying to obtain $x$ in the following equation:
$$ 1= ae^{bx}+ce^{dx} $$
with a,b,c,d known.
What I did was to take the ln of all the equation, so I have:
$$ \log\frac{1/ac}{b+d} = x $$
But when I put numbers, I am getting something completely wrong. Is my solution incorrect then?
ps:
a = 2.321
b = -0.0529
c = 0.3172
d = -0.003212
and the "correct $x$" it is:
$x\sim 22.526$
There is no nice analytic solution for your case. You need to solve it numerically.
Set $e^{bx}=y$, then $e^{dx}=y^{d/b}$, you equation becomes:
$$y=\frac{1}{a} \left(1-cy^{d/b} \right)$$
Solve by iterations:
$$y_1=\frac{1}{a}$$
$$y_2=\frac{1}{a}\left(1-cy_1^{d/b} \right)$$
$$y_3=\frac{1}{a}\left(1-cy_2^{d/b} \right)$$
$$ \dots $$
You will get something like $y=0.30372$ after 3-4 steps, which means:
$e^{bx}=0.30372$
$$x \approx 22.526$$
Which is very close to your 'correct' value.
Notice, that my choice of $y$ was based on the fact that $a>c$ and $b>d$. If I chose $e^{dx}$ as $y$ the iterations would work much worse.
But as it was said in the comments, with your values you better use Taylor series for the exponent. It will be much easier (actually, linear approximation doesn't work very well here, so maybe iterations are better)