I am looking for the solution of an equation just like
$$ae^{k_{1}x} - be^{k_{2}x} + c = 0$$
where $a$, $b$, $k_{1}$, $k_{2}$ are known real constants, $x$ is unknown. I already have a numerical solution but for optimization purpose and generalization I would need to have a closed formula. It would be nice to have a solution based on well known and already well implemented functions such as Lambert function, or generalized hyper-geometric . Any opinion or clue on the way to solve such equation would be very useful.