Is there an analytical solution to an equation of the form $a e^{(\alpha + i \beta) x} - b e^{(\alpha - i \beta) x} + c = 0$? How can we solve such an equation to $x$?
EDIT 1: Thanks for your patience with me. I tried it based on your hint in Matlab with the following code:
a = 5.6;
b = -12.6;
c = 18.9;
alpha = 2.5;
beta = 3.3;
r = (alpha+1jbeta)/(alpha-1jbeta);
A = a/b;
C = c/b;
y = C;
for n = 1:100
derivative = (nr)C^((nr)-1);
y = y + ((A^n)/(factorial(n)))derivative;
end;
y
y_correct = fsolve(@(y)(ay^r - by + c), 1)
However, this yields $y = -1.497762285457014e+00 + 1.248026585918367e-02i$ and $y_{correct} = -1.517484388747081e+00 + 8.391487021758234e-03i$. When I check with
A*y^r + C - y
the result is not 0, so clearly there is an error here somewhere.
EDIT 2: found the problem:
a = 5.6;
b = -12.6;
c = 18.9;
alpha = 2.5;
beta = 3.3;
r = (alpha+1jbeta)/(alpha-1jbeta);
A = a/b;
C = c/b;
y = C;
for n = 1:100
if n == 1
derivative = C^r;
else
derivative = (nr)C^((nr)-1);
endif;
y = y + ((A^n)/(factorial(n)))derivative;
end;
works good!
EDIT 3: There was still an error in the derivative. I fixed it and wrote an answer.