I'm trying to solve an equation, but can't find any fitting formula or algorithm.
$$e^{ax} + e^{b(x - t)} = 2, t > 0$$
At the moment, I'm using an approximate solution, but my intuition tells me there may be an analytical one, however, it seems that I don't know how to solve this equation by myself. Can you help me with this? Many thanks in advance.
EDIT 1: I'm looking for a solution for $x$.
EDIT 2: I hope I'm right at least here:
- When $a = 0$ and $b = 0$, $x$ may be anything.
- When $a = 0$ and $b \neq 0$, $x = t$.
- When $a \neq 0$ and $b = 0$, $x = 0$.
- When $a > 0$ and $b > 0$, the function on the left is increasing, and there's one $x > 0$.
- When $a < 0$ and $b < 0$, the function on the left is decreasing, and there's one $x < t$.
- When $a \neq 0$ and $b \neq 0$, and they have opposite signs, there're three possibilities:
- if $f(\frac{bt}{b - a}) > 2$, there's no $x$;
- if $f(\frac{bt}{b - a}) = 2$, there's one $x = \frac{bt}{b - a}$;
- if $f(\frac{bt}{b - a}) < 2$, there're $x_1 < \frac{bt}{b - a}$ and $x_2 > \frac{bt}{b - a}$.